struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric Dreier <frederic.dre...@uptime.ch>
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" %>

regards,

frederic



Simon Pett wrote:

>Hi 
>
>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") %>"
>focus="${focus}">
>
>Can someone tell me why?
>
>Thanks
>Simon
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message