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 the importance of main method in Java?
How many types of string data types are there?
What is the difference between conversation & casting?
What is the difference between class & structure?
What is continuity of a function?
what is purpose of writting public static void main(Strind arg[]) in java..?
What are the steps that are followed when two computers connect through tcp?
class A { public void disp(int a,int b) { System.out.println("hai"); } } class B { public void disp(int a,int b,int c) { System.out.println("hai"); } } above program is overloading or overriding?
What do you mean by light weight and heavy weight components?
What is a literal coding?
What is oops in java?
What is unicode?