RE: Using strut tag values inside other tags

[email protected] Tue, 1 Jul 2003 10:07:13 -0700
Newsgroups gmane.comp.java.mvc.devel
Message-ID <[email protected]>
Hi Santhi,

You cannot use a struts tag within another tag, same like JSP tags,
But another alternative that you can use is expressions.

<bean:define id="firstName" name="item" property="firstname"
type="java.lang.String"/>

value="<%= firstName %>"

Regards,

Ginny

-----Original Message-----
From: [email protected]
[mailto:[email protected]] 
Sent: Tuesday, July 01, 2003 6:43 AM
To: '[email protected]'
Subject: RE: [MVC-Programmers] Using strut tag values inside other tags

It is possible to write like that:
value=<bean:write name="item" property="firstname"/>

Santhi

-----Original Message-----
From: [email protected]
[mailto:[email protected]]
Sent: Monday, June 30, 2003 9:02 PM
To: [email protected]
Subject: [MVC-Programmers] Using strut tag values inside other tags


Hi,

I was wondering if it was possible to use strut tag
values inside other ones... i.e. evaluate the tag
value and add it as part of another tag.

For example i'd like to do something like

<html:text property="blah" value="<bean:write
proprty=blah/>" />

I'm sure if this is possible i'd have to delimit it or
something... if anyone knows, much appreciated.
Thanks.

-w

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
_______________________________________________
MVC-Programmers mailing list
[email protected]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers
_______________________________________________
MVC-Programmers mailing list
[email protected]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers