This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSPs and Servlets - how to execute?

 
Meghasyam Bokam
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
How to execute JSPs and Servlets on a Windows XP machine?
Thank You.
Meghasyam.
 
Andy Bowes
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dolfandave Uyemura
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic