css如下: 
<style> 
.cut{    
    white-space:nowrap;   
    overflow:hidden;   
    text-overflow:ellipsis;   
    width:150px;   

</style> 

jsp页面实例如下: 
<span class="cut" title="<c:out value="${deal.DTitle}"/>"><a href="../deal/dealDetail.action?dId=${deal.DId}">·<c:out value="${deal.DTitle}"/></a></span>