|
Re: String literal is not properly closed by a double-quote [message #496532 is a reply to message #496503] |
Tue, 10 November 2009 13:17 |
|
Richard,
I just tried a file with only:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file=" MyFile.jsp " %>
And saw no errors. What version of WTP are you running? To find out in Eclipse go to "Help -> About Eclipse SDK", then click on the graphic button that says "WTP". There will then be a Version number listed at the bottom of the dialog window.
Also if you have not tried it yet close the file in question then select "Project -> Clean" and be sure "Clean all projects" is selected, press OK. Open the file again and see if your error is still there.
~Ian
Ian Tewksbury
WTP JavaScript Tools
IBM Rational
-----
“When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return.” ~Leonardo da Vinci
|
|
|
|
|
Re: String literal is not properly closed by a double-quote [message #496556 is a reply to message #496548] |
Tue, 10 November 2009 14:20 |
|
Mauro Molinari wrote on Tue, 10 November 2009 08:55 | Maybe the error is in myfile.jsp, but it is reported also in the JSP
where you are including it?
|
Agreed. I am able to reproduce what Richard is seeing by doing the following:
Test.jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file=" MyFile.jsp " %>
MyFile.jsp:
In this case the error is reported on the "; in the MyFile.jsp and then the validation error is carried over to the Test.jsp and reported on the imported file.
Richard, check your imported file and see if you can find the error in there.
~Ian
Ian Tewksbury
WTP JavaScript Tools
IBM Rational
-----
“When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return.” ~Leonardo da Vinci
|
|
|
|
|
Re: String literal is not properly closed by a double-quote [message #496826 is a reply to message #496762] |
Wed, 11 November 2009 14:02 |
|
Richard,
There appears to actually be a bug here. It definitely has something to do with the "
For the included file I also tried:
<%!
public void makeXMLSafeString(String aTagFragment) {
StringBuffer result = new StringBuffer();
result.append("""");
}
%>
and the error message was: Syntax error on token """", delete this token
This tells me there is something going wrong with the translation. Could you please open a bug on WTP Source Editor. Please mention this thread along with your summery of the problem.
Ian Tewksbury
WTP JavaScript Tools
IBM Rational
-----
“When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return.” ~Leonardo da Vinci
|
|
|
|
Powered by
FUDForum. Page generated in 0.04320 seconds