I used to alias Turbine within JServ.  While writing a application which
basically had one form per screen, I ran across one screen/form that when
submitted req.getServletPath() would drop the aliased part.

For example assuming I aliased Turbine as Turb

Running the app as:
http://host/servlets/Turb

req.getServletPath() returns /servlets

Running the app as:
http://host/servlets/Turbine

req.getServletPath() returns /servlets/Turbine

Odd bug in JServ that only occured for the one screen.  But since then I
have quit using aliases with JServ.  So it is nice that Turbine is not
buried down the package structure.

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 14, 2000 6:24 PM
Subject: Re: Turbine.java in it's own package?


> > Yes.  I know.  I am going to try a hack that does
> > sourcefiles="*.java"... or something.
>
> That is a good solution. You should be able to steal the * code from Ant
> to do this.
>
> > I mean this is why packages exist right.  Let use them.  Honestly if
> > another .java file poped up with no package we would -1 it in a second.
>
> I seriously doubt anyone will call their servlet Turbine, especially in a
> "public" sense.
>
> > Nope.  Not anymore.  We require a initialization parameter! :)  This
> > means they *have* to alias it!  At least in JServ  and Turbine.
> > Honestly a Servlet Engine will never really be user friendly.  If they
> > alias it they will probably come up with another name anyway.  Something
> > like say... oh... "jetspeed" or "turbine" ?
>
> In JServ you do not need to do the alias by default. Maybe so in Tomcat, I
> don't know.
>
> > So any other reason.  I am like -0.2 on this... not a full one yet :)
>
> I vote to keep it, unless you have motivation or a really good reason
> other than it breaks Alexandria. ;-)
>
> I'm trying to look long term at a reason why it might screw someone up and
> I can't see any good excuses. Even if it does, it is OS and they could
> move it to a package as needed.
>
> -jon
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to