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 a consumer in java?
What is data and its types?
What is the difference between static synchronize() metod and synchronize() method?
What is rmi and steps involved in developing an rmi object?
Can a for statement loop indefinitely?
Explain java coding standards for methods?
What is the exact difference in between unicast and multicast object? Where we will use?
Explain heap sort?
What are unchecked exceptions in java?
What do you mean by local variable and instance variable?
Convert Binary tree to linked list.
Is string serializable in java?