This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passing from jstl TO jsp  RSS feed

 
Phil Smy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am stuck using a taglib that won't let me use jstl in setting attributes.
e.g:
This:
<oui :p ostfield name="gid" value="<x ut select="$game/game/tableid"/>" />
outputs:
<postfield name="gid" value="<x ut select="$game/game/tableid"/>" />
(i.e. no interpretation).
Now, if I happen to have what I need in a jsp variable, I can do the following:
<oui :p ostfield name="gid" value="<%=someVariable>" />
So the question is (and I can't find an answer in my reference books!) how can I pass FROM jstl UP to jsp. I want to do something like this:
<% String t = "%><x ut select="$game/game/tableid"/><%";%>
Which obviously doesn't work, but you get the idea.
Help!
[ September 25, 2003: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hint: when posting a topic that has lots of colons ( in it, it's best to click the 'disable smilies' near the bottom of the edit page. I went ahead and disabled smilies in your post, but it's still kinda whacked.
You might want to edit your post, re-enter the code, and be sure that smilies are disabled.
bear
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. And be sure to enclose your code in the UBB code tags. That way, the formatting will be preserved as well.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!