• 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

forwarding request to an action from a jsp page

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
consider this sequence please:

Action1------------->view.jsp--------------->action2

1)How to forward request to an action from jsp in struts2?? in jsp we have jsp:forward but what is struts2 equivalent?

2)from action1 i am passing some object to view jsp in request scope. i want same object get passed to action2. how to put an object in some scope within the jsp using struts2 tags or OGNL??

thanks...
 
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1)How to forward request to an action from jsp in struts2?? in jsp we have jsp:forward but what is struts2 equivalent?
Call the action whatever you want from jsp.
No, it's not forward it's high level you can make action.
Servlets jsp:forware struts2 resultType= redirectAction


2)from action1 i am passing some object to view jsp in request scope. i want same object get passed to action2. how to put an object in some scope within the jsp using struts2 tags or OGNL??

if you want to copy the objects in action1 to action2 you can use chainInterceptor. This interceptor will take care of copying values.
 
It runs on an internal combustion engine. This ad does not:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic