Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is there a way to check if a Java Bean Exist?

843830Dec 23 2004 — edited Dec 28 2004
I created a session Bean used to passed form data to a chain of forms and I want to check if the session bean exist or is new the first time the form is loaded so I can set some default values on the form which will later get overwritten by the session bean when you return to the form using the back button.


I know there is a syntax for checking if an attribute exist in a session, but how about a specific session bean exist.

I tried this : if ( request.getSession(false) == null)

But because I have other session attributes besides the session Bean object it returns true.


kmcrtr5
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 25 2005
Added on Dec 23 2004
1 comment
581 views