Hi Sub: I have a small problem with customised RequestProcessor in my WebApplication.
I have a WebApplication designed using struts., I have a customised RequestProcessor where each request will pass through this class. Noow the problem is how to identify the MappingValue in the customised request processor i.e., a response is redirecting to view or it is redirecting to another action class.
Thanks in Advance Rama Raju.
Joined: Feb 15, 2005
I'm not sure I understand your question. If you're asking how you can tell whether an ActionForward is forwarding to another Struts Action or to a JSP, the answer is pretty simple: Find the path of the ActionForward using the getPath method. If it ends in ".do", it's forwarding to an Action. If it ends in ".jsp", it's forwarding to a JSP.
If you are trying to derive this information from the ActionMapping object, call the findForwards() method to get a String array of all the local forwards defined. Then call mapping.findForward(x) for each of the Strings retrieved to get the ActionForward object for each of the forward names.