Re: Pre setAttribute for a form

2009-06-26 Thread Sam Wun
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" ..

Re: Pre setAttribute for a form

2009-06-26 Thread Nils-Helge Garli Hegvik
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

Re: Pre setAttribute for a form

2009-06-25 Thread Sam Wun
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

Re: Pre setAttribute for a form

2009-06-25 Thread Sam Wun
ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception { RedirectHelpForm redirectHelpForm = (RedirectHelpForm) form; req.getSession().setAttribute(&qu

Re: Pre setAttribute for a form

2009-06-24 Thread Nils-Helge Garli Hegvik
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:

Re: Pre setAttribute for a form

2009-06-24 Thread Sam Wun
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: >> >&

Re: Pre setAttribute for a form

2009-06-24 Thread Nils-Helge Garli Hegvik
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

Pre setAttribute for a form

2009-06-24 Thread Sam Wun
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

Re: setAttribute

2007-06-04 Thread Oguz Kologlu
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

setAttribute

2007-06-04 Thread Chris Pat
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

RE: setAttribute

2004-12-30 Thread Yee, Richard K, CTR,, DMDCWEST
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

RE: setAttribute

2004-12-30 Thread Daniel Lipofsky
;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

setAttribute

2004-12-30 Thread Jim Douglas
I set an attribute as follows... public class AdsRespAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm Form, HttpServletRequest request, HttpServletResponse response) throws