javascript
Brief description  about Online courses   join in Online courses
View Vasudha  Hegde 's Profile

jsp

how to extends one jsp page to another jsp page with realtime example?
Asked by Vasudha Hegde | Jul 19, 2010 |  Reply now
Replies (2)
View java teacher 's Profile
Yes,we can extend one jsp page to another one...........you can understand this by following example.........

TEST1.jsp

<html>
<Body>
Befor InClusion

Enter Your Name
<Input Type="TextBox" Name="User"
Value="Prakash"/>
<%
<Jsp:include page="TEST2.jsp"/>
%>

After Inclusion
</Body>
</Html>

TEST2.jsp
<html>
<Body>
<%
String user=request.getParameter("User");
out.println("Welcome To Java"+user);

%>
</Body>
</html>

Dec 28, 2010
View sunil kumar mondal 's Profile
TEST1.jsp

<html>
<Body>
Befor InClusion

Enter Your Name
<Input Type="TextBox" Name="User"
Value="Prakash"/>
<%
<Jsp:include page="TEST2.jsp"/>
%>

After Inclusion
</Body>
</Html>

TEST2.jsp
<html>
<Body>
<%
String user=request.getParameter("User");
out.println("Welcome To Java"+user);

%>
</Body>
</html>


Is This Answer Correct ? 1 Yes 0 No
Jul 19, 2010