I will be generating a URL String in my java code.
1) I want this code to be accessed by a JSP 2) The JSP should redirect to a new page( new page is this URL from java code)
Reeth Suresh A wrote:
I will be generating a URL String in my java code.
2) The JSP should redirect to a new page( new page is this URL from java code)
Use servlet to redirect . are you using servlet in your module?
No I am not using any servlet here. I am working on Documentum. This is just a simple java class. The URL string generated in the java class has to be used by the JSP to redirect
You can use jsp implicit object response's sendRedirect method. It will look like response.sendRedirect("url") or can use servlet's RequestDispatcher. Hope this will help
That will not work. If you want to pass a parameter from a java class to a JSP you must use a Servlet, otherwise you can use scriptlets inside your JSP (it is an option but don't do this).
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.