• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

forward problem

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.

Please help me out on this issue.

Thanks.
 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic