struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Susan Bradeen <sbrad...@gmail.com>
Subject Re: Accessing parameter map properties using JavaScript
Date Wed, 02 Feb 2005 15:55:29 GMT
Ok, nevermind. Not going to use the Map properties. Using regular
formbean properties instead.

On Tue, 1 Feb 2005 11:46:42 -0500, Susan Bradeen <sbradeen@gmail.com> wrote:
> Yes, I checked the archives and google without any luck.
> 
> If I have a parameter map on my action form, how can I access the map
> properties using JavaScript? As an example, if the following creates
> an alert box with the text field value ...
> 
> <logic:present name="requestform" property="udf2Map">
>    <html:text property="userField2" maxlength="10" onfocus=
> "javascript:alert(document.requestform.userField2.value)"/>
> </logic:present>
> 
> It seems that this should work for a parameter map value ...
> 
> <logic:present name="requestform" property="udf2Map">
>    <html:text property="userField2" maxlength="10" onfocus=
> "javascript:alert(document.requestform.udf2Map['fieldId'].value)"/>
> </logic:present>
> 
> I've tried other syntax variations without success. Anyone know off
> the top of their head a correct way to do this?
> 
> Thanks,
> Susan
>

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


Mime
View raw message