Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create ".view" extension file in j2ee

Status
Not open for further replies.

mukeshvishwas

Programmer
Oct 6, 2014
1
0
0
IN
Hi,

I am new in j2ee. I have gone through a j2ee book. There is a web application named "Soccer" in which a file name "list_league.view" is given at "/" directory. So my question is how can i create these extension type file.

Content of Web.xml file:


<servlet>
<servlet-name>ListLeague</servlet-name>
<servlet-class>s1314.view.ListLeagueServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>ListLeague</servlet-name>
<servlet-class>list_league.view</servlet-class>
</servlet-mapping>

[highlight #AD7FA8]Content of Index.html file:[/highlight]

<body>
<table border='1' cellpadding='5' cellspacing='0' width='400' >
<tr bgcolor='#CCCCFF' align='center' valign='center'>
<td><h3>Duke's Soccer League: Home</h3></td>
</tr>
</table>
<p>This is the Home Page for Duke's Soccer League.</p>
<h3>Player</h3>
<ul><li><a href="list_league.view">List all league</a></li>
<li>Register for a league(TBA)</li>
</ul>
<h3>League Administrator</h3>
<ul><li><a>Add a new league</a></li></ul>
</body>
 
 http://files.engineering.com/getfile.aspx?folder=0ea0a355-70e7-4a96-9303-39087e509abf&file=28.png
list_league.view is not a file, is an URL that points somewhere that needs to be defined in your application.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top