Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP page and the pageContext.forward() method

843835Jun 30 2003 — edited Jun 30 2003
I am running JSP pages on a coldfusion site so that a CF page (i.e. login.cfm) hosts my login.jsp page. I want to reload the JSP page without having to reload the cfm page each time. pageContext.forward() does do this, however, it only forwards on to a new page. I want to be able to reload a page with the new URL parameters (e.g. when there is an error, login.jsp will reload and give the user an error). What is a method to reload the page with the proper URL variables?

The following code does not work:
pageContext.forward("login.jsp?operation=user_edit&jsessionid=" + f_URLEncode(session.getId()));
Because it runs from the login.jsp page (the forward command only goes to a new page)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2003
Added on Jun 30 2003
3 comments
405 views