This content has been marked as final. Show 3 replies
Well, having the action refer to the source code (ListAccounts.java) is certainly wrong. Your URL should point to something which your web.xml is configured to map to the compiled version of that servlet.
And having "/src/" in that URL is quite likely wrong. It's possible your IDE contains a "src" directory which contains your source code, but that has basically nothing to do with your deployed application. And if it is, that implies that your ListAccounts servlet isn't in any package, which is also wrong.
user8591206 wrote:So where did you read to do this? I'd get the idea that you're just trying stuff.
Hi, I need to direct from a jsp file to a servlet, My code in a .jsp file is :
<form method="get" action = "/Bank/src/ListAccounts.java"/>
<form method="get" action = "/Bank/src/ListAccounts.java"/>Obviously complete guesswork.
When i compile, it shows an error : HTTP 404 - File not foundRubbish. When you compile, it compiles. When you submit the form, the browser gives you HTTP 404.