Hi i m vidhya .
i m getting the following exception when i m clicking on
jsp. here i m posting my jsp and xml files.
Can anyone help me .
my JSP
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic"%>
<html:html>
<head>
<title><h1>PRODUCT</h1></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- **** colour scheme stylesheet **** -->
<link rel="stylesheet" type="text/css" href="css/colour.css" />
<link rel="stylesheet" type="text/css" href="css/tabs.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/scrollable.css" />
<script src="js/product.js" language="javascript" type="text/javascript"></script>
<script src="js/common.js" language="javascript" type="text/javascript"></script>
<script src="js/ajaxFunctions.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<form name="productForm">
<div id="main" style="height: 100%">
<div id="content" style="height: 600px">
<div id="column2" style="height: 200px">
<div id="searchDiv" align="center" style="height: 50px;">
<table cellpadding="0" cellspacing="0" width="90%" border="0"
id="searchTable" align="center">
<div class="subdataHeading" id="masterForm">
PRODUCT ID
<html:text property="productId"/>
<bean:write name="productForm" property="productId"/>
<html:button styleClass="bglobal" property="buttonSearch"
value="Search" onclick="fetchData()">Search</html:button>
<html:button styleClass="bglobal" property="buttonClear"
value="Clear" onclick="clearData()">Clear</html:button>
<html:button styleClass="bglobal" property="buttonAdd"
value="AddProduct" onclick="clearData()">AddProduct</html:button>
</div>
</table>
</div>
<!-- end of search Div -->
<div id="tableContainer" style="height: 300px;">
<table cellpadding="0" cellspacing="0" width="90%" border="0"
align="center">
<tr>
<td width="150px" class="subdataHeading" >PRODUCT CATEGORY : </td>
<td>
</td>
</tr>
<tr height="10px"/>
<tr>
<td width="150px" class="subdataHeading" >PRODUCT ID : </td>
<td><html:text property="productId" styleClass="dText"
style="width:15em" maxlength="15" />
</td>
</tr>
<tr height="10px"/>
<tr>
<td width="150px" class="subdataHeading">PRODUCT NAME : </td>
<td><html:text property="productName" styleClass="dText"
style="width:15em" maxlength="15" />
</td>
</tr>
<tr height="10px"/>
<tr>
<td width="150px" class="subdataHeading">PRODUCT DESC :</td>
<td><html:text property="productName" styleClass="dText"
style="width:15em" maxlength="15" />
</td>
</tr>
<tr height="10px"/>
<tr>
<td width="150px" class="subdataHeading">PRODUCT PRICE :</td>
<td><html:text property="productPrice" styleClass="dText"
style="width:15em" maxlength="15" />
</td>
</tr>
<tr height="40px"/>
<tr>
<td> <html:button property="buttonLogin" styleClass="bglobal"
value="SAVE" onclick="saveProduct()">SAVE</html:button> </td>
<td> <html:button property="buttonClear" styleClass="bglobal"
value="CLEAR" onclick="clearData()">CLEAR</html:button></td>
</tr>
</table>
</div> <!-- end of dataDiv -->
</div>
</div>
</div>
</form>
</body>
</html:html>
Struts-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<struts-config>
<form-beans>
<form-bean name="productForm" type="com.form.product.ProductForm" />
<form-bean name="loginForm" type="com.form.login.LoginForm" />
<form-bean name="salesForm" type="com.form.sales.SalesForm" />
<form-bean name="stockForm" type="com.form.stock.StockForm" />
</form-beans>
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
<set-property property="moduleAware" value="true" />
</plug-in>
<action-mappings>
<action input="/jsp/login.jsp" name="loginForm" path="/Login"
type="com.action.login.LoginAction" scope="request" parameter="requestTo" >
<forward name="success" path="/jsp/success.jsp" />
<forward name="failure" path="/jsp/failure.jsp" />
</action>
<action name="stockForm" path="/stock"
type="com.action.stock.StockAction" scope="request" parameter="requestTo" >
<forward name="success" path="stocks"/>
</action>
<action name="productForm" path="/product"
type="com.action.product.ProductAction" scope="request" parameter="requestTo" >
<forward name="success" path="products"/>
<forward name="failure" path="/jsp/ErrorPage.jsp" />
</action>
<action name="salesForm" path="/sales"
type="com.action.sales.SalesAction" scope="request" parameter="requestTo" >
<forward name="success" path="sales"/>
<forward name="office" path="office"/>
</action>
<action path="/errorPage" type = "com.action.login.ErrorAction" scope="request">
<forward name = "ErrorPage" path = "/jsp/ErrorPage.jsp" />
</action>
</action-mappings>
<message-resources parameter="com.common.resources.ApplicationResource" />
<!-- <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in> -->
</struts-config>
Web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>Online Accounting</display-name>
<
servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>/jsp/login.jsp</welcome-file>
</welcome-file-list>
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>