To get to the point very quickly :).. this test (All Jsps must be compilable Test) will fail on all jsps that are statically included into other jsps. (these 'included' jsps dont have import statements etc).
Is there any solution to process these statically included jsps ?
Can you please elaborate the problem and also your requirement. I did not understand when you say that the test will fail for included jsps. If the included jsps are not syntactically correct, the test should fail.
Are you saying that AllJSPsMustBeCompilable test is not compiling statically included JSP pages? I would expect the test to compile all the JSP pages that are bundled inside the .war file. If the .war file includes the JSP page that is statically included in some other JSP page, then it would also compile the included JSP page along with the parent JSP page. Is this not happening for you? Can you please explain the problem in detailed?
Firstly, apologies to all for not elaborating the problem.
Ok, Sahoo and Mr. Ghosh, you're both absolutely correct.
The tool compiles the jsps which have static includes perfectly.
However, the statically linked jsps themselves within the war do NOT compile (and if you think about it, they wont even compile as they are just static code snippets that are pasted, so to say, into the parent jsp, and not complete jsps themselves).
Do you think that changing the extensions of these files will help?
Thanks for providing further information about the problem. I see what you are saying. Looks like a limitation/bug in AVK. Would you mind filing a bug for the same. You can file bugs using http://java.sun.com/cgi-bin/bugreport.cgi ? Please use Java Application Verification Kit as the product and verifier as the sub cat. You have to use 1.4 as the version.
Since the included JSPs are not complete JSPs themselves, is it possible for you to change their extension for the moment? We will have to change AVK to compile only top level JSP pages. The question is how do we know what to exclude from compilation. We will figure that out, if possible.
Thanks again for taking the time to visit our site and asking us questions.