Re: Struts2 and Maven Archetypes

2010-08-17 Thread Lukasz Lenart
Hi, I added archetype catalog, could you test it? mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl

Re: [ANN] Struts 2.2.1 GA release available

2010-08-17 Thread mailtolouis2020-struts
The struts-2.2.1-src.zip source link is wrong From: Lukasz Lenart lukasz.len...@googlemail.com To: Struts Users Mailing List user@struts.apache.org; em...@encs.concordia.ca Sent: Mon, August 16, 2010 8:12:01 PM Subject: Re: [ANN] Struts 2.2.1 GA release

Re: [ANN] Struts 2.2.1 GA release available

2010-08-17 Thread Lukasz Lenart
2010/8/17 mailtolouis2020-str...@yahoo.com: The struts-2.2.1-src.zip source link is wrong Thanks, solved, but please wait few minutes before cache will expire Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl

Struts 2.2.1 static params being included in redirects

2010-08-17 Thread jordi
Hey there, since 2.2.1, all my static params are being includes as parameters after any redirect (redirect-action or redirect). for example, i've got mapped /foo/{id}/bar and after executing /foo/1/bar and redirecting to another location i get /foo/1/barbaz?id=1 is there any workaround for

[S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread mailtolouis2020-struts
Hi, After upgrade to 2.2.1, struts appended .xhtml to the url, is there anyway to turn it off like what 2.1.8.1 was? Thanks LV

Re: [S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread Lukasz Lenart
2010/8/17 mailtolouis2020-str...@yahoo.com: After upgrade to 2.2.1, struts appended .xhtml to the url, is there anyway to turn it off like what 2.1.8.1 was? What you have in struts.properties or/and in struts.xml ? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła

Re: [S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread mailtolouis2020-struts
Hi, Here is the constant I define in struts.xml constant name=struts.objectFactory value=spring / constant name=struts.devMode value=true / constant name=struts.ui.theme value=custom / constant name=struts.enable.DynamicMethodInvocation value=false/ constant

Re: [S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread mailtolouis2020-struts
Hi, This solution not work for me, because it now append .action to back instead of xhtml. This causing all my spring security filter not work. Regards LV From: Lukasz Lenart lukasz.len...@googlemail.com To: Struts Users Mailing List user@struts.apache.org

Re: [S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread Dave Newton
Okay, so extrapolate, and try setting it to an empty string. On Tue, Aug 17, 2010 at 6:20 AM, mailtolouis2020-str...@yahoo.com wrote: Hi, This solution not work for me, because it now append .action to back instead of xhtml. This causing all my spring security filter not work. Regards LV

Re: [S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread mailtolouis2020-struts
Hi, Thanks, yes look like it work. But this cause other problem on rest now. For e.g, I call a rest controller like this /user-controller/ABC.json, it will set ABC.json to the rest controller instead of ABC Any clue? Regards LV From: Dave Newton

Re: Struts 2.2.1 static params being included in redirects

2010-08-17 Thread jordi
btw, there's also an exception now: DEBUG com.opensymphony.xwork2.DefaultActionInvocation - Executing action method = execute DEBUG org.apache.struts2.dispatcher.ServletRedirectResult - Caught OgnlException while setting property 'publicId' on type

REST without JSON

2010-08-17 Thread Frans Thamura
hi all i got that every time we create a REST Controller, it is automatically become JSON can anyone help me to turn that feature off and turn that feature on in another URL or package F

[S2] 2.2.1 possible freemarker template bug

2010-08-17 Thread Sean Ford
Hello, We are experiencing some Freemarker theme issues after upgrading to Struts2 2.2.1. Our simple theme in our webroot is not correctly overloading the simple theme in the struts2 jar when referenced from within our custom FTL templates. For example: myCustomUIComponent.ftl =SNIP=

Calling Struts Action file through command line.

2010-08-17 Thread E2241
Hi, 1.) I would like to know if it is possible to call the struts framework through a command line or a console application. Can one call an action class? Is there any possibility to do so? I think its not possible as everything would depend on the struts-config file and the Http Request

Re: Calling Struts Action file through command line.

2010-08-17 Thread Cimballi
Struts allows its actions to be tested using unit testing with mock requests and responses, so yes, you can call the actions from a command line tool. You can follow the guide here about unit testing Struts actions : http://cimballisblog.blogspot.com/2009/09/unit-testing-struts2-actions-with.html

Re: Calling Struts Action file through command line.

2010-08-17 Thread Dave Newton
Another option is to just make a service request from the command line (or anywhere else): it's still HTTP, it's just not coming from a browser. Depending on what you need to get back this can be quite convenient. Dave On Tue, Aug 17, 2010 at 3:45 PM, Cimballi cimba...@cimballi.net wrote:

REST on Struts2 - DAO - Service

2010-08-17 Thread Frans Thamura
hi all we create an example using Struts2-Spring-Hibernate, using Spring way, DAO-Services this is the SVN http://ugforge.gunadarma.ac.id/svn/cimande/branches/rest-struts the project run perfectly but we use this package for @Services and @Transactional import

Spring configuration error

2010-08-17 Thread Rakeshkumar Parmar
Hi, I am not using spring to configure Hello World sample application. But it still gives me listener not registered error for spring context. I am using struts 2.7.1 distribution. Regards, Rakesh DISCLAIMER == This e-mail may contain privileged and confidential information which

Re: Spring configuration error

2010-08-17 Thread Eduard Neuwirt
Hello Rakesh, are you using spring 3.x version ? If yes, please make sure, you have already included all spring 3.0 jars. The entire list of jars can be found here: http://blog.springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/ Listener not cofigured means that one of