Amol-
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html
You can Use setup an alias in your httpd.conf
here is an example from Apache tech doc
# (1) Make Apache know about the context location.
Alias /examples D:\tomcat\webapps\examples
# (2) Optional, customize Apache context service.
<Directory "D:\tomcat\webapps\examples">
Options Indexes FollowSymLinks
# (2a) No directory indexing for the context root.
# Options -Indexes
# (2b) Set index.jsp to be the directory index file.
# DirectoryIndex index.jsp
</Directory>
# (3) Protect the WEB-INF directory from tampering.
<Location /examples/WEB-INF/>
AllowOverride None
deny from all
</Location>
# (4) Instructing Apache to send all the .jsp files under the context to the
# jserv servlet handler.
<LocationMatch /examples/*.jsp>
SetHandler jserv-servlet
</LocationMatch>
# (5) Direct known servlet URLs to Tomcat.
ApJServMount /examples/servlet /examples
HTH,
Martin Gainty
(mobile) 617-852-7822
From: amol k <[EMAIL PROTECTED]>
Reply-To: amol k <[EMAIL PROTECTED]>
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: Tricky configuration?
Date: Fri, 3 Jun 2005 14:49:49 -0400
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by mc4-f35.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Fri, 3 Jun 2005 11:50:17 -0700
Received: (qmail 76312 invoked by uid 500); 3 Jun 2005 18:50:04 -0000
Received: (qmail 76299 invoked by uid 99); 3 Jun 2005 18:50:04 -0000
Received: pass (hermes.apache.org: domain of [EMAIL PROTECTED]
designates 64.233.170.199 as permitted sender)
Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.199)
by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 03 Jun 2005 11:50:01 -0700
Received: by rproxy.gmail.com with SMTP id c51so221142rne for
<user@struts.apache.org>; Fri, 03 Jun 2005 11:49:49 -0700 (PDT)
Received: by 10.38.97.66 with SMTP id u66mr1029128rnb; Fri, 03 Jun
2005 11:49:49 -0700 (PDT)
Received: by 10.38.101.19 with HTTP; Fri, 3 Jun 2005 11:49:49 -0700 (PDT)
X-Message-Info: JGTYoYF78jGmVDadN/07LCmg+VHzRUamhaIfz7UxPVc=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@struts.apache.org>
List-Id: "Struts Users Mailing List" <user.struts.apache.org>
Delivered-To: mailing list user@struts.apache.org
X-ASF-Spam-Status: No, hits=0.0
required=10.0tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta;
d=gmail.com;
h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
b=FwWcdo/u4CuQdlAjzun/wDsnPzZVTD0XTnM5zSWpNjKxK0C4XluorO1vkvFx4NqE4uBs64pV7DCSzEGX7SQlvwlUOhERzRYt3JWeJPQmbSrISjaEEVeAI8Iof+UyMicSiPxIIXwJ9DmD+CY3AmGosvJRT7BBCCwoV5gqLnVvWE0=
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
X-Virus-Checked: Checked
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 03 Jun 2005 18:50:17.0911 (UTC)
FILETIME=[15F63C70:01C5686D]
> Why not just map /do/* to the action servlet insted of *.do
http://myserver/Login.do to http://myserver/do/Login, etc is not an issue
but
Making the users type http://myserver/do/user/blahblah instead of
http://myserver/user/blahblah is a usability issue.
(will have to ultimately do that if there's no other option but I want
to avoid /do before user/blahblah as far as possible)
On 6/3/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Why not just map
>
> /do/* to the action servlet insted of *.do
>
> Then all of these would go through Struts..
>
> http://myserver/do/Login
> http://myserver/do/Logout
> http://myserver/do/user/blahblah
>
> This obviously wouldn't go through struts..
>
> http://myserver/pages/blahblah.jsp
>
> amol k wrote the following on 6/3/2005 2:39 PM:
> > Here is what I am trying to achieve:
> >
> > http://myserver/Login.do --> (maps to) LoginAction
> > http://myserver/Logout.do --> (maps to) LogoutAction
> > http://myserver/user/blahblah --> UserPageAction (notice that there is
> > no .do in this case. blahblah can be replaced by anything at runtime)
> >
> > http://myserver/pages/blahblah.jsp --> not handled by ActionServlet
(obviously)
> >
> > I am trying various combinations in web.xml and struts-config.xml
> > (including configuring /user as a module) but havent yet found a
> > decent solution.
> > Any thoughts?
> >
> > Thanks in advance.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> Rick
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]