Method variables are unique for each execution of the
method. So the simplest way is to define your
variables as method variables and pass them around
from method to method as you need them.
String[] s = req.getParameterValues("LoginId");
if (!checkTheLoginId(s)) {
--
On Tue, 9 Mar 1999 11:06:37 Hector Fabio Meza Martinez wrote:
>Hi
>
>Is there any way to create a variable in a servlet that will take info from
>a form, but it will be different with each invocation? i.e. if two browsers
>request the servlet with say, a login code, the variable should store the
>code, and the value should be differente for each request.
>
>Any help would be appreciated
>
>Hector
>
>___________________________________________________________________________
>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
>
HotBot - Search smarter.
http://www.hotbot.com
___________________________________________________________________________
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