I see you point now, your smart ExceptionAnalyzer gives them the line in the sourcecode so it's easier for them to find out what was wrong. But unfortunatly I don't see a different way except to find out yourself as you pointed out like: {$TOMCAT_HOME}/work/catalina/{$WHATEVER_SERVER}/{$USER}/...
But as long as you don't change your server and applications names it still should work fine via the filesystem. Bernhard > -----Ursprüngliche Nachricht----- > Von: Kristoffer Nyborg Gregertsen [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 11. Juli 2005 14:49 > An: Tomcat Users List > Betreff: Re: AW: URI of *_jsp.java > > > On Monday 11 July 2005 14:01, Bernhard Slominski wrote: > > Hi Kristoffer, > > > > the java files are under ${TOMCAT_HOME}\work\catalina\localhost ... > > But you cannot get these files via URI, because that would mean that > > everyone can see the sourcecode of your jsp. > > > > It's not quite clear to me how you retrive the sutdent name from the > > generated java file. > > A better idea from my point of view is - if you use a > version control > > system - to get it directly from there, > > or - if not - read it from the file system. > > > > Cheers > > > > Bernhard > > Thanks for answering, Bernhard :-) > > Think I mixed up things a bit, I want to access the java-file > through the > filesystem with the UID that my servlet runs as. > > I have made a class called ExceptionAnalyzer that takes the > pageContext of the > JSP-errorPage as an argument and tries to extract as much > information as > possible. > > The students name doesn't really concern us, we don't keep > track of who has > done what wrong, the errorPage is only ment to help the > students understand > what they did wrong. We're using JSP as an first introduction > to programming > for all of the schools 1200 "Master of Technology"-freshmen. > > The code is very simple, like > > <% > for (int i=0; i < 10; i++) > out.println("Hello world!"); > %> > > etc, so there is not really any point in preventing others > from seeing it. > > > > But, to get to the point: > > Is there no easy way I can ask Jasper or another > Tomcat-component where the > Java-source of the given JSP-servlet is located on the filesystem? > > > > Do I have to find it out myself like: > > {$TOMCAT_HOME}/work/catalina/{$WHATEVER_SERVER}/{$USER}/... > -- > > Med vennlig hilsen - With kind regards > > Kristoffer Nyborg Gregertsen > > Student > Department of Engineering Cybernetics > Norwegian University of Science and Technology > Trondheim > Norway > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]