Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes login servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "login servlet" Watch "login servlet" New topic
Author

login servlet

Aymen Benhmida
Greenhorn

Joined: Jun 24, 2011
Posts: 12

hi guys,

i have a login servlet which is supposed to extract (login/password) from database in order to authenticate a user, and a jsp containing the form to fill the data how can i make my servlet intercept the submit action from my form to do its work

in the web.xml i've done the following configuration

but this does not seem to work. What i'm doing wrong?
Devaka Cooray
ExamLab Creator
Sheriff

Joined: Jul 29, 2008
Posts: 3713
    
  89

Aymen Benhmida wrote:but this does not seem to work. What i'm doing wrong?

ItDoesntWorkIsUseless
Can you show us the errors/problems you are getting when you try to deploy and run it?


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Aymen Benhmida
Greenhorn

Joined: Jun 24, 2011
Posts: 12

actually i don't have an error but the page on the browser stays the same

when i click on submit nothing change still the same page
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19760
    
  10

That isn't the URL for your login servlet. So I don't understand the question. Do you think that URL should cause the login servlet to be executed? If so, why? Or what are you expecting?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: login servlet
 
It's not a secret anymore!