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
What is a declaration statement?
What is error page in jsp?
Which attribute specifies a jsp page that should process any exceptions thrown but not caught in the current page?
What are the different types of jsp directive?
What are scriptlets in jsp?
Which jsp method cannot be overridden?
What are jsp action tags?
How do I perform browser redirection from a jsp page?
What is the difference between hide comment and output comment?
When does a container initialize multiple jsp / servlet objects?
Hi, I've applied for HPCL(Information System Officer)& UIIC (A).Plz send me previous/sample papers and any suggestions regarding this exam.Please advice me good study material or related links. Thanks in advance shyam shyamprasad71@gmail.com
Explain static method?
What is the default value of session attribute in jsp?
Explain the jspdestroy() method?
How can I prevent the output of my jsp or servlet pages from being cached by the browser?