Re: Pre-compiling Struts-based JSPs

2005-01-14 Thread Martin Wegner
Woodchuck, That works unless you use something like StrutsTestCase which expects to see a value web.xml file in the source code tree (before building the WAR file). I assume that @REPLACE_WITH_WEB_FRAGMENT_HERE@ is in a place that makes your web.xml XML invalid. I used a regular expression filte

Re: Pre-compiling Struts-based JSPs

2005-01-14 Thread Woodchuck
the beauty and arguably ugliness of ant (Yet Another Duality Of Life) is that there are many ways to do the same thing. i simply use ant's and tasks. to load the web fragment file. to replace the token i created in my web.xml with the entire contents of the web fragment. for example: i

Re: Pre-compiling Struts-based JSPs

2005-01-14 Thread Martin Wegner
Woodchuck, Thanks for the advice. Glad to hear someone has followed the road before me. I found this useful link as well: http://www.artima.com/forums/flat.jsp?forum=121&thread=19915 Question: how do you handle the importing of the fragment into your web.xml? Are you using and in Ant? I

Re: Pre-compiling Struts-based JSPs

2005-01-14 Thread Woodchuck
i ran into the same problem as well. what i can tell you is that because jspc generates different import statements than tomcat, this is the reason why the generated web.xml fragment is useful. this fragment basically maps the pre-compiled jsps so that it when the jsp is requested your app will k