• Post Reply Bookmark Topic Watch Topic
  • New Topic

Murach's Java Servlets and JSP Exercises 8-1  RSS feed

 
Syed Islam
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • 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?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
you're right, thank you!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!