-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You cannot use ? at the username/password.  These are delimiter used
by the server to differentiate between arguments being passed from
the form.

e.g.
http://server/myfrom?name=you&password=pass
will pass in you as the value for variable me and me as the value for
variable you
ProServ1?ulog=?&pass=?
Will send null for ulog and pass.

I think many people on this list may benefit from learning a bit more
about CGI and other server technologies.  Also a good book on HTML
may be beneficial.


Sincerely,
Khurt Williams
CEO
Williams Interactive, Inc.
Cellular: +1 (732) 241-8667
Web: www.williamsinteractive.com

- -----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology. [mailto:[EMAIL PROTECTED]]On
Behalf Of AMIT BHATIA
Sent: Saturday, September 02, 2000 10:52 PM
To: [EMAIL PROTECTED]
Subject: Invoking a Servlet from another Servlet!!

hello everyone...
i have a query regarding invoking a servlet from another servlet.

i have a shopping mall as my site, & i have registered a new user.
now, i have
to take this user to his login page. please note that i am using ms
access
database.

i have tried giving a link to that servlet as
"http://localhost:8080/servlet/ProServ1?ulog=?&upass=?"
where i am taking (?,?) as the username & password, respectively.
but, since
this is a new user, & there is no match for this username in the
database, the
servlet gives me the login error page(another html page).

i have also tried making a new servlet altogether, & passing
paremeters using
the <input type=hidden> tag. but, again, no response.

i would appreciate any suggestions on this.

thanx,
best regards,
amit bhatia.

____________________________________________________________________
Get free email and a permanent address at
http://www.netaddress.com/?N=1

______________________________________________________________________
_____
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

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBObJRosJBcbxCe5VwEQKM7QCdHGjFgaCvqO9EUR2oI5lW0LNBMUoAoJz0
MX43Vl0yNrYfnHb52+8GDl9+
=2H5i
-----END PGP SIGNATURE-----

___________________________________________________________________________
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