This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.....
 
Consider Paul's rocket mass heater.
 
subject: Validation error comes back as null null