request.getContextPath()

> -----Original Message-----
> From: awc [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 03, 2003 10:36 AM
> To: Struts Users Mailing List
> Subject: My web application name
> 
> 
> Hi all,
> 
> how do I get name of the web application a servlet execute on servlet
> spec 2.3.
> 
> like in  http://ww.mydomain.com/myapp/save.do
> 
> from saveAction.class , how do I find out  "myapp" part.
> 
> the method servlet.getServletContext().getServletContextName() returns
> null.
> 
> 
> thanks for any info.
> 
> .anil
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to