[S2] Filter Cookie

2007-02-14 Thread ekoje ekoje
Hi Guys, I would like to check a cookie every time a user try to access my website. So, I've created an interceptor, it work fine but it didn't work if the user ask for a JSP page. The interceptor was never called. So, I've created a filter who check all cookies at every request to my server.

I18N

2007-02-14 Thread Juan Espinosa
Hi to all, i need some help with a intenationalization. I have a file named package.properties in the folder where i have located the actions. The localization is not working when i call a jsp like this i have this action to call a jsp (i dont want to call it directly) action

Re: Migrate from Struts 2.0.1 to 2.0.5

2007-02-14 Thread Ted Husted
On 2/13/07, Shuai Zheng [EMAIL PROTECTED] wrote: I will suggest you to wait for the next release, because there are really some critical bugs in the 2.0.5 (especially the bug on select tag). If you mean not being able to select non-string types, the only fix we've had so far breaks a lot of

Spring AOP X-work Error

2007-02-14 Thread thomas_ramapuram
Hi, I was using Spring AOP along with Struts 2.0.5. The problem is that when I try to use AOP for logging performance in Struts I get an exception. The class and the xml Conf and the Exception are given below. I'm using Struts 2.0.5. Actually I'm using a starter application called

Re: I18N

2007-02-14 Thread Dave Newton
--- Juan Espinosa [EMAIL PROTECTED] wrote: I have a file named package.properties in the folder where i have located the actions. The localization is not working when i call a jsp like this action name=viewCustomerLogin result /private/customer/security/login.jsp /result

RE: I18N

2007-02-14 Thread Juan Espinosa
The package names are uy com nilo customer (here is the package.properties) registration (here are the actions) But when i call the jsp i dont use an action, there is no action in the mapping action name=viewCustomerLogin result /private/customer/security/login.jsp /result

RE: I18N

2007-02-14 Thread Juan Espinosa
Maybe i must put a speciall tag in the jsp to load the file (package.properties) in the context, to get the I18N work. -Mensaje original- De: Juan Espinosa [mailto:[EMAIL PROTECTED] Enviado el: miƩrcoles, 14 de febrero de 2007 10:56 Para: 'Struts Users Mailing List' Asunto: RE: I18N

Re: Problem while Struts 2 and Tiles 2 integration.

2007-02-14 Thread Abhijeet Kahale
Can anyone please help? I am waiting for a response... On 2/12/07, Abhijeet Kahale [EMAIL PROTECTED] wrote: Hi All, I have created a small application to get familiar with the Struts 2 and Tiles 2 integration. I am using *struts2-tiles-plugin-2.0.5.jar* , *

Re: Problem while Struts 2 and Tiles 2 integration.

2007-02-14 Thread Dave Newton
--- Abhijeet Kahale [EMAIL PROTECTED] wrote: Can anyone please help? I am waiting for a response... Oh, my bad. I am using *struts2-tiles-plugin-2.0.5.jar* , * tiles-api-2.0-20070130.184344-3.jar* and * tiles-core-2.0-20070130.184344-3.jar* for the integration. (but the struts core

Re: Spring AOP X-work Error

2007-02-14 Thread Dave Newton
--- thomas_ramapuram wrote: I thought i saw a similar error in the userlist sure if it is the same error. Uh, no, that's a different exception and everything. Error: java.lang.IllegalArgumentException: The edit() is not defined in action class $Proxy44 Are you calling an edit method in

Re: Spring AOP X-work Error

2007-02-14 Thread Tom Schneider
I believe this is a bug that is already fixed in trunk. Please take a look at the xwork forum(s) if you need more details. (There a long thread on dynamic proxy invocation over there about this issue.) Tom thomas_ramapuram wrote: Hi, I was using Spring AOP along with Struts 2.0.5. The

[s2] Problem with resin

2007-02-14 Thread Mike Baroukh
Hi. I was using struts1 before. Now, with struts2, there is no more servlet but only a filter. This seems to be a problem with (at least) resin : 1/ When using apache with resin, the apache plugin do not automatically handle /*.do. I have to include in my httpd.conf LocationMatch /.*.do

Re: [s2] Groovy Actions in Struts 2

2007-02-14 Thread Ian Roughley
I remember seeing Groovy support on a blog for WebWork a while back. I think the implementation was a new ActionProxy, so the groovy actions could be scripted dynamically at run time and the page only needed to be refreshed. For some reason, pre-compiling the groovy actions into class files,

Re: Migrate from Struts 2.0.1 to 2.0.5

2007-02-14 Thread Shuai Zheng
Based on my own experience, WW-1711 is a big issue. I know there is a way to walk around it, but I feel it makes the code ugly and it is strange to put extra code there (select tag is popular and shown all pages. Also it is strange that a string will be used as the value of select, in most of

Re: [s2] Groovy Actions in Struts 2

2007-02-14 Thread Mark Menard
On 2/14/07 9:46 AM, Ian Roughley [EMAIL PROTECTED] wrote: I remember seeing Groovy support on a blog for WebWork a while back. I think the implementation was a new ActionProxy, so the groovy actions could be scripted dynamically at run time and the page only needed to be refreshed. For some

Re: [S2] Migrate from Struts 2.0.1 to 2.0.5

2007-02-14 Thread walidito
Thanks shuai for yoyr response, I think I'd better wait for next releases (or for a GA release, if this happens one day I hope). thanks. Shuai Zheng wrote: Based on my own experience, WW-1711 is a big issue. I know there is a way to walk around it, but I feel it makes the code ugly and it

Re: [s2] Groovy Actions in Struts 2

2007-02-14 Thread Dave Newton
--- Mark Menard [EMAIL PROTECTED] wrote: Oooh... I was thinking about something like that, where you would not need to keep reloading the application, but be able to change the script, have it dynamically recompile and simply hit reload. Kind of like you can do with JSP files under the

Re: [S2] Migrate from Struts 2.0.1 to 2.0.5

2007-02-14 Thread Shuai Zheng
You are welcome. I want to say some more here: 1, if your project does not experience any bugs that has been reported for 2.0.1, it is not urgent to upgrade to another beta release. 2, if you need a demo to show to customer, I will suggest you to upgrade because the 2.0.5 use new dojo version and

Re: [s2] Groovy Actions in Struts 2

2007-02-14 Thread Ian Roughley
I think it was Chris from Adigio that had the blog entry. The proxy basically always checked the filesystem for the latest .groovy script, and then used it. I'm not sure about Spring's groovy support, and whether it allows for hot swapping. I also personally think that defining actions in a

Re: [s2] Groovy Actions in Struts 2

2007-02-14 Thread Dave Newton
--- Ian Roughley [EMAIL PROTECTED] wrote: I'm not sure about Spring's groovy support, and whether it allows for hot swapping. You can define how frequently it will check the script for updates, even. I also personally think that defining actions in a service tier doesn't smell right. I'm

Re: [s2] Groovy Actions in Struts 2

2007-02-14 Thread Mark Menard
On 2/14/07 10:03 AM, Dave Newton [EMAIL PROTECTED] wrote: You can configure Spring2 beans to do this via the lang:groovy.../ element. It's not clear to me if you can configure it so the Groovy action can be hot-compiled w/ a standard bean.../ element but w/ a combination of refs or

Re: [s2] Groovy Actions in Struts 2

2007-02-14 Thread Wendy Smoak
On 2/14/07, Mark Menard [EMAIL PROTECTED] wrote: I have Spring configured, but when it goes to instantiate the Groovy action class from the script it's not on the classpath. My environment: * Maven 2 (based off the Struts 2 Archetype) * Jetty plugin * Groovy source files mixed into

[s2] s:url with JSPX?

2007-02-14 Thread Piero Sartini
--- code --- lia href=s:url action=Register/Register/a/li --- code --- This is form the doc of the s:url tag. With jspx this does not work (malformed xml). How do I use it? I need it for the css in the header, so s:a does not help me.

Re: Migrate from Struts 2.0.1 to 2.0.5

2007-02-14 Thread Ted Husted
On 2/14/07, Shuai Zheng [EMAIL PROTECTED] wrote: I am sad to hear that it will not be fixed in 2.0.6 and there is not this issue in previous release. In my experience, a new bug comes with a new release should be easy to solve, but maybe I am not correct. It's still possible that it might be

Doing sometihng with an attribute within a nested:nest loop.

2007-02-14 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here's what I got so far: nested:nest property=classSchedule nested:nest property = trainingDays /nested:nest /nested:nest Now the trainingDays attribute has a property called dow_id which in one way or another I

Re: Problem while Struts 2 and Tiles 2 integration.

2007-02-14 Thread Abhijeet Kahale
On 2/14/07, Dave Newton [EMAIL PROTECTED] wrote: --- Abhijeet Kahale [EMAIL PROTECTED] wrote: Can anyone please help? I am waiting for a response... Oh, my bad. Thnx for the response. I am using *struts2-tiles-plugin-2.0.5.jar* , * tiles-api-2.0-20070130.184344-3.jar* and *

Re: Problem while Struts 2 and Tiles 2 integration.

2007-02-14 Thread Abhijeet Kahale
Sorry, my mistake, please read tried with struts2-core-2.0.1.jar, but it's still not working as tried with struts2-core-2.0.5.jar, but it's still not working On 2/15/07, Abhijeet Kahale [EMAIL PROTECTED] wrote: On 2/14/07, Dave Newton [EMAIL PROTECTED] wrote: --- Abhijeet Kahale [EMAIL

Re: Problem while Struts 2 and Tiles 2 integration.

2007-02-14 Thread Dave Newton
--- Abhijeet Kahale [EMAIL PROTECTED] wrote: I am using *struts2-tiles-plugin-2.0.5.jar* , * tiles-api-2.0-20070130.184344-3.jar* and * tiles-core-2.0-20070130.184344-3.jar* for the integration. (but the struts core jar I am using is *struts2-core-2.0.1.jar *) Why are you

Re: Problem while Struts 2 and Tiles 2 integration.

2007-02-14 Thread Abhijeet Kahale
On 2/15/07, Dave Newton [EMAIL PROTECTED] wrote: --- Abhijeet Kahale [EMAIL PROTECTED] wrote: I am using *struts2-tiles-plugin-2.0.5.jar* , * tiles-api-2.0-20070130.184344-3.jar* and * tiles-core-2.0-20070130.184344-3.jar* for the integration. (but the struts core jar I am