On Tue, 1 Oct 2002, Kenny G. Dubuisson, Jr. wrote:

> Can you pass parameters from a JSP page to a servlet?  What I want
> to do is to pass a sessionID and database info via parameters to a
> servlet that will generate a chart from data in my Oracle dB.  I
> know this is a basic question but I'm just now learning servlets.
> Thanks, Kenny

You can attach "attributes" to various levels/scopes within the
servlet spec, e.g. context, session, request.  Sounds like request is
what you want.  Check the spec/API for details.  (The relevant methods
are setAttribute/getAttribute.)

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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

Reply via email to