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 |
When will you define a method as static?
What is the difference between compare and compareto in java?
What is methodological framework?
what is life cycle of applet?
what is difference Between Core Java and advance java
60 Answers HCL, HP, Sambalpur University, TCS, Vensai Technologies, Wipro,
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
Tell us something about an iterator.
Can constructor return value?
What are File and RandomAccessFile classes?
What does system.gc() and runtime.gc() methods do?
What does it mean that strings are immutable?
What is thread safe java?