Hi Brett,

could You tell us the the publisher and the ISBN# of Your book
recomendation?

Thank You
Stefan

--
Stefan Seidel
----- Original Message -----
From: "Procek, Brett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 4:35 PM
Subject: RE: How to assign contents of a tag to a Java-variable?


If I'm understanding you correctly, then what you have to use a
'cooperating tag' which can create a new variable which can then be used
anywhere inside your JSP file.  Ultimately it could be used like the
following.

<test:createVariable name="x" value="Hello World"/>
<%=x%>  // this would send "Hello World" to your browser for display.


Does anyone know of a good online reference on how to do this?  I own
the book "Professional JSP", which I recommend to anyone doing serious
JSP developement.

Brett




-----Original Message-----
From: Thomas Förster [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 2:54 AM
To: taglibs
Subject: How to assign contents of a tag to a Java-variable?



Hi!

I need to assign the "contents" of a tag to a local Java-variable.
Let's say I have an attribute like

<app:attribute name="userName"/>

I want to define a variable which gets the value of this attribute.

<% String user = "???value of the attribute???"; %>

How can I do this?

Thomas


Reply via email to