I'm having a rather strange problem with 'ActionForward'. I was wondering if someone can help me solve this
I have a piece of code that gets the query String from the request and stores the values in a session before forwarding to a page inside another module.
This works allright for the first request from the browser, i.e when I open up the browser and type in the URL with query string, the code is doing what is was supposed to do and forwarding my request to the correct page. The response from that page is XML which getting outputted on the browser.
Now if I use the same window and send another request, the request is not getting forwarded to the correct page. I printed out the query string and the session attributes and they are changing for the new request, but the control is stopping at the point where it has to forward to another page.
On my browser I only see the result from first request and not the second one. If I clear my browser cache then the request is getting forwarded.
I dont know if its the browser's problem or struts problem as my code seems to be working perfectly fine.
I think as of now there is only one forward path defined for your forward action. Check in your struts-config.xml file as to how many forward actions are defined (*.do). If u want an alternate path then set it before the forward.mapping(path) command and set a corresponding *.do in your struts-config.xml