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 15 July 2004, 12:19 PM
  #1  
boxst
Scooby Regular
Thread Starter
 
boxst's Avatar
 
Join Date: Nov 1998
Posts: 11,905
Likes: 0
Received 0 Likes on 0 Posts
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.
Old 15 July 2004, 01:44 PM
  #2  
boxst
Scooby Regular
Thread Starter
 
boxst's Avatar
 
Join Date: Nov 1998
Posts: 11,905
Likes: 0
Received 0 Likes on 0 Posts
Default

Hello

For completeness:

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

Steve.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Lust4Life
Computer & Technology Related
2
12 September 2002 11:49 AM
igratton
Computer & Technology Related
7
16 May 2002 04:39 PM
super_si
Computer & Technology Related
1
18 April 2002 07:52 PM
rallybet
Computer & Technology Related
5
08 March 2002 01:59 PM



Quick Reply: Java and JSP help



All times are GMT +1. The time now is 02:11 PM.