• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Urgent -- Struts FrameWork - finding the page in ActionForward

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using Struts framework and have a requirement to find the page to which the control is being forwarded ( i.e after the action.execute()). Now, to do this I have a customized request process where the method processActionPerform is being overridden:
protected ActionForward processActionPerform(HttpServletRequest request,
HttpServletResponse response,Action action,ActionForm form, ActionMapping mapping)throws IOException, ServletException {
try {
ActionForward actionForward=action.execute(mapping, form, request, response);
//Call a method of ComponentX
ComponentX.methodY(actionForward);

return actionForward;

} catch (Exception e) {
return (processException(request, response,e, form, mapping));
}
}
==========================================================
The question is -> Is it possible to get the JSP to which control is being forwarded without changing the Request Processor?
Thanks in advance!
Pratibha
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I have understood your question properly you can use the getPath() method on the ActionForward object to get the URL of the jsp.

---------
Regards
Ankur
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic