This is likely related to the following thread. http://www.nabble.com/How-to-define-another-constants-than-String-to2428530s2369.html#a2590007
Yes, if you have a fix for this, please enter an issue in JIRA and attach a patch. Matt On Wed, May 13, 2009 at 2:28 AM, Marian <mn...@etai.fr> wrote: >>You don't need to be an admin, you just need to be signed in. > > OK, done. > > Meanwhile I've noticed another problem (or maybe a feature?) - if in the > Constants class I add a member of type int, long,... (any elementary type) > then > I have an error when trying to access the application: > > 2009-05-12 23:32:07.439:org.apache.jasper.compiler.Compiler:WARN: Error > Compiling file: /.../target/work/jsp/org/apache/jsp/common/header_jsp.java > > I presume that this is due to the following line at the end of > common/header.jsp > file: > > <appfuse:constants scope="request"/ > > Shouldn't that be stressed somewhere in the documentation? Or shouldn't a > simple > test be added in webapp.taglib.ConstantsTag (and probably in ConstantsTei > too): > > for (Field field : fields) { > if (null != field.getType().getPackage()) { > pageContext.setAttribute(field.getName(), field.get(this), toScope); > } > } > > Marian > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net