> -----Original Message-----
> From: Lukasz Lenart
> Sent: Thursday, February 17, 2011 6:20
> To: Struts Developers List
> Subject: Re: Regression in s:url tag
>
> 2011/2/16 Jason Pyeron <[email protected]>:
> > The <s:url var="url" escapeAmp="false"/> execution used to
> produce (in
> > 2.1.6) http://host/app/action!method and now produces
> > http://host/app/action.xhtml droping the method in 2.2.1.1
>
> Could you show the whole code example ?
// this is a sensitive project, I am removing parts, that are not relevant.
public class IpAction extends ActionSupport implements Preparable ,
ServletRequestAware
{
// snip
public String index()
{
//snip
ipList=IpAddress.getList(session, new CriteriaBuilder(){
@Override
public Criteria process(Criteria x)
{
return x
// .setFetchMode("vlan",
FetchMode.JOIN)
.setFetchMode("nic", FetchMode.JOIN)
.setFetchMode("nic.device", FetchMode.JOIN)
.setFetchMode("nic.device.domain",
FetchMode.JOIN)
;
}});
return SUCCESS;
}
public String novlan()
{
//snip
ipList=IpAddress.getList(session, new CriteriaBuilder(){
@Override
public Criteria process(Criteria x)
{
// TODO Auto-generated method stub
return x
.add(Restrictions.isEmpty("vlan"))
.setFetchMode("nic", FetchMode.JOIN)
.setFetchMode("nic.device", FetchMode.JOIN)
.setFetchMode("nic.device.domain",
FetchMode.JOIN)
;
}});
return SUCCESS;
}
}
ip.jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<html>
<head>
<title><s:property value="#title" /></title>
</head>
<body>
<s:url var="url" escapeAmp="false"/>
<div id="container">
<display:table id="ipList" name="ipList"
requestURI='<%=((String)request.getAttribute("url")) %>' class="tablesorter"
sort="list" pagesize="25">
<display:column property="ipAddress" title="Ip address"
sortable="true" />
<display:column property="nic.device.hostname"
title="Host name" sortable="true" href="device!info" paramId="device.id"
paramProperty="nic.device.id" />
<display:column property="nic.device.domain.name"
title="Domain name" sortable="true" href="device!info" paramId="device.id"
paramProperty="nic.device.id" />
<display:column property="nic.device.assetTag"
title="Asset tag" sortable="true" href="device!info" paramId="device.id"
paramProperty="nic.device.id" />
</display:table>
</div>
</body>
</html>
>
>
> Kind regards
> --
> Lukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> Kapitula Javarsovia http://javarsovia.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected] For
> additional commands, e-mail: [email protected]
>
>
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]