Hi Jithesh,
jithesh wrote:
Hi ,
we normally create a URL object using
URL urlObject = new URL("http://.....");
Is it possible to get the url value
(eg:http://www.nabble.com/forum/NewTopic.jtp?forum=2370) from a browser in a
java class.
You can get either the whole URL or various bits of it from the
HttpServletRequest class (usually the "request" variable). This is
available within Action classes that extend GenericAction via the
getRequest() method (in the AppFuse Struts Archetype - not sure about
others).
HTH,
Rob Hills
Waikiki Western Australia
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]