This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes login servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2691
    
    3

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 (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- 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
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: login servlet
 
Similar Threads
Can't access HTML form page in browser
Unable to compile class for JSP
Prepopulate a form field with data entered on a previous page
Radio Select and Other
JSP <a href> tags breaks page functionality