Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
| Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2003, 02:31 AM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Has any tried out the tomcat 5.0?

?>

 
Old July 24th, 2003, 07:10 AM
Authorized User
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah - have been successfully using it to work through the Beginning JSP 2.0 book.

 
Old July 24th, 2003, 09:13 AM
Lex Lex is offline
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,


Im using beginning jsp 2.0 book.

I am using nt4 and apache tomcat 5.0.4

I cannot get the JSTL demos on pages 43 - 45 to work.

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

The jar files from the JTSL have been copied over to my webapps lib directory and I have stopped and started server.

This book is full of errors everywhere, not happy.

Someone help, thx.

 
Old July 28th, 2003, 01:03 AM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am also experiencing the same problem.
Is there anyway to feedback to the authors?

 
Old July 28th, 2003, 06:18 AM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ioda006
Default

im running xp home with tomcat 5.0.5 and j2sdk1.4.1_02 and i've experienced no problems so far. I have a few compiling problems with java, but everything to do with tomcat is going just fine.

 
Old July 30th, 2003, 04:32 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did encounter the same problem.B4 that, i used apache tomcat 4.1.24. Every time, i want to try with jstl, I have to add some entries in my web.xml file.
There are :

<taglib>
    <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
    <taglib-location>/WEB-INF/fmt.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
    <taglib-location>/WEB-INF/sql.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
    <taglib-location>/WEB-INF/x.tld</taglib-location>
  </taglib>
 
Old July 30th, 2003, 04:15 PM
Registered User
 
Join Date: Jul 2003
Location: Totnes, Devon, United Kingdom.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I could not get the code on p 44 to work, but now it does. As a Win2000 user, I had installed Tomcat 5 from the zip - WRONG - you have to download and install from the .exe.
You don't need a web.xml in WEB-INF, but you do need to set JAVA_HOME, CATALINA_HOME, and CLASSPATH like the book says.
You must make a WEB-INF folder with classes and lib subfolders. And you need to download the JSTL tag libraries and copy the stuff into your WEB-INF\lib folder.
I have been cursing this book for a long time, and it was all my fault after all.
(shamefaced etc).


 
Old July 30th, 2003, 04:17 PM
Registered User
 
Join Date: Jul 2003
Location: Totnes, Devon, United Kingdom.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Another thing.
You must use core_rt, not core, for the taglib in the code on p 44.

 
Old August 8th, 2003, 04:44 PM
Authorized User
 
Join Date: Aug 2003
Location: Coventry, , United Kingdom.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Glad that you got things to work. And don't just blame yourself, the book does have, let us say, its foibles.

 - Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
new to tomcat mgarito BOOK: Beginning JavaServer Pages 2 February 21st, 2006 11:51 PM
JWS Axis Tomcat (posted to Apache Tomcat too) rushman Servlets 0 April 15th, 2005 09:32 AM
Tomcat and IE Robert Menteer Apache Tomcat 0 December 10th, 2004 03:34 PM
Tomcat 5 JMX RafaelaCarvalho BOOK: Professional Apache Tomcat 0 July 6th, 2004 08:34 AM
Tomcat 3.3.2 to Tomcat 5.0.24 amith_pj Apache Tomcat 1 July 4th, 2004 10:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.