| Author |
EL and JSTL
|
Fernando Galdino
Greenhorn
Joined: Jan 08, 2004
Posts: 17
|
|
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
Joined: Dec 04, 2004
Posts: 950
|
|
Hi, I think problem is due to quotes in quotes. thanks
|
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
|
 |
John Wolf
Ranch Hand
Joined: Feb 18, 2002
Posts: 64
|
|
Fernando,
Try using single quotes inside double quotes. Eg: -
|
SCJP 1.2, SCJP 1.4, SCJA, SCWCD 1.4<br /> <br />------------------------------<br />
|
 |
Krish Pinnamaneni
Greenhorn
Joined: Mar 16, 2005
Posts: 22
|
|
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
Joined: Jul 13, 2004
Posts: 150
|
|
|
Could anyone tell me how to make the above code run - have asked a question regarding this - Starting of with EL.
|
 |
 |
|
|
subject: EL and JSTL
|
|
|