This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes Validation error comes back as null null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validation error comes back as null null" Watch "Validation error comes back as null null" New topic
Author

Validation error comes back as null null

Mike Firkser
Ranch Hand

Joined: Oct 21, 2003
Posts: 247

I'm in the process of seeing if Struts is the way to go with our web app's new structure, and I'm right now experimenting with server side validation. Putting in good values works, but when I submit invalid data, the just displays "null null". I'm using Weblogic 8.1
Here is the error code in my ActionForm

In my properties consists of:

and finally, the jsp tag on my page is:

Thanks for any help!


Mike Firkser
Rutgers '84
Mike Firkser
Ranch Hand

Joined: Oct 21, 2003
Posts: 247

Another little addition - if I change the value in property in the html:error tag, nothing prints out--just blank space where the error message should appear (no null, no nothing). The rest of the page displays fine.
George Thomas Thomas
Greenhorn

Joined: Dec 18, 2010
Posts: 2
I am also getting the same issue....
Can any one help?

null Login failed. Please check your Userid and Password. null

I am getting null added to the front and end of the error message.
George Thomas Thomas
Greenhorn

Joined: Dec 18, 2010
Posts: 2
Solved.....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Validation error comes back as null null