I have created a JSP page which work fine in my local machine, but when i deployed the same code in the live server, it keeps throwing error. I couldn't find the root cause since both machine are configured with same JDK 1.6 and tomcat 5.5 but different OS, one is Windows2003(live) and another is Win7(local). Below is the part where error is generated (Treemap Initialization) or at least i think so :
<%@ page import = "java.util.*"%>
<%
class Row{
String val_feature;
public Row (String val_feature) {
this.val_feature = val_feature;
}
}
Map<String, List<Row>> rowmap = new TreeMap<String, List<Row>>();
%>
Error :
Syntax error on token "<", ( expected
Syntax error, insert ")" to complete Expression
Syntax error on token "<", ( expected
Syntax error on token "(", invalid Expression
Can anyone suggest why this is happening or how to troubleshoot this error. Thanks a lot! Any suggestion is much appreciated.