• Post Reply Bookmark Topic Watch Topic
  • New Topic

Failed to parse the expression exception  RSS feed

 
Michael Portman
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all.

On the site im developing im coming into a JSTL EL error. I'm just testing this atm before I implement it:



The first c:set works and displays the file contents by expressing ${file}. But when using c:set getFolderNames() which returns an ArrayList I get the following exception:



It's not letting me c:set an ArrayList for some reason. Any ideas very much appreciated! Many thanks.

PS: I'm initializing the FileIO object with jsp:useBean in this test JSP because in my main implementation I'm initializing FileIO from admin.class and setting then setting it as a request attribute then forwarding.
 
Michael Portman
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed it my self lol. It was the amount of slashes I was using. I only needed to use one and it worked. Thanks anyway
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!