Bug 112807 - [translation]cannot parse the second char '<' as the value of a attribute VALUE in fragment such as "<input value="<" >
Summary: [translation]cannot parse the second char '<' as the value of a attribute VAL...
Status: CLOSED DUPLICATE of bug 316223
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 0.7   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 3.3   Edit
Assignee: Sarika Sinha CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 126375 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-17 11:32 EDT by ruisj CLA
Modified: 2010-06-29 14:14 EDT (History)
6 users (show)

See Also:


Attachments
Patch to handle the "<" token inside attribute value (1.35 KB, patch)
2010-03-29 11:29 EDT, Sarika Sinha CLA
no flags Details | Diff
Patch for XMlTokenizer.Jflex to accept "<" inside attribute value in xml and html (1.24 KB, patch)
2010-04-13 05:28 EDT, Sarika Sinha CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ruisj CLA 2005-10-17 11:32:56 EDT
Unfortunately, we often write a jsp file such as:
 <button value="<"> , or
 <button value="<<">, or
 <button value="<=">, or
 <input value="<info:format left="Old" s1="<<" right="Young"/>"
.In a general way, we think these form is rightful, and we just think the "<" 
or "<<" as value of a attribute, not a tag open.  But the JSP Editor specified 
in jst cannot parse such fragments correctly. Please check it. Thanks!
Comment 1 David Williams CLA 2005-10-17 12:00:23 EDT
We've had similar requests, and I generally agree. 
But, it'll take some "deep" work to safely satisfy 
all situations. 
Thanks. 
Comment 2 ruisj CLA 2005-10-17 22:31:36 EDT
Thanks for your agreement on this. I hope for making something for this issue 
and I have been studing "ibmtools.zip" contributed by IBM and the subsequent 
WTP with great interest for almost half a year. Can you show me the 
file "file:/D:/eclipse.wtp/workspace/org.eclipse.wst.sse.core/DevTimeSupport/Sed
Model/HTMLTokenizer/devel/JSPTokenizer.jflex" described in comment of the 
class "org.eclipse.jst.jsp.core.internal.parser.internal.JSPTokenizer.java"? If 
for some reason it is discommodiously, would you like to tell me the intending 
time to resolve it?  Thanks and expect much!
Comment 3 Nitin Dahyabhai CLA 2005-10-19 15:51:28 EDT
The file is located in CVS in the org.eclipse.wst.sse.core plugin under 
DevTimeSupport/SedModel/HTMLTokenizer/devel/JSPTokenizer.jflex.  I regret saying
it but, given its complexity, the time to resolve it will be after 1.0.
Comment 4 Nitin Dahyabhai CLA 2009-04-19 23:13:30 EDT
I think this would require altering the rules for '<' within JSP quotes to behave differently when something other than a custom tag name is encountered.  Tricky stuff.
Comment 5 Ian Tewksbury CLA 2010-01-19 10:39:20 EST
This is still an issue.  Most likely needs an update to the JSPTokenizer.
Comment 6 Nick Sandonato CLA 2010-02-16 15:50:50 EST
*** Bug 126375 has been marked as a duplicate of this bug. ***
Comment 7 Sarika Sinha CLA 2010-03-29 11:29:29 EDT
Created attachment 163288 [details]
Patch to handle the "<" token inside attribute value
Comment 8 Sarika Sinha CLA 2010-03-29 11:31:08 EDT
This patch takes care of "<" inside attribut value in jsp. For html this is still a problem and needs to be taken care.
Comment 9 Sarika Sinha CLA 2010-04-13 05:28:26 EDT
Created attachment 164668 [details]
Patch for XMlTokenizer.Jflex to accept "<" inside attribute value in xml and html
Comment 10 Nick Sandonato CLA 2010-06-29 14:14:13 EDT
Hi, Sarika. Thanks for the patch. I think Bug 316223 took care of this in both HTML and JSPs. So I will mark this as a duplicate for now.

*** This bug has been marked as a duplicate of bug 316223 ***