Re: Jasper 2 Question

2002-09-20 Thread Pier Fumagalli

Hm The original question was about line numbers on JSPs, when they 
are compiled, and when they are executed and throw exceptions, right? 
Yes, it was...

I said use some tea because Tea, developed by Disney, goes exactly in 
that direction, not having middle layer .java files over which the 
line number get messed up, they simply compile a template straight into 
.class having both the advantage of compiled templates, and the 
advatage that line numbers, both at compilation and runtime, are 
preserved...

I am simply pointing out an alternative solution to your problem of 
line numbers, if that's ridiculous, well, that's _your_ problem... Not 
mine

Die, JSPs, DII! :-)

Pier

On Thursday, September 19, 2002, at 07:30 PM, Lenny Karpel wrote:

 is it right that when I ask a serious question about jasper2 that I get
 these totally ridiculous answers ?

 -Original Message-
 From: Jon Scott Stevens [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 11:48 AM
 To: tomcat-dev
 Subject: Re: Jasper 2 Question


 on 2002/9/19 8:06 AM, Lenny Karpel [EMAIL PROTECTED] wrote:

 sorry .. I don't understand your response !

 are you saying that we shouldn't use jsp ?

 I have been saying that for years now!

 http://jakarta.apache.org/velocity/ymtd/ymtd.html

 =)

 -jon


 --
 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]




Re: Jasper 2 Question

2002-09-20 Thread Pier Fumagalli

On Thursday, September 19, 2002, at 10:24 PM, Bojan Smojver wrote:

 On Fri, 2002-09-20 at 04:30, Lenny Karpel wrote:

 is it right that when I ask a serious question about jasper2 that I 
 get
 these totally ridiculous answers ?

 Well, Jon and Pier are known to throw in a curly one from time to time,
 which keeps all of us here on the list in good spirits  ;-)

Nonono... he has a problem with templates line numbers... I poined out 
that simply changing the technology and not using something so 
inerently stupid, you can overcome the problem...

Ok, maybe I assumed that he clicked on the link I provided, and read 
some of the features of Tea... Assuming too much always...

 side to all this as JSP's are inherently
 evil. You'll find that creating true MVC applications in Velocity is
 almost trivial. I suggest you do read Jon's article. The fact that 
 JSP's
 are official, doesn't mean they are good.

Means that it's bad because it took me 6 months to make my employer 
understand that they are so evil, and that their server goes down 2 
times a month when some idiot forgets to put jsp:session 
value=false or whatever the story is with that thing

I'm not keen of giving control to my entire application and Java 
Virtual Machine (crunching some million servlet/hits a day) to a guy 
whose best skill is to use Macromedia DreamWeaver...

And now my problem is that I have to rewrite some 5000 something 
pages... Bah... But it's better to do it now rather than waiting for 
another 5000 to be created and get stuck with JSPs forever. :-)

Pier


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




RE: Jasper 2 Question

2002-09-20 Thread John Trollinger

To answer your original question, I do not believe there is any
enhancements to add documentation back to the generated servelt code.
If you would like to see this enhancement you can allways suggest it to
the tomcat developers, or you could add the code in yourself and submit
a patch.

