Accessing (and modifying) a JavaBean from a servlet

Andy Engle <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Hi all,

I have a question that seems like it should be a no-brainer, but I
can't seem to get to work:  I have a JavaBean in my web application
that I want to access (and modify values of, of course) from a servlet.
 I have tried several different approaches but I can't get my values
set in the servlet to appear in the JSP page I am forwarding to.

Here is the general layout of what I am trying to do:

JSP "page.jsp" (which has a usebean tag in it) submits a form to a
servlet.  The servlet does stuff with the data passed in, and then in
the servlet I am attempting to set some values stored in the bean.
From there, the servlet forwards back to "page.jsp", where I am using
that same bean to attempt to retrieve the data set in the servlet. I am
developing in NetBeans 3.5, and using Tomcat 4.0.6 to serve the stuff.

Like I said earlier, I can't something so seemingly simple to work.  If
any of you have any ideas or maybe some web sites I could refer to I'd
appreciate it.

Thanks!


Andy

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.