File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Trying to post to an external jsp (jsf) service... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Trying to post to an external jsp (jsf) service..." Watch "Trying to post to an external jsp (jsf) service..." New topic
Author

Trying to post to an external jsp (jsf) service...

Karl Krasnowsky
Ranch Hand

Joined: Jan 16, 2009
Posts: 97
Probably a basic question but here's my need.
From my JSF code I have a h:commandButton. When selected I would like to perform an action that redirects to a fully qualified external URL, with post data.
I can, easily perform the redirect from my bean code statically as such:


but I want to pass in parameter information to the target service, so essentially I'd like to do this in a h:form element, but I need the action within the submit button of the form reference this external service and I can' get it to do this.

I've also attempted to pass the parameter information through the URL itself, e.g., :


but the target jsp doesn't recognize the "get" parameter.

I've tried hunting through archives and each plausible solution has come up empty, or worse.
Any help on this would be appreciated.

thanks,
BTW, I am using RichFaces for my development if this in any way helps.



[SCJP 6]
[SCBCD in process]
 
wood burning stoves
 
subject: Trying to post to an external jsp (jsf) service...