Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Java and JSP help

Thread Tools
 
Search this Thread
 
Old Jul 15, 2004 | 12:19 PM
  #1  
boxst's Avatar
boxst
Thread Starter
Scooby Regular
 
Joined: Nov 1998
Posts: 11,905
Likes: 0
Default Java and JSP help

Hello

I am trying to write some JSP code, and can't figure out how to do it! I have a tag library that returns a property, but I want to use this propertly within the code. So I can do this:

<mytaglib:method id="x">

then later in the page I can:

<bean:write name="x">

What I WANT to do is:

<%

String mys = <bean:write name="x">

%>

(i.e. assign the result of the bean write to a variable so that I can manipulate it.)

Help!

Thank you.

Steve.
Reply
Old Jul 15, 2004 | 01:44 PM
  #2  
boxst's Avatar
boxst
Thread Starter
Scooby Regular
 
Joined: Nov 1998
Posts: 11,905
Likes: 0
Default

Hello

For completeness:

pageContext.getAttribute("x") is the blo0dy simple answer (which took me a day to guess)

Steve.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Lust4Life
Computer & Technology Related
2
Sep 12, 2002 11:49 AM
igratton
Computer & Technology Related
7
May 16, 2002 04:39 PM
super_si
Computer & Technology Related
1
Apr 18, 2002 07:52 PM
rallybet
Computer & Technology Related
5
Mar 8, 2002 01:59 PM




All times are GMT +1. The time now is 01:37 PM.