Hi
I am new to struts and trying to run my first struts application, but getting error while try to compile my Formbeam, error message is :
========================================
C:\j2sdk1.4.1_02\bin\com\struts\LookupForm.java:6: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionForm;
^
C:\j2sdk1.4.1_02\bin\com\struts\LookupForm.java:7: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionMapping;
^
C:\j2sdk1.4.1_02\bin\com\struts\LookupForm.java:10: cannot resolve symbol
symbol : class ActionForm
location: class com.struts.LookupForm
public class LookupForm extends ActionForm{
^
C:\j2sdk1.4.1_02\bin\com\struts\LookupForm.java:30: cannot resolve symbol
symbol : class ActionMapping
location: class com.struts.LookupForm
public void reset(ActionMapping mapping, HttpServletRequest request) {
^
4 errors
============================================
code is :
<CODE>
package com.struts;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
public class LookupForm extends ActionForm{
private String symbol=null;
public String getSymbol(){
return (symbol);
}
public void setSymbol(String symbol){
this.symbol=symbol;
}
public void reset(ActionMapping mapping, HttpServletRequest request) {
this.symbol=null;
}
}
</CODE>
my struts-config.xml looks like this:
<CODE>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE struts-config
PUBLIC
"-//Apache Software Foundation //DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<message-resources parameter="com.struts.ApplicationResources" />
<form-bean name="lookupForm" type="com.struts.LookupForm" />
</struts-config>
</CODE>
and my we.xml looks like this:
<CODE>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtd/web-app_2_3.dtd">
<web-app>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
</web-app>
</CODE>
and I have put struts.jar, commons-beanutils.jar, commons-collections.jar, commons-dbcp.jar, commons-digester.jar, commons-logging.jar, commons.pool.jar, commons-validator.jar in WEB-INF/lib directory.