Wrox Programmer Forums
| 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 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
  #1 (permalink)  
Old October 24th, 2005, 02:10 PM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2 - 1st exercise

I am very new to JSP. I tried the solution on page 1124 - Exercise 1 and the titles and weather data are not being displayed. Should I do any other change to the java class file? Any help is appreciated. Thanks

  #2 (permalink)  
Old November 4th, 2005, 11:37 PM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This one was confusing for me too. Actually, you'll need to do the changes listed in the answer for Exercise #2 for Exercise #1 to work correctly.

Glen

  #3 (permalink)  
Old March 14th, 2006, 06:53 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually that still doesn't do it. You will only see the weather data, if you set the scope of the bean to "page" in the weather.jsp.
Sadly this is wrong in the solution on p.1125 It's also not mentioned in the errata.
Due to a copy&paste error also in the entertain.jsp on p. 1126 the <head> contains the heading for the weather portal.

Man was I lucky to read that grey box on page 57 and try things out. Apparently I have to dig myself through to chapter 9 to learn why I can't reuse a bean on request-scope that way...
Dear authors, please be particularly careful with beginning chapters!!!




  #4 (permalink)  
Old March 14th, 2006, 06:53 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually that still doesn't do it. You will only see the weather data, if you set the scope of the bean to "page" in the weather.jsp.
Sadly this is wrong in the solution on p.1125 It's also not mentioned in the errata.
Due to a copy&paste error also in the entertain.jsp on p. 1126 the <head> contains the heading for the weather portal.

Man was I lucky to read that grey box on page 57 and try things out. Apparently I have to dig myself through to chapter 9 to learn why I can't reuse a bean on request-scope that way...
Dear authors, please be particularly careful with beginning chapters!!!

  #5 (permalink)  
Old April 6th, 2006, 08:13 PM
Registered User
 
Join Date: Feb 2006
Location: , Ohio, .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Chris457,

Well done! Much appreciate the sharing of info. I struggled with this one as well and you've supplied me with the answer. :)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 Exercise 2 diango BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 February 1st, 2011 03:24 PM
Chapter 16: 1st 'Try It Out' Web.config error jee26 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 September 21st, 2008 09:35 AM
Chapter 13, can't do 1st example beg. page 481 mjoh44 JSP Basics 2 August 16th, 2004 09:51 AM





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