struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Héritier <aherit...@sopragroup.com>
Subject RE: Can i wirte a tag lib html like this ?
Date Tue, 16 Oct 2001 08:30:53 GMT
you can't use a taglib inside another one.
however you can use a runtime expression like this :

<html:form action="DCVaultNodeLinkAction">
<html:hidden property="parentKey" value="<%=((YourBeanType)vault).getKey()%>" />
</html:form> 

arno

> -----Message d'origine-----
> De:	Brett Porter [SMTP:bporter@f2network.com.au]
> Date:	mardi 16 octobre 2001 05:48
> À:	'struts-user@jakarta.apache.org'
> Objet:	RE: Can i wirte a tag lib html like this ?
> 
no, this is against the XML and hence JSP spec. 
I think you will find html:hidden has a way to retrieve the value from a bean already though
(but I'm not sure). 
Regards, 
Brett 
-----Original Message-----
From: Jim [mailto:jim@asiatek.com.tw]
Sent: Tuesday, 16 October 2001 1:47 PM
To: struts-user@jakarta.apache.org
Subject: Can i wirte a tag lib html like this ?

Hi all: 
I have a hidden field in the Form tag 
but the hidden VAULE comes form a prorpery of another bean 
So , can I wirte a tag lib html like follow ? 
<html:form action="DCVaultNodeLinkAction">
<html:hidden property="parentKey" value="<bean:write name=vault property=key>" />
</html:form> 
Thank you in advance. 
Jim 



Mime
View raw message