struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: passing request param from struts.xml
Date Tue, 25 Sep 2007 13:08:23 GMT
--- Giovanni Azua <giaz@imc.nl> wrote:
> I would like to pass a different request parameter
> to the same JSP depending on the Action
> 
> I would like to pass a "frequency" parameter to a
> jsp that looks like:
> 
> <%@ page contentType="text/html; charset=UTF-8"%>
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <s:form action="ScheduleJob.action" method="post"
> theme="%{currentTheme}">
>     *<s:hidden name="frequency"
> value="%{#request.frequency}" />*
>     <s:submit value="Schedule" align="center"/>
> </s:form>
> 
> My question is how to place this frequency in the
> request from the struts.xml?

Why does it have to be in the request? If it's a
normal Action property you can access it directly
without using the request; your struts config would
look the same, you'd provide a getter and setter in
the action, and your JSP would refer to it without the
"#request." prefix.

d.


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


Mime
View raw message