• Post Reply Bookmark Topic Watch Topic
  • New Topic

adding object to a list using tags.

 
paddy Mahadeva Iyer
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!