wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60046
    
  65

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: 60046
    
  65

P.S. And be sure to enclose your code in the UBB code tags. That way, the formatting will be preserved as well.
 
Don't get me started about those stupid light bulbs.
 
subject: passing from jstl TO jsp
 
Similar Threads
How to select an object on a page and set a property for it without leaving the page?
Problem iterating rows of a ResultSet with JSP
Mixing JSTL and JSP?
IE bug ? field too long ?
Two value to be passed in select