File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss upgrade causing jstl el parsing error.

 
Jessica Stanton
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

First, thanks for any help given! I'm not sure if this is a jboss error or my own error. So, here's the problem. I was running jboss 4.0.5-GA, and am now running jboss eap 4.3 CP 04. I was using some EL of the syntax ${somebooleanexpression?ifyesvalue:ifnovalue}. On 4.0.5 GA it was totally happy. It was also happy running in a server built in 4.0.5 but placed in the server dir of 4.3. However, when I build a clean server out of the vanilla default server of 4.3, I now get this:

org.apache.jasper.JasperException: /WEB-INF/tags/custom/tools/blog/listTextBlocks.tag(40,12) "${not empty childBlock?not empty childBlock.pollId:not empty parentBlock.pollId}" contains invalid expression(s): javax.el.ELException: Error Parsing: ${not empty childBlock?not empty childBlock.pollId:not empty parentBlock.pollId}

I actually get this type of error for any place using the pattern ${somebooleanexpression?ifyesvalue:ifnovalue} regardless of what the test or values are. My questions are:
1) Is it actually an invalid expression and I was actually cheating before?
2) Could it be a jstl version issue?
2) Do I need to change all things of that pattern into the following pattern?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64194
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be a JSP version issue. The ternary operator is only supported in JSP 2.0 and later.
 
Jessica Stanton
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the web.xml in jboss' /deploy/jboss-web.deployer/conf/ the servlet version is 2.4 which means the JSP version is 2.0 according to http://tomcat.apache.org/whichversion.html :

Is there anything else I can try or check?
 
Jessica Stanton
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found another odd clue.

These work:

${not empty param.yes?'true':'false'}
${empty param.yes?'true':'false'}
${not empty param.yes?'true':false}
${empty param.yes?'true':false}

These do not:
${not empty param.yes?true:false}
${empty param.yes?true:false}
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic