• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jboss upgrade causing jstl el parsing error.

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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}
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic