Hi! Environment: Java 1.4.2 WebSphere Portal 5.1 (supporting JSP 1.2) Spring 2.0.2
Portal app that doesn't allow jsp:attribute tags (which I gather is JSP 2.0) However, I must inject an instance id in a portlet:param tag. <display:table name="model.snipclasses" uid="row" pagesize="15" > <display:setProperty name="sort.amount" value="list" /> <display:column property="id" titleKey="snipclasslistView.tablecol.id" /> <display:column titleKey="snipclasslistView.tablecol.name" sortable="true" sortProperty="name"> <% Object o = pageContext.getAttribute("row"); if(o == null){ System.out.println("NULL!!"); } else{ System.out.println("Class of row is " + o.getClass().getName()); snpclass = (SNPClass) o; } %> <portlet:actionURL var="classDetailsUrl"> <portlet:param name="action" value="viewSnpClassDetails" /> <portlet:param name="id" value="<%= snpclass.getId() %>" /> </portlet:actionURL> <a href="<c:out value='${classDetailsUrl}'/>"><c:out value='${row.name}' /></a> </display:column> <display:column property="description" titleKey="snipclasslistView.tablecol.description" maxLength="15" /> <display:column property="createdBy" titleKey="snipclasslistView.tablecol.createdby" /> <display:column property="createdDate" titleKey="snipclasslistView.tablecol.created" /> <display:column property="modifiedBy" titleKey="snipclasslistView.tablecol.modifiedby" /> <display:column property="modifiedDate" titleKey="snipclasslistView.tablecol.modified" /> <display:column titleKey="snipclasslistView.tablecol.listsnps" > <portlet:renderURL var="listSnpsUrl"> <portlet:param name="action" value="listRelatedSnips"/> </portlet:renderURL> <a href="<c:out value='${listSnpsUrl}'/>"><spring:message code="snipclasslistView.tablecol.go"/></a> </display:column> </display:table> Critical line is: <portlet:param name="id" value="<%= snpclass.getId() %>" /> Error: C:\Program Files\WebSphere\AppServer\temp\Portal5Test\WebSphere_Portal\ResponseOv_rideF ilter_PA_1_0_IP\GT_Portlet.war\jsp\_snipclasslist.java:318: cannot resolve symbol symbol : method setValue (java.lang.Integer) location: class org.apache.pluto.tags.ParamTag _jspx_th_portlet_param_1.setValue( snpclass.getId() ); If I change to: <portlet:param name="id" value="<c:out value='${row.id}'/>" /> Error: Required int parameter 'id' with value of '<c:out value='${row.id}'/>' is not a valid number So anybody knows how to attck this? Much appreciate any help! Regards, /B-E ======================================== Bengt-Erik Fröberg System Developer, B.Sc., M.Mus. KI Biobank Department of Medical Epidemiology and Biostatistics Karolinska Institutet tel +46 8 524 823 76 fax +46 8 31 49 75 [EMAIL PROTECTED] www.meb.ki.se Utan tvivel är man inte riktigt klok. (Without doubt you're at your wits end.) Tage Danielsson ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user