• 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 --- Customised RequestProcessor

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is exactly what i needed
Thank you very much.
Rama Raju.
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic