Bugs item #974514, was opened at 2004-06-16 23:36
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=974514&group_id=73068

Category: main tag library
Group: v 1.0-b3
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problems using maxlength and html special chars

Initial Comment:
The tag lib does not take care of special html character 
sequences like > or < when using the attribute 
maxlength.

For example:

A bean property contains the following content.


"hello<td></td> how are you"


After converting this sequence  to valid html code the 
string contains the following content:


"hello&lt;td&gt;&lt;/td&gt; how are you"

(i use a columndecorator to do this because the tag lib 
is not able to do the work)

This String is then rendered to html by the tag lib.

The Browser  still renders the String hello <td></td> 
how are you" because it takes care of the special html 
character sequences.

Now when i'am using the attribut maxlength - setting it's 
value to 29 - the Browser renders the following content:

"hello<td></td>..."

That is not ok, because the Browser should still render 
the complete String.

This Problem arises because the tag lib does not take 
care of the special html character sequences and only 
counts the chars.

Requirement:

Because the content renderted must be valid html the 
tag lib should take care of special html character 
sequences.




----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2004-07-02 04:05

Message:
Logged In: NO 

z

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2004-07-02 03:59

Message:
Logged In: NO 

I want my final string say "hello<td></td> how are you". All in 
one html cell, limited to a max length of 29.


----------------------------------------------------------------------

Comment By: David E (halcy)
Date: 2004-06-27 08:37

Message:
Logged In: YES 
user_id=1072021

I'm not understanding this entirely, your property you are 
rendering contains html tags, but you dont want them 
rendered as html?  You want your final string to 
say "hello<td></td> how are you"? or you want your final 
string to say "hello" insert another html cell here "how are 
you"?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=974514&group_id=73068


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to