• Post Reply Bookmark Topic Watch Topic
  • New Topic

newbie at JSTL

 
Jo Lee
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do I have to modify in tomcat 4.0.4 's confiruation file in order to use jstl tags?
I tried to run the example from Shawn Bayern's book scroll.jsp from chapter 5(listing 5.1, I get a blank screen.
When trying to compile the file from Forte for Java 4, community edition, I get the following error:
"This absolute uri (http;//java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application"
Your help is highly appreciated
Jo
 
Ruilin Yang
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http;//java.sun.com/jstl/core
should be: http://java.sun.com/jstl/core
try again if other things are all right.
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jo.
You might want to download the book's code from http://www.manning.com/getpage.html?project=bayern&filename=source.html; that's the best way to ensure you haven't added typos.
If you have already done that, then the error might be related to your installation. We'd need more information to help you fix that -- or you could download the ready-to-use bundle from the above URL to see if that addresses your problem. (The bundle contains a JSP container + JSTL + the book's examples, so that's a useful way to get up and running quickly, or to rule out a configuration issue in your own container.)
Hope that helps; please feel free to post followup questions.
[ August 30, 2002: Message edited by: Shawn Bayern ]
 
Jo Lee
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much.
I downloaded the zip file and it worked.
How do one use the war file? do I put it in the webapps/classes and add that to the path?
Jo
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jo Lee:
Thanks very much.
I downloaded the zip file and it worked.
How do one use the war file? do I put it in the webapps/classes and add that to the path?
Jo

It's actually easier than that on most containers. On Tomcat, you simply stick the WAR file beneath the "webapps" directory, and then load the application using the right URL. For instance, if you add 'jstlbook.war' to webapps, you'd load
http://localhost:8080/jstlbook/
assuming you're running Tomcat at 8080 on your local machine.
Hope that helps,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!