Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Karl Krasnowsky
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic