Hi,
I’m new to Web Component development.
Having said that, I tried to create a test web application.
I created a MyEclipse, Web Project.
I wrote a HTML with form (please find the HTML page below).
The HTML is housed under WebRoot\InputSimpleData.html
I’m trying to invoke the servlet ReadFormData on ACTION(HTML Form).
The servlet location is WebProject\src\package.location
The class file is getting generated properly (for the servlet) under the WEB-INF\Classes folder.
But when I load the HTML using MyEclipse’s default browser, I get the page corresponding to the HTML, but on clicking submit, the servlet doesn’t get invoked.
I’m not sure whether there’s a problem with the deployment; since with the code or the HTML I don’t see there’s any problem because it’s so simple. Problem is “ACTION” on Form is not loading the servlet.
<body>
<form name=”f1″ id=”f1″ action=”/servlet/ReadFormData” method=”post”>
<table border=”0″>
<tr>
<td>Login:</td>
<td><input type=”text” name=”login” id=”login”></td>
</tr>
<tr>
<td>Password:</td>
<td><input type=”password” name=”password” id=”password”></td>
</tr>
<tr>
<td colspan=”2″ align=”center”><input type=”submit”></td>
</tr>
</table>
</form>
</body>[/b][/code]