quot; navigated to the
>> RedirectHellpForm page , then reload the first page (RedirectForm),
>> and press the Submit button from the RedirectForm, it can find the
>> "name" of RedirectHelpForm.
>> My questions is how can I setAttribute("RedirectHelpForm" ..
Wun wrote:
> Like I have said before, if I "manually" navigated to the
> RedirectHellpForm page , then reload the first page (RedirectForm),
> and press the Submit button from the RedirectForm, it can find the
> "name" of RedirectHelpForm.
> My questions i
Like I have said before, if I "manually" navigated to the
RedirectHellpForm page , then reload the first page (RedirectForm),
and press the Submit button from the RedirectForm, it can find the
"name" of RedirectHelpForm.
My questions is how can I setAttribute("Redi
ActionMapping mapping, ActionForm form,
HttpServletRequest req,
HttpServletResponse res)
throws Exception {
RedirectHelpForm redirectHelpForm = (RedirectHelpForm) form;
req.getSession().setAttribute(&qu
Did you try request.getSession().setAttribute("RedirectHelpForm",
redirectHelpForm)?
Nils-H
On Thu, Jun 25, 2009 at 7:14 AM, Sam Wun wrote:
> How to do that with session?
> I am currently setting it in the execute() and render method with the
> following code:
kind of id as a render parameter and
> re-fetch the object in the render phase.
>
> Nils-H
>
> On Thu, Jun 25, 2009 at 7:03 AM, Sam Wun wrote:
>> Hi,
>>
>> I noticed the setAttribute() method is called too late in one of my
>> Action class:
>>
>&
h the object in the render phase.
Nils-H
On Thu, Jun 25, 2009 at 7:03 AM, Sam Wun wrote:
> Hi,
>
> I noticed the setAttribute() method is called too late in one of my
> Action class:
>
> import javax.portlet.PortletConfig;
> import javax.portlet.RenderRequest;
> import j
Hi,
I noticed the setAttribute() method is called too late in one of my
Action class:
import javax.portlet.PortletConfig;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import
That's an implementation detail for each servlet container/
configuration. It is really very specific to each implementation as
to what happens when you save something to session so you'd have to
look at the doco's of the servlet container you're using
Oz
On 05/06/2007, at 10:41 AM, Chris
Hello
When an object is saved to the session is it persisted anywhere or only in
memory? Even transiently, is it never persisted. Now I understand how the OS
may page the entire memory space, however that is beyond the level that the
programmer of tool can control and is monolithic. I assume
submit the value of the button or have JavaScript set a html hidden input
field.
-Richard
-Original Message-
From: Jim Douglas [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 30, 2004 12:58 PM
To: user@struts.apache.org
Subject: setAttribute
I set an attribute as follows...
public
;attribute" but you can look for the
parameter in the action and set and attibute.
- Dan
> -Original Message-
> From: Jim Douglas [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 30, 2004 12:58 PM
> To: user@struts.apache.org
> Subject: setAttribute
>
> I s
I set an attribute as follows...
public class AdsRespAction extends Action {
public ActionForward execute(
ActionMapping mapping,
ActionForm Form,
HttpServletRequest request,
HttpServletResponse response)
throws
13 matches
Mail list logo