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

What is int lol?

0 Answers  


I/O blocking means?

1 Answers  


Why operator overloading is not in Java?

0 Answers  


what is bytecode ?explain in detail and watz the difference between bytecode and machine code?

6 Answers   Lucent,


What is anagram number?

0 Answers  






if u open login & logout ,how can udisplay the timelogin & logout members ?

0 Answers   Virtusa,


How are the elements of a gridbaglayout organized?

0 Answers  


What is nextline method in java?

0 Answers  


Is object a data type in java?

0 Answers  


What is the static variable?

0 Answers  


What is data type in computer?

0 Answers  


Difference between final and effectively final ?

0 Answers  


Categories