how to connect one jsp page to another jsp page????
Answers were Sorted based on User's Feedback
Answer / murali
we can forward a request from one jsp to anothe JSP in the
following ways:
1.include directive i.e <%@ include file="xxx.jsp" %>
2.jsp:include action tag i.e <jsp:include page="/xxx.jsp"%>
3.jsp:forward action tag i.e <jsp:forward page="/xxx.jsp"%>
| Is This Answer Correct ? | 85 Yes | 24 No |
Answer / srividya eeswar
<a
href="<%=request.getContextPath()%>/anotherjspname.jsp">Link</a>
| Is This Answer Correct ? | 54 Yes | 19 No |
Answer / deepak divvela
<%
RequestDispatcher rd=sc.getRequestDispatcher("a.jsp");
rd.forward(req,res);
%>
| Is This Answer Correct ? | 35 Yes | 26 No |
Answer / koushik
<%
RequestDispatcher rd=sc.getRequestDispatcher("a.jsp");
rd.forward(req,res);
%>
| Is This Answer Correct ? | 23 Yes | 24 No |
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
What is meant by vector class, dictionary class, hash table class, and property class?
how to create multithreaded program? Explain different ways of using thread? : Java thread
Why are the methods of the math class static?
What are encapsulation, inheritance and polymorphism?
What does index mean in java?
What are the methods to rectify ambiguities in the interfaces in JAVA?
Differentiate between a class and an object.
Which collection object is faster to retrieving the data and inserting the data into it.
2 Answers Jamcracker, Virtusa,
Can we override private constructor in java?
Is it compulsory to have atleast one abstract method in abstract class?
What is a compilation unit?