Hi..
I am running web application using NetBeans ID...
While i am running this code i got an error like this...
java.lang.NoCla ssDefFoundError : org/netbeans/modules/web/project/ant/JspCSingle
Exception in thread "main"
the code is....
<%@page contentType="te xt/html"%>
<%@page pageEncoding="U TF-8"%>
<%@ page import="java.ut il.ArrayList" %>
<%@ page import="com.mya pp.struts.sampl e" %>
<%@ page import="com.mya pp.struts.userF orm" %>
<%@ page import="java.ut il.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.getAl lCols();
Iterator colIterator = allCols.iterato r();
while (colIterator.ha sNext()) {
u = (userForm)colIt erator.next();
String name=u.getName( );
String pwd=u.getPwd();
%>
<tr>
<td>
<%=pwd%>
</td>
<td>
<%=name%>
</td>
</tr>
<%
}
%>
</table>
</body>
</html>
Regards
Kaleesh
I am running web application using NetBeans ID...
While i am running this code i got an error like this...
java.lang.NoCla ssDefFoundError : org/netbeans/modules/web/project/ant/JspCSingle
Exception in thread "main"
the code is....
<%@page contentType="te xt/html"%>
<%@page pageEncoding="U TF-8"%>
<%@ page import="java.ut il.ArrayList" %>
<%@ page import="com.mya pp.struts.sampl e" %>
<%@ page import="com.mya pp.struts.userF orm" %>
<%@ page import="java.ut il.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.getAl lCols();
Iterator colIterator = allCols.iterato r();
while (colIterator.ha sNext()) {
u = (userForm)colIt erator.next();
String name=u.getName( );
String pwd=u.getPwd();
%>
<tr>
<td>
<%=pwd%>
</td>
<td>
<%=name%>
</td>
</tr>
<%
}
%>
</table>
</body>
</html>
Regards
Kaleesh
Comment