p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning JavaServer Pages (http://p2p.wrox.com/forumdisplay.php?f=162)
-   -   chapter 2, error uri cannot be resolved in either (http://p2p.wrox.com/showthread.php?t=28896)

boylevel May 3rd, 2005 08:36 PM

chapter 2, error uri cannot be resolved in either
 
Error as follows.

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


I run chapter 2 first example page.

First page1 as follows.


<html>
<head><title>Select Your Portal</title></head>
<body>
<h1>Select your preferred portal:</h1>
<form action="showportal.jsp" method="get">
<select name="portchoice">
<option>news</option>
<option>weather</option>
<option>entertainment</option>
</select>
<input type="submit" value="Select"/>
</form>
</body>
</html>

Second page.

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
 <c:choose>
    <c:when test="${param.portchoice == 'news'}">
      <head><title>News Portal</title></head>
      <body>
       <h1>Welcome to the News Portal!</h1>
      </body>
    </c:when>
    <c:when test="${param.portchoice == 'weather'}">
       <head><title>Weather Portal</title></head>
       <body>
        <h1>You Get the Latest Weather!</h1>
       </body>
    </c:when>
    <c:when test="${param.portchoice == 'entertainment'}">
       <head><title>Entertainment Portal</title></head>
       <body>
       <h1>Entertainment News Just for You!</h1>
       </body>
    </c:when>
    <c:otherwise>
       <head><title>System Portal</title></head>
       <body>
       <h1>Application logic problem detected!</h1>
       </body>
    </c:otherwise>
</c:choose>
</html>

Some can help me out I don't know how to fix this problem and move on next chapter of reading.
Look forward to hear from you.

SingLi May 25th, 2005 08:03 PM

Make sure you use the code downloaded from this website:

http://www.wrox.com/WileyCDA/WroxTit...load_code.html

Otherwise, you need to make sure that the WEB-INF/lib
directory contains the JSTL libraries:

jstl.jar
standard.jar

taysay November 21st, 2007 12:54 PM

Tanx will give a try, but then what of the issue with the chapter 18 where WEBWORK doesnt have the folders as specified by the author, every other person seems to have issue here? what is the way forward, PlZZZZZZZZZZZZZ?
Taysay

On the MOVE!


All times are GMT -4. The time now is 12:37 PM.

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