While trying to convert our JSP .92 code, we
happen to have quite a lot of error messages
javax.servlet.ServletException:
D:\JRun\jsm-default\services\jse\servlets\jsp\assemblee\questionorale.java:38:
Invalid character in input.
File fichier = new File
("d:\\Serveur\\wwwroot\\Add-\r\nOnline\\assemblee\\questionorale\\");String
listeFichiers [] = fichier.list (); \r\nfor (int
i=0;i<10;i++)\r\n
{ \r\n System.out.println ("d:\\Serveur\\wwwroot\\Add-
{ \r\n System.out.println ("d:\\Serveur\\wwwroot\\Add-
Apparently, it comes from the double backslash
at the end of the path string in the File declaration. It seems that the \ char
(\\) is not interpreted before the finishing ".
Then the path string is considered not ended,
and the rest of the code's carriage return is replaced by \r\n, and the string
is still running. Each following " is interpreted as a begining/end of a
string. I happen to have as much as 60 errors on 5 code lines.
To me, it might be a bug, because AFAIK, there's
nothing about this in the specs, and it used to work with the previous
versions.
Sylvain