redirectAction not working

2010-01-29 Thread Robby Atchison
Hello, I have the following configuration in a Struts.xml file. The paramsPrepareParamsStack is the default interceptor stack. AccountAction does not implement any interfaces. Both BankcardAction and ECheckAction implement Preparable and ModelDriven.

Re: Different results with spring

2010-01-29 Thread Miguel
Hi, Thanks for answering!! I'll post my relevant configurations. I'm using spring 2.5.6 and struts 2.1.8.1. I have the spring plugin in the struts.conf, and my actions are correctly autowired by name. I also have an include in struts.conf where the relevant action is called. The thing here is I hav

Re: Modifying action mapping per device type

2010-01-29 Thread Wes Wannemacher
I admit that I haven't read the whole thread, so flame me if you covered the answer already, but... Have you looked at Sitemesh? I would suggest look at creating different decorators for each of the devices you want to support, then code your undecorated JSPs so that they can be decorated based on

Re: Boolean Type Conversion

2010-01-29 Thread Wes Wannemacher
I don't know if I'd go too far creating a TypeConverter... Can you just do something like this - YN Really, you could probably create a .tag file out of it and reuse it easier than creating a Type Converter. -Wes On Fri, Jan 29, 2010 at 7:48 AM, RogerV wrote: > > Hi > > I have a collection of

Re: Different results with spring

2010-01-29 Thread Wes Wannemacher
What you are doing should work the way you expect... I use the Spring integration all the time :) A few simple questions, do you have the spring-plugin installed? Do you have the Spring ContextLoaderListener setup in the web.xml? Do you have any non-default configuration settings in any of web.xml

Re: Redirect List Parameter

2010-01-29 Thread Timothy Orme
Yeah, I think my best option here is to just convert my list of ints to a comma separated list. It seems though, that since the request object can handle lists, that there should be a way to add list parameters in struts. Right now the function to add a parameter in ServletRedirectResult looks

Re: Redirect List Parameter

2010-01-29 Thread Greg Lindholm
If you are using a result type of "redirectAction" you don't explicitly code the url just give it the action name and let the result construct the correct url. To pass parameters with a redirectAction you do it like this: < param name="actionName">CompleteConfirmation < par

Re: Redirect List Parameter

2010-01-29 Thread Timothy Orme
Right, this is similar to what I want, but it would have to be dynamically generated, as I don't know the size of the list. For instance, in this case, the user would have selected 4 orders, but in the next case could select 10. The problem isnt passing parameters, it's passing a parameter that

Re: Redirect List Parameter

2010-01-29 Thread Eric Rich
Sorry the line result should be like this: > s>test/CompleteConfirmation.action?orderNumbers=${ordernumber1}&orderNumbers=${ordernumber2}&orderNumbers=${ordernumber3}&orderNumbers=${ordernumber4} Eric Rich Data System Administrator Murray State University Address: 226 Alexander Hall

Re: Redirect List Parameter

2010-01-29 Thread Eric Rich
Timothy, If I understand you correctly you want to redirect and pass values. I have done this by encoding my url with proper html syntax. s>test/CompleteConfirmation.action?orderNumber&${orderNumbers} > I hope this helps. Eric Rich Data System Administrator Murray State University Add

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
ruts.apache.org For additional commands, e-mail: user-h...@struts.apache.org __ NOD32 4817 (20100129) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com - To unsu

Redirect List Parameter

2010-01-29 Thread Timothy Orme
Hello All, I have a typical scenario: 1. User is presented a list of orders, and can select some of them to complete. A list of order numbers is sent to the next action. (ViewOrders.action) 2. Struts action completes the order by iterating through the list of passed order numbers.

Re: Modifying action mapping per device type

2010-01-29 Thread Gabriel Belingueres
ve access to the the >>> name of the action? >>> >>> Any suggestions here are greatly appreciated! >>> Web technologies being used are Struts2, Tiles2 and JSP. >>> >>> Regards, >>> Marcus >>> >>> --

Re: Any way to load resources in java.util.ResourceBundle

2010-01-29 Thread Bhaarat Sharma
no help on this one? On Wed, Jan 27, 2010 at 12:43 PM, Bhaarat Sharma wrote: > We have seen situations where sometimes the global resource bundles are > lost intermittently for some sessions. We are in a clustered/shared > environment where multiple apps are deployed onto a GlassFishV2 server. >

Re: I18nInterceptor / request_locale not working as expected

2010-01-29 Thread Bhaarat Sharma
Hi stephan, I see you solved your issue regarding resource bundle. I am having a problem where intermittently the resource bundles get lost and instead of seeing values on the browser...we start seeing actual properties like: my.label.name. using the execute method for your code below...is ther

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org __ NOD32 4817 (20100129) Information __ This message was checked by NOD32 antivirus system. http://www.eset.c

Re: Modifying action mapping per device type

2010-01-29 Thread Greg Lindholm
it's success >> they modify it to success_devicetype_version, which corresponds to the JSP >> /WEB-INF/jsp/devicetype/version/success.jsp, for example. The only ugly >> part of this is you'll have lots of results defined for each action in >> struts.xml, but at least you ha

Boolean Type Conversion

2010-01-29 Thread RogerV
Hi I have a collection of objects, each one contains a boolean flag, and I'm displaying these via a JSP as a list via an interator. Struts is converting the boolean fields into the strings "true" and "false", I'd like to be able to 1) display them as "Y" and "N" 2) convert back to "true" and "f

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org __ NOD32 4817 (20100129) Information __ This me

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org __ NOD32 4817 (20100129) Information __ This mes

Re: Struts 2 Weblogic and NTLM

2010-01-29 Thread Sunil Netra
There must be extra white space. Try trim: response.setHeader("WWW-Authenticate", "NTLM " + new sun.misc.BASE64Encoder().encodeBuffer(msg1).trim()); -- View this message in context: http://old.nabble.com/Struts-2-Weblogic-and-NTLM-tp16032835p27369873.html Sent from the Struts - User mailing l

Re: Tiles2.2.1, Struts2.1.8.1, Spring2.5.6 ===> "UnresolvingLocaleDefinitionsFactory.java:102" ???

2010-01-29 Thread Antonio Petrelli
2010/1/28 Emi Lu : > I think both struts2 & Tiles2' official websites should highlight this in a > very prominent position! It's only a matter of Struts, Tiles is totally independent to Struts. Antonio - To unsubscribe, e-mail: