Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

validation Exception !!!!!

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic