--- Giovanni Azua <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to