Re: TC 4.0 newbie - servlet app won't run

2001-11-27 Thread David Smith
4.0 newbie - servlet app won't run Thanks for your reply Scott, and thanks to your and Micael's responses I _believe_ I understand the relationship between the servlet naming/mapping and the associated html. As Micael noted, one could put pudding in the url-pattern as long as the html

Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Mark
Thanks for your reply Scott, and thanks to your and Micael's responses I _believe_ I understand the relationship between the servlet naming/mapping and the associated html. As Micael noted, one could put pudding in the url-pattern as long as the html was setup as ACTION=pudding. But... how do

Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Micael Padraig Og mac Grene
Just a preemptive question, Mark. Is your servlet's class object really called myservlet.class rather than, say, MyServlet.class? -Original Message- From: Mark [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Monday, November 26, 2001 7:00 AM Subject: Re: TC 4.0 newbie

Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Micael Padraig Og mac Grene
] To: Tomcat Users List [EMAIL PROTECTED] Date: Monday, November 26, 2001 7:00 AM Subject: Re: TC 4.0 newbie - servlet app won't run Thanks for your reply Scott, and thanks to your and Micael's responses I _believe_ I understand the relationship between the servlet naming/mapping and the associated

Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Micael Padraig Og mac Grene
the old days about referencing servlets in a package called servletor something? Micael -Original Message- From: Mark [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Monday, November 26, 2001 7:00 AM Subject: Re: TC 4.0 newbie - servlet app won't run Thanks for your reply

Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Mark
to the pattern /servletToJsp. Micael -Original Message- From: Mark [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Monday, November 26, 2001 7:00 AM Subject: Re: TC 4.0 newbie - servlet app won't run Thanks for your reply Scott, and thanks to your and Micael's responses I

Re: TC 4.0 newbie - servlet app won't run (correction)

2001-11-26 Thread Mark
PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Monday, November 26, 2001 7:00 AM Subject: Re: TC 4.0 newbie - servlet app won't run Thanks for your reply Scott, and thanks to your and Micael's responses I _believe_ I understand the relationship between the servlet naming/mapping

Re: TC 4.0 newbie - servlet app won't run (correction)

2001-11-26 Thread Micael Padraig Og mac Grene
/work/. Micael -Original Message- From: Mark [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Monday, November 26, 2001 10:15 AM Subject: Re: TC 4.0 newbie - servlet app won't run (correction) Correction, using POST results in a 405-Resource not allowed due

Re: TC 4.0 newbie - servlet app won't run (correction)

2001-11-26 Thread Micael Padraig Og mac Grene
resolve everything. Micael -Original Message- From: Mark [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Monday, November 26, 2001 10:15 AM Subject: Re: TC 4.0 newbie - servlet app won't run (correction) Correction, using POST results in a 405-Resource not allowed due

Re: TC 4.0 newbie - servlet app won't run (correction)

2001-11-26 Thread Micael Padraig Og mac Grene
Message- From: Mark [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Monday, November 26, 2001 7:00 AM Subject: Re: TC 4.0 newbie - servlet app won't run Thanks for your reply Scott, and thanks to your and Micael's responses I _believe_ I understand the relationship between

Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Micael Padraig Og mac Grene
: Monday, November 26, 2001 9:58 AM Subject: Re: TC 4.0 newbie - servlet app won't run The examples you mentioned are the JSPs examples. I realize JSPs compile to servlets, but what about the straight up HelloWorldExample servlet? I didn't see mapping for that or the other servlet (vs. JSP

Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Micael Padraig Og mac Grene
newbie - servlet app won't run First, there is more than one way to not only skin a cat but also to access a servlet. Let's look at a non-web.xml way. A.We can do it via URL by prepending the servlet's class name with /servlet/. Thus, we can access it as typically noted by http

RE: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread William Tansill
a while longer, but I believe that that's the answer to your question. I'm struggling to understand as a newbie myself... -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Monday, November 26, 2001 10:03 AM To: Tomcat Users List Subject: Re: TC 4.0 newbie - servlet app won't

Re: TC 4.0 newbie - servlet app won't run

2001-11-21 Thread Micael Padraig Og mac Grene
Your pattern does not occur in your post. So, the pattern will not send the post to the servlet. If you make your post anything and make your pattern anything, that will work. Get my drift? The post is just some text that should match the pattern and that will then refer the app to your

Re: TC 4.0 newbie - servlet app won't run

2001-11-21 Thread Mark
Sorry, I'm not following you. What pattern are you referring to? Again, this app (and the html FORM/POST snippet I included) has worked under Forte and VAJ in the past. And I've looked at other Tomcat examples that look very much like what I'm doing, eg.

RE: TC 4.0 newbie - servlet app won't run

2001-11-21 Thread Wouter Boers
I think your problem might be this: servlet-mapping servlet-namemyservlet/servlet-name url-pattern/classes/url-pattern /servlet-mapping AFAIK the url-pattern should be: url-pattern/myservlet/url-pattern to map http:///myapp/myserlvet to you servlet

Re: TC 4.0 newbie - servlet app won't run

2001-11-21 Thread Galbayar
FORM ACTION=servlet/myservlet method=POST - Original Message - From: Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 22, 2001 04:42 Subject: TC 4.0 newbie - servlet app won't run I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run the example

Re: TC 4.0 newbie - servlet app won't run

2001-11-21 Thread Scott Ahten
Mark, The servlet tag is used to assign a name to a particular servlet class file. servlet servlet-namemyservlet/servlet-name servlet-classmyservlet/servlet-class /servlet This would attempt to assign the name 'myservlet' to the class 'myservlet.class.'

Re: TC 4.0 newbie - servlet app won't run

2001-11-21 Thread Micael Padraig Og mac Grene
Mark, Scott is right, of course, but there is no reason to use a url when in fact you are just using a tag or a name. It is misleading, in my opinion. In Scott's code, substituting form action=pudding method=post for form action=/servlet/servlet method=post works just as well as long as you