• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

First JSP page

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm trying to get a simple "hello world" style jsp page from this book running on my Mac Mini (OSX 10.6.8). Here's the code:



I've got two problems that won't let me run it. First I can't get a Tomcat server running locally through Eclipse. When I try to make one I get "The Tomcat installation directory is not valid. It is missing expected file or folder lib/jasper-el.jar."

Also, and I'm guessing this is related, Eclipse underlines this bit "http://java.sun.com/jsp/jstl/core" and says "Can not find the tag library descriptor for 'http://java.sun.com/jsp/jstl/core'".

After googling a bit I see mentions that I need to include the jstl.jar in my library, but have not yet found out a way to do this or, frankly, what this library is, what it does, and what adding this jar file is supposed to do.

Any help is appreciated.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your JSP is looking good.

As your issues seem to be with the eclipse setup, I've moved this post over to the IDEs forum where the eclipse-savvy are more likely to see it an respond.

The JSTL jar is necessary to enable the JSTL tags such as <c:out> in your pages.

Welcome to the Ranch.
 
Steve O Smith
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bear.

I was able to add the JSTL jar, which I got from this site, and install it using the instructions on this site.

Now I just have to figure out how to get a Tomcat server running on my local instance.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you get tired of waiting or of dealing with Tomcat in eclipse, you might try your hand at running a stand-alone instance. That's what I do on my MacBook Pro(s) and it's really easy.

Let us know if that's a route you want to pursue.
 
Steve O Smith
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:If you get tired of waiting or of dealing with Tomcat in eclipse, you might try your hand at running a stand-alone instance. That's what I do on my MacBook Pro(s) and it's really easy.

Let us know if that's a route you want to pursue.



Sure, I'm game. The whole reason I wanted to do it from eclipse is that it had been easy on my windows machine at work. If something else will be easier, I'd rather do that.
 
reply
    Bookmark Topic Watch Topic
  • New Topic