sounds okay, but is it really necessary? can you explain why? i always thought the browser would send the full request URL. in fact, i've had tomcat behind apache and this just works.
Johan Compagner wrote: > > Can we then make something where we ask some setting first for the > host part? If not found we generate from the current request, which i > think for many many production environments will not really work > because who doesnt virtualhost or puts apache in front of it? > > On 11/25/07, Al Maw <[EMAIL PROTECTED]> wrote: >> Oliver Lieven wrote: >> > is there a way to determine the complete, absolute URL to a mounted >> page >> > (including protocol, host, port, application, filter and destination >> page)? >> > I need this to be able to send a link to a Registration-Confirmation >> page >> to >> > a user via email. >> >> Ah, yes, I've been meaning to get around to fixing that since forever, >> sorry. :-( >> >> See http://issues.apache.org/jira/browse/WICKET-609 >> >> That's pretty apalling in terms of timescales. Apologies to all >> involved. Will have a look before RC2, promise. ;-) >> >> In the meantime, you can go: >> String url = "http://yourserver.com/" + >> RequestCycle.get().urlFor([...]).replaceAll("\\.\\./", ""); >> >> Regards, >> >> Al >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-determine-absolute-URL-of-a-mounted-page--tf4864119.html#a13938331 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]