t5: obtaining server name and port

2009-06-10 Thread Angelo Chen

Hi,

I need to obtain the server name and port like example.com:8080 or
example.com:80, any idea ? Thanks

Angelo
-- 
View this message in context: 
http://www.nabble.com/t5%3A-obtaining-server-name-and-port-tp23961432p23961432.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: t5: obtaining server name and port

2009-06-10 Thread Peter Stavrinides
This is not something related to tapestry, but:

HttpServletRequest.getServerName();
HttpServletRequest.getServerPort();

Peter

- Original Message -
From: Angelo Chen angelochen...@yahoo.com.hk
To: users@tapestry.apache.org
Sent: Wednesday, 10 June, 2009 15:41:51 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: t5: obtaining server name and port


Hi,

I need to obtain the server name and port like example.com:8080 or
example.com:80, any idea ? Thanks

Angelo
-- 
View this message in context: 
http://www.nabble.com/t5%3A-obtaining-server-name-and-port-tp23961432p23961432.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: t5: obtaining server name and port

2009-06-10 Thread Marcus Veloso
...
@Inject
private RequestGlobals requestGlobals;

... requestGlobals.getHTTPServletRequest().getServerName();
... requestGlobals.getHTTPServletRequest().getServerPort();
...