How can i put a dynamic value to an html:hidden ?

2004-06-25 Thread John Antonakos
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

RE: How can i put a dynamic value to an html:hidden ?

2004-06-25 Thread Vaclavik Radek
Hi John,

this kind of nesting is not possible in Struts. It has been discussed many
times in many forums already.
The solution is to define a scripting variable and assign it then:

bean:define id=someId name=member property=firstname/

html:hidden property=firstname value=%= someId%/

Radek


 -Original Message-
 From: John Antonakos [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 25, 2004 12:17 PM
 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
 


Re: How can i put a dynamic value to an html:hidden ?

2004-06-25 Thread John Antonakos
just out of curiosity, what is html-el ?
i use JSTL, but even in that, i cannot do this:
html:hidden property=firstname value=c:out value=${member.firstname}//

John

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 25, 2004 1:26 PM
Subject: SV: How can i put a dynamic value to an html:hidden ?


Hi

use html-el and then : html:hidden property=firstname
value=${member.firstname}/

-Opprinnelig melding-
Fra: John Antonakos [mailto:[EMAIL PROTECTED]
Sendt: 25. juni 2004 12:17
Til: [EMAIL PROTECTED]
Emne: 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


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
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]



RE: How can i put a dynamic value to an html:hidden ?

2004-06-25 Thread Paul McCulloch
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]



Re: How can i put a dynamic value to an html:hidden ?

2004-06-25 Thread John Antonakos
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]



SV: How can i put a dynamic value to an html:hidden ?

2004-06-25 Thread hermod . opstvedt
Hi

import the struts-el tag library and the tld for it - Then you can ust
jstl syntax. Right now you are using the standard struts tag library

Hermod

-Opprinnelig melding-
Fra: John Antonakos [mailto:[EMAIL PROTECTED]
Sendt: 25. juni 2004 12:30
Til: Struts Users Mailing List
Emne: Re: How can i put a dynamic value to an html:hidden ?


just out of curiosity, what is html-el ?
i use JSTL, but even in that, i cannot do this:
html:hidden property=firstname value=c:out
value=${member.firstname}//

John

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 25, 2004 1:26 PM
Subject: SV: How can i put a dynamic value to an html:hidden ?


Hi

use html-el and then : html:hidden property=firstname
value=${member.firstname}/

-Opprinnelig melding-
Fra: John Antonakos [mailto:[EMAIL PROTECTED]
Sendt: 25. juni 2004 12:17
Til: [EMAIL PROTECTED]
Emne: 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


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *


-
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]

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