Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get a html file after clicking the button

Status
Not open for further replies.

shaygan

Programmer
Feb 19, 2005
12
DE
i call my servlets from this directory:
servlets/mypTomcatProject/myservletNumberOne
servlets/mypTomcatProject/myservletNumberTwo
......
Now i generate a Submit Button and i will that
the user get the index.html after he Click on
this Button:
.....
out.println("<tr>");
out.println("<td><form action=\"/servlets/mypTomcatProject/index.html\">");
out.println("<td><input type=\"submit\" Value=\"goToIndex\"></form></td>");
out.println("</tr>");
....
After i Click this Button i
becom the Error 404:
description: The requested resource /servlets/mypTomcatProject/index.html) is not available.
(This file is surely in under this path)
I put it even at the all my directories and write
action=\"index.html\">to see if
this is a path problem. i get the same error!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top