Dear Paul,

i know all that, thanks for the remarks though.
I was using that anyway.
I just decided to change them all to <html:....> tags and realized that i cannot.
do it in this specific case. Only for those tags i will keep the old ones.

Thanks, anyway.... John

----- Original Message ----- 
From: "Paul McCulloch" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, June 25, 2004 1:37 PM
Subject: RE: How can i put a dynamic value to an <html:hidden> ?


As other posters have said, you can't use a jsp tag to provide the value of
an attribute in another tag. Ever.

However, what you are doing is (probably) redundant. The purpose of the
html:hidden tag is to *automatically* create an <input type="hidden"/>
element in your form with the value already set according to the value in
your form bean.

If you just want to create a hidden input with a value from something other
than your form bean just use the html tag directly. As this is not a jsp tag
you can use a jsp tag as an attribute:

<input type="hidden" name="firstname" value="<bean:write name="member"
property="firstname"/>"/>

Paul

> -----Original Message-----
> From: John Antonakos [mailto:[EMAIL PROTECTED]
> Sent: 25 June 2004 11:17
> To: [EMAIL PROTECTED]
> Subject: How can i put a dynamic value to an <html:hidden> ?
>
>
> I want to do something like the following:
> <html:hidden property="firstname" value="<bean name="member"
> property="firstname"/>"/>
>
> is this possible ?
> The above statement produces an error.
> Can i use another statement to do this thing ?
> Give a dynamic value, coming from another bean,
> to an <html:hidden> field ?
>
> Regards, John
>


**********************************************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee
indicated in this message (or responsible for delivery of the message to such person), 
you may not
copy or deliver this message to anyone. In such case, you should destroy this message, 
and notify us
immediately. If you or your employer does not consent to Internet email messages of 
this kind,
please advise us immediately. Opinions, conclusions and other information expressed in 
this message
are not given or endorsed by my Company or employer unless otherwise indicated by an 
authorised
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via
electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.
You are therefore strongly advised to undertake anti virus checks prior to accessing 
the attachment
to this electronic mail.  Axios Systems Ltd grants no warranties regarding performance 
use or
quality of any attachment and undertakes no liability for loss or damage howsoever 
caused.
**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to