Portlet Factory, Version 6.1.2


 

Processing redirections

If any of the JSP pages that you import for use in a model contain any redirection code, you will need to re-implement this behavior with a method in your model. For example, if a page in your model contains the following JSP code, you need to create a method that processes the appropriate page.

<% response.sendRedirect(response.encodeRedirectURL("http://127.0.0.1:7001/MyApp/results/success.html"));
%>

The action that processes this page needs to be altered to include any logic contained in the JSP page and to process the success.html page. You should import the success.html with a call to the Imported Page builder. For example, the method in your model would contain code similar to the following:

...
// incorporate any logic in JSP here. webAppAccess.processPage("SuccessPage");
...

Parent topic: JavaServer pages guidelines


Library | Support |