can't use EL c:out value=${obj.names}....
Hi For some reason I'm having difficulties getting something as simple as this to work, see below. The result I get is this, see below. It seems to me that the VALUE-attribute is not evaluated. I've downloaded the JSTL-package from apache's homepage and I've included the tld and jar files in the WEB-INF dir. I am not sure what to try next, so any pointers would be appreciated. Regards Tobias *** This is my JSP page. 77 ${ttt.val} Name: ${ttt.val} Parameter values passed to this page for each parameter: ${current.key} ${aVal} ** %@ page language=java import=java.lang.*,java.util.* % %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % html head base href=%=basePath% titleMy JSP Tag-test page/title /head body This is my JSP page. br jsp:useBean id=ttt class=com.comopt.support.beans.TestBean scope=request / jsp:getProperty name=ttt property=val / BR c:out value=${ttt.val} / BR c:forEach items=${ttt.Names} var=aname Name: c:out value=${ttt.val} /BR /c:forEach bParameter values passed to this page for each parameter: /b table border=2 c:forEach var=current items=${param} tr td bc:out value=${current.key} //b /td c:forEach var=aVal items=${paramValues[current.key]} td c:out value=${aVal} / /td /c:forEach /tr /c:forEach /table /body /html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't use EL c:out value=${obj.names}....
Hi Tobias I've previously had the same problem. The cause, in my case, was that I was declaring servlet spec 2.3 in web.xml. I changed this to 2.4 and it resolved the problem. The declaration I have is web-app 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; version=2.4 Hope that helps Regards Andrew Tobias Eriksson wrote: Hi For some reason I'm having difficulties getting something as simple as this to work, see below. The result I get is this, see below. It seems to me that the VALUE-attribute is not evaluated. I've downloaded the JSTL-package from apache's homepage and I've included the tld and jar files in the WEB-INF dir. I am not sure what to try next, so any pointers would be appreciated. Regards Tobias *** This is my JSP page. 77 ${ttt.val} Name: ${ttt.val} Parameter values passed to this page for each parameter: ${current.key} ${aVal} ** %@ page language=java import=java.lang.*,java.util.* % %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % html head base href=%=basePath% titleMy JSP Tag-test page/title /head body This is my JSP page. br jsp:useBean id=ttt class=com.comopt.support.beans.TestBean scope=request / jsp:getProperty name=ttt property=val / BR c:out value=${ttt.val} / BR c:forEach items=${ttt.Names} var=aname Name: c:out value=${ttt.val} /BR /c:forEach bParameter values passed to this page for each parameter: /b table border=2 c:forEach var=current items=${param} tr td bc:out value=${current.key} //b /td c:forEach var=aVal items=${paramValues[current.key]} td c:out value=${aVal} / /td /c:forEach /tr /c:forEach /table /body /html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can't use EL c:out value=${obj.names}....
You shouldn't even need to use c:out to output values either. When it works, you can just use ${obj.attr} directly in your HTML/JSP. The web XML is the likely cause. -Original Message- From: Andrew Watters [mailto:[EMAIL PROTECTED] Sent: 16 August 2004 13:12 To: Tomcat Users List Subject: Re: can't use EL c:out value=${obj.names} Hi Tobias I've previously had the same problem. The cause, in my case, was that I was declaring servlet spec 2.3 in web.xml. I changed this to 2.4 and it resolved the problem. The declaration I have is web-app 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; version=2.4 Hope that helps Regards Andrew Tobias Eriksson wrote: Hi For some reason I'm having difficulties getting something as simple as this to work, see below. The result I get is this, see below. It seems to me that the VALUE-attribute is not evaluated. I've downloaded the JSTL-package from apache's homepage and I've included the tld and jar files in the WEB-INF dir. I am not sure what to try next, so any pointers would be appreciated. Regards Tobias *** This is my JSP page. 77 ${ttt.val} Name: ${ttt.val} Parameter values passed to this page for each parameter: ${current.key} ${aVal} ** %@ page language=java import=java.lang.*,java.util.* % %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % html head base href=%=basePath% titleMy JSP Tag-test page/title /head body This is my JSP page. br jsp:useBean id=ttt class=com.comopt.support.beans.TestBean scope=request / jsp:getProperty name=ttt property=val / BR c:out value=${ttt.val} / BR c:forEach items=${ttt.Names} var=aname Name: c:out value=${ttt.val} /BR /c:forEach bParameter values passed to this page for each parameter: /b table border=2 c:forEach var=current items=${param} tr td bc:out value=${current.key} //b /td c:forEach var=aVal items=${paramValues[current.key]} td c:out value=${aVal} / /td /c:forEach /tr /c:forEach /table /body /html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can't use EL c:out value=${obj.names}....
Hi, Thanx a lot guys, that did the trick. Regards Tobias -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 14:23 To: Tomcat Users List Subject: RE: can't use EL c:out value=${obj.names} You shouldn't even need to use c:out to output values either. When it works, you can just use ${obj.attr} directly in your HTML/JSP. The web XML is the likely cause. -Original Message- From: Andrew Watters [mailto:[EMAIL PROTECTED] Sent: 16 August 2004 13:12 To: Tomcat Users List Subject: Re: can't use EL c:out value=${obj.names} Hi Tobias I've previously had the same problem. The cause, in my case, was that I was declaring servlet spec 2.3 in web.xml. I changed this to 2.4 and it resolved the problem. The declaration I have is web-app 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; version=2.4 Hope that helps Regards Andrew Tobias Eriksson wrote: Hi For some reason I'm having difficulties getting something as simple as this to work, see below. The result I get is this, see below. It seems to me that the VALUE-attribute is not evaluated. I've downloaded the JSTL-package from apache's homepage and I've included the tld and jar files in the WEB-INF dir. I am not sure what to try next, so any pointers would be appreciated. Regards Tobias *** This is my JSP page. 77 ${ttt.val} Name: ${ttt.val} Parameter values passed to this page for each parameter: ${current.key} ${aVal} ** %@ page language=java import=java.lang.*,java.util.* % %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % html head base href=%=basePath% titleMy JSP Tag-test page/title /head body This is my JSP page. br jsp:useBean id=ttt class=com.comopt.support.beans.TestBean scope=request / jsp:getProperty name=ttt property=val / BR c:out value=${ttt.val} / BR c:forEach items=${ttt.Names} var=aname Name: c:out value=${ttt.val} /BR /c:forEach bParameter values passed to this page for each parameter: /b table border=2 c:forEach var=current items=${param} tr td bc:out value=${current.key} //b /td c:forEach var=aVal items=${paramValues[current.key]} td c:out value=${aVal} / /td /c:forEach /tr /c:forEach /table /body /html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]