You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eric Hamacher <er...@enetrix.com> on 2008/09/12 22:04:58 UTC
value attribute on
Hello:
I am in a situation where I need to populate a <s:textfield> with a
value in the request scope. It sounds anti-Struts but it can't be
helped. Since the value attribute cannot take a runtime expression, I
am wondering if there is a syntax for picking values off the request.
So, I am looking for
<s:textfield name="field1" value="%{some kind of request-reading
expression}"/>
Thanks.
Regards,
Eric Hamacher
******************************
THIS EMAIL IS INTENDED ONLY FOR THE REVIEW OF THE ADDRESSEE(S), AND MAY
CONTAIN CONFIDENTIAL AND LEGALLY PRIVILEGED INFORMATION. INTERCEPTION,
COPYING, DISSEMINATION, OR OTHER USE BY OTHER THAN THE ADDRESSEE(S) IS
PROHIBITED AND MAY BE PENALIZED UNDER APPLICABLE PRIVACY LAWS. IF YOU
RECEIVED THIS EMAIL IN ERROR, PLEASE DELETE IT AND NOTIFY ME BY RETURN
EMAIL TO eric.hamacher@enetrix.com *******************************
Re: value attribute on
Posted by Pascal Lalonde <pl...@auroramsc.com>.
The request is accessible with ognl this way:
<s:textfield name="field1" value="#request['param']"/>
- Pascal
Eric Hamacher wrote:
> Hello:
>
>
>
> I am in a situation where I need to populate a <s:textfield> with a
> value in the request scope. It sounds anti-Struts but it can't be
> helped. Since the value attribute cannot take a runtime expression, I
> am wondering if there is a syntax for picking values off the request.
> So, I am looking for
>
>
>
> <s:textfield name="field1" value="%{some kind of request-reading
> expression}"/>
>
>
>
> Thanks.
>
>
>
> Regards,
>
> Eric Hamacher
>
>
>
> ******************************
>
> THIS EMAIL IS INTENDED ONLY FOR THE REVIEW OF THE ADDRESSEE(S), AND MAY
> CONTAIN CONFIDENTIAL AND LEGALLY PRIVILEGED INFORMATION. INTERCEPTION,
> COPYING, DISSEMINATION, OR OTHER USE BY OTHER THAN THE ADDRESSEE(S) IS
> PROHIBITED AND MAY BE PENALIZED UNDER APPLICABLE PRIVACY LAWS. IF YOU
> RECEIVED THIS EMAIL IN ERROR, PLEASE DELETE IT AND NOTIFY ME BY RETURN
> EMAIL TO eric.hamacher@enetrix.com *******************************
>
>
>
>
>
--
*Pascal Lalonde
Programmeur Analyste*
------------------------------------------------------------------------
/Aurora MSC/
1425 René-Lévesque O Suite 906
Montréal, QC
Bur: 514-664-4745 #227
Fax: 514-664-4767
www.auroramsc.com