At the moment, iPAS 1.3 is not fully compliant with the JSP 1.1/1.2 specification.
Specifically, the automatic type conversions for custom tag parameters specified in "Issue 7" of the JSP 1.1 Errata and in the JSP 1.2 Proposed Final Draft have not yet been implemented.
As it stands, JSP pages that make use of Struts taglibs whose parameters require conversion (such as booleans) will not compile under JRun. This includes the Struts Example Application. Attempting to run the example application will result in an exception similar to the following being thrown:
/struts-example/index.jsp: Compilation failed [IT_Builder:1000] at com.iona.j2ee.builder.JavaBuilder.build(JavaBuilder.java:84) at com.iona.j2ee.builder.JspBuilder.build(JspBuilder.java:51) at com.iona.j2ee.builder.WarBuilder.build(WarBuilder.java:111) at com.iona.j2ee.builder.EarBuilder.build(EarBuilder.java:99) at com.iona.j2ee.builder.EarBuilder.main(EarBuilder.java:223) at iportal.build.main(build.java:14) ocale(boolean) in org.apache.struts.taglib.html.HtmlTag cannot be applied to (java.lang.String) _x0.setLocale("true"); ^ 1 error
(For more details see refer to:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg01860.html
)
The following instructions describe how to install the Struts Example Application under iPAS 1.3. A subsequent section describes how the Struts Example Application can be patched to work with Struts.
The following instructions assume the following:
$INSTALLDIR\IONA
and run the
setenvs.bat file.
java iportal.earsco
and at the prompts do:
struts-example
then click next.
struts-example
.Then click next.
Under
$INSTALLDIR\IONA\jars\struts-examples\src\struts-example.war
you
copy contents into the following directories: etc, lib,
src and web.
$INSTALLDIR\jakarta-tomcat-3.2.1\webapps\struts-example\WEB-INF
$INSTALLDIR\IONA\jars\struts-examples\src\struts-example.war\etc
$INSTALLDIR\jakarta-tomcat-3.2.1\webapps\struts-example\WEB-INF\lib
$INSTALLDIR\IONA\jars\struts-examples\src\struts-example.war\lib
$INSTALLDIR\jakarta-tomcat-3.2.1\webapps\struts-example\WEB-INF\classes
$INSTALLDIR\IONA\jars\struts-examples\src\struts-example.war\src
$INSTALLDIR\jakarta-tomcat-3.2.1\webapps\struts-example
$INSTALLDIR\IONA\jars\struts-examples\src\struts-example.war\web
$INSTALLDIR\IONA\jars\struts-examples\etc
directory to this:
<application> <!-- Add display name --> <display-name>Struts Example</display-name> .......
$INSTALLDIR\IONA\jars\struts-examples directory
as follows:
<configuration> <web-app> <context-root>struts-example</context-root> </web-app> </configuration>Now you are ready to compile and deploy the struts-example.
To compile the source from the $INSTALLDIR\IONA\jars\struts-examples type
java iportal.build
Next, type
java iportal.deploy
The first time you deploy you will be prompted by a Deploy wizard and asked to supply both locations of the struts-example.ear file and of the cc.xml file. Once both elements have been satisfied continue until the finish button and click it. The EAR file should deploy successfully.
Test the sample application by using the following URL in the browser:
http://hostname:9000/struts-example/index.jsp
The
struts-documentation.war
can be installed using the same procedure.
As mentioned at the beginning of these notes, the Struts Example Application will not run under iPAS 1.3 without modification. The following changes will need to be made: