RE: how to put a bean:write in a href=

2003-06-05 Thread Chen, Gin
2 possibilities without using scriplets:

1) Struts-EL:
html-el:link href=/getorg.do?id=${orglist.id}/

2) JSTL:
c:url value=/getorg.do
   c:param name=id value=${orglist.id}/
/c:url

-Tim

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 12:54 PM
To: [EMAIL PROTECTED]
Subject: how to put a bean:write in a href=



Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a html:link tag with a string concatenated with a
bean:write...?
I mean, I want to do something like this:

html:link href=getorg.do?id=bean:write name=orglist
property=id/bean:write name=orglist property=id//html:link

Of course, this doesn't work.

I want href to have the string getorg.do?id= concatenated with the output
from bean:write name=orglist property=id/

I suppose this must be done with a scriptlet. By the way, the orglist bean
comes from a logic:iterate over a vector of Beans (named orglistview).

Anyone?

Thanks,

Antonio Santos


-
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 to put a bean:write in a href=

2003-06-05 Thread Varun Garg
Do this

html:link href=getorg.do  paramId=id paramName=orglist
paramProperty=id 

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: how to put a bean:write in a href=



Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a html:link tag with a string concatenated
with a bean:write...? I mean, I want to do something like this:

html:link href=getorg.do?id=bean:write name=orglist
property=id/bean:write name=orglist property=id//html:link

Of course, this doesn't work.

I want href to have the string getorg.do?id= concatenated with the
output from bean:write name=orglist property=id/

I suppose this must be done with a scriptlet. By the way, the orglist
bean comes from a logic:iterate over a vector of Beans (named
orglistview).

Anyone?

Thanks,

Antonio Santos


-
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 to put a bean:write in a href=

2003-06-05 Thread Mark Lowe
I hate dollar signs :o)

I'd do this

html:link page=/gtorg.do
paramId=id
paramName=orglist
paramProperty=id
I Love Sparrows!!!
/html:link
Mark

On Wednesday, Jun 4, 2003, at 17:03 Europe/London, Chen, Gin wrote:

2 possibilities without using scriplets:

1) Struts-EL:
html-el:link href=/getorg.do?id=${orglist.id}/
2) JSTL:
c:url value=/getorg.do
   c:param name=id value=${orglist.id}/
/c:url
-Tim

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 12:54 PM
To: [EMAIL PROTECTED]
Subject: how to put a bean:write in a href=


Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a html:link tag with a string concatenated 
with a
bean:write...?
I mean, I want to do something like this:

html:link href=getorg.do?id=bean:write name=orglist
property=id/bean:write name=orglist property=id//html:link
Of course, this doesn't work.

I want href to have the string getorg.do?id= concatenated with the 
output
from bean:write name=orglist property=id/

I suppose this must be done with a scriptlet. By the way, the 
orglist bean
comes from a logic:iterate over a vector of Beans (named 
orglistview).

Anyone?

Thanks,

Antonio Santos

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


Re: RE: how to put a bean:write in a href=

2003-06-05 Thread António Santos

