Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-05-2007, 04:18 AM
Member
 
Join Date: Jul 2007
Posts: 41
tommy is on a distinguished road
Status Code 404
I'm calling that servlet using an html code. The html page comes up but it fails to call the servlet and I get a Status Code 404.

I have this in my post method in the html code:
Code:
<form action="http://localhost:8080/servlets-exmples/servlet/Servlr" method="post"> to call the servlet.
My html is saved in:
Code:
C:\Tomcat\webapps\servlets-examples
Servlet is saved:
Code:
C:\Tomcat\webapps\servlets-examples\WEB-INF\classes
Can somebody tell me where am I going wrong?

thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-06-2007, 09:52 PM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
Try this in your html form:
Code:
<form action="http://localhost:8080/servlets-exmples/GreetingServlet" method="post">
If this doesn't work, write <servlet> and <servlet-mapping> entries in your servlets-examples\WEB-INF\web.xml file. Then, restart the server. And please tell the result.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help fixing my code.. or non code? MrHuggykins New To Java 1 03-19-2008 11:12 PM
Applet with scrolling status line Java Tip Java Tips 0 03-10-2008 03:53 PM
HTTP Status 404 - Servlet action is not available onceuponatime Java Servlet 1 12-11-2007 05:29 PM
Hide hyperlink address on status bar simon JavaServer Pages (JSP) and JSTL 2 07-24-2007 11:34 AM
Generating Code Automatically Using Custom code Template In Eclipse JavaForums Eclipse 1 04-26-2007 04:52 PM


All times are GMT +3. The time now is 06:17 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org