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 |
What is UNICODE?
What is a stream? what are the different types and classes of Streams?
what modifiers are used with top-level class?
What is Overriding and how can it be used?
Is class forname reflection?
what is session facade ?
What is the difference between static and global variables and also define what are volatile variables?
0 Answers Flextronics, Hexaware,
How do you compare two strings lexicographically?
What is Mutex (Mutual Exclusion Object) ?
What are methods of a class?
What does int argc char * argv [] mean?
What are the procedures?