aspose file tools*
The moose likes Struts and the fly likes adding object to a list using tags. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "adding object to a list using tags." Watch "adding object to a list using tags." New topic
Author

adding object to a list using tags.

paddy Mahadeva Iyer
Ranch Hand

Joined: Feb 10, 2007
Posts: 63
Hi guyz,

i have 2 questions.

1)Is there any tag that will allow me to create an object
2) Is there any tag that will allow me to add an object to a list.

Thanks in advance
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

In Struts 2?

For 1), see the bean tag.

For 2), OGNL can invoke arbitrary methods on any object, so you could do this by evaluating an OGNL expression somehow, perhaps by using it as a value in another tag.


The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: adding object to a list using tags.
 
Similar Threads
JspFragment
Adding form:option dynamically
help in JSP
Tutorial on Dynamic Attributes
How do I access a page scoped object.