Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

login with Struts2&MySQL

 
kessy cruz
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Goodday all,
Please, i created a login page where i want to get the username and password from a Mysql database. Please, can somebody help me edit the code to be enable to get the username & password so that the user can login.
this is the code
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cruz, Don't do database activities in action it's not industry standard's. Don't do this even for practice it awkward. Here the problem is you are returning true or false but you are supposed to return result type based on the condition T/F you have to specify the result type success / Failure page. And your execute method should have return type string.
 
kessy cruz
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,
I did some modification but please I need some detail help. I'm new and I'm learning on my own. Hope †☺ hear from you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic