wood burning stoves*
The moose likes JSP and the fly likes passing from jstl TO jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "passing from jstl TO jsp" Watch "passing from jstl TO jsp" New topic
Author

passing from jstl TO jsp

Phil Smy
Greenhorn

Joined: Sep 25, 2003
Posts: 4
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

Joined: Jan 10, 2002
Posts: 61451
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

P.S. And be sure to enclose your code in the UBB code tags. That way, the formatting will be preserved as well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing from jstl TO jsp