There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Web Design & Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox format freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware motherboard mouse network networking outlook 2007 power printer problem ram router screen slow sound spyware trojan usb virus vista vista 32-bit windows windowsxp windows xp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
need help on web.xml


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
skyhigh007's Avatar
Senior Member with 417 posts.
 
Join Date: Jun 2004
23-Jun-2004, 11:27 PM #1
need help on web.xml
hi

im currently trying to test the web server jakarta tomcat and I implement some servlet. is this correct for web.xml ? when i try to run the tomcat server with this implementation in the web.xml, the server will generate severe erros, Ex. Error getConfigured ... There is no problem with server running when i take out the servlet section for formprocesor and the mapping..
why?



<?xml version="1.0" encoding="ISO-8859-1" ?>
<web-app>

<servlet>
<servlet-name>helloworld</servlet-name>
<servlet-class>helloworld </servlet-class>
</servlet>

<servlet>
<servlet-name>formProcessor</servlet-name>
<servlet-class>formProcessor</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>helloworld</servlet-name>
<url-pattern>/hey-you</url-pattern>
</servlet-mapping>


<servlet-mapping>
<servlet-name>formProcessor></servlet-name>
<url-pattern>/you</url-pattern>
</servlet-mapping>

</web-app>
oblivious69's Avatar
Senior Member with 137 posts.
 
Join Date: Jun 2004
Experience: Advanced
24-Jun-2004, 11:06 PM #2
the web.xml looks ok. Are the formProcessor.class files in WEB-INF/classes?
skyhigh007's Avatar
Senior Member with 417 posts.
 
Join Date: Jun 2004
24-Jun-2004, 11:20 PM #3
yes, they are. Is there something that i need to configure in the server.xml? or what?
skyhigh007's Avatar
Senior Member with 417 posts.
 
Join Date: Jun 2004
28-Jun-2004, 08:55 PM #4
i solved my own problem. The problem was that the Action= " formProcessor" in html file did not match <url-pattern>/you<url-pattern> in the web.xml file

The url-pattern should also be fromProcessor.

Thank you for those was were trying to solve my problem
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:08 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.