Closed
Bug 153019
Opened 23 years ago
Closed 23 years ago
Server-side tag-based code is mangled into HTML meta chars
Categories
(SeaMonkey :: Composer, defect)
Tracking
(Not tracked)
People
(Reporter: ken2006, Unassigned)
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc3)
Gecko/20020523
BuildID: 2002052306
The example code is be "Java Server Tag Libary" format
(http://jakarta.apache.org/taglibs/). (The Taglibs chief design goal was to
simplfy separation of web application logic from display by allowing the site
appearance designer to move tag entities in the GUI editor of their choice).
This problem also occurs with JSP code (Java Server Pages, which JSTL is a
hybrid of).
Mozilla leaves some tags alone, but other *crucial* Java tags are always
destroyed ("<%@ taglib....>, <! private Test >"), rendering Mozilla completely
unsable for Java composition. This is even with the "Composer -> Retain Original
Source Formatting" option checked.
Reproducible: Always
Steps to Reproduce:
1.Paste sample code into a file.
2.Open with composer
Actual Results: Notice that some < and > chars are converted to HTML meta chars
(< >, etc).
Expected Results: Any tag that is not "known" should simply be left alone, IMHO.
<%@ taglib uri="http://jakarta.apache.org/taglibs/dbtags" prefix="sql" %>
<%! private DBConnectionManager connMgr; Connection con;%>
<%-- open a database connection --%>
<sql:connection id="conn1">
<sql:url>jdbc:mysql://localhost/test</sql:url>
<sql:driver>org.gjt.mm.mysql.Driver</sql:driver>
</sql:connection>
<%-- open a database query --%>
<table>
<sql:statement id="stmt1" conn="conn1">
<sql:query>
select id, name, description from test_books
order by 1
</sql:query>
<%-- loop through the rows of your query --%>
<sql:resultSet id="rset2">
<tr>
<td><sql:getColumn position="1"/></td>
<td><sql:getColumn position="2"/></td>
<td><sql:getColumn position="3"/>
<sql:wasNull>[no description]</sql:wasNull></td>
</tr>
</sql:resultSet>
</sql:statement>
</table>
<%-- close a database connection --%>
<sql:closeConnection conn="conn1"/>
Comment 1•23 years ago
|
||
*** This bug has been marked as a duplicate of 59985 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•