aspose file tools*
The moose likes Struts and the fly likes redirect from one struts2 application to another. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "redirect from one struts2 application to another." Watch "redirect from one struts2 application to another." New topic
Author

redirect from one struts2 application to another.

Alexey Pashkevich
Greenhorn

Joined: Jan 20, 2012
Posts: 3

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?


[Thumbnail for struts2instances.png]

Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

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.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Alexey Pashkevich
Greenhorn

Joined: Jan 20, 2012
Posts: 3

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

Joined: Aug 01, 2007
Posts: 485

some data? Are you sending any objects or string values? You can pass data only through request parameters.
Alexey Pashkevich
Greenhorn

Joined: Jan 20, 2012
Posts: 3

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: redirect from one struts2 application to another.