1 Reply Latest reply on Nov 12, 2007 1:35 AM by jaikiran pai

    JSP static import problem

    creatureoflegend Newbie

      Hi all!

      I'm trying to use static imports, but running into a problem in jsps. The following doesn't work:

      <%@page import="static package.name.ClassName.*"%>

      I am getting the following:

      org.apache.jasper.JasperException: Unable to compile class for JSP

      Generated servlet error:
      Syntax error on token "static", delete this token

      Then it tells me that the variable I'm importing cannot be resolved.

      I am using JBoss version 4.0.3SP1 and it's target JDK is 1.6

      Does Jboss not support jsp static imports?

      Thanks!