Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2006, 08:37 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to run servlet?

hi guys..
can u describe me how do we run a servlet.
i have created a html file,a java file.now i comlied my java file and got the class files.
i have written my file upload code in java file.
do i have to write a servlet and then call the .class file from here?
wht is the path to be set in html's form action...
Which file is to be set in the html's action...?(call the servlet or .class file)
i am new to servlet..
help me.
Thankyou
 
Old July 1st, 2006, 07:36 PM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have much to learn, young padawan. Here's a good tutorial to writing simple servlets: http://www.apl.jhu.edu/~hall/java/Se...-Servlets.html. I would suggest using Apache Tomcat as a server instead of Java Web Server, as the tutorial uses. And after you're familiar with the use of servlets, you should use JSPs rather than put HTML code into your Java classes.

Future questions on this topic should be placed in the Beginning JSP forum, or the Servlets forum.

Jon Emerson
http://www.jonemerson.net/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Regards Servlet file run in server sureshsdckap Apache Tomcat 1 July 13th, 2007 03:34 PM
Can JSP integrate with Servlet and run on MySQL wesleygch JSP Basics 0 April 10th, 2007 02:22 AM
How to run servlet under application? kuterka Servlets 1 February 11th, 2005 08:21 AM
Run Servlet, Set Directory, Help ? Gika JSP Basics 3 April 2nd, 2004 06:07 AM
Why can't run servlet? Edward King Servlets 2 November 9th, 2003 12:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.