struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kasterovic, Slobodan <kastero...@s-m-c.de>
Subject AW: Using "bean:write" as a tag's value atrribute
Date Thu, 29 Jan 2004 11:40:11 GMT
Try this:

<someTag value="<%= pageContext.getAttribute("myBeanName").getItsproperty()
%>" />

Casting is sometimes necessary !!!


Slobodan


--> -----Urspr√ľngliche Nachricht-----
--> Von: Mailing List [mailto:mailinglist@pdpsoft.com]
--> Gesendet: Donnerstag, 29. Januar 2004 11:54
--> An: 'Struts Users Mailing List'
--> Betreff: Using "bean:write" as a tag's value atrribute 
--> 
--> 
--> 
--> Dear All;
--> 
--> Using <bean:write name="myBeanName" property="its 
--> property"> works properly
--> in my jsp page body. But when I want to use it in a tag to fill its
--> attribute, it fails.
-->  Actually I don't know the syntax of using bean:write, 
--> obviously the below
--> way is wrong:
--> 
--> <someTag value="<bean:write name="myBeanName" property="its 
--> property">">
--> 
--> Using expression is wrong, too:
--> 
--> <someTag 
-->      value="<%=<bean:write name="myBeanName" property="its 
--> property">%>">
--> 
--> So how could I use bean:write in my tags?!
--> 
--> Any help would be greatly appreciated
--> Nafise
--> 
--> 
--> ------------------------------------------------------------
--> ---------
--> 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


Mime
View raw message