What do I need to be able to use JSP 2
Hello!i found some interesting things about "Expression Language" with JSP 2.
If I am coorrect this 3 code snippets should be equal:
1)
<jsp:useBean id="customer" scope="session" class="attentionizer.model.hibernate.Customer" />
<jsp:getProperty name="customer" property="sFName" />
2)
${sessionScope.customer.sFName}
3)
<%@ taglib uri="jstl/c" prefix="c" %>
<c:out value="${sessionScope.customer.sFName}"/>
But I do not get the JSP-page to evaluate the code:
${sessionScope.customer.sFName}
At first I just tried 1 and 2 but after some googling it looks like I need jstl-tag-libs, perhaps that one is needed to use expression language?
I found a very small jstl.jar and a c.tld at the download page at a struts turtorial:
http://www.reumann.net/struts/lesson1.do
But when I tried that one I get:
500 Internal Server Error
Error parsing JSP page /website/tiles/template.jsp
Class org.apache.taglibs.standard.tlv.JstlCoreTLV not found
Perhaps that jstl.jar is not the right one to use or do I need some more packages? How ever it does not contain org.apache.taglibs.standard.tlv.JstlCoreTLV
I use (as you perhaps know by now) orion 2.0.5. I have tried to see if this is server related, perhaps Orion does not support this. But I have not found anything.
Perhaps this is 2 question if I get it wrong when i say that I need jstl.jar to use expression language.
Then I should ask if you could help me to find out what I need to be able to use expression language. And the second question should be where may I download jstl-lib to be able to use for eg:
<%@ taglib uri="jstl/c" prefix="c" %>
<c:out value="Hello"/>
Best regards
Fredrik