Thursday, October 31, 2002 04:04 AM
The way I would do it is have an action (and not your JSP) as the entry point of the report mini-application. something like report.do where I would do my calls to the business objects, store the result in the request (or session depending if you need to do something with it thereafter), then forward to your JSP mapping. users would never see Report.jsp in their addess bar.
generally, I tend to avoid exposing any *.jsp URLs, I just provide *.do URLs, even when I have no initialization to do. First it's more flexible (e.g. initialization becomes necessary in version 2 of my app) and it's more consistent with MVC and the struts framework: actions act on behalf of the controler servlet and it's a better idea to let it deal with forwarding to the correct JSP, including when it's this JSP displays something like a home page.