RE: [Resource Not available] Newbie question
You would also need to tell us your servlet-mapping and the directory of the file that the form is in. Tim -Original Message- From: Michael Drewitz [mailto:[EMAIL PROTECTED] Sent: 10 June 2004 11:18 To: [EMAIL PROTECTED] Subject: [Resource Not available] Newbie question Hi all, if I try to access the below described servlet from a html- or jsp-file I get Http 404 Error - Resource not available. form action=AVG_ValuesServlet method=get name=avg_values_form ../form I have tried it with the package-name as prefix and the prefix servlet/, but nothing works. Whats wrong? The class-file is located in the defined directory under ../web-inf/classes. This is the only element of web.xml: servlet servlet-nameAVG_ValuesServlet/servlet-name servlet-classorg.haw.weather.web.AVG_ValuesServlet/servlet-class /servlet Thanks in advance, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: [Resource Not available] Newbie question
Thats the servlet-mapping. servlet-mapping servlet-nameAVG_ValuesServlet/servlet-name url-patternorg/haw/weather/web/AVG_ValuesServlet/url-pattern /servlet-mapping I've tried the pattern /AVG_ValuesServlet also, but it doesn't work. The index.html is in the root of the application(in the parent-directory of the Web-inf directory). You would also need to tell us your servlet-mapping and the directory of the file that the form is in. Tim if I try to access the below described servlet from a html- or jsp-file I get Http 404 Error - Resource not available. form action=AVG_ValuesServlet method=get name=avg_values_form ../form I have tried it with the package-name as prefix and the prefix servlet/, but nothing works. Whats wrong? The class-file is located in the defined directory under ../web-inf/classes. This is the only element of web.xml: servlet servlet-nameAVG_ValuesServlet/servlet-name servlet-classorg.haw.weather.web.AVG_ValuesServlet/servlet-class /servlet Thanks in advance, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: [Resource Not available] Newbie question
Hi, Thats the servlet-mapping. servlet-mapping servlet-nameAVG_ValuesServlet/servlet-name url-patternorg/haw/weather/web/AVG_ValuesServlet/url-pattern /servlet-mapping I've tried the pattern /AVG_ValuesServlet also, but it doesn't work. What happened? The latter is a much better mapping. The index.html is in the root of the application(in the parent-directory of the Web-inf directory). Case matters: it should be WEB-INF and not Web-inf. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]