• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I need help creating a mvc java login page web application

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic