Berger, I do not know the answer to your question. I think it should be something simple to.
But my suggestion _as a hack_ for now is to do the following : 1) In your action code: request.getSession().setAttribute( "MY_MAP", youMap); 2) in your JSP: <s:iterate value="%{#session.MY_MAP}"> .. .. </s:interate> Let me know if anyone came up with the _right_ answer. Regards, Harring On 4/4/07, Will Berger <[EMAIL PROTECTED]> wrote:
I believe the main thing parameterAware does for you is make it so u don't have to call Map parameters = ActionContext.getContext().getParameters(); instead you can call this.getParameter(). my call to getParameter("listOfemails") returns a String[] that I need to iterate over. If OGNL cannot handle this, that is fine. Would love it if someone could set me straight. Will Will Berger wrote: > > You asked why would one want to do it this way. When processing a post > from a form that has check boxes, being able to specifiy which boxes were > checked for a confirmation page is a common occurence. What I am trying > to do. I could create an action class to return an iterator. A lot of > work for something so simple. > > Will > > > Will Berger wrote: >> >> I have seen this page. I don't see where it shows you how to iterate >> over an array of strings. or how to access an array of request >> parameters. Can you elaborate on your explanation? >> >> Will >> >> >> Dave Newton-4 wrote: >>> >>> --- Will Berger <[EMAIL PROTECTED]> wrote: >>>> How does one in struts 2 process a list of req >>>> parameters using ognl? >>> >>> http://struts.apache.org/2.x/docs/ognl.html >>> >>> Although I'm not sure why you'd want to do it like >>> that :/ >>> >>> d. >>> >>> >>> >>> >>> ____________________________________________________________________________________ >>> Food fight? Enjoy some healthy debate >>> in the Yahoo! Answers Food & Drink Q&A. >>> http://answers.yahoo.com/dir/?link=list&sid=396545367 >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/request.getParameterValues-OGNL---tf3528203.html#a9847064 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 "We never become truly spiritual by sitting down and wishing to become so. You must undertake something so great that you cannot accomplish it unaided."