Different results with spring

2010-01-28 Thread Miguel
Hello all, I have a problem when using spring and the spring aplication context. If I configure the action class directly from struts.conf, my action does just the correct behavior. (1) But if I configure the action in a spring file and in struts.conf put only the spring bean name everything gets p

Re: Modifying action mapping per device type

2010-01-28 Thread Andrew Sykes
> There are couple of ways I can think of to do this, but they're ugly: > - JSP level logic to render the page differently - dont want it, I'd > rather individual jsp's for each supported device (or family) as this > allows developers who are working on targeting a site to a specific > device to c

Re: Modifying action mapping per device type

2010-01-28 Thread Gabriel Belingueres
How about using different packages/namespaces for the views? /bb/index.jsp /wm/index.jsp 2010/1/28 Marcus Bond : > Hi, > > I am wanting to implement a site such that some actions may have a different > mapping depending upon the device used (e.g. regular

Re: I18nInterceptor / request_locale not working as expected [INVALID/SOLVED]

2010-01-28 Thread Stephan R. Mueller
I beg your pardon for spamming. I'm mixing JSTL/Struts2 and my i18n messages are generated using JSTL. JSTL uses a java.util.Locale Object stored in the session via key "javax.servlet.jsp.jstl.fmt.locale". While Struts2 uses it's own key. Now using the JSTL key to stuff the current locale into an

Modifying action mapping per device type

2010-01-28 Thread Marcus Bond
Hi, I am wanting to implement a site such that some actions may have a different mapping depending upon the device used (e.g. regular browser / mobile device etc.) but what I don't want to do is have to litter my actions with this type of logic. It could be at the result mapping level (i.e. i

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

2010-01-28 Thread Emi Lu
Thank you Chris! As far as I know the Struts-Tiles plugin supplied with Struts 2.1.8.1 does not support Tiles 2.2 (or 2.1 for that matter). This is exactly the reason! I think both struts2 & Tiles2' official websites should highlight this in a very prominent position! Lowered the version t

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

2010-01-28 Thread Chris Pratt
As far as I know the Struts-Tiles plugin supplied with Struts 2.1.8.1 does not support Tiles 2.2 (or 2.1 for that matter). (*Chris*) On Thu, Jan 28, 2010 at 11:15 AM, Emi Lu wrote: > Good afternoon, > > Tiles2.2.1, Struts 2.1.8.1, Spring 2.5.6, tried simple example, but always > got the follow

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

2010-01-28 Thread Emi Lu
Good afternoon, Tiles2.2.1, Struts 2.1.8.1, Spring 2.5.6, tried simple example, but always got the following error: === java.lang.NullPointerException org.apache.tiles.definition.UnresolvingLocaleDefinitionsFactory.getDefinition(UnresolvingLocaleDefiniti

I18nInterceptor / request_locale not working as expected

2010-01-28 Thread Stephan R. Mueller
Hi list, I'm using struts 2.1.8 with JDK6 I've Message.properties | Message_de_DE.properties and Message_en_US.properties. When switching the local via a browser plugin everything works fine and I can see that Session.WW_TRANS_I18N_LOCALE contains the expected locale (de_DE or en_US). Now I've a

Re: using a custom struts.multipart.parser in struts2.1.8.1

2010-01-28 Thread Brice Roncace
Lo and behold! This does work. . . the problem I was initially running into was that I was using the name: struts.multipart.parser and not the correct (new as of 2.1.8 ?) struts.multipart.handler So yes, defining the bean to use, in this case jakartax, will accomplish just what a struts-plugin

Struts2+spring plugin problem

2010-01-28 Thread baskar
Hi All,    I am new to struts2+spring and i am just trying to learn. I have added following in web.xml.         struts2         org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter                 struts2         /*                   org.springframework.web.co

Re: select box dynamic loads depends on another select box

2010-01-28 Thread Johannes Geppert
you can publish more then one topics like this: nani2ratna wrote: > > Hi Johannes, > > Can you tell me how to change this example to work for single select box. > I mean If user change anything in select box, another 2 select boxes need > to get change their data. >

Re: Not Able to call Action

2010-01-28 Thread SweetRahul
Hi Saeed, Thanks for trying to solve my issue. Actually...Struts 2 is a Great Framework for Developing Web Applications. But the word great adds more complexity to the Framework. I am using Dojo with Struts2, but unexpectedly it did not works with IE it works in Mozilla FF but not in IE. So, Is

Re: Not Able to call Action

2010-01-28 Thread Saeed Iqbal
It looks fine to me perhaps someone else can help you. On Thu, Jan 28, 2010 at 4:42 PM, SweetRahul wrote: > > Yes, i have written it correct way...if i am not wrong. > Please have a look at following struts.xml file > > > >my.jsp >Login.js

Re: Not Able to call Action

2010-01-28 Thread SweetRahul
Yes, i have written it correct way...if i am not wrong. Please have a look at following struts.xml file my.jsp Login.jsp now here the URL is like this: "~/secure/login.action", Isn't it ? and the code in jsp file is as

Re: Not Able to call Action

2010-01-28 Thread Saeed Iqbal
It says secure.Login not just login. Case Sensitive too. On Thu, Jan 28, 2010 at 4:25 PM, SweetRahul wrote: > > Yes. But still it gives me an error... > My Struts.xml file contain the above action with name "login" and for > double > check > in result i have provided name="success". > > My Actio

Re: Not Able to call Action

2010-01-28 Thread SweetRahul
Yes. But still it gives me an error... My Struts.xml file contain the above action with name "login" and for double check in result i have provided name="success". My Action is executed successfully...but it will not display the page which is mapped to SUCCESS. If you want some more information

Re: Not Able to call Action

2010-01-28 Thread Saeed Iqbal
That needs to be defined in struts.xml action and its result. On Thu, Jan 28, 2010 at 4:10 PM, SweetRahul wrote: > > Hi, > > Very Very thank you for Such a Wonderful Explanation about the Initial > Configuration for Struts2. > > But, I have always stuck here(whenever i create application from >

Re: Not Able to call Action

2010-01-28 Thread SweetRahul
Hi, Very Very thank you for Such a Wonderful Explanation about the Initial Configuration for Struts2. But, I have always stuck here(whenever i create application from scratch) I have checked all the My Configurations... but then also my application gives me error something like this: " Str

Re: NoClassDefFoundError Exception

2010-01-28 Thread Saeed Iqbal
Jars are in the maven dependency list? On Thu, Jan 28, 2010 at 3:59 PM, LotusHeart wrote: > > Hello, > I am quite new in Struts2 > Even I have the same errors.The jar files mentioned above are available > there but still it gives me the same error > Please tell me the solution here > > Jan 28, 2

NoClassDefFoundError Exception

2010-01-28 Thread LotusHeart
Hello, I am quite new in Struts2 Even I have the same errors.The jar files mentioned above are available there but still it gives me the same error Please tell me the solution here Jan 28, 2010 4:03:02 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server

Re: select box dynamic loads depends on another select box

2010-01-28 Thread nani2ratna
Hi Johannes, Can you tell me how to change this example to work for single select box. I mean If user change anything in select box, another 2 select boxes need to get change their data. Thanks in advace Ratna Johannes Geppert wrote: > > Maybe this helps you. > > http://code.google.com/p/str