Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Liutauras Vilda
Paul Clapham
Sheriffs:
paul wheaton
Tim Cooke
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Piet Souris
Bartenders:
Mike London
Forum:
JSP
Expression Language problem
Aditya Kanitkar
Ranch Hand
Posts: 72
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi, this is my
jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <c:set var="a" value="sam" /> <c:out value="${a}" /> </body> </html>
It should print
sam
but its printing this
${a}
My lib directory (Cause this is a
struts
application)
antlr-2.7.2.jar bsf-2.3.0.jar commons-beanutils-1.8.0.jar commons-chain-1.2.jar commons-digester-1.8.jar commons-fileupload-1.1.1.jar commons-io-1.1.jar commons-logging-1.0.4.jar commons-validator-1.3.1.jar jstl-1.0.2.jar jstl.jar oro-2.0.8.jar standard-1.0.6.jar standard.jar struts-core-1.3.10.jar struts-el-1.3.10.jar struts-extras-1.3.10.jar struts-faces-1.3.10.jar struts-mailreader-dao-1.3.10.jar struts-scripting-1.3.10.jar struts-taglib-1.3.10.jar struts-tiles-1.3.10.jar
My tld directory
c-1_0-rt.tld c-1_0.tld c.tld fmt-1_0-rt.tld fmt-1_0.tld fmt.tld fn.tld permittedTaglibs.tld scriptfree.tld sql-1_0-rt.tld sql-1_0.tld sql.tld x-1_0-rt.tld x-1_0.tld x.tld
Thanks.
David Newton
Author
Posts: 12617
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Have you read
this entry
in the
JavaRanch JSP FAQ
?
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Problem in my JSTL comment
working with JSTL
JSTL version causing exceptions?
can't find file tad lib descriptor:"http://java.sun.com/jstl/core"
Versions of JSTL and EL on a legacy project
More...