Hi..
I am running web application using NetBeans ID...
While i am running this code i got an error like this...
java.lang.NoClassDefFoundError: org/netbeans/modules/web/project/ant/JspCSingle
Exception in thread "main"
the code is....
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.myapp.struts.sample" %>
<%@ page import="com.myapp.struts.userForm" %>
<%@ page import="java.util.Iterator" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>View Books</title>
</head>
<body>
<%ArrayList allCols = null;%>
<table>
<tr>
<td>
USER NAME
</td>
<td>
PASSWORD
</td>
</tr>
<%
sample s=new sample();
userForm u=new userForm();
allCols=s.getAllCols();
Iterator colIterator = allCols.iterator();
while (colIterator.hasNext()) {
u = (userForm)colIterator.next();
String name=u.getName();
String pwd=u.getPwd();
%>
<tr>
<td>
<%=pwd%>
</td>
<td>
<%=name%>
</td>
</tr>
<%
}
%>
</table>
</body>
</html>
Regards
Kaleesh