You could put it in the pageContext (or even in the session or application
context). That will require some syntactic clutter (first
pageContext.setAttribute("variableName",objectVariable);
then (in the jsp page)
ObjectType myVariable =
(ObjectType)pageContext.getAttribute("variableName",objectVariable);
)
and opens the possibilitie of errors that are hard to debug (what if there
is already an attribute with that name?) but is much safer than directly
creating variables in other scopes. It is one of javas merits that this is
not possible (at least not to my knowledge).
greetings
Andreas Mohrig
-----Original Message-----
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 4:42 PM
To: Tomcat Users List
Subject: registering variables
How can I create an variable within an taglib? I would like to be able
to create an variable accesible to my jsp page.
--
Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893
Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>