Hi,
    the out.println will be called the first time your bean will be created !! This
means that if your bean have a application scope, all the code
between <jsp:useBean...> and </jsp:useBean> will be executed only once, if your
scope is session it will be executed once by session and so on. If you don't recise
any scope, i don't know whiwh one is the default, you could certainly found it in
the spec. I always precise it...

Have a nice Day
Veronique.


Brad Miley a écrit :

> I have a form called form.jsp whose action is action.jsp.
> In action.jsp I have the following:
>
> <jsp:useBean id="test" class ="Test">
> <%out.print("test");%>
> </jsp:useBean>
>
> when I load action.jsp directly, 'test' is printed the first time the page
> is loaded, but when I first open up form.jsp, test is not printed even
> though it is the first time action.jsp is loaded. Can someone please
> explain?
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> 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

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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