I use the following code right before I display the url in search.jsp:

From above...
    <%
    String url2 = detail.getValue("url");
  %>



    <% if (url2.length() > 70) url2 = url2.substring(0,70) + "..."; %>
    <font color="green" size="1"><b><%=Entities.encode(url2)%></b></font>

Hope this helps.

Neal


At 04:01 AM 4/14/2007, you wrote:

Hi
In my results there are a few that have really long URL's that go
right off the page. Here is an example:



Search Results
... of 2006) 3. Interpretation Anti-Discrimination Act 1998 (No. 46 of ...
http://www.thelaw.tas.gov.au/results/index.w3p;actT=;amActT=;amsrT=;docno=;docyear=;domain=;eIndex=10;lastSearch=;pointInTime=;rta=;rti=44%2B%2B2003%2BAT%40EN%2B20070407000000;sIndex=1;sc1=;sessional=;sortBy=;srT=;ss=;sub=;title=Relationships%20Act%202003;tx1=;type=;wh1=


Does anybody know why this might occur and how to fix it?

Cheers
Paul

------------------------------------------------------------
Neal Whitley - Owner
CaribbeanMag.com
Web: http://www.caribbeanmag.com
E-mail: [EMAIL PROTECTED]


e-TravelMedia.com
7419 Sylvan Ridge Rd.
Indianapolis, IN 46240
Fon: 317.913.1646
Fax: 317.913.1657
Toll Free: (888)312.2742

Reply via email to