please write in this way
<%@ page import="java.util.*" %>
<%!
ResourceBundle bundle = null;
public void jspinit(){
bundle
=ResourceBundle.getBundle("forms");
}
%>
<jsp:useBean id="formHandler" class="foo.FormBean" scope="request">
<jsp:setProperty name="formHandler" property="*"/>
</jsp:useBean>
<% if (formHandler.validate()) {
%>
<jsp:forward page="success.jsp" />
<%
} else {
%>
<jsp:forward page="retry.jsp" />
<%
}
%>
----- Original Message -----
From: Denis Halupa <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 12:41 PM
Subject: Re: Bean Problem
> ----- Original Message -----
> From: "Nate Kresse" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 15, 2001 6:21 PM
> Subject: Bean Problem
>
>
> > I's using a bean to validate a form. Based on how the form data is
> > validated or not validated by the bean the JSP forwards to one of 2
pages.
> > Both of these pages use the bean's properties to display information
> > submitted. Both these pages get and error when intiating the bean.
> >
> > Here's the code on the first page to initiate the bean and check the
form,
> > this works fine:
> >
> > <jsp:useBean id="formHandler" class="foo.FormBean" scope="request">
> > <jsp:setProperty name="formHandler" property="*"/>
> > </jsp:useBean>
> >
> > <% if (formHandler.validate()) {
> > %>
> > <jsp:forward page="success.jsp" />
> > <%
> > } else {
> > %>
> > <jsp:forward page="retry.jsp" />
> > <%
> > }
> > %>
> >
> >
> >
> > Here's the code on the second page ( success.jsp and retry.jsp ) which
> > creates the error:
> >
> > <jsp:useBean id="formHandler" class="foo.FormBean" scope="request"/>
> >
> >
>
> Maybe u should try to restart the server
>
>
===========================================================================
> 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
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
===========================================================================
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