how to connect one jsp page to another jsp page????

Answers were Sorted based on User's Feedback



how to connect one jsp page to another jsp page????..

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

how to connect one jsp page to another jsp page????..

Answer / manoj

by using forward directive

Is This Answer Correct ?    71 Yes 26 No

how to connect one jsp page to another jsp page????..

Answer / srividya eeswar

<a
href="<%=request.getContextPath()%>/anotherjspname.jsp">Link</a>

Is This Answer Correct ?    54 Yes 19 No

how to connect one jsp page to another jsp page????..

Answer / deepak divvela

<%
RequestDispatcher rd=sc.getRequestDispatcher("a.jsp");
rd.forward(req,res);
%>

Is This Answer Correct ?    35 Yes 26 No

how to connect one jsp page to another jsp page????..

Answer / krunal patel

response.sendRedirect("xyz.jsp");

Is This Answer Correct ?    19 Yes 19 No

how to connect one jsp page to another jsp page????..

Answer / koushik

<%
RequestDispatcher rd=sc.getRequestDispatcher("a.jsp");
rd.forward(req,res);
%>

Is This Answer Correct ?    23 Yes 24 No

Post New Answer

More Core Java Interview Questions

When will you define a method as static?

0 Answers  


What is the difference between compare and compareto in java?

0 Answers  


What is methodological framework?

0 Answers  


what is life cycle of applet?

9 Answers  


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?

0 Answers  


Tell us something about an iterator.

0 Answers  


Can constructor return value?

0 Answers  


What are File and RandomAccessFile classes?

2 Answers  


What does system.gc() and runtime.gc() methods do?

0 Answers  


What does it mean that strings are immutable?

0 Answers  


What is thread safe java?

0 Answers  


Categories