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

Validating username password giving blank page

 
Padmaksha Mukhopadhyay
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am writing a code that would check from the database(my sql) if username and password is correct and send approprite reply

This is my html file

my jsp code is

My database name is jsp table name is jsp

But what is happening is that when i click on the submit button it is giving me a blank page
Why is this happening.What am i doing wrong
If anyone can please help! Its urgent
 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could you please post a directory structure of your web application?

 
Padmaksha Mukhopadhyay
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My directory structure is as follows

ch.jsp and check.html are under myJSP which is under tomcat/webapps

localhost:8080/myJSP/ch.jsp
and
localhost:8080/myJSP/check.html
 
Paul Clapham
Sheriff
Pie
Posts: 20776
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know whether that page is actually executed? And do you know whether any exceptions are thrown? Check your Tomcat logs to find the answers to these questions -- you may find more useful information while you are doing that.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And be sure that your code does not catch and dismiss exceptions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic