Re: ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

OK! This is the best I have come up with so far.

In My AjaxFallbackButton#onSubmit I check the form and I everything was ok I
append a javascript target.appendJavascript( "makeCallBack( 'http//:new url'
)");

And in html page

function makeCallBack( URL ){
  document.forms[ "login" ].action = URL;
  document.forms[ "login" ].submit();
}

Cons with this approach?
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16982340.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

I've read some more and one solution is to make a form with body onload send
form. This will however make the page flicker wich is very ugly.
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16981148.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

I think I'm not marking myself very clear. Here is the scenario

1. User fills in wicket form with credit card information delivery method
2. Wicket form handles the post to check that everything is correct
3. A post to an external link must be done. The browser should follow. I
must leave my url and go to an online banking url. 

How can this be done with wicket. The HTTP connection and HTTPClient from
apache only post and I'm still in my webpage. I need to perform a http post
that redirects my browser window.

Now, someone might say that I should do this with a normal form post bu it
needs to be in wicket. I have inherited subclasses for layout.

Anyone?
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16979995.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ssl post to creditor company

2008-04-30 Thread Jonas
I'm not familiar with your HttpClient class, but I have used
java.net.HttpURLConnection
as (very simple...) http client in the past, which can be instructed
to follow redirects.
You can create one of those using
java.net.URL("http://whatever.com/";).openConnection().
You'll probably have to format/encode the parameters in the message
body yourself, HttpURLConnection
won't do that for you. But that shouldn't be too hard...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

Still can't get this to work I have a post that is handled in my wicket
page.

After checking the parameters I try to post it with HTTPClient

HttpClient client = new HttpClient();
PostMethod post = new PostMethod("http://URL";); 
post.addParameter( "UserName", "test");
post.addParameter( "Password", "test");
try {
  client.executeMethod(post);
  System.out.println(post.getStatusLine() );
}catch( Exception nex ){
   nex.printStackTrace();
} finally {
   post.releaseConnection();
}


But the bank requires a redirect. Is this even possible?
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16979369.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

Ok!

I guess I'll have to do this outside of wicket. HTTPClient or something like
that. Is this correct?
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16979016.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

Hi!

I must integrate my wicket webapplication with a creditor company. It is a
https post with a lot of parameters. I need to check all parameters first
and the forward the post to the billing company. Any suggestions on how to
do that?
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16978155.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]