Hi ppl, I have an requirment to call an servlet from a jsp, but that servlet requires authentication, i have the user information in the jsp. My requirment is to connenct to the servlet with user information to login first, using URL or URLConnection classes and then using the same connection I have to call the servlet again with different parameters..
for example , If "/publish" is my servlet I will pass ?module=com.med.phd.LoginModule&action=verify&user=xxx&password=yyy first and then call the same "/publish" servlet with different set of parameters
Can anyone help me on this pls..it is very urgent!!!
Originally posted by praveen sainath: ...Can anyone help me on this pls..it is very urgent!!!
praveen sainath, Welcome to JavaRanch!
In an effort to help you get the most from our forums, we've compiled a list of tips for asking questions here. You can find the list in our FAQ section here. In particular please see: EaseUp to learn how putting "Urgent" in your post or subject line can actually slow down or eliminate responses to your question altogether.
Again, welcome to JavaRanch and good luck with your question. -Ben
I have an requirment to call an servlet from a jsp, but that servlet requires authentication,
What does the servlet do once it has authenticated a user?
If it creates a session, the cookie identifying that session will be passed back in the response to the authentication request. Your task will be to locate that cookie and send it with subsequent requests so the servlet will consider the user authenticated.