Search This Blog

Friday, 14 September 2012

Practical 26) Develop an application to write a "page-composite" JSP that includes other pages or passes control to another page. (Hint: Use or ).


Filename-Instidtue1.jsp

<html>
<body>
<h1>Istar</h1>
</body>
</html>

Filename-Instidtue2.jsp

<html>
<body>
<h1>Aiis</h1>
</body>
</html>

Filename-Instidtue3.jsp

<html>
<body>
<h1>Svit</h1>
</body>
</html>

Filename-footer.jsp
<html>
<body>
<%! int accesscount; %>
<hr>
<h2>
You have visited his page <%= ++accesscount %> times.
</h2>
<%= new java.util.Date() %>
</body>
</html>
Filename-MainTest.jsp

<html>
<body>
<form action="http://localhost:8090/wtad/def26/Actiontag.jsp" >
Institute name
<input type="text" name="inst" />
<input type="submit" value="submit" />
</form>
Fotter
<%@  include file="footer.jsp" %>

</body>
</html>

Output

Filename-MainTest.jsp

Institute name  
Fotter


You have visited his page 1 times.

Tue Apr 10 23:12:39 IST 2012

No comments:

Post a Comment