Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

validation Exception !!!!!

 
Greenhorn
Posts: 29
  • 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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • 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
  • 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
  • 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
 
Could you hold this puppy for a sec? I need to adjust this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic