Use this code (from my earlier posting).
- khaitan
1. create a session bean object as per the following code in some file x.jsp
<jsp:useBean id="login" scope="session" type="Login" class="Login">
</jsp:useBean>
<.. set the login/password properties of the bean..>
2. import the login session in say y.jsp
<jsp:useBean id="login" scope="session" type="Login" class="Login">
<%-- if bean not in session the forward request to x.jsp to create the
session --%>
</jsp:useBean>
----- Original Message -----
From: ACI Team (Chennai) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 29, 1999 10:41 PM
Subject: Re: sessions !!!
> hi bhanot,
> I have answer for the second query
> say u r having two pages login and goto in goto use the
> 'getParameter()' method to get the value of the login password from the
> login page where u should initialize the variable to null and in login u
can
> check for the value of the variable if it happens to be null throw the
login
> page thats all.
> regards
> saravana kumar
>
>
>
> > ----------
> > From: Vaibhav Bhanot[SMTP:[EMAIL PROTECTED]]
> > Reply To: Vaibhav Bhanot
> > Sent: Thursday, September 30, 1999 8:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: sessions !!!
> >
> > can anybody solve my problem...one is i want that a particular frame
> > should always be attached to the html whenever output goes to the
> > browser in html form to the user.....if it can be done and if yes then
> > how ..if somebody can send me some code for help..or tell me where i
> > can find some code!!!
> >
> > second i am designing my application using servlets..i want that the
> > first screen should be a login screen and ....and if some one tries to
> > directly move to the next screen by typing the url of the next screen in
> >
> > the browser then he should come to the login screen coz he has not
> > entered the login yet....if this can be implemented if yes then can i
> > get some code from anyone.....
> >
> > thanks in advance !!!
> >
> > vaibhav
> >
> >
==========================================================================
> > =
> > 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
>
===========================================================================
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