Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

JSPs and Servlets - how to execute?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
How to execute JSPs and Servlets on a Windows XP machine?
Thank You.
Meghasyam.
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic