how to extends one jsp page to another jsp page with realtime
example?

Answer Posted / shravankumar prajapati

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 ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

difference betwwn 16 bit and 32 bit

1718


What is tld file?

493


What are the different life-cycle methods?

538


Can we implement an interface in a jsp?

548


How can we retrieve warnings?

523






What is the jspdestroy() method?

562


Why we use jsp instead of html?

482


How to include a jsp file in another jsp file?

496


How do you connect to the database from jsp?

551


What is jstl?

533


Can Static method be Override?

557


What do you mean by jsp?

514


What is the purpose of ?

510


How to disable scripting?

496


Where is jsp used?

510