File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts --- Customised RequestProcessor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts --- Customised RequestProcessor " Watch "Struts --- Customised RequestProcessor " New topic

Struts --- Customised RequestProcessor

Vijay RamaRaju

Joined: Feb 27, 2006
Posts: 7
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.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.

Consultant, Sima Solutions
Vijay RamaRaju

Joined: Feb 27, 2006
Posts: 7
This is exactly what i needed
Thank you very much.
Rama Raju.
I agree. Here's the link:
subject: Struts --- Customised RequestProcessor
It's not a secret anymore!