Forum

July 12th, 2025
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Display error message after server side error using jquery plugin for struts2...
25/01/2010
21:18
Avatar
ram2010
Member
Members
Forum Posts: 43
Member Since:
13/01/2010
sp_UserOfflineSmall Offline

After days of trying to get this working with the jquery plugin for struts, the best I have come up with is when an error occurs on the server side, I catch the Exception & then I set the status code in my action class. This seems to work to a degree in that the jqgrid will show the error number I set in my action. However, the message I want to display does not get displayed.

so in my action class I have done so:

ServletActionContext.getResponse().sendError(777, "test message");

 

And now the grid does display the error code 777 but doesnt display the message beside it. I get a an error like:

Error Row 2: Result: 777 Status: error

 

Anyone know if what I am doing is actually the best way to go about error handling? Or am I doing it completely wrong.

I am fairly new to all this and help is very much appreciated. I have looked at dozens of examples on jqgrid but nothing quite puts it all together especially when dealing with struts.

 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

Currently Online:
28 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information