Paper submission
Just the time I'm trying to write a paper, I came across this. Just the same problem.
Hmmm interesting... :)
Ref: PHD Comics
Just the time I'm trying to write a paper, I came across this. Just the same problem.
Hmmm interesting... :)
Ref: PHD Comics
Posted by
Alper Köse
at
11:55 PM
0
comments
Links to this post Labels: academic paper, phdcomics
In my older post I wrote about problem in using JSTL.
For a summary, my problem is I kept seeing this error message:
<c:out value="${foo.bar}" /> and it simply prints ${foo.bar}.<%@ taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="c"
uri="http://java.sun.com/jstl/core"%>
web.xml and JSTL verisons.c-rt.tld"Servlet 2.3/JSP 1.2 + JSTL 1.1 option, you should avoid using JSTL-1.1 tld definition.
Posted by
Alper Köse
at
12:09 AM
7
comments
Links to this post Labels: java, jsp, jstl
Veeeerry important and funny :))
ref: comic from Bokardo.com
Posted by
Alper Köse
at
1:21 PM
0
comments
Love this certification program
If you have any problems in your group you can use this certification ;)
lol
Posted by
Alper Köse
at
5:52 AM
0
comments
First let me give you a small introduction then I will talk about my problem :)
Small Introduction
I've been using JSTL in my projects partially quite some time (partially because of my company's internal taglib). JSTL is a useful tag library for JSPs. You can use expression language (EL) features easily, cause they save you writing a lot of code and they are really simple.
This is a simple example for creating a simple select input
<%@ page contentType="text/html;charset=UTF-8"
language="java" %>
<%@ taglib prefix="fmt"
uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c"
uri="http://java.sun.com/jstl/core" %>
<fmt:setbundle basename="com.foo.Application">
...
<select name="wfn">
<option value=""><fmt:message
key="form.select.choose"></option>
<c:forEach items="${workflows}" var="wf">
<c:set var="selected" value=""/>
<c:if test="${param.wfn==wf.name}">
<c:set var="selected" value="selected"/>
</c:if>
<option value="<c:out value="${wf.name}">"
<c:out value="${selected}"> >
<c:out value="${wf.label}">
</option>
</c:forEach>
</select>
According to TLD or attribute directive in tag file, attribute value does not accept any expressions"c.tld file I found these lines:
...
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
...
rtexprvalue to true it works. But I never encountered such problem (and web.xml file is defined by Servlet 2.4 descriptor:
<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" >
...
web.xml file and I don't copy it from tutorial. When I compare web.xml file from the tutorial and my sample (and my other projects) I found that they are all defined by Servlet 2.3.c-rt.tld" file.web.xml and JSTL verisons.c-rt.tld"Servlet 2.3/JSP 1.2 + JSTL 1.1 option, you should avoid using JSTL-1.1 tld definition. Details are in here
Posted by
Alper Köse
at
4:37 AM
0
comments
Links to this post Labels: java, jsp, jstl