Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Struts forward/redirect via POST -- what am I missing?

796440Sep 10 2004 — edited Sep 14 2004
Okay, I'm done a bit of RTFM and STFW, and haven't found the answer yet. While I'm continuing to search, if anybody can give a quick executive summary or point me to a link, I'd appreciate it.

This is either more complicated than it seems, or my Friday afternoon brain is just missing something big.

User clicks a link or button on our site.

The request comes to MyAction extends Action.

MyAction's execute method takes some session & request info, builds an XML doc, transforms it to a String or Stream or Writer, and then sends that XML string to a different URL, on a completely different site, via POST. There are no request parameters. The XML is just sent as the POST data.

Here's where I'm having major brain block: How do tell struts to forward (Or redirect? forward, I think.) to this URL, and tell it "use this string (or stream or writer--I can do whichever works) as the POST data"?

Remeber: There's no form, and no param name/value pairs.

The normal way we move from page to page is ActionMapping.findForward, but I'm not finding a way to sent the POST string.

So, what am I missing here? Or is it just not as easy as I think it should be?

Continuing to search, will post back here if I find the answer on my own.

Thanks,
Jeff
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2004
Added on Sep 10 2004
41 comments
1,387 views