This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how struts property value to custom tag

 
Vicky Pandya
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have custom tag, which has two parameters name param1 and param2
<myTag:compare param1="<bean : write " param2="<bean : write "

Above doesn't seem to work. I believe because it becomes nested tag. is there a way to resolve this without using scriptlet?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally speaking,it does not work to nest one custom tag inside another. If your web container supports JSP 2.0, you could use an EL expression here:

<myTag:compare param1="${param.abc}" param2="${param.def}" />
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic