Hi, This is sort of 2nd attempt to get some answers about SSL switching. http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html is the page I am referring to.
The solution mentioned for wicket 1.3.x does not seem to work for form submission. What is happening is the incoming URL has the "previous url" and not to the one you are about to be switching. Hence the code httpservletrequest.getServletPath and .getContextPath() is not going to work. What I think is needed is to get those from the requestTargets URL. In my application, if the secure form is submitted, form is processed and I do setResponsePage() to a new non-secure page. Now the problem I am facing is, when I go RequestCycle.urlFor(RequestTarget) where the request target is the new bookmarkable page that I want to send - the urlFor mentioned earlier for that requesttarget is returning ./ instead of the relative URL to the page. There are other flavors (overloaded) of urlFor, but I am not completely aware of wicket internals so not sure if I am using the correct method to get the URL - but my impression is that, if you have requesttarget, thats a most generic method to get the url rather than based on the specific type of the requesttarget. Also the other related question I had asked but never got a response for was, why are query string parameters not getting appended in the code mentioned on the wiki page (http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html)? Thanks in advance -- View this message in context: http://www.nabble.com/urlFor-and-SSL-switch-question-tp17367669p17367669.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]