So it looks like I need to send in classpath and destination directory configuration stuff to the JspC task (using setClassPath and setOutputDir on antTask I think)

Where do I get the proper information from though? (The proper information to me means the same classpath and output directory that tomcats jasper servlet uses) Is there a way to read the jasper servlets configuration variables in my serlvet? Of can I figure it out from the JspC(and related) source code? I haven't seen anything helpful there yet.



Hey all - replying to myself yet again. I got this working now, it parses and compiles the JSP file to the proper directory under <TOMCAT_HOME>/work/

Now - I have another problem - there are 2 types of files that I do this with. They both wind up being Struts/Tiles "layout" files, just in different directories basically.

When I upload/compile to one of the directories, it works perfectly for me - the JSP file is parsed and compiled, and when I view the pages the changes are properly reflected.

In the other directory, it parses/compiles the uploaded JSP page, but for some reason Tomcat never displays the updated JSP page until I restart the server. There is nothing special about this directory that I know of, it is just the parent directory of the one that is actually working.

Any idea how to fix that little problem? I was looking through the JspC code, and it looks like it reloads the JSP Servlet after a compile is done -but I'm not sure that would fix my problem (and as far as I know, there is no way to set JSPServletWrapper.reload to true from my serlvet.)

Any ideas on this last problem would be greatly appreciated.

Thanks,
Matt

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



Reply via email to