• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Murach's Java Servlets and JSP Exercises 8-1

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I think it's best if I ask people who have this book.

I'm paraphrasing here

Modify the .jsp files so they don't encode the URLs. Then run the application. With cookies enabled, note how the application works even though the URLs don't encode the session ID



So I modified it as instructed from this


to this...

The problem is that now when I click on this link, I get a HTTP Status 500 error. The NullPointerException error is in cart.jsp in this line of code:

I'm thinking that the parameters I forwarded were not correctly added to the response object. Any ideas?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"cart" and "cart.jsp" are not the same. You are likely circumventing the controller with your change.
 
Syed Islam
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you're right, thank you!
reply
    Bookmark Topic Watch Topic
  • New Topic