If you're referring to the PageContext that is available when you are
rendering the view, the answer would be because it doesn't exist yet ;-)
The Struts ActionController (a servlet) calls an Action (not a servlet),
and may eventually forwards to a JSP (another servlet). The PageContext
for the
Question in Servlet/JSP ?
If you're referring to the PageContext that is available when you are
rendering the view, the answer would be because it doesn't exist yet ;-)
The Struts ActionController (a servlet) calls an Action (not a servlet),
and may eventually forwards to a JSP (another servlet
To access the request in a Struts Action, you would reference the
request passed to the perform() method.
public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,// --- request
On 23 Jul 2001 16:29:52 +0530, suhas wrote:
Better can't we get this from the container specific implementaion
something like PageContext in the Servlet too? .
Why would we need to?
Calvin
Question in Servlet/JSP ?
On 23 Jul 2001 16:29:52 +0530, suhas wrote:
Better can't we get this from the container specific implementaion
something like PageContext in the Servlet too? .
Why would we need to?
Calvin
5 matches
Mail list logo