• 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

Result Dispatcher not forwarding

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I'm using Struts 2 and the @Action and @Result annotations. I'm trying to get the "selected" value from a form in one of the pages. To do that, I have to pass it to an action and then to a jsp or else, it will display some sort of error. This is my code:



Now, it doesn't forwart to /request.jsp, although it shows a url like this: /setSelected.action. If it doesn't forward the "selected" value, then the grid at /request.jsp will not be rendered at all. And also, if it stays as /setSelected.action, the "selected" value is not included in the ServletActionContext request's paramaters..

Please help me.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello in the annotations you can replace your type with type="redirect" and you can pass this action to other jsp page.
 
Monica Salvador
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
wouldn't that take away the passed parameters?
 
reply
    Bookmark Topic Watch Topic
  • New Topic