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
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
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
]
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
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
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
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
/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
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
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
: 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
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
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
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
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.
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
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
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.'
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
19 matches
Mail list logo