View Full Version : How to get rid of ${status.value}
springifmc
Aug 24th, 2005, 02:47 PM
Hi,
Here is the fragment of the code that I am using.
<spring:nestedPath path="command">
<spring:bind path="path">
<input name='<c:out value="${status.expression}" />' value='<c:out value="${status.value}" />' size="20" maxlength="20">
</spring:bind>
</spring:nestedPath>
The text box is getting populated with "${status.value}" text. What could go wrong here?
TIA,
Sanjay
Ryan.Stone
Aug 24th, 2005, 02:56 PM
Have you enabled EL? Putting isELIgnored="false" in the page directive should fix this. You'll want something like this at the beginning of your JSP:
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
springifmc
Aug 24th, 2005, 03:13 PM
Hi Ryan,
I am getting following exception after adding the line
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
Error 500--Internal Server Error
javax.servlet.jsp.el.ELException
at javelin.jsp.el.ArrayRefEvaluator.evaluateBeanType( ArrayRefEvaluator.java:252)
at javelin.jsp.el.ArrayRefEvaluator.evaluate(ArrayRef Evaluator.java:49)
Thanks,
Sanjay
gmatthews
Aug 25th, 2005, 07:59 PM
Post the top of your JSP page, what tag libaries and other directives have you included?
Colin Yates
Aug 26th, 2005, 08:00 AM
Which web container (tomcat, jboss) are you using (and which version ;))
sethladd
Aug 28th, 2005, 04:28 PM
Also, make sure the web.xml looks like this at the top:
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
In other words, make sure you are using a 2.4 webapp. Plus, of course, it must be running in a Servlet 2.4 container.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.