Java Mailing List Archive

http://www.junlu.com/

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

Can I access URL parameters within struts.xml using ognl ?

mikeh96

2007-10-02



I would like to do something like this:

(e.g. http://foo/view.action?page=help.vm)

<action name="view"
      class="com.opensymphony.xwork2.ActionSupport">
      <interceptor-ref name="defaultStack" />
      <result
type="velocity">/templates/screens/#request['page']</result>
</action>

I know I can do it if I write my own action with setters/getters for the
parameter .. but I was wondering
if I can use some ognl syntax or other (e.g. $request.getParameter("page"))

thanks

--
Sent from the Struts - User mailing list archive at Nabble.com.


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

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