View Single Post
  #1 (permalink)  
Old October 30th, 2007, 03:32 AM
tllcll tllcll is offline
Authorized User
Join Date: Oct 2005
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default c:out doesnt work


I have the following codes but the result did not displayed out as expected.

Pls help.


1. ${message}
JSTL is working!1. ${message}


<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="" version="2.0"

    < language="java"
        contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
        <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
        <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> ]]>
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>

<c:set var="message" value="Hi there!"/>
<c:out value="1. ${message}"/><br/>

<c:out value="JSTL is working!"/>
<c:set var="message" value="Hi there!"/>
<c:out value="1. ${message}"/><br/>

Reply With Quote