You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Stefan Schaebel <St...@bmw.de> on 2003/05/21 10:02:37 UTC

html:hidden problem

Hi!

Is it possible to create the value of a html:hidden tag inside its body?
Example:

<html:hidden property="myProp">
	<bean:write name="myValue"/>
</html:hidden>

I have tried this but the property remains empty. Anyone knows the
reason?

Thanks!


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


Re: html:hidden problem

Posted by Raphaƫl di Cicco <ra...@atosorigin.com>.
You are trying to use these tags the wrong way. You don't have to specify a
value, just a property, and it's the ActionForm Bean corresponding which
will put the correct value at the hidden field.


----- Original Message -----
From: "Stefan Schaebel" <St...@bmw.de>
To: "struts-user" <st...@jakarta.apache.org>
Sent: Wednesday, May 21, 2003 10:02 AM
Subject: html:hidden problem


> Hi!
>
> Is it possible to create the value of a html:hidden tag inside its body?
> Example:
>
> <html:hidden property="myProp">
> <bean:write name="myValue"/>
> </html:hidden>
>
> I have tried this but the property remains empty. Anyone knows the
> reason?
>
> Thanks!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


RE: html:hidden problem

Posted by Vinod Kumar R <vi...@wisorindia.soft.net>.
it is not possible, bcoz, html:hidden does not support bodyContent.

so what ever you have given in th body content it will never be executed


-----Original Message-----
From: Stefan Schaebel [mailto:Stefan.Schaebel@bmw.de]
Sent: Wednesday, May 21, 2003 1:33 PM
To: struts-user
Subject: html:hidden problem


Hi!

Is it possible to create the value of a html:hidden tag inside its body?
Example:

<html:hidden property="myProp">
	<bean:write name="myValue"/>
</html:hidden>

I have tried this but the property remains empty. Anyone knows the
reason?

Thanks!

	

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