Re: Session & JDBC

2002-05-19 Thread Vishal


Hi wiwi ..
there r many ways u can handle this situation ...

1)  From u'r login page u can send the username and password to a jsp file ,
which will authenticate the user checking the values from the database .If
the user is present u can just forward the page to next JSP ar Servlet

Eg :for JSP
or
Eg :for Servlets

in that servlet or jsp u can initialise a session that will work dedicated
to that user throught his login period !!!

just add this scriplet before the body tag to have session=true

<%@ page language="java"  import="java.sql.*" session="true"%>

i can send the option with doing the same stuff purly with servlets also


but because of lack of time i'll send it only if u r not satisfied with the
present solution !!!

do let me know

Vishal Gupta


  Vishal Gupta
  Software Analyst
  ABL Technologies
  India
  Ph 91-11-3546203
   91-11-3546204
   91-11-3626315
 *
- Original Message -
From: "Wiwi Wiwi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 8:08 AM
Subject: Session & JDBC


> Hi all. Can somebody point me some guides on my project. Now, I'm trying
to
> do a login page for my client, and I wish to do some session once the
login
> is successfully. However, I don't know where should my login page forward
> to? Is it straight away forward to servlet to create a session and
validate
> the user within a servlet? Or, use some Java Bean to create a JDBC
> connectivity, and on the other hand, create a servlet to handle session?
>
> By the way, can anyone guides me on what method(servlet or bean) to be
used
> to create the validation on the user login and create the session for the
> user?
>
> Thanks.
>
> regards,
> wiwi.
>
> _
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Session & JDBC

2002-05-19 Thread Wiwi Wiwi

Hi all. Can somebody point me some guides on my project. Now, I'm trying to 
do a login page for my client, and I wish to do some session once the login 
is successfully. However, I don't know where should my login page forward 
to? Is it straight away forward to servlet to create a session and validate 
the user within a servlet? Or, use some Java Bean to create a JDBC 
connectivity, and on the other hand, create a servlet to handle session?

By the way, can anyone guides me on what method(servlet or bean) to be used 
to create the validation on the user login and create the session for the 
user?

Thanks.

regards,
wiwi.

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: