org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 1 in the generated java file The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files An error occurred at line: 1 in the generated java file The type java.util.regex.Pattern cannot be resolved. It is indirectly referenced from required .class files An error occurred at line: 1,928 in the jsp file: /index.jsp Pattern cannot be resolved to a type
INDEX.JSP
Pattern cannot be resolved to a type
{
if (mQuery != null && !mQuery.equals("") )
{
Pattern pSpaces = Pattern.compile("\"");
Matcher mat = pSpaces.matcher(mQuery);
if(mat.find()) mQuery = mat.replaceAll(""");
}
enter code here
An error occurred at line: 1,928 in the jsp file: /index.jsp Pattern cannot be resolved
{
if (mQuery != null && !mQuery.equals("") )
{
Pattern pSpaces = Pattern.compile("\"");
Matcher mat = pSpaces.matcher(mQuery);
if(mat.find()) mQuery = mat.replaceAll(""");
}
An error occurred at line: 1,928 in the jsp file: /index.jsp
Pattern cannot be resolved
1925: {
1926: if (mQuery != null && !mQuery.equals("") )
1927: {
1928: Pattern pSpaces = Pattern.compile("\"");
1929: Matcher mat = pSpaces.matcher(mQuery);
1930: if(mat.find()) mQuery = mat.replaceAll(""");
1931: }
/index.jsp File String escapeText(String mQuery)
{
if (mQuery != null && !mQuery.equals("") )
{
Pattern pSpaces = Pattern.compile("\"");
Matcher mat = pSpaces.matcher(mQuery);
if(mat.find()) mQuery = mat.replaceAll(""");
}
return mQuery;
}
I am using Tomcat 6, Java 1.8.0.19*
Any ideas???
Aucun commentaire:
Enregistrer un commentaire