The reason you're seeing the error is because Struts 2 no longer
allows JSP EL expressions in its tag attribute. You might try using a
nested <s:param> tag like:

<s:param name="id" value="%{id}" />

Matt

On Wed, Oct 29, 2008 at 3:39 AM, Mike King <[EMAIL PROTECTED]> wrote:
>
> <s: ... is defined in an included file (included at the beginning of my jsp
> page)
> The include statement is <%@ include file="/common/taglibs.jsp" %>
> taglibs.jsp itself includes these lines (see the bold) which says that the
> uri for s: is /struts-tags.
> Does this help?
>
> <%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8"
> contentType="text/html;charset=utf-8" %>
> <%@ taglib uri="http://www.springframework.org/security/tags";
> prefix="security" %>
> <%@ taglib uri="http://displaytag.sf.net"; prefix="display" %>
> <%@ taglib uri="http://struts-menu.sf.net/tag-el"; prefix="menu" %>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/sql"; prefix="sql" %>
> <%@ taglib uri="http://www.opensymphony.com/oscache"; prefix="cache" %>
> <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator";
> prefix="decorator"%>
> <%@ taglib uri="http://www.opensymphony.com/sitemesh/page"; prefix="page"%>
> <%@ taglib uri="/struts-tags" prefix="s" %>
> <%@ taglib uri="http://www.appfuse.org/tags/struts"; prefix="appfuse" %>
>
>
>
> mraible wrote:
>>
>> You could use a regular   tag. I haven't used the <s:a href=""/> tag
>> myself, so I don't know what it offers.
>>
>> Matt
>>
>> On Tue, Oct 28, 2008 at 7:32 AM, Mike King <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> The following line in my objectClass.jsp file is being flagged as an
>>> error at
>>> run time (when using the browser).
>>> <s:a href="objectClass.html?id=${row.id}">
>>>
>>> It is part of the following.
>>>
>>> <%-- Table columns --%>
>>> <display:column titleKey="objectClass.description" sortable="true">
>>> <s:a href="objectClass.html?id=${row.id}">
>>> <c:out value="${row.objectClassName}" escapeXml="true"/></s:a>
>>> </display:column>
>>>
>>> The message displayed is
>>>
>>> YIKES!
>>> javax.servlet.ServletException: org.apache.jasper.JasperException:
>>> /WEB-INF/pages/objectClass.jsp(30,0) PWC6236: According to TLD or
>>> attribute
>>> directive in tag file, attribute href does not accept any expressions
>>>
>>> I enjoy the YIKES.
>>>
>>> Can anyone help.
>>> Mike King
>>> --
>>> View this message in context:
>>> http://www.nabble.com/HREF-error-at-runtime-tp20207257s2369p20207257.html
>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/HREF-error-at-runtime-tp20207257s2369p20223587.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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