| Author |
RequestDisptacher include() and forward()
|
Hung Tang
Ranch Hand
Joined: Feb 14, 2002
Posts: 148
|
|
Just a question: I have two servlets and one jsp; they are: ControlServlet IncludeServlet forward.jsp ControlServlet will use dispatcher.include("IncludeServlet"). IncludeServlet stores a string object by way of request.setAttribute("key", "value"); ControlServlet regains control again and use dispatcher.forward("/forward.jsp"). My question is, is the string object is still stored in the request object when control is passed to forward.jsp? What i mean is, can forward.jsp use <%= request.getAttribute("key") %> and expect to see "value" on its page? Thanks
|
 |
Yuriy Fuksenko
Ranch Hand
Joined: Feb 02, 2001
Posts: 413
|
|
|
Yes
|
 |
 |
|
|
subject: RequestDisptacher include() and forward()
|
|
|