p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   JSP Basics (http://p2p.wrox.com/forumdisplay.php?f=92)
-   -   c:out doesnt work (http://p2p.wrox.com/showthread.php?t=63340)

tllcll October 30th, 2007 03:32 AM

c:out doesnt work
 

Hello,

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

Pls help.

-----

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

---

<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
          xmlns:c="http://java.sun.com/jstl/core">

    <jsp:directive.page language="java"
        contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
    <jsp:text>
        <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
    </jsp:text>
    <jsp:text>
        <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
    </jsp:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>

<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/>

</body>
</html>
</jsp:root>

bobit79 November 1st, 2007 03:15 AM

wt u expect from this code?

http://studyjava.org/forums/


All times are GMT -4. The time now is 10:38 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.