aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes EL and JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "EL and JSTL" Watch "EL and JSTL" New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EL and JSTL
 
Similar Threads
Doubt in c:if
Using a jsp's local variable in 'c:if'
use bean:message tag inside my jstl c tag
c:if doubt
Logic:iterate + OR condition