- This topic has 3 replies, 2 voices, and was last updated 13 years, 9 months ago by
support-joy.
-
AuthorPosts
-
EricLamMemberWe tried to migrate a RAD7 project to MyEclise blue 8.6. However, the “Genuitec JavaScript Validator” cannot handle double quotes well and some errors will be displayed in Problems tab. We tried to change the double quotes to single quotes and the errors will be solved. The error message is “missing ; before statement”
Is there has any way to fix the errors without changing the source code?
Errors will be displayed in Problems tab
document.calform.salutation.value = “<%=(((String[]) h.get(“salutation”))==null)? “” : ((String[]) h.get(“salutation”))[0]%>“;
No error
document.calform.salutation.value = ‘<%=(((String[]) h.get(“salutation”))==null)? “” : ((String[]) h.get(“salutation”))[0]%>’;Sample code:
<%@ page language=”java” import=”java.util.*” pageEncoding=”ISO-8859-1″%>
<%
Map h = (HashMap) session.getAttribute(“paramMap”);
%><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<script language=”JavaScript”>
function test() {
document.calform.salutation.value = “<%=(((String[]) h.get(“salutation”))==null)? “” : ((String[]) h.get(“salutation”))[0]%>”;
}
</script>
</head><body>
<form id=”Form1″ name=”calform” onsubmit=”” method=”post”>
<select name=”salutation” disabled=”disabled”>
<option value=”test”>test</option>
<option value=”test1″>test1</option>
</select>
</form>
</body>
</html>
Best regards,
Eric Lam
support-joyMemberEric Lam,
I am afraid, I cannot replicate this issue. Please see attached screenshot. Can you answer below queries to help me investigate –
1. Can you copy and paste your installation details? Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details
2. Can you attach a screenshot of the issue you are facing? This would help me get a visual. Here is an FAQ on how to upload images – https://www.genuitec.com/forums/topic/troubleshooting-how-to-upload-attachments-on-forum/&highlight=
3. Can you perform a -clean. Please refer – https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/ and restart your IDE
4. If the issue persists, please clear your .log file located at [your workspace dir]/.metadata/.log, replicate the issue and attach the file
5. Have you added any 3rd party plugins? If yes, please list them here and attach a screenshot of MyEclipse Configuration Center > Software tabAttachments:
You must be logged in to view attached files.
EricLamMemberDear Joy,
We have fixed the problem by using the function “enhance RAD project to work with MyEclipse” again. The steps are
1. Open the workspace by RAD7
2. Config the server runtime and JRE with WAS v6.1
3. Open by MyEclipse blue v8.6
4. “enhance RAD project to work with MyEclipse” againThanks,
Eric Lam
support-joyMemberDear Eric Lam,
Good to hear you are all set. Thank you for sharing your notes here, this would help other forum users.
Best,
-
AuthorPosts