Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 18th, 2003, 03:24 AM
Registered User
Join Date: Oct 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default servlet example-Wrox Professional JAVA XML

I am trying to run my first servlet program from Professional JAVA XML book by Wrox. It is from page 471-473 and is named MyServlet.

It gives me an error:
type Status report

message /projavaxml/chapter12/hello/servlet/MyServlet

description The requested resource (/projavaxml/chapter12/hello/servlet/MyServlet) is not available.

I have made some changes..Like,
changing the DTD file from web.xml to:

Also I have added the following in the server.xml in TOMCAT HOME directory.
 <Context path="/projavaxml/chapter12/hello"

Also, I added the servlet-api.jar in the TOMCAT HOME / common/lib directory..Still I m getting the same error..Please help

thanks for your help

Old August 5th, 2004, 12:33 AM
Friend of Wrox
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr

Try with <%=request.getContextPath()%>
instead of specifying by yourself ..

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling java Servlet from ascx page pradeepnair74 BOOK: ASP.NET AJAX Programmer's Reference : with ASP.NET 2.0 or ASP.NET 3.5 ISBN: 978-0-470-10998-4 0 October 7th, 2008 07:31 AM
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 12:30 PM
calling java servlet from javascript bearfacts Javascript How-To 1 August 26th, 2004 04:57 PM
Accessing Java Servlet thru DotNet r_ganesh76 General .NET 0 June 23rd, 2004 11:45 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.