And don't buy all the velocity hype... :-)

 -Original Message-
 From: Lenny Karpel [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, September 19, 2002 6:28 PM
 To: 'Tomcat Developers List'
 Subject: RE: Jasper 2 Question
 
 
 ok .. now I am really confused .. here is the tomcat 
 development group .. the 'Official Reference Implementation' 
 for JSP .. and I am being told by people within this group .. 
 to NOT use it ..
 
 this is truly amazing .. how can this possibly be ..
 
 my original question is about 'bugs' in jasper2 .. not about 
 what tools I should use .. my question is not one of religion .. 
 
 once again .. the quote from the intellij site ..
 
 As for Tomcat 4.1.x support, I'm afraid we are out-of-luck 
 here. Tomcat 4.0.4 used to generate useful comments in the 
 servlet code, that allowed the integration plugin to map jsp 
 line numbers to servlet line numbers. But from the new 
 version of Tomcat (Jasper2 in particular), this functionality 
 is missing. At least I haven't been able to find anything to 
 enable comment generation, and nobody from Tomcat user-list 
 answered my question about this.
 
 for myself .. all I want to know .. is if this 'situation' in 
 jasper2 will be fixed .. if so .. when .. if not .. why ..
 
 we use JSP here .. as do quite a few others .. in quite a few 
 places .. 
 
 i did not post this question to find out that the developers 
 of JSP (jasper) would rather I use something else ..
 
 could this possibly be how the 'managers' of this development 
 effort feel ??
 
 -Original Message-
 From: Bojan Smojver [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, September 19, 2002 3:25 PM
 To: Tomcat Dev List
 Subject: RE: Jasper 2 Question
 
 
 On Fri, 2002-09-20 at 04:30, Lenny Karpel wrote:
 
  is it right that when I ask a serious question about jasper2 that I
  get these totally ridiculous answers ?
 
 Well, Jon and Pier are known to throw in a curly one from 
 time to time, which keeps all of us here on the list in good 
 spirits  ;-)
 
 Anyway, there is a serious side to all this as JSP's are 
 inherently evil. You'll find that creating true MVC 
 applications in Velocity is almost trivial. I suggest you do 
 read Jon's article. The fact that JSP's are official, 
 doesn't mean they are good.
 
 Bojan
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-dev- [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]




Re: Jasper 2 Question

2002-09-20 Thread peter lin


I would also like to see the comments in jasper1 ported over to
jasper2.  Now if only I didn't need sleep, I'd do it myself and submit a
patch. the code changed quite a bit between jasper1 and jasper2. the
class responsible is in jasper/compiler/Generator in case you get the
urge to port the comments over :)

peter


John Trollinger wrote:
 
 To answer your original question, I do not believe there is any
 enhancements to add documentation back to the generated servelt code.
 If you would like to see this enhancement you can allways suggest it to
 the tomcat developers, or you could add the code in yourself and submit
 a patch.
 
 And don't buy all the velocity hype... :-)
 


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




Re: Jasper 2 Question

2002-09-20 Thread Steve Downey

On Friday 20 September 2002 06:18 am, Pier Fumagalli wrote:
 Hm The original question was about line numbers on JSPs, when they
 are compiled, and when they are executed and throw exceptions, right?
 Yes, it was...

 I said use some tea because Tea, developed by Disney, goes exactly in
 that direction, not having middle layer .java files over which the
 line number get messed up, they simply compile a template straight into
 .class having both the advantage of compiled templates, and the
 advatage that line numbers, both at compilation and runtime, are
 preserved...


No, the original question was about the debugging capabilities that have been 
removed from jasper2. Jasper used to mark the begin and end points in the 
original source in the java translation as comments in the form:
// HTML // begin [file=/index.jsp;from=(0,0);to=(4,0)]

Restoring that ability would be somewhat difficult as the parser doesn't track 
the endpoints of the nodes, just the starts. 

Jasper2 is able to output data that might be compatible with JSR-45. No one's 
really sure, yet. 





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




Re: Jasper 2 Question

2002-09-20 Thread Steve Downey

On Friday 20 September 2002 07:27 am, peter lin wrote:
 I would also like to see the comments in jasper1 ported over to
 jasper2.  Now if only I didn't need sleep, I'd do it myself and submit a
 patch. the code changed quite a bit between jasper1 and jasper2. the
 class responsible is in jasper/compiler/Generator in case you get the
 urge to port the comments over :)


Plus adding the end Mark in Node.Node. And classifying the Nodes in a similar 
manner to the old Generators. 

 peter

 John Trollinger wrote:
  To answer your original question, I do not believe there is any
  enhancements to add documentation back to the generated servelt code.
  If you would like to see this enhancement you can allways suggest it to
  the tomcat developers, or you could add the code in yourself and submit
  a patch.
 
  And don't buy all the velocity hype... :-)


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




RE: Jasper 2 Question

