File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to put HTML files

 
subodhk
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm new to servlets.I was wondering where to put the HTML files(e.g a HTML form)& the servlets.Then, lets say I have a submit button on the form.Now what happens when the "submit" button is pressed?Will the servlet be invoked?Also how do I relate the HTML form with the servlet?I mean how the pressing of the submit button will invoke the correct servlet?Is there any naming registry(like RMI) which takes place behind the scene.Do the HTML file and the servlet be named alike?
Thanks
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since your question is very basic, I recommend some reading:
Sun Microsystems Servlet Tutorial:
http://java.sun.com/docs/books/tutorial/servlets/index.html
 
Dilip kumar
Ranch Hand
Posts: 360
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a submit button is clicked, the form is sent to the servlet or other program mentioned in the ACTION parameter of the FORM.
In the below code when you click on submit button the program "Myprogram" will be executed.
<html>
<body>
<form name="form1" action="http://localhost:8080/MyProgram">
<input type="submit" name="btnSubmit" value="submit">
</form>
</body>
</html>
 
Raj Kumar Gopal
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SUBODH....
Don't worry about servlets or ejb... Go to SOLID GOLD and take a lap dance ...
Guess who .... P*****
Originally posted by subodhk:
Hi,
I'm new to servlets.I was wondering where to put the HTML files(e.g a HTML form)& the servlets.Then, lets say I have a submit button on the form.Now what happens when the "submit" button is pressed?Will the servlet be invoked?Also how do I relate the HTML form with the servlet?I mean how the pressing of the submit button will invoke the correct servlet?Is there any naming registry(like RMI) which takes place behind the scene.Do the HTML file and the servlet be named alike?
Thanks

 
subodhk
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dude wass up?Did u go to SOLID GOLD?Where is Pete.Trying to reach him for a while?
Originally posted by Raj Kumar Gopal:
SUBODH....
Don't worry about servlets or ejb... Go to SOLID GOLD and take a lap dance ...
Guess who .... P*****

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic