×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Thanks Barry,
I've already specified the name test to be associated with my Hello class in
the Tomcat settings.  For my HelloWorld class I used the name heyworld and
that works just fine.  I'm keeping my classes in the
webapps/PVSW/WEB-INF/classes folder.  I didn't understand what you meant by
creating the link.  I already have my form.html which gets the information.
Are you suggesting I change that name to index.html?

Thanks for you help,
Eric


-----Original Message-----
From: BMIROW@aol.com [mailto:BMIROW@aol.com]
Sent: Wednesday, November 13, 2002 9:10 PM
To: java400-l@midrange.com
Subject: Re: ClassCastException Error in a Java Servlet

--
[ Picked text/plain from multipart/alternative ]
I don't think Tomcat can find your servlet. In the <form> you need to tell
where the servlet is.  In Tomcat it's usually something like <form
method="get" action="servlet/Hello">  You must have the word servlet first.
You are pointing to the http server, you don't need to.  The class is
usually
in the webapps/applname/WEB-INF/classes  folder. Where applname is whatever
you called the application. You should see the examples folder under
webapps.
 So copy a folder that's under webapps to whatever name you want lets say
test, move your html doc to webapps/test called index.html, and move your
class to webapps/test/WEB-INF/classes folder, change your action in the html
like above, then type <A
HREF="http://myas400.com:8000/test/index.html";>http://myas400.com:8000/test/
index.html</A>.  And give it a
try.

Barry


Try that.

Barry
_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.