- This topic has 9 replies, 7 voices, and was last updated 21 years, 2 months ago by support-michael.
-
AuthorPosts
-
qasimMemberThe JSP Editor is so slow under this release on Linux.
support-michaelKeymasterI assume by “slow” you mean opening a JSP Editor?
There are several known performance issues with the 2.6.3/3.6.3 JSP Editors that have been addressed and will be released very shortly as a service upgrade (today or tomorrow, Fri). One of the enhancements is improved startup speed, especially in the case where taglibs are involved.
Michael
MyEclipse Support
Anthony SanghaMemberMy JSP editing is also slow. I noticed that it is slow during different parts of the jsp file. For example the speed is slow when in <script> block and fast in a comment block.
Anthony Sangha
support-michaelKeymasterI’m curious are your script definitions of the following form or other?
<script language=”Javascript”>
<!–
…
–>
</script>Michael
MyEclipse Support
No OperationMemberjust my 2c:
It is mandatory to apply those comments, to keep a valid html syntax. Using a script tag does not change the document type from html to something else.
In addition – to keep a valid javascript syntax, single line comments must be added.
result looks like:
<script language=”Javascript”>
//<!–
…
//–>
</script>NOP
Anthony SanghaMembermy script definitions are <script> </script>
Scott AndersonParticipantYou need to be sure to comment them appropriately as suggested by NOP so they are both Javascript and HTML conformant. Once you do this, the speed of the editor should increase substantially since it won’t have to try to figure out whats going on in a technically malformed area.
–Scott
MyEclipse Support
AnsorgMemberSorry but I do not agree: this “HTML comments in Javascript blocks” crap is not necessary for a technically corect HTML and not correct Javascript syntax. HTML Comments do not belong in Javascript. We all should know, how comments in Javascript should look like.
This stuf only got introduced to hide the script contents from browsers that do not understand Javascript at all. That’s the only reason fir this and it’s no longer valid since a few years now.
why is the jsp editor dealing with Javascirpt blocks at all? Thea are not JSP and not HTML after all?
curious,
Jens
kaig1969Member@Ansorg wrote:
Sorry but I do not agree: this “HTML comments in Javascript blocks” crap is not necessary for a technically corect HTML and not correct Javascript syntax. HTML Comments do not belong in Javascript. We all should know, how comments in Javascript should look like.
Well, if you write
<script …>
if (a<b) alert(‘foo’);
</script>then the browser will see <b and try to interpret it as a tag. But it’s not.
That’s why people suggest the comments. Of course, you can also write “if (a < b) alert(‘foo’);”, but that’s less readable.
support-michaelKeymasterWe will soon undertake a major restructuring of the JSP/HTML editor to improve its ability to address the zillions of concerns that exist in such a tool as well as prepare for support of J2EE 1.4 and Java Server Faces. For the short term use NOP’s suggestion to avoid error highlighting problems.
Michael
MyEclipse Support -
AuthorPosts