[jboss-dev-forums] [JBoss AS 7 Development] - JBoss AS7.1.1 - JSP implicit package import

syau do-not-reply at jboss.com
Wed Sep 19 23:33:51 EDT 2012


syau [https://community.jboss.org/people/syau] created the discussion

"JBoss AS7.1.1 - JSP implicit package import"

To view the discussion, visit: https://community.jboss.org/message/760480#760480

--------------------------------------------------------------
Currently migrating my web application from Weblogic 10.3.5 to JBoss AS7.1.1.

I have this in my web.xml - Servlet API 2.3,

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" " http://java.sun.com/dtd/ http://java.sun.com/dtd/*web-app_2_3*.dtd">

In some JSP's, no import statements available for classes like 'java.util.Date', 'java.util.Iterator' etc. In weblogic, these classes get implicitly imported and getting 
executed fine.

In JBoss this throws error like 'Unable to compile class for JSP ... Date cannot be resolved to a type'. I can manually add the necessary import statements in 
my JSP to make it work fine, but just curious if there is a way in JBoss to achieve implicit package import similar to weblogic.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/760480#760480]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120919/84ba046f/attachment.html 


More information about the jboss-dev-forums mailing list