On Mon, 15 Jul 2002, Kin-Man Chung wrote:

> Date: Mon, 15 Jul 2002 11:55:15 -0700 (PDT)
> From: Kin-Man Chung <[EMAIL PROTECTED]>
> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>,
>      Kin-Man Chung <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: $ in JSP names
>
> I totally agree that the use of $ in a file name is a pain in the neck.
> In fact, I don't see the need for appending a "$jsp" at all.  Currently
> we have the following mapping:
>
>       jsp file name: foo.jsp
>       class name: foo$jsp
>       servelt file name: foo$jsp.java
>       class file name: foo$jsp.class
>
> I think it'd be perfectly OK to use the following mapping:
>
>       jsp file name: foo.jsp
>       class name: foo
>       servelt file name: foo.java
>       class file name: foo.class
>

Don't forget about pathological cases like having more than one extension
mapped to the JSP servlet ...

Craig


>
> > Date: Fri, 12 Jul 2002 14:55:01 -0700 (PDT)
> > From: [EMAIL PROTECTED]
> > Subject: $ in JSP names
> > X-X-Sender: [EMAIL PROTECTED]
> > To: List Tomcat-Dev <[EMAIL PROTECTED]>
> > X-Authentication-warning: costinm.sfo.covalent.net: costin owned process doing
> -bs
> >
> > I just upgraded to jikes1.16, and I get one warning for each JSP file
> > I compile:
> >
> > "Lexical: The use of "$" in an identifier, while legal, is strongly
> > discouraged, since it can conflict with compiler-generated names. If you
> > are trying to access a nested type, use "." instead of "$"."
> >
> > In addition, it is painfull to look at the source from shell ( need
> > to do "emacs page\$jsp.jsp" ).
> >
> > Would it be possible to use another delimiter in the generated name ?
> > The change is trivial.
> >
> > Costin
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to