Friday, September 03, 2004

WSAD 5.1.2 - Keeping generated JSP sources

Is there a way to keep the java source code generated by the JSP compiler in a wsad/was 5.1 test environment?


When using a WebSphere Application Server, you can save the generated .java files compiled from JSP files, by adding the following statements to the ibm-web-ext.xmi file in your Web application:

<jspattributes id="/JSPAttribute_1/" name="keepgenerated" value="true" />
<jspattributes id="/JSPAttribute_2/" name="scratchdir" value="/C:\temp/" >

The generated files are stored in the location specified by the *"scratchdir"* property.