Thanks. Nice tip.
By the way, is there any other way to put a bean property in a value
attribute of an input of a HTML form?
I mean, supposing that I have a orgview bean, is there a better way to do
this (which of course doesn't work): 

html:text property=id value=bean:write name=orgview property=id//

in order to put the orgview's id property value in the value attribute of
the html:text tag?
Must I put a bean:define tag before and then use a scriplet inside the
value attribute? This is tiresome if if I have several HTML inputs in a form...

Thanks again,

Antonio Santos

---



Do this

html:link href=getorg.do  paramId=id paramName=orglist
paramProperty=id  

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: how to put a  bean:write in a href=



Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a  html:link tag with a string concatenated
with a  bean:write...? I mean, I want to do something like this:

html:link href=getorg.do?id=bean:write name=orglist
property=id/bean:write name=orglist property=id//html:link

Of course, this doesn't work.

I want href to have the string  getorg.do?id= concatenated with the
output from  bean:write name=orglist property=id/

I suppose this must be done with a scriptlet. By the way, the  orglist
bean comes from a logic:iterate over a vector of Beans (named
orglistview).

Anyone?

Thanks,

Antonio Santos


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



RE: RE: how to put a bean:write in a href=

2003-06-05 Thread Mike Whittaker

By the way, is there any other way to put a bean property in a value
attribute of an input of a HTML form?
I mean, supposing that I have a orgview bean, is there a better way to do
this (which of course doesn't work):

html:text property=id value=bean:write name=orgview
property=id//

in order to put the orgview's id property value in the value
attribute of
the html:text tag?
Must I put a bean:define tag before and then use a scriplet inside the
value attribute? This is tiresome if if I have several HTML
inputs in a form...


Total guess, but this might be what you want:

html:test property=myParam name=orgview value=id /

--
Mike W.


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



Re: RE: how to put a bean:write in a href=

2003-06-05 Thread Adolfo Miguelez
No way to embed custom tags so AFAIK  it is the only chance:

bean:define id=pepe name=orgview property=id/
html:text property=id value=pepe/
Adolfo

From: António Santos [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: RE: how to put a  bean:write in a href=
Date: Wed, 4 Jun 2003 20:40:24 +
Thanks. Nice tip.
By the way, is there any other way to put a bean property in a value
attribute of an input of a HTML form?
I mean, supposing that I have a orgview bean, is there a better way to do
this (which of course doesn't work):
html:text property=id value=bean:write name=orgview 
property=id//

in order to put the orgview's id property value in the value attribute 
of
the html:text tag?
Must I put a bean:define tag before and then use a scriplet inside the
value attribute? This is tiresome if if I have several HTML inputs in a 
form...

Thanks again,

Antonio Santos

---


Do this

html:link href=getorg.do  paramId=id paramName=orglist
paramProperty=id  

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: how to put a  bean:write in a href=



Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a  html:link tag with a string concatenated
with a  bean:write...? I mean, I want to do something like this:

html:link href=getorg.do?id=bean:write name=orglist
property=id/bean:write name=orglist property=id//html:link

Of course, this doesn't work.

I want href to have the string  getorg.do?id= concatenated with the
output from  bean:write name=orglist property=id/

I suppose this must be done with a scriptlet. By the way, the  orglist
bean comes from a logic:iterate over a vector of Beans (named
orglistview).

Anyone?

Thanks,

Antonio Santos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: RE: how to put a bean:write in a href=

2003-06-05 Thread Adolfo Miguelez
I meant:

bean:define id=pepe name=orgview property=id/
html:text property=id value=%=pepe%/

From: Adolfo Miguelez [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: RE: how to put a bean:write in a href=
Date: Wed, 04 Jun 2003 19:54:18 +
No way to embed custom tags so AFAIK  it is the only chance:

bean:define id=pepe name=orgview property=id/
html:text property=id value=pepe/
Adolfo

From: António Santos [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: RE: how to put a  bean:write in a href=
Date: Wed, 4 Jun 2003 20:40:24 +
Thanks. Nice tip.
By the way, is there any other way to put a bean property in a value
attribute of an input of a HTML form?
I mean, supposing that I have a orgview bean, is there a better way to 
do
this (which of course doesn't work):

html:text property=id value=bean:write name=orgview 
property=id//

in order to put the orgview's id property value in the value attribute 
of
the html:text tag?
Must I put a bean:define tag before and then use a scriplet inside the
value attribute? This is tiresome if if I have several HTML inputs in a 
form...

Thanks again,

Antonio Santos

---


Do this

html:link href=getorg.do  paramId=id paramName=orglist
paramProperty=id  

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: how to put a  bean:write in a href=



Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a  html:link tag with a string concatenated
with a  bean:write...? I mean, I want to do something like this:

html:link href=getorg.do?id=bean:write name=orglist
property=id/bean:write name=orglist property=id//html:link

Of course, this doesn't work.

I want href to have the string  getorg.do?id= concatenated with the
output from  bean:write name=orglist property=id/

I suppose this must be done with a scriptlet. By the way, the  orglist
bean comes from a logic:iterate over a vector of Beans (named
orglistview).

Anyone?

Thanks,

Antonio Santos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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