You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by Tom Maher <td...@mitre.org> on 2003/02/21 21:08:12 UTC
Instance Variables
Can anyone tell me if it's possible (and if so how) to retrieve an
instance variable from my jsp into my tag?
i.e.
jsp code:
<%! private Thing foo;%>
<% public void jspInit(){
try{
foo = new Thing();
catch(Exception e){
//handle exception
}
}
%>
and then call:
myThing.bar();
from my tag.
Tom
Re: Instance Variables
Posted by Henri Yandell <ba...@generationjava.com>.
Look into scripting variables in JSP. The main JSP books seem to all
discuss them.
I'm pretty sure scripting variables is the right term.
Hen
On Fri, 21 Feb 2003, Tom Maher wrote:
> Can anyone tell me if it's possible (and if so how) to retrieve an
> instance variable from my jsp into my tag?
>
> i.e.
> jsp code:
>
> <%! private Thing foo;%>
> <% public void jspInit(){
> try{
> foo = new Thing();
> catch(Exception e){
> //handle exception
> }
> }
> %>
>
> and then call:
> myThing.bar();
> from my tag.
>
> Tom
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org