Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirect from one struts2 application to another.

 
Alexey Pashkevich
Greenhorn
Posts: 3
C++ Python VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.

I`m trying to redirect and send some data from one struts2 application instance to another in POST request.
A was able to send data to another app in GET request, but I can`t find information about redirecting and sending data in POST request.

Can anyone help me?
struts2instances.png
[Thumbnail for struts2instances.png]
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are redirecting all the data in valueStack will not be available because it will create a new action instance of called action. use request parameters or session.
 
Alexey Pashkevich
Greenhorn
Posts: 3
C++ Python VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohan Rao Sv wrote:If you are redirecting all the data in valueStack will not be available because it will create a new action instance of called action. use request parameters or session.


I added picture, probably it help to better understand my situation.
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
some data? Are you sending any objects or string values? You can pass data only through request parameters.
 
Alexey Pashkevich
Greenhorn
Posts: 3
C++ Python VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohan Rao Sv wrote:some data? Are you sending any objects or string values? You can pass data only through request parameters.

I need to send java bean.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic