--- Lothar Krenzien <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm not sure whether it is possible or not:
>
> I have a webapp which I want to access under
> different URL's with different JSP's but the same
> java classes. I know that I can define the context
> URL in the context.xml But how to defin
In the long run, duplicating classes is really the best way. It
eliminates a whole slew of headaches with version control if you
introduce new webapps based on an updated version. Set up your
development environment to take care of the duplication for you in the
build process.
-- David
Lot
You could use a javax.servlet.Filter apparently, and say redirect requests
to a particular servername to /jsp_a and redirect the rest to /jsp_b.
basically installing a filter which does the following:
public void doFilter(request,response,chain) {
if(request.getServerName.equals("server1")
> From: Lothar Krenzien [mailto:[EMAIL PROTECTED]
> Subject: Re: webapp under different URLs with different JSP
> but same java classes
>
> "Tomcat Users List" schrieb am
> 10.02.06 15:14:51:
> >
> > Duplicate your classes, one copy in each webapp
&g
"Tomcat Users List" schrieb am 10.02.06 15:14:51:
>
> Duplicate your classes, one copy in each webapp
Of course I did it. But I hoped there is a better way ?
>
> Lothar Krenzien a écrit :
>
> >Hi,
> >
> >I'm not sure whether it is possible or not:
> >
> >I have a webapp which I want to
Duplicate your classes, one copy in each webapp
Lothar Krenzien a écrit :
>Hi,
>
>I'm not sure whether it is possible or not:
>
>I have a webapp which I want to access under different URL's with different
>JSP's but the same java classes. I know that I can define the context URL in
>the context