• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

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
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic