Imam,
  your query remind me of the initial efforts we put in to solve similar
types of problem.
  i think, may not be    a best solution , we can use  session object in a
servlet and
use put method of it to put values of user id and pswd if you want, through
a variable name in session object
in login servlet itself. which at later stage for db connection and query
can be retrieved by any other servlet in that session.
security might be a problem but i haven't get that far.
we can also use qookies as well to keep the values of userid and password
at the client side but that depends upon the browser settings. and keeping
any hing like passwd ext at client side makes me uncomfortable.

any  way i'm curious about other methods to keep user id and passwd. values
such that it can be used later in different servlets .

regards,
rahul




"Imam, Asim, CFCTR" <[EMAIL PROTECTED]> on 09/02/99 12:39:57 AM

Please respond to "Imam, Asim, CFCTR" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Rahul Dwivedi/LTITLVSH)

Subject:  Re: Passing Connection Objects from servlets to JSP??




Hey All,

Due to my limited knowledge I think I kinda asked the wrong question. I
appologize...Let me try again:

Heres what I am trying to do and I want to know the BEST way to implement
it:

I have a login page(html/servlet or jsp??), a search page(html) and a
results page(JSP)

Login Page...username and password...from this I want to instantiate my
connection to DB
search page..has three fields that I want to query on.. the submit button
calls the result page
results page(jsp)...has a query bean which gets the params from search
page,
performs query and displays result

Now my question is how do I access the connection object I instantiated
when
I logged in... Do I have a bad design???

Simply what I want is the user logins in...is send to a search page where
he/she performs a query and the results are displayed???

What would be the best approach/design to do this using
JSP/Servlets????????? I need guidance desperately.....

Many Many thanx to all for being such patient with me and helping me out.

Asim Imam
Application Developer
@AT&T Tax Systems Group

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to