struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikeh96 <mi...@ncsa.edu>
Subject Can I access URL parameters within struts.xml using ognl ?
Date Tue, 02 Oct 2007 14:27:02 GMT

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

-- 
View this message in context: http://www.nabble.com/Can-I-access-URL-parameters-within-struts.xml-using-ognl---tf4555142.html#a12999801
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message