Hi, I am a newbie to
Struts. So, can anyone please help me with setting up the environment.
I steps I followed are as follows:
1) Uncompress the zip file of the binaries
2) Placed the lib directory in C:\Tomcat 4.1\webapps\examples\WEB-INF
3) Created a web.xml in C:\Tomcat 4.1\webapps\examples\WEB-INF
The contents of web.xml are :
[
CODE] <?xml version = "1.0" encoding = "ISO-8859-1" ?>
<!DOCTYPE web-app
PUBLIC "-//Sun Micro Systems Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/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]
4) Created struts-config.xml in C:\Tomcat 4.1\webapps\examples\WEB-INF directory.
The contents of it are:
[code] <?xml version = "1.0" encoding = "ISO-8859-1" ?>
<!DOCTYPE web-app
PUBLIC "-//Sun Micro Systems Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web_app_2_3.dtd">
<struts-config>
</struts-config> [/code]
5) I also placed struts-html.tld in the same directory C:\Tomcat 4.1\webapps\examples\WEB-INF.
Please let me know if there is anything wrong or anything more that I have to do as
Tomcat shuts down when I start it.