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.
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.
Parent topic: JavaServer pages guidelines