*
The moose likes Struts and the fly likes validation Exception !!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validation Exception !!!!!" Watch "validation Exception !!!!!" New topic
Author

validation Exception !!!!!

Ravinder Rana
Greenhorn

Joined: May 10, 2006
Posts: 29
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

Joined: Jul 20, 2005
Posts: 9947
    
161

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.


[My Blog] [JavaRanch Journal]
Ravinder Rana
Greenhorn

Joined: May 10, 2006
Posts: 29
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

Joined: May 10, 2006
Posts: 29
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
 
Don't get me started about those stupid light bulbs.
 
subject: validation Exception !!!!!
 
Similar Threads
intrange validator message
Problem with struts messages
Problem with struts message
Struts Validator Framework Error ...Depends String is not Found in validator-rules.
validator problem