• Post Reply Bookmark Topic Watch Topic
  • New Topic

how do i go about nested tag evaluations?  RSS feed

 
Ilan Golden
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this piece in my jsp:

<lib:parameter key="someKey" value="<lib:valueParameter>" />

as you can see the <lib:valueParameter> is nested inside the <lib:parameter> tag
when evaluated the "value" part of my tag gives me the String "<lib:valueParameter>" ...
Of course, this is not what i want.. i want <lib:valueParameter> to be evaluated first and then the <lib:parameter>

Or maybe evaluate <lib:parameter> twice

Can anyone tell me how i can make that happen?

Tx in advance,
Me
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ilan NG", please check your private messages for an important administrative matter.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the lib library?
 
Ilan Golden
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:What is the lib library?


It's not a real lib, i just put it here to accent that i'm using my own custom library

come on guys.. somebody gotta know how to evaluate the inside first....
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ilan NG", please check your private messages for an important administrative matter. Again.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot use a tag as an attribute of another tag. You'll need to pattern your tags after the JSTL where the result of a tag can be set as a scoped variable and then use the EL to set the value for the other action.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!