Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Wade Chandler
--- 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

Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread David Smith
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

Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Antony Riley
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")

RE: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Caldarale, Charles R
> 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

Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Lothar Krenzien
"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

Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread David Delbecq
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