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 +0000


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]



Reply via email to