Thanks merrill,
I have made some changes as you said and I am using struts 1.3.8 version, but what changes should I do it in my web.xml(I think I have to make some changes in <taglib>
and struts-config.xml. They are as follows;
web.xml (what should I write in taglib tag now)
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<
servlet>
<servlet-name>hooha</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>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>hooha</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/tlds/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tlds/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location>
</taglib>
</web-app>
struts-config.xml (Does it also required some changes)my file is as follows:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<!-- Global forward configuration - sending control to this jsp -->
<global-forwards>
<forward name="search" path="/search.jsp"/>
</global-forwards>
<form-beans>
<form-bean name="searchForm" type="com.example.model.SearchForm"/>
</form-beans>
<action-mappings>
<action path="/search" type="com.example.controller.SearchAction" name="searchForm" scope="request" validate="true" input="/search.jsp">
</action-mappings>
<!-- Message Resources Configuration -->
<message-resources parameter="com.example.resources.ApplicationResources"/>
</struts-config>
And Merrill, all *.java files are compiled and placed in their respective folders. I need your help again to get out of this bug. I am finding very hard to get over this struts. Although, I am not bad either at jsps and servlets, but I am finding very hard to get over struts. Could you guide me how should I approach over the struts so that I face least problems. Thanks again for your help.
regards.