Can someone explain to me why the following code results in the error: According to TLD or attribute directive in tag file, attribute value does not accept any expressions. It always breaks whenever I am trying to set the value dynamically for the parameter of the URL.
`<%@ page contentType="text/html; charset=UTF-8" %>`
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:forEach var="v" items="${files}">
${v} <a href='<s:url action="DeleteFile"><s:param name="fileName"
value="${v}" />'>Delete
</c:forEach>
I'm using Struts 2 and the latest version of Java. Any help would be appreciated.