Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make "view" JSP url rewriting enable?  RSS feed

 
Anthony Karta
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have JSP page that functions as a view only, such as below.

taskDTO is saved in session attribute, and I disable cookie in FireFox

If I use RequestDispatcher.forward(req, res) to that JSP, it works great.

But... if I invokes TaskViewSelection.jsp (kind of show shopping cart) directly (of course, after performed the step above), nothing come up.

How to enable url rewriting in this case then?

TIA

 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
View needs data to display, that it does not get when you invoke
TaskViewSelection.jsp directly.

Where is session data it needs?


Thanks,
 
Anthony Karta
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chandra Bhatt:
View needs data to display, that it does not get when you invoke
TaskViewSelection.jsp directly.

Where is session data it needs?


Thanks for reply Chandra.

Session data needs in Task View JSP as below code.

I want the user is able to view the task selected, as when we view shopping cart when we shop online.

TIA

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!