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]