Yeagh, I struggled with this for a while...
I eventually came up with this, but dont know if it is the best way or not. I basically put the dynamic paramter in a bean and then use a scriptlet
<html:link paramId="expand_table" paramName="table" anchor="<%= (String) session.getAttribute("tab") %>" forward="getmetadata">
[Expand]
</html:link>
The full
JSP is below
HTH
Tim
[CODE SAMPLE]
An outerloop specifies elements with anchors and an innerloop and tags locations. the scriptlet is to test your session variables.
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib uri="/tags/tiles-defs" prefix="tiles" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="java.util.*" %>
Database Name : <c

ut value="${dbmetaview.dbMeta.dbAtomicName}"/><br>
<table border cellpadding="1" cellspacing="1" >
<font color="red">
<c:forEach var="table" items="${dbmetaview.tables}" varStatus="table_status">
<tr>
<%-- Start: Outer Rows --%>
<th width="20%" align="left" valign="top">
<c

ut value="${table_status.count}"/>
<c:set var="count" value="${table_status.count}" scope="session"/>
<c:set var="tab" value="${dbmetaview.tables[count]}" scope="session"/>
<%
System.out.println("Scriptlet");
HttpSession localSession = request.getSession();
Enumeration enum = localSession.getAttributeNames();
System.out.println("Session Paramters");
while (enum.hasMoreElements()) {
String pName = (String) enum.nextElement();
System.out.println("PropertyName JSP-> " + pName);
System.out.println("Value JSP-> " + localSession.getAttribute(pName));
}
%>
<html:link linkName="<%= (String) session.getAttribute("tab") %>" >
<c

ut value="${table}"/><br>
</html:link>
<html:link paramId="expand_table" paramName="table" anchor="<%= (String) session.getAttribute("tab") %>" forward="getmetadata">
[Expand]
</html:link>
<html:link paramId="collapse_table" paramName="table" anchor="<%= (String) session.getAttribute("tab") %>" forward="getmetadata">
[Collapse]
</html:link>
<c:if test="${dbmetaview. == }">
</td></th>
<c:if test="${dbmetaview.displayAttrib[table_status.index] == true}">
<td>
<table border cellpadding="1" cellspacing="1" >
<%-- Start: Inner Rows --%>
<tr>
<c:set var="attribVector" value="${dbmetaview.attribMetaData[table_status.index]}"/>
<c:forEach var="attrib" items="${attribVector}">
<tr>
<td><c

ut value="${attrib.attributeName}"/></td>
<td><c

ut value="${attrib.typeString}"/></td>
<td><c

ut value="${attrib.sizeString}"/></td>
<td>
DEANO
</td>
</tr>
</c:forEach>
</tr>
<%-- End: Inner Rows --%>
</table>
</td>
</c:if>
</tr>
<%-- End: Outer Rows --%>
</c:forEach>
</font>
</table>