Hi,
I also have account on webappcabaret. I have just uploaded
my web app (unfinished yet), the pickiest part seems to
adjust all links.
Although my guestbook servlet with usage of MySQL DB started
straight away correctly, here's how I did that
I think /servlet/myServlet is wrong invocation, since this should be default mapping (they use
Tomcat, I do not know which server
you have chosen). I have Tomcat on my home PC, so I played a
bit with it. This should work if you would place your servlet code into default root directory, I assume you place into your
context, so this is why it is not working. You have to download WEB-INF/web.xml file and edit accordingly:
<servlet>
<servlet-name>name_your_servlet_here</servlet-name>
<servlet-class>actual_class_file_name</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>servlet_name_of_above</servlet-name>
<url-pattern>/invocation_path</url-pattern>
</servlet-mapping>
name_your_servlet means that you can put any name here, like
myCoolServlet
actual_class_file - put exact class name
servlet_name_of_above - whatever you named it above
/invocation_path - this is how you will link to your servlet,
eg. your context is /my_context, then to invoke servlet you
put link in your html page /my_context/invocation_path
invocation_path can be anything, not related with actual
servlet name etc.
mail me if any questions, I spent whole day while trying to
make it work on my home PC.
The last. If this works, give me a favour, go to
http://www.webappcabaret.com/theyap/code4.htm and sign my guestbook (you can freely get Guestbook1 package
there, Guestbook2 not ready yet)
hope this helps.