>You don't understand how to put things in the context. Page scope and
>method
>scope are two different things.

><% String A="test"; %> puts things in the method only; not the page. The
>page has a context all its own (which you apparently know). When you
>declare

See: I am creating an object in the tag:

pageContext.setAttribute(var_name,value,pageContext.PAGE_SCOPE);
teiclass returns appropriate description etc.

And code generated by JSP (Tomcat,Resin) for the tag

<pref:tagName id="var_name"/>

is

Type var_name=pageContext.getAttribute(....);

to this variable is described on the 'method level' as
you call it. Non symmetric: created by the tag is described
on the page. Created in the scriptlet - does not. So the question still the
same: is it correct or not.





ServletShop: java server side programming
http://coldjava.hypermart.net

____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at 
http://home.netscape.com/webmail

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to