struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric Dreier <>
Subject Re: newbie: html:form EL in action tag
Date Tue, 20 Jan 2004 12:41:26 GMT
i'm not sure but, do you have declared the right library (with el 
suffix) at the begining of your page?

<%@ taglib  uri="/WEB-INF/struts-html-el.tld" prefix="html" %>



Simon Pett wrote:

>I am trying to use tile attributes for the action and focus parameters in
>the html:form tag. So I imported the attributes to the page scope and then
>used EL to set them. 
><tiles:useAttribute name="action"/>
><tiles:useAttribute name="focus"/>
><html:form action="${action}" focus="${focus}">
>The focus worked fine however the action gave the error
>ServletException in:/pages/common/layouts/formlayout.jsp] Cannot retrieve
>mapping for action /${action}'
>It works ok if I use a scriplet like 
><html:form action="<%= (String)pageContext.getAttribute("action") %>"
>Can someone tell me why?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message