Oops. I had to remove the taglib reference <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> from JSP file. Works now ;-)
Michael On 3/9/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > I have been using Tomcat 4 (Web Application 2.3) with JSTL 1.0 for > quite a while. Now I am switching to Tomcat 5. I set webapp version to > 2.4 in web.xml and now I can use JSTL 1.1 expressions everywhere in my > HTML. > > This is great, but Jasper does not like the old JSTL 1.0 syntax like > <c:out value='${username}'. More specifically, it throws the following > exception > > org.apache.jasper.JasperException: > /login/loginComponent-viewLogin.jsp(21,25) According to TLD or > attribute directive in tag file, attribute value does not accept any > expressions > > when it encounters this tag: > > <input type="text" name="username" value="<c:out value='${username}'/>" /> > > This one works fine: > > <input type="text" name="username" value="${username}" /> > > So the question is: can I mix and match JSTL 1.0 and 1.1 expessions? > Or I must choose only one that corresponds to container? Does it > depend on container, I mean, maybe this mixing works on Resin or > Jetty? Or am I doing something wrong? > > I don't want to have two versions of my JSPs for JSP 1.2 and for JSP > 2.0 containers. > Michael. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]