Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!

  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in Server side exception handling  RSS feed

Namrta Pandey
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using struts1.2, I want to apply server-side validation but when I am trying to add error in the catch block for which Iam using the below code:
errors.add("GET_COMPANY_PROFILE_ERROR", new ActionError("scipeo.getCompanyProfileException"));
saveErrors(request, errors);

for action error key i've defined a value in Application.resource file,
and for showing this error in JSP :
<html:errors property="GET_COMPANY_PROFILE_ERROR"/>
but it is not working, as error message is not getting displayed.
Please tell me where i am going wrong.

Thanks in Advance.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!