• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

How do I get my JSP files to run on Eclipse?

 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I downloaded Tomcat but it's not working.
I'm not sure how I'm supposed to configure Tomcat so that it can receive the code from my JSP.file in Eclipse.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your JSP files should be in your application folder inside tomcat's webapps folder. Do you have a DD configured ? What is your application directory structure ?
 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had to create a dynamic Web project. I then put my JSP file under WEB-INF. Then I went to 'Show View' under Window on the toolbar and selected Server.
I had to start the Tomcat 5.5 from there. Now to get it to work in the url I have to type : http://localhost:8080/hi/tryout.jsp
How do I get it so I only have to type localhost:8080/tryout
with no "hi" which is the folder and no jsp extension?
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There seems to be typo errors in your question. So have made some assumptions with my reply.

You mentioned that you type in the URL http://localhost:8080/hi/tryout.jsp to get it working.
I assume that "hi" is your context root.

If you want to type only http://localhost:8080/tryout and get the page tryout.jsp present in the root folder named "hi", then you need to do the following:

1. Make "hi" you default web app in Tomcat. Refer to tomcat docs for the same.

AND

2. Have the following lines in your web.xml file:

[ March 11, 2007: Message edited by: Sunil Vasudevan ]
 
You can thank my dental hygienist for my untimely aliveness. So tiny:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic