File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation error comes back as null null
 
Similar Threads
html:options horrible default settings
Struts: No getter method for property name problem
Displaying Validation Errors with Indexed Properties
validation of indexed properties
Can't get error messages to display