Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Template action include

Marcio Ghiraldelli

2006-03-07

Replies:

  Hello,
  I am including an Struts action inside an JSP file, passed by GET as an
"action" attribute, exposing with bean taglib:

  GET: template.jsp?action=List.do

  template.jsp:

  (...)
          <bean:include id="action"
page="<%=request.getParameter("action")%>" />
          <bean:write name="action" filter="false" />
  (...)

  but I need that the request (and session) values would be exposed to the
action too, wich not happens which the above method. Like:

  GET: template.jsp?action=List.do&what=1

  What would be the best approach? Rewrite GET parameters does'nt sound me
the best solution.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.