webjxcom Tip: In the JSP file, there is a sentence: "${buildinglist[0]!=null?buildinglist[0].distance:" When running in Tomcat 6, the following error was reported: |
The JSP file has this sentence: ${buildinglist[0]!=null?buildinglist[0].distance: "}
When running in Tomcat 6, the following error was reported:
org.apache.el.parser.ParseException:Encountered "Distance:" at line 1, column 41.
Was expecting:
...
At Org.apache.el.parser.ELParser.generateParseException (elparser.java:1874)
At Org.apache.el.parser.ELParser.jj_consume_token (elparser.java:1754)
At Org.apache.el.parser.ELParser.DotSuffix (elparser.java:1069)
At Org.apache.el.parser.ELParser.ValueSuffix (elparser.java:1046)
At Org.apache.el.parser.ELParser.Value (elparser.java:990)
This is caused by a bug in Tomcat 6 itself. In other versions, there is no error.
It is recommended to use the later version of Tomcat 6, or version 5.5, and so on.