• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts-frames-how to pass ActionErrors to the frame page?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In an Action class, I created some errors as follows...
--------------------------------------------------------
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("errors.ccrnumbersearch.nomatches"));

if(!errors.isEmpty()){
saveErrors(request,errors);
}
return mapping.findForward("failure");
--------------------------------------------------------
I'm forwarding this Action to a jsp, called framespage.jsp.
This framespage.jsp has 2 frames, left(left.jsp) and right(right.jsp)
Now, when i tried to print the errors in left.jsp, as...
--------------------------------------------------------
<html:errors/>
--------------------------------------------------------
nothing is getting outputted.
Can any one explain me how to pass the ActionErrors from a framespage to one of its frame pages?
I tried to use <html:frame forward="left.jsp".../>, but of no use.
I tried paramId,paramName fields of html:frame element, but of no use, either.
I guess I'm missing some important concept here.
Any help in this regard is grately appreciated.
Thanks,
Srivalli.
 
reply
    Bookmark Topic Watch Topic
  • New Topic