But here I dont want controle back. I am using request.sendRedirect command. using this I am able to transfer controle to destination page(which is in another port).
<%response.sendRedirect("http://localhost:8080/check1/Success.jsp?xtn2=9790");%>
but can i pass dynamic content(here xtn2 variable) to destination page?
<%response.sendRedirect("http://localhost:8080/check1/Success.jsp?xtn2=<%=xtn2%>");%> it is showing syntax error.
or is there any other way that i should fallow?
Could you please help me on this?
If you have the URL of that other page have a look at the URL class; you can
construct such a URL and ask it for its Stream (which is an input stream to
your JSP page). Simply read its content and pass it on in your JSP page to
its own output stream. You need to program a bit of Java for that.
kind regards,
Jos