JBoss Community

JBoss AS7.1.1 - JSP implicit package import

created by syau in JBoss AS 7 Development - View the full discussion

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/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

Start a new discussion in JBoss AS 7 Development at Community