Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts --- Customised RequestProcessor

 
Vijay RamaRaju
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vijay RamaRaju
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is exactly what i needed
Thank you very much.
Rama Raju.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic