Thanks Nicolas and Larry..
Both the use of templates (although I need to check and see if that is
available in 1.0 or not) and the parameter in the path of the forwarding
seem like they should prevent JSP duplication. For this particular
problem, I'm leaning towards the request parameters at th
if I understand correctly what you'd like to achieve, one way to do it would
be to use the Templates or Tiles tag library:
- you setup one template: /CarMenu.jsp with the reusable HTML code :
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
...
You can add a parameter to the global-forwards, and then
check for it. For example:
and then use, in the action class:
if(request.getParameter("where").equals("select")) {
// something; }
else if(request.getParaneter("where".equals("add")) {
etc.
}
-- Larry Maturo
-Ori
3 matches
Mail list logo