You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Jindal, Ashwini" <aj...@ebay.com> on 2003/04/03 21:43:37 UTC

Loosing Objects in the Request.

Hi All,

I am trying to set some attributes in the request object 

       request.setAttribute("test", "TEST");

before invoking the forward:

       mapping.findForward(Constants.SUCCESS_KEY);

When I look up in the jsp:


        <logic:present name="test" scope="request">
	      FOUND!
        </logic:present>


The implementation is in:

        public ActionForward execute(ActionMapping mapping, ActionForm form,
               HttpServletRequest request, HttpServletResponse response) throws Exception


I do not find the object "test".

Any explanation???

..AJ


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Loosing Objects in the Request.

Posted by Max Cooper <ma...@maxcooper.com>.
Are you certain that the request is getting to the JSP with the test in it?

-Max

----- Original Message -----
From: "Jindal, Ashwini" <aj...@ebay.com>
To: <st...@jakarta.apache.org>
Sent: Thursday, April 03, 2003 11:43 AM
Subject: Loosing Objects in the Request.


Hi All,

I am trying to set some attributes in the request object

       request.setAttribute("test", "TEST");

before invoking the forward:

       mapping.findForward(Constants.SUCCESS_KEY);

When I look up in the jsp:


        <logic:present name="test" scope="request">
      FOUND!
        </logic:present>


The implementation is in:

        public ActionForward execute(ActionMapping mapping, ActionForm form,
               HttpServletRequest request, HttpServletResponse response)
throws Exception


I do not find the object "test".

Any explanation???

..AJ


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org