I am doing exactly what you described below and still when someone first
goes to form.jsp and then posts the form which points at action.jsp, the
statements in action.jsp between <jsp:useBean id="test" class ="Test"> and
</jsp:useBean> are not executed. I agree with you that is should work, so I
don't understand what is going on.
>Hey Brad,
>
>If I am understanding your example right:
>When form.jsp is loaded, "test" shouldn't be printed out because from your
>example the "test" is printed in action.jsp. action.jsp is only loaded
>after someone goes to form.jsp and then does the post to action.jsp. The
>only way action.jsp will be loaded is if someone goes to action.jsp
>directly or first goes to form.jsp and then posts the form, which points at
>action.jsp.
>
>Hope this helps.
>
>cboyd
>
>-----Original Message-----
>From: Brad Miley [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 08, 2000 11:26 AM
>To: [EMAIL PROTECTED]
>Subject: </jsp:useBean>
>
>
>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
________________________________________________________________________
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