| Author |
Message |
|
|
Post subject: Non visual elements in design mode not displayed correctly
Posted: Mar 14, 2008 - 02:43 AM
|
|
Registered Member

Joined: Mar 13, 2008
Posts: 4
|
|
I installed myeclipse 6.0.1 GA full install with Windows XP SP2.
According to the html designer tutorial, Visual design of JSP documents using the JSP Web Designer differs from HTML page design in that:
3. Visual artifacts for JSP scripting elements such as declarations, expressions, and scriptlets and non-visual JSP tags are optionally displayed inline with JSP, Struts and JSF UI controls. These artifacts can be manipulated much like UI controls in the design canvas.
Non-visual elements are displayed in outer dimmed grey box mixed with visual elements in figure.
But, When I code scriptlets in .jsp, in design mode the code is displayed like a simple html text!
Like this:
[Design Mode]
This is my JSP page.
out.println("Hello");
[Source Mode]
<body>
This is my JSP page.<br>
<% out.println("Hell"); %>
</body>
No outer dimmed grey box!
What happend? Is this a known bug? or Any hidden option to show/hide non visual element?
Thanks in advance for your help. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 14, 2008 - 12:43 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8012
|
|
I was unable to reproduce this issue at my end.. I got the value printed in a grey box. Can you help me reproduce this issue at my end? What steps should I follow |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 14, 2008 - 12:44 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8012
|
|
Can you switch to a new workspace and test this again. Does it work ? |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: Why... Head ache...
Posted: Mar 14, 2008 - 08:44 PM
|
|
Registered Member

Joined: Mar 13, 2008
Posts: 4
|
|
Thanks for your quick response.
Switching to a new workspace does not work.
I tested this problem with clean fresh installed XP, Vista, but I failed.
In fact, I use multibyte OS, Korean Windows.
Is Myeclipse incompatible with multibyte windows?
I think not so, cause you have japanese product.
My test step is as follows,
1. Fresh install Windows XP2
2. Install Myeclipse 6.0.1 GA Full release
3. New web project 'Hello World'
4. open index.jsp under WebRoot
5. insert scriptlet '<% out.println("hello"); %>' in source area
That's all. I did not touch any options!
Below is index.jsp,
-----------------------------------------------------------------------------------------------------------
<%@ page language="java" import="java.util.*" pageEncoding="EUC-KR"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
This is my JSP page. <br>
<% out.println("hello"); %>
</body>
</html>
-----------------------------------------------------------------------------------------------------------
This project is deployed well, and work sucessfully in tomcat, but has view problem in design mode.
I'm not sure that it is a clue, but there is a orange wave underline in first bracket of '<% out.println("hello"); %>' .
And mouse pointing shows popup that reads 'Invalid character used in text string( < ).'
Is this problem's cause?
I don't know why this happens.
The orange wave underline exist some other places above source.
jsp : The word 'jsp' is not correctly spelled
rel : The word 'rel' is not correctly spelled
stylesheet[/] : The word 'stylesheet' is not correctly spelled
[u]css[/] : The word 'css' is not correctly spelled
[u]href : The word 'href' is not correctly spelled
css : The word 'css' is not correctly spelled
What a foolish validation!
I want to use good feature like design mode. That helps coding visually.
Please help me! |
|
|
| |
|
|
|
 |
|
|
Post subject: Oh... No...
Posted: Mar 15, 2008 - 07:06 PM
|
|
Registered Member

Joined: Mar 13, 2008
Posts: 4
|
|
At last I found this issue's cause.
When I installed myeclipse in english windows xp sp2, all the feature works correctly.
Unfortunately, this is genuitec's fault.
Your product is not compatible with multibyte os.
I thoroughly scaned preference's options, changed that options like this way and that.
I changed all encoding option to utf-8 ( It is best choice in i18n, you know), it was useless.
I wasted much time to investigate this problem.
Please correct this bug as soon as possible! |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Oh... No...
Posted: Mar 17, 2008 - 03:29 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8012
|
|
| Quote: |
Please correct this bug as soon as possible!
|
I'll make a note of this and try to get this rectified asap. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
|