File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validation Exception !!!!!

 
Ravinder Rana
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,
I am making a struts application, I use tomcat5.0 version and jdk1.4.
When i enter the fields(username,password)in jsp page i got the exception....


My validation rule.xml file is



Thanks in advance.
Any help would be greately appreciated.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.NullPointerExceptionat com.test.database.LoginDataAccess.doLogin(LoginDataAccess.java:31)

You will have to check the code in LoginDataAccess class, specifically line number 31.
 
Ravinder Rana
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks rancher,

Problem is i am making a strut application,in which i'm just making a GUI with
UserName and Password fields.And check these fields in MySql database.
When i enters these fields into the GUI....then i got this validator.fieldcheck.validationRequired exception.I use struts-1.2.9-bin(2),jdk1.4.




=======================
LoginDataAccess code is
=======================






Any help would be greately appreciated.
Thanks in advance.

"Early to bed ,Early to rise make a man healthy,wealthy and wise"
 
Ravinder Rana
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi....I've just sort out my problem by myself.
There is problem with validation rule.xml file's version.


" I believe you can have both, and sometimes in order to have both,you need both"


Thanks

Ravinder Rana Rajput.
SCJP,SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic