Re: RedirectAction Help!

2011-05-13 Thread Jeffrey Black
and what container are you using? Best, jb From: Teresa McGinley tdmcgin...@gmail.com To: user@struts.apache.org Sent: Tuesday, May 10, 2011 6:01 PM Subject: RedirectAction Help! I am trying to send an id from one action

Re: RedirectAction Help!

2011-05-13 Thread Teresa McGinley
@struts.apache.org Sent: Tuesday, May 10, 2011 6:01 PM Subject: RedirectAction Help! I am trying to send an id from one action to another and it seems to be sending a null. Please assist and I am really at my wits end with this. How do I get the formId from the Listing to the QuestionListing

Re: RedirectAction Help!

2011-05-13 Thread jagdeep singh
running and what container are you using? Best, jb From: Teresa McGinley tdmcgin...@gmail.com To: user@struts.apache.org Sent: Tuesday, May 10, 2011 6:01 PM Subject: RedirectAction Help! I am trying to send an id from

Re: Re: RedirectAction Help!

2011-05-13 Thread tdmcginley
@struts.apache.org Sent: Tuesday, May 10, 2011 6:01 PM Subject: RedirectAction Help! I am trying to send an id from one action to another and it seems to be sending a null. Please assist and I am really at my wits end with this. How do I get the formId

Re: RedirectAction Help!

2011-05-13 Thread Marcus Bond
From: Teresa McGinley tdmcgin...@gmail.com To: user@struts.apache.org Sent: Tuesday, May 10, 2011 6:01 PM Subject: RedirectAction Help! I am trying to send an id from one action to another

Re: RedirectAction Help!

2011-05-13 Thread Eric Lentz
I'll take any suggestions to get this working. Your code snippet lacks important details that would help me answer your question. Use pastebin or a like service and include a minimal running example and then perhaps I can help.

Re: Re: RedirectAction Help!

2011-05-13 Thread tdmcginley
Eric, I have never used pastebin before but I created my project files out there and here is the link: http://pastebin.com/u/tdmcginley The problem is getting from startInformation.jsp begin button to questions with the formid. In event I list the URL's that I start with and what they

Re: Re: RedirectAction Help!

2011-05-13 Thread Eric Lentz
The problem is getting from startInformation.jsp begin button to questions with the formid. When you hit begin from startInformation.jsp, you are submitting a form to beginQuestions which is acting on actions.survey.Listing. startInformation.jsp has a hidden field of form_id: input

Re: RedirectAction Help!

2011-05-13 Thread Marcus Bond
I was having similar issues recently using an older version of struts2 (can't remember which unfortunately) and I upgraded to 2.2.3 which seems to work fine.. fyi the first example I have is below where selectedUserId is set on the action I redirect to with the value from user.getId passed

Re: Re: RedirectAction Help!

2011-05-13 Thread tdmcginley
I have it working now. Not sure what exactly fixed it but I upgraded struts to 2.2.3. I also changed yourForm to formId to be consistent. Thanks for the help! I sure am learning alot! Teresa On May 13, 2011 1:33pm, Marcus Bond mar...@marcusbond.me.uk wrote: I was having similar issues

Re: Re: RedirectAction Help!

2011-05-12 Thread tdmcginley
. Just curious, what version of Struts2 are you running and what container are you using? Best, jb From: Teresa McGinley tdmcgin...@gmail.com To: user@struts.apache.org Sent: Tuesday, May 10, 2011 6:01 PM Subject: RedirectAction Help

Re: RedirectAction Help!

2011-05-11 Thread Jeffrey Black
@struts.apache.org Sent: Tuesday, May 10, 2011 6:01 PM Subject: RedirectAction Help! I am trying to send an id from one action to another and it seems to be sending a null.  Please assist and I am really at my wits end with this. How do I get the formId from the Listing to the QuestionListing

RedirectAction Help!

2011-05-10 Thread Teresa McGinley
I am trying to send an id from one action to another and it seems to be sending a null. Please assist and I am really at my wits end with this. How do I get the formId from the Listing to the QuestionListing? startInformation has a yourForm=41, when I click the Begin button I get the redirect to

Re: RedirectAction Help!

2011-05-10 Thread Amol Ghotankar
Hi, My experience say not always just getter setters works. So try to use ActionContext - get context - getvalue stack. set or ActionContext - get context - getvalue stack. push If only problem is formId not available to OGNL during redirect. There any be some other issue which needs more