This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reuest dispatcher

 
sitaram irrinki
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While using RequestDispatcher.forward(), i tried to print request object

<% out.println(request);
RequestDispatcher rd = req.getRequestDispatcher("/resone");
rd.forward(request, response);
%>
-------------------------------------------------------------------------
in resource which got forwarded

<% out.println(request) %>
---------------------------------------------------------------------
it is showing different request objects, why?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can you tell they are different?
 
Amarender Reddy
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sitaram,

can u explain the question more broadly
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic