It appears that the JSP file is written with JSP XML syntax.
< and > are reserved characters in XML , if you must use them then you would
use < and >
But there is no need to use either of the less than, greater than characters
since you can simply write
c:out as ${someVariable} , instead of <c:out value="${someVariable}"/>
So if you change your code to the following it should work:
<input type="text" name="${status.expression}" value="${status.value}"/>
Please note that the above has been tested on JSTL 1.1.x (I'm not sure if it
will work in JSTL 1.0.x)
You didn't mention the version of JSTL , Tomcat you are using.
-Rashmi
On 3/20/07, Pat Willard <[EMAIL PROTECTED]> wrote:
I am using Tomcat 5.5.2
My JSP begins as follows:
<?xml version="1.0"?>
<jsp:root version="2.0"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:spring="http://www.springframework.org/tags">
<jsp:directive.page contentType="text/html"/>
The body is as follows:
<body>
<h2>Student Registration</h2>
<form method="post" action="/registerStudent.htm">
<spring:bind path="student.firstName">
First Name: <input type="text" name="<c:out
value="${status.expression}"/>"
value="<c:out value="${status.value}"/>"/>
</spring:bind>
</form>
</body>
All attempts using a typical JSTL tagging sounded by <input type="text"
name="<c:out etc. etc. results in
org.apache.jasper.JasperException: ... The value of attribute "name"
associated with an element type "input" must not contain the '<' character.
What's going on?
Thanks for your help.
-- Pat
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]