2002-09-20 Thread GAWLAS,JULIUS (HP-Cupertino,ex1)

Lenny,

disclaimer: I don't use JSP's myself so I might be totally off here...

but there is the following comment in Tomcat 4.1 Release Notes:

--
Using Jasper 1 with Tomcat 4.1:
--

It is possible to use Jasper 1 (included in Tomcat 4.0.x) with Tomcat 4.1,
as
it has the same API and supports the same JSP API.

To use Jasper 1 instead of Jasper 2, copy the two following JARs to
$CATALINA_HOME/common/lib (overwriting the two existing JARs):
* $TOMCAT40_HOME/lib/jasper-runtime.jar
* $TOMCAT40_HOME/lib/jasper-compiler.jar

However, users are urged to use the version of Jasper included with Tomcat
4.1
(Jasper 2), as it has much higher performance and scalability than Jasper
1.

would switching back to Jasper 1 help?

Julius

 -Original Message-
 From: Lenny Karpel [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 3:28 PM
 To: 'Tomcat Developers List'
 Subject: RE: Jasper 2 Question
 
 
 ok .. now I am really confused .. here is the tomcat 
 development group ..
 the 'Official Reference Implementation' for JSP .. and I am 
 being told by
 people within this group .. to NOT use it ..
 
 this is truly amazing .. how can this possibly be ..
 
 my original question is about 'bugs' in jasper2 .. not about 
 what tools I
 should use .. my question is not one of religion .. 
 
 once again .. the quote from the intellij site ..
 
 As for Tomcat 4.1.x support, I'm afraid we are out-of-luck 
 here. Tomcat
 4.0.4 used to generate useful comments in the servlet code, 
 that allowed the
 integration plugin to map jsp line numbers to servlet line 
 numbers. But from
 the new version of Tomcat (Jasper2 in particular), this 
 functionality is
 missing. At least I haven't been able to find anything to 
 enable comment
 generation, and nobody from Tomcat user-list answered my 
 question about
 this.
 
 for myself .. all I want to know .. is if this 'situation' in 
 jasper2 will
 be fixed .. if so .. when .. if not .. why ..
 
 we use JSP here .. as do quite a few others .. in quite a few 
 places .. 
 
 i did not post this question to find out that the developers 
 of JSP (jasper)
 would rather I use something else ..
 
 could this possibly be how the 'managers' of this development 
 effort feel ??
 
 -Original Message-
 From: Bojan Smojver [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, September 19, 2002 3:25 PM
 To: Tomcat Dev List
 Subject: RE: Jasper 2 Question
 
 
 On Fri, 2002-09-20 at 04:30, Lenny Karpel wrote:
 
  is it right that when I ask a serious question about jasper2 that I 
  get these totally ridiculous answers ?
 
 Well, Jon and Pier are known to throw in a curly one from 
 time to time,
 which keeps all of us here on the list in good spirits  ;-)
 
 Anyway, there is a serious side to all this as JSP's are 
 inherently evil.
 You'll find that creating true MVC applications in Velocity is almost
 trivial. I suggest you do read Jon's article. The fact that JSP's are
 official, doesn't mean they are good.
 
 Bojan
 
 
 --
 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]




Re: Jasper 2 Question

2002-09-19 Thread Pier Fumagalli

You can use some tea... http://opensource.go.com/ :-)

Pier


On Wednesday, September 18, 2002, at 10:33 PM, Lenny Karpel wrote:

 I use IntelliJ's IDEA product for Tomcat relared development .. I 
 noted the
 following statement in thier bugs mailing list with regards to 
 debugging JSP
 from thier IDE:


 As for Tomcat 4.1.x support, I'm afraid we are out-of-luck here. 
 Tomcat
 4.0.4 used to generate useful comments in the servlet code, that 
 allowed the
 integration plugin to map jsp line numbers to servlet line numbers. 
 But from
 the new version of Tomcat (Jasper2 in particular), this functionality 
 is
 missing. At least I haven't been able to find anything to enable 
 comment
 generation, and nobody from Tomcat user-list answered my question about
 this.



 Is this really true ?? Will this be fixed ??



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




RE: Jasper 2 Question

2002-09-19 Thread Lenny Karpel

sorry .. I don't understand your response !

are you saying that we shouldn't use jsp ?

-Original Message-
From: Pier Fumagalli [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 19, 2002 3:57 AM
To: Tomcat Developers List
Subject: Re: Jasper 2 Question


You can use some tea... http://opensource.go.com/ :-)

Pier


On Wednesday, September 18, 2002, at 10:33 PM, Lenny Karpel wrote:

 I use IntelliJ's IDEA product for Tomcat relared development .. I
 noted the
 following statement in thier bugs mailing list with regards to 
 debugging JSP
 from thier IDE:


 As for Tomcat 4.1.x support, I'm afraid we are out-of-luck here.
 Tomcat
 4.0.4 used to generate useful comments in the servlet code, that 
 allowed the
 integration plugin to map jsp line numbers to servlet line numbers. 
 But from
 the new version of Tomcat (Jasper2 in particular), this functionality 
 is
 missing. At least I haven't been able to find anything to enable 
 comment
 generation, and nobody from Tomcat user-list answered my question about
 this.



 Is this really true ?? Will this be fixed ??



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



Re: Jasper 2 Question

2002-09-19 Thread Jon Scott Stevens

on 2002/9/19 8:06 AM, Lenny Karpel [EMAIL PROTECTED] wrote:

 sorry .. I don't understand your response !
 
 are you saying that we shouldn't use jsp ?

I have been saying that for years now!

http://jakarta.apache.org/velocity/ymtd/ymtd.html

=)

-jon


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




RE: Jasper 2 Question

2002-09-19 Thread John Trollinger

Nooo. No more velocity.. Please.. No more..

 -Original Message-
 From: Jon Scott Stevens [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, September 19, 2002 1:48 PM
 To: tomcat-dev
 Subject: Re: Jasper 2 Question
 
 
 on 2002/9/19 8:06 AM, Lenny Karpel [EMAIL PROTECTED] wrote:
 
  sorry .. I don't understand your response !
  
  are you saying that we shouldn't use jsp ?
 
 I have been saying that for years now!
 
http://jakarta.apache.org/velocity/ymtd/ymtd.html

=)

-jon


--
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]




RE: Jasper 2 Question

2002-09-19 Thread Lenny Karpel

is it right that when I ask a serious question about jasper2 that I get
these totally ridiculous answers ?

-Original Message-
From: Jon Scott Stevens [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 19, 2002 11:48 AM
To: tomcat-dev
Subject: Re: Jasper 2 Question


on 2002/9/19 8:06 AM, Lenny Karpel [EMAIL PROTECTED] wrote:

 sorry .. I don't understand your response !
 
 are you saying that we shouldn't use jsp ?

I have been saying that for years now!

http://jakarta.apache.org/velocity/ymtd/ymtd.html

=)

-jon


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



RE: Jasper 2 Question

2002-09-19 Thread Bojan Smojver

On Fri, 2002-09-20 at 04:30, Lenny Karpel wrote:

 is it right that when I ask a serious question about jasper2 that I get
 these totally ridiculous answers ?

Well, Jon and Pier are known to throw in a curly one from time to time,
which keeps all of us here on the list in good spirits  ;-)

Anyway, there is a serious side to all this as JSP's are inherently
evil. You'll find that creating true MVC applications in Velocity is
almost trivial. I suggest you do read Jon's article. The fact that JSP's
are official, doesn't mean they are good.

Bojan


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




RE: Jasper 2 Question

2002-09-19 Thread Lenny Karpel

ok .. now I am really confused .. here is the tomcat development group ..
the 'Official Reference Implementation' for JSP .. and I am being told by
people within this group .. to NOT use it ..

this is truly amazing .. how can this possibly be ..

my original question is about 'bugs' in jasper2 .. not about what tools I
should use .. my question is not one of religion .. 

once again .. the quote from the intellij site ..

As for Tomcat 4.1.x support, I'm afraid we are out-of-luck here. Tomcat
4.0.4 used to generate useful comments in the servlet code, that allowed the
integration plugin to map jsp line numbers to servlet line numbers. But from
the new version of Tomcat (Jasper2 in particular), this functionality is
missing. At least I haven't been able to find anything to enable comment
generation, and nobody from Tomcat user-list answered my question about
this.

for myself .. all I want to know .. is if this 'situation' in jasper2 will
be fixed .. if so .. when .. if not .. why ..

we use JSP here .. as do quite a few others .. in quite a few places .. 

i did not post this question to find out that the developers of JSP (jasper)
would rather I use something else ..

could this possibly be how the 'managers' of this development effort feel ??

-Original Message-
From: Bojan Smojver [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 19, 2002 3:25 PM
To: Tomcat Dev List
Subject: RE: Jasper 2 Question


On Fri, 2002-09-20 at 04:30, Lenny Karpel wrote:

 is it right that when I ask a serious question about jasper2 that I 
 get these totally ridiculous answers ?

Well, Jon and Pier are known to throw in a curly one from time to time,
which keeps all of us here on the list in good spirits  ;-)

Anyway, there is a serious side to all this as JSP's are inherently evil.
You'll find that creating true MVC applications in Velocity is almost
trivial. I suggest you do read Jon's article. The fact that JSP's are
official, doesn't mean they are good.

Bojan


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



Re: Jasper 2 Question

2002-09-19 Thread Steve Downey

Jasper2 is targeting JSR45, Debugging Support for Other Languages. 

On Thursday 19 September 2002 06:28 pm, Lenny Karpel wrote:
 ok .. now I am really confused .. here is the tomcat development group ..
 the 'Official Reference Implementation' for JSP .. and I am being told by
 people within this group .. to NOT use it ..

 this is truly amazing .. how can this possibly be ..

 my original question is about 'bugs' in jasper2 .. not about what tools I
 should use .. my question is not one of religion ..

 once again .. the quote from the intellij site ..

 As for Tomcat 4.1.x support, I'm afraid we are out-of-luck here. Tomcat
 4.0.4 used to generate useful comments in the servlet code, that allowed
 the integration plugin to map jsp line numbers to servlet line numbers. But
 from the new version of Tomcat (Jasper2 in particular), this functionality
 is missing. At least I haven't been able to find anything to enable comment
 generation, and nobody from Tomcat user-list answered my question about
 this.

 for myself .. all I want to know .. is if this 'situation' in jasper2 will
 be fixed .. if so .. when .. if not .. why ..

 we use JSP here .. as do quite a few others .. in quite a few places ..

 i did not post this question to find out that the developers of JSP
 (jasper) would rather I use something else ..

 could this possibly be how the 'managers' of this development effort feel
 ??

 -Original Message-
 From: Bojan Smojver [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 3:25 PM
 To: Tomcat Dev List
 Subject: RE: Jasper 2 Question

 On Fri, 2002-09-20 at 04:30, Lenny Karpel wrote:
  is it right that when I ask a serious question about jasper2 that I
  get these totally ridiculous answers ?

 Well, Jon and Pier are known to throw in a curly one from time to time,
 which keeps all of us here on the list in good spirits  ;-)

 Anyway, there is a serious side to all this as JSP's are inherently evil.
 You'll find that creating true MVC applications in Velocity is almost
 trivial. I suggest you do read Jon's article. The fact that JSP's are
 official, doesn't mean they are good.

 Bojan


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




RE: Jasper 2 Question

2002-09-19 Thread Bojan Smojver

Quoting Lenny Karpel [EMAIL PROTECTED]:

 this is truly amazing .. how can this possibly be ..

My apologies for making you upset :-( It honestly wasn't my intention. Jon
helped me with my transition from JSP to Velocity and since then my web apps
have become much simpler and easier to maintain. That was the point of my e-mail.

As for Jasper, don't know, but I'm sure there will be people that do.

Bojan

-
This mail sent through IMP: http://horde.org/imp/

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