tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans Schmid" <h...@mega-schmid.de>
Subject AW: [PATCH REPOST] Tomcat 4.0 JSP Examples view Source
Date Fri, 01 Dec 2000 23:59:18 GMT
Pierre,

at least we both see that the numberguess example is different from the
others.
This actually was my starting point.

I may be completely wrong, but I would expect to see the source listing of
the JSP examples
when I hit the View Source link. The only example it works that way is the
numberguess example.

All other examples execute the JSP if I hit Source. I can also let the
example execute
when I hit 'Execute'.

So did I misunderstand the intent of this View Source thingy ?

Please enlighten me.

Best Regards,
Hans

> -----Urspr√ľngliche Nachricht-----
> Von: Pierre Delisle [mailto:pierre.delisle@sun.com]
> Gesendet am: Donnerstag, 30. November 2000 19:34
> An: tomcat-dev@jakarta.apache.org
> Betreff: Re: [PATCH REPOST] Tomcat 4.0 JSP Examples view Source
>
> Hans,
>
> I just tried the examples on tomcat 4.0, and the only
> problem I could see is with the source code of
> the "number guess" example.
>
> The link in num/numguess.html should be changed from
>    "/examples/jsp/source.jsp?/jsp/num/numguess.jsp"
>      to
>    "numguess.txt"
>
> Otherwise, everything seems ok when I try the examples
> (both execute and source).
>
>     -- Pierre
>
>
> Hans Schmid wrote:
> >
> > Hi there,
> >
> > I sent a patch to display the source code in the JSP examples
> and did not
> > get any feedback either. Probably because US folk was in turkey
> mode :) and
> > busy working on Tomcat 3.2 thereafter. Good work!!
> >
> > What it does:
> > JSP Examples in Tomcat 4.0 have a 'View Source' button. All but the
> > numberguess example do execute the JSP instead of displaying
> the source. My
> > patches do use source.jsp to display the sources instead of
> referencing the
> > *.txt files.
> >
> > The attatched zip file contains my current webapp\examples\jsp directory
> > tree without the noe unnecessary *.txt files.
> >
> > Most of the example code should be reusable in Tomcat 3.X
> >
> > Please let me know, if this is usefull or not
> >
> > I resend the patch as attatchment.
> >
> > Best regards,
> > Hans
> >
> > I had no luck putting this Bug into Bugrat:
> > Error: 500
> > Location: /BugRatReport/PostReport
> > Internal Servlet Error:
> >
> > java.lang.NoClassDefFoundError: javax/activation/DataSource
> >         at
> org.gjt.bugrat.servlet.BugRatReport.processReportPOST(Compiled Code)
> >         at org.gjt.bugrat.servlet.BugRatReport.doPost(Compiled Code)
> >         at javax.servlet.http.HttpServlet.service(Compiled Code)
> >         at javax.servlet.http.HttpServlet.service(Compiled Code)
> >         at
> org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
> >         at org.apache.tomcat.core.Handler.service(Compiled Code)
> >         at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
> >         at
> org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
> >         at org.apache.tomcat.core.ContextManager.service(Compiled Code)
> >         at
> >
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.process
> Connection
> > (Compiled Code)
> >         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
> >         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
> >         at java.lang.Thread.run(Compiled Code)
> >
> > Here the entry:
> >
> > JSP Examples in Tomcat 4.0 have a 'Source' button. All but the
> numberguess
> > example do execute the JSP instead of displaying the source. My
> patch uses
> > source.jsp to display the sources instead of referencing the
> *.txt files.
> >
> > I will repost a patch in the tomcat-dev list, which corrects
> this behavior
> > for Tomcat 4.0
> >
> > But the Tomcat 3.2 examples look pretty much the same.
> >
> > I am using Tomcat 4.0 and 3.2 in standalone mode
> >
> > http://localhost:8080 then press JSP Examples.
> > Click 'Sorce' on the Numberguess line, then 'Source Code for...'
> >
> > you get the source code displayed.
> >
> > For all other examples, the JSP page gets executed.
> >
> >
> ------------------------------------------------------------------
> ----------------------------------
> >                     Name: patchfile.txt
> >    patchfile.txt    Type: Plain Text (text/plain)
> >                 Encoding: quoted-printable
> >
> >               Name: jsp.zip
> >    jsp.zip    Type: Zip Compressed Data (application/x-zip-compressed)
> >           Encoding: base64
>


Mime
View raw message