You may already have done this, but just in case.  Make sure you have the scope
set to "application" or "session", in order to use the same instance of the bean
from different JSPs.  The default is page scope, which means that the instance
is local to the JSP.

Troy

Dominic Hanlan wrote:
> 
> Hi,
> 
> I have an application with 2 jsps, the first, using a form gathers user data
> and the second then checks it. The second is the action="" of the first.
> 
> I have a session bean which is used in the second jsp with the setProperty
> property="*" function to pick up the request parameters from the first jsp.
> 
> So far so good. The problem arises when I which to return to the first jsp if
> the user data is not correct. The fields should be pre-populated. So I include
> the jsp:useBean statement again in the first jsp. Using the id.getXXXX() calls
> I pre-populate the fields.
> 
> The effect of this, is that when I then submit the form to the second jsp, the
> setXXXX() property methods are not called, it's as if they don't exist. Take
> out the useBean from the first jsp and everyting is fine. Put it back in and
> no setXXXX proprties called.
> 
> Help ...................................
> 
> Regards
> 
> /Dominic
>
begin:vcard 
n:Echols;Troy
tel;fax:(630) 979-6124
tel;work:(630) 979-6325
x-mozilla-html:FALSE
url:http://ihgpweb.ih.lucent.com/~troius
org:Lucent Technologies
version:2.1
email;internet:[EMAIL PROTECTED]
title:Distinguished Member of Technical Staff
adr;quoted-printable:;;Room 6N-310=0D=0A2000 North Naperville Road;Naperville;IL;60566;US
fn:Troy Eric Echols
end:vcard

Reply via email to