Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem submitting HTML form in Eclipse(HTTP Status 404 after clicking HTML submit button)
Problem submitting HTML form in Eclipse [message #1848928] Thu, 23 December 2021 22:55 Go to next message
Lan Tran is currently offline Lan TranFriend
Messages: 2
Registered: December 2021
Junior Member
When I run an HTML form in Eclipse the form displays correctly. However after filling in the fields and clicking the submit button I get a HTTP Status 404 - Not found with message:

Message The requested resource [/Bookstore/books/] is not available

I think my web.xml file is correct because whatever /Bookstore/books/whatever
works correctly (i.e. 'whatever' can be anything at all).

My directory structure is in the attached image and is:

BookStore > src > main > webapp

My html is under webapp and my web.xml is in webapp > WEB-INF

I think the problem could be that the requested resource when I click submit on the html is looking for Bookstore (small s) but it should be looking for BookStore (big S) but I have no idea where the small s version comes from.

index.php/fa/41490/0/





  • Attachment: Capture.PNG
    (Size: 18.30KB, Downloaded 508 times)
Re: Problem submitting HTML form in Eclipse [message #1849044 is a reply to message #1848928] Thu, 30 December 2021 15:58 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4492
Registered: July 2009
Senior Member

There's no way to tell without seeing the form tag in question, but then this doesn't look like it's a problem specific to Eclipse.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Problem submitting HTML form in Eclipse [message #1849047 is a reply to message #1849044] Thu, 30 December 2021 17:01 Go to previous message
Lan Tran is currently offline Lan TranFriend
Messages: 2
Registered: December 2021
Junior Member
Hi Nitin

Thanks for the reply. The HTML form is below. As I said, somewhere along the line /BookStore (correct) is converted to /Bookstore (incorrect). I've checked through all the code and definitions in the project and nowhere does "Bookstore" appear. I agree that this is not necessarily an Eclipse problem.

<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form action="/BookStore/books/" method="get">
Book Title:<br>
<input type="text" name="title">
<br>
<input type="text" name="author">
<br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Previous Topic:[Question] Has anyone had an error when installing Eclipse like this?
Next Topic:Darkest Dark Theme with DevStyle theme not available
Goto Forum:
  


Current Time: Wed Sep 25 06:38:01 GMT 2024

Powered by FUDForum. Page generated in 0.09341 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top