Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning JavaServer Pages
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning JavaServer Pages
This is the forum to discuss the Wrox book Beginning JavaServer Pages by Vivek Chopra, Jon Eaves, Rupert Jones, Sing Li, John T. Bell; ISBN: 9780764574856
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaServer Pages section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 3rd, 2005, 08:36 PM
Registered User
 
Join Date: May 2005
Location: Toronto, ON, Canada.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
  #2 (permalink)  
Old May 25th, 2005, 08:03 PM
Wrox Author
 
Join Date: May 2005
Location: , , .
Posts: 4
Thanks: 1
Thanked 2 Times in 2 Posts
Default

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
Reply With Quote
  #3 (permalink)  
Old November 21st, 2007, 12:54 PM
Registered User
 
Join Date: Oct 2007
Location: Lagos, Lagos, Nigeria.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Resolved] Error: File used by another process snufse .NET Framework 2.0 2 February 18th, 2008 09:20 AM
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
(Resolved) TableAdapter Error ksamuel Pro Visual Basic 2005 1 January 16th, 2008 01:03 PM
Error: Redirect URI cannot contain newline charact ninel General .NET 0 October 30th, 2006 02:11 PM
Referrer and Uri druid2112 General .NET 1 April 20th, 2004 12:54 PM



All times are GMT -4. The time now is 02:46 AM.


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