File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Jboss upgrade causing jstl el parsing error. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Jboss upgrade causing jstl el parsing error." Watch "Jboss upgrade causing jstl el parsing error." New topic
Author

Jboss upgrade causing jstl el parsing error.

Jessica Stanton
Greenhorn

Joined: Jun 09, 2009
Posts: 3
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

Joined: Jan 10, 2002
Posts: 61603
    
  67

It may be a JSP version issue. The ternary operator is only supported in JSP 2.0 and later.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jessica Stanton
Greenhorn

Joined: Jun 09, 2009
Posts: 3
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

Joined: Jun 09, 2009
Posts: 3
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
 
subject: Jboss upgrade causing jstl el parsing error.