• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL and JSTL

 
Fernando Galdino
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a code like this in my JSP:



if I use double quote like "teste" inside a jstl it doesnt function.
But if I use ${userVar eq "teste"} out of a jstl if tag, theres no problem.

why its happen?

thanks
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think problem is due to quotes in quotes.

thanks
 
John Wolf
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fernando,

Try using single quotes inside double quotes. Eg: -


 
Krish Pinnamaneni
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
As Narendra Said When the outer quotes are double quotes we need to use single quotes inside it.This is my guess.
Bye.
Krish.
 
PNS Subramanian
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anyone tell me how to make the above code run - have asked a question regarding this - Starting of with EL.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic