Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I need help creating a mvc java login page web application  RSS feed

 
Ramos Garcia
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
// MY login.jsp class



// Login Servlet file



my Login java class



If i am missing out anything else please tell me thanks
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you are looking for a code review. Comments:

1) Regardless of what the user enters, your setters hard code values in Login.java
2) Variable names traditionally begin with lower case letters. In Login.java, you have Username as a variable.
3) Why are you using the email as the password?
4) You have infinite recursion. The doGet method calls this.doGet(request, response); Which will keep running the same goGet method with the same parameters until you kill it.

Aside from the above and the fact that you aren't actually validating passwords yet, it looks good.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!