我不确定为什么这不起作用。
该jsp:
<a href="<portlet:renderURL >
<portlet:param name="page" value="/view_dettaglio.jsp"/>
<portlet:param name="id" value="<%=rs.getInt(1)%=>"/>
</portlet:renderURL>"><%=rs.getInt(1)%></a>
类中的方法:
@Override
public void doView(final RenderRequest renderRequest, final RenderResponse renderResponse) throws PortletException, IOException {
String page = ParamUtil.getString(renderRequest, "page");
String id = ParamUtil.getInteger(renderRequest, "id");
renderRequest.setAttribute("id",id.toString());
this.include(page, renderRequest, renderResponse);
有任何想法吗?