I've used el for the value of the action attribute..

<html-el:form action="${action}">

works fine. Just feed it a string.


On 20 Jan 2004, at 13:08, Simon Pett wrote:



Thanks Frédéric, I used the taglig import from the Jakarta JSTL 1.1 getting started doc

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

The focus="${focus}" appears to work and I was able to
<c:out value="${action}"/>

So I think the EL works just not in the action parameter of the html:form ??

Simon

-----Original Message-----
From: Frédéric Dreier

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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to