You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Madhav Bhargava <Ma...@infosys.com> on 2006/12/20 15:38:09 UTC

passing values from one request to another

Hi All,



I am passing a value to the action  method using <f:param name="bingo"
value="tringo">.

The action then forwards the control to another JSP. This JSP has
another set command buttons which call another action method. How do I
pass the value stored initially in "bingo" to the action methods called
from the last JSP in sequence?



One solution is to programmatically add a hidden input component or an
attribute component to the view root. Is there any other alternative
that I can use? If yes then how?



**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Re: passing values from one request to another

Posted by David Delbecq <de...@oma.be>.
Sometinh in second jsp, in the form of
<f:param name=”bingo” value=”#{params.bingo}”>  ? (i think it's param,
check the EL predefined variable names for the one representing parameters)
En l'instant précis du 12/20/06 15:38, Madhav Bhargava s'exprimait dans
toute sa noblesse:
>
> Hi All,
>
>  
>
> I am passing a value to the action  method using <f:param name=”bingo”
> value=”tringo”>.
>
> The action then forwards the control to another JSP. This JSP has
> another set command buttons which call another action method. How do I
> pass the value stored initially in “bingo” to the action methods
> called from the last JSP in sequence?
>
>  
>
> One solution is to programmatically add a hidden input component or an
> attribute component to the view root. Is there any other alternative
> that I can use? If yes then how?
>
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
> solely for the use of the addressee(s). If you are not the intended
> recipient, please notify the sender by e-mail and delete the original
> message. Further, you are not to copy, disclose, or distribute this
> e-mail or its contents to any other person and any such actions are
> unlawful. This e-mail may contain viruses. Infosys has taken every
> reasonable precaution to minimize this risk, but is not liable for any
> damage you may sustain as a result of any virus in this e-mail. You
> should carry out your own virus checks before opening the e-mail or
> attachment. Infosys reserves the right to monitor and review the
> content of all messages sent to or from this e-mail address. Messages
> sent to or from this e-mail address may be stored on the Infosys
> e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>