jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15321] - wordWrap throws StringArrayIndexOutOfBoundsExceptions
Date Wed, 10 Mar 2004 04:20:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=15321>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=15321

wordWrap throws StringArrayIndexOutOfBoundsExceptions

nagoya@felipeal.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From nagoya@felipeal.net  2004-03-10 04:20 -------
Robert,

Could you please try it again and, if the bug persists, reopen the bug providing
a better test case?

For instance, I created the following JSP page:

<%-- jsp page starts here --%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.0.1" prefix="str" %>

<%

StringBuffer buffer = new StringBuffer(100);

for ( int i=1; i<=80; i++ ) {
   buffer.append( (char) i%10 );
}

String word = request.getParameter("word");
if ( word == null ) {
   word = "";
}
%>

Word: <str:wordWrap><%=word%></str:wordWrap>
<br>
Length: <str:length><%=word%></str:length>

<form>

Word: <textarea cols="80" rows="10" name="word"><%=buffer.toString()%></textArea>
<br>
<input type="submit">
</form>
<%-- jsp page ends here --%>

And ran it with many inputs:

http://localhost:8080/taglibs/bug15321.jsp?word=12345678901234567890123456789012345678901234567890123456789012345678901234567890
http://localhost:8080/taglibs/bug15321.jsp?word=12345678901234567890123456789012345678901234567890123456789012345678901234567890%0D
http://localhost:8080/taglibs/bug15321.jsp?word=12345678901234567890123456789012345678901234567890123456789012345678901234567890%0A
http://localhost:8080/taglibs/bug15321.jsp?word=12345678901234567890123456789012345678901234567890123456789012345678901234567890%0A%0D


None of them caused an exception, so I think it might have been already fixed.

Felipe

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message