aspose file tools*
The moose likes JSP and the fly likes Validating username password  giving blank page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Validating username password  giving blank page" Watch "Validating username password  giving blank page" New topic
Author

Validating username password giving blank page

Padmaksha Mukhopadhyay
Greenhorn

Joined: Nov 27, 2012
Posts: 27
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

Joined: Jul 10, 2008
Posts: 368
Hi,

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


Thanks,
Shailesh
Padmaksha Mukhopadhyay
Greenhorn

Joined: Nov 27, 2012
Posts: 27
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
Bartender

Joined: Oct 14, 2005
Posts: 18662
    
    8

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

Joined: Jan 10, 2002
Posts: 61433
    
  67

And be sure that your code does not catch and dismiss exceptions.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validating username password giving blank page