Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Processing Form Data

 
M. Imran
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,
I am using Servlet 2.3 and Tomcat 4.1, problem is that when I start to process form data, it simply give error message look like not found Hello.class. While I have properly set my dtd. Pls. tell me what is the problem. I also set my context properly in server.xml. pls. tell me what
I do or suggest me a site where I can get help. I am new to Servlets.
Thanks!
Imran
My dtd is
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name> World Application</display-name>
<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>=
<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
</web-app>
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's web.xml, not a dtd.

Hello.class isn't referenced in your web.xml anywhere, what is the exact error message?

And what does your Context entry look like in server.xml?
[ February 12, 2002: Message edited by: Mike Curwen ]
 
Hazel Sisson
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a useful tutorial about processing html form data using servlets:
http://java.sun.com/products/servlet/articles/tutorial/
Hope it helps!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic