Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Servlet Interest »

Accessing (and modifying) a JavaBean from a servlet

Andy Engle

2003-07-08

Replies:

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 listserv@(protected)
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



©2008 junlu.com - Jax Systems, LLC, U.S.A.