aspose file tools*
The moose likes JSP and the fly likes JSPs and Servlets - how to execute? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSPs and Servlets - how to execute?" Watch "JSPs and Servlets - how to execute?" New topic
Author

JSPs and Servlets - how to execute?

Meghasyam Bokam
Greenhorn

Joined: Feb 27, 2003
Posts: 16
Hi all,
How to execute JSPs and Servlets on a Windows XP machine?
Thank You.
Meghasyam.
Andy Bowes
Ranch Hand

Joined: Jan 14, 2003
Posts: 171
Hi Meghasyam
In order to execute servlets or JSP you will need a Web Container. Probably the easiest one to get started with is Tomcat from Apache.org Tomcat Home Page. This is an open source project and has pretty good documentation to get you started.
Once you have a Web Container with your JSPs and servlets installed on it then you can invoke your JSPs/servlets by accessing their URLs in a browser.
HTH


Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
Dolfandave Uyemura
Ranch Hand

Joined: Jun 11, 2002
Posts: 31
So Andy,
In my situation, I already have a test web site up on a shared host that takes in a simple string from the user. When I click submit, that string is added to text on the ".jsp" page. This works properly but what I eventually want to do is be able to add and delete data from the MySQL database on this site(Sorry for the very mundane question but I am very, very new at this). What I want to know is if these are the correct steps:
1. Create and add test records to a MySQL database running on my standalone PC at home.
2. Create and compile the Java application on my PC.
3. Correct any errors in the database and application.
4. Modify the Java application to make it work on the server, ie the database connection statements and whatever else needs to be changed.
5. Call the Java ap by typing in the URL?
Step 5 is what I am not sure of. I am ok w/ the database part as I am more of a database person. It's the front end stuff and tying that front end into the db where I get lost.
Thanks.
ddave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSPs and Servlets - how to execute?