• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

login servlet

 
Aymen Benhmida
Greenhorn
Posts: 12
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 4252
227
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Aymen Benhmida
Greenhorn
Posts: 12
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20724
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic