Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread Ryan Sonnek
> Personally I'd rather put it in a config file and know it's right rather > than have it break if someone decides to virtual host/firewall/proxy the > webapp and forgets to tweak the settings just right, (e.g., forgets the > ProxyPreserveHost directive). That's why you have automated tests to mak

Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread Sebastiaan van Erk
eters) which returns an url like "http://localhost:8080/myapp/app/?...... Thanks for any hints on this, Oliver -- View this message in context: http://www.nabble.com/How-to-determine-absolute-URL-of-a-mounted-page--tf4864119.html#a13920421 Sent from the Wicket - User mailing list archi

Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread John Patterson
On 25 Nov 2007, at 15:26, Johan Compagner wrote: also the port? Yes the port is also contained in the host header so it works fine - as if the proxy was not there at all. I know that Jetty always respects the host header. ---

Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread Johan Compagner
also the port? On Nov 25, 2007 8:47 PM, John Patterson <[EMAIL PROTECTED]> wrote: > > On 25 Nov 2007, at 13:01, Johan Compagner wrote: > > > If you virtual host in apache on a server (local ip 10.0.0.1) > > it will rewrite the url and give it to tomcat > > Then the request url is really > > ht

Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread John Patterson
On 25 Nov 2007, at 13:01, Johan Compagner wrote: If you virtual host in apache on a server (local ip 10.0.0.1) it will rewrite the url and give it to tomcat Then the request url is really http://10.0.0.2:8080/myapp1context/XX I use Apache as a proxy and have got past this issue by using t

Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread Johan Compagner
er.com/"; + > >> RequestCycle.get().urlFor([...]).replaceAll("\\.\\./", ""); > >> > >> Regards, > >> > >> Al > >> > >> ------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For addi

Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread Jonathan Locke
uot;"); >> >> Regards, >> >> Al >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > ----

Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread Johan Compagner
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 PROTE

Re: How to determine absolute URL of a mounted page?

2007-11-24 Thread Al Maw
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

Re: How to determine absolute URL of a mounted page?

2007-11-24 Thread Jonathan Locke
gt;> >> What I would need is a method with a signature similar to >> >> >> >> url = getAbsolutePath(Request request, Class pageClass, >> >> PageParameters >> >> parameters) >> >> >> >> which returns an url like >> >> "

Re: How to determine absolute URL of a mounted page?

2007-11-24 Thread Ryan Sonnek
ng relative paths. > >> > >> What I would need is a method with a signature similar to > >> > >> url = getAbsolutePath(Request request, Class pageClass, > >> PageParameters > >> parameters) > >> > >> which returns an url lik

Re: How to determine absolute URL of a mounted page?

2007-11-23 Thread Oliver Lieven
rning relative paths. >> >> What I would need is a method with a signature similar to >> >> url = getAbsolutePath(Request request, Class pageClass, >> PageParameters >> parameters) >> >> which returns an url like >> "http://localhost:8080/m

Re: How to determine absolute URL of a mounted page?

2007-11-23 Thread Sebastiaan van Erk
What's wrong with putting this in a configuration file or just a constant. Because in general this does not really work. For example, your web server may be behind a proxy or firewall, it may be clustered (and thus you have many machines instead of just one and they can't all have the same hos

How to determine absolute URL of a mounted page?

2007-11-23 Thread Oliver Lieven
ePath(Request request, Class pageClass, PageParameters parameters) which returns an url like "http://localhost:8080/myapp/app/?.. Thanks for any hints on this, Oliver -- View this message in context: http://www.nabble.com/How-to-determine-absolute-URL-of-a-mounted-page--tf4864119.html