I tried to follow the Simple Struts application example on the Wiki and I had a problem with the Struts tags; the dispatching to the URL (.action) seemed ok. (/struts-tags.tlld). As it turns out, I looked at the file and it's definitely JSP 2.0 (it references dynamic tag attributes, etc. and it's a different spec). However, the mail reader application's web.xml is definitely 2.3.
When I converted the tld file to a 1.2 file (manually), *and* removed it out of the struts-core-2.1.6.jar (so the Oracle OC4J container wouldn't cache it), I ended up with another error. It was a java.lang.ClassCastException: unable to cast ...XMLComment to ....Element (I can't remember the exact class names now). The error was occurring in the JSP in the line that contains the <%@ taglib uri ... %> directive. I tried precompiling the page from the command line and have the same error. I'm assuming that error is probably coming from some dependency in Struts that is causing the JSP compiler/translator to have an issue. I know that the Oracle XML parser with this older version of Oc4j has been the culprit for other issues. I'm definitely blocked from having the container upgraded to Servlet 2.4 at this point since it's tied to Oracle's proprietary forms technology, and it's stuck back in Java 1.4.2. The container *can* have a newer JDK, so it's currently pointing to a 1.6.0. I've gotten Spring 2.5.6's petclinic with Toplink JPA to run against it after modifying the JSPs to use JSTL 1.0 and removing the JSP 2.0 EL expressions in them. I was hoping Struts 2.1.x wouldn't be very painful as I'd like to stick with Struts but get into the 2.x line. Any help will be appreciated. I'll post back more details if I have some time this weekend. Eric ________________________________________ From: Dave Newton [newton.d...@yahoo.com] Sent: Friday, May 29, 2009 4:02 PM To: Struts Users Mailing List Subject: Re: S2: on Servlet 2.3 Givler, Eric wrote: > I read a few threads on this and have not seen anything that reflects that > this can be done. I've run older S2 under servlet 2.3, but that was pre-S2.1. It'd be easier to describe any problems you're having, although I suspect we won't put a huge amount of effort into supporting servlet 2.3--if it doesn't currently work. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org