You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tim Kang <ti...@stratfordinternet.com> on 2000/12/07 20:16:13 UTC
Sending Email
Hi
I am trying to send email and stored the data at the same time using JSP in
Tomcat.
I am kind of researching a way to do it but does anyone know the easiest way
to implement this
Thanks
Tim
Re: Application Path
Posted by Jon Skeet <jo...@peramon.com>.
> Hello All,
> I have a question regarding application path in Tomcat. I have
> loaded and application named "myapp" under 'webapps' of Tomcat. Now, is it
> possible to know the full path of my application "myapp"?[i.e upto and including
> the folder 'myapp']
Within a request, use something like the following:
String requestURL = HttpUtils.getRequestURL (req).toString();
String path = req.getPathInfo();
if (path==null)
servletURL=requestURL;
else
{
if (!requestURL.endsWith (path))
{
// Panic and use something else... your choice!
}
else
servletURL = requestURL.substring (0, requestURL.length()-path.length());
}
Jon
Application Path
Posted by Saikat Chatterjee <sa...@interrait.com>.
Hello All,
I have a question regarding application path in Tomcat. I have
loaded and application named "myapp" under 'webapps' of Tomcat. Now, is it
possible to know the full path of my application "myapp"?[i.e upto and including
the folder 'myapp']
Thanks in advance,
Saikat