Re: Webwork -> Struts 2.0.x migration xwork API issue related to ProxyFactories

2012-12-17 Thread ChadDavis
I don't have answers to your specific questions, but I did do a similar migration recently. I encountered one fairly significant hidden issue that I'll warn you about. When you migrate, you can leave your xml on the xworks dtds. It works, but as you migrate up the struts2 versions, there's a poi

Re: REST Mappers

2012-12-13 Thread ChadDavis
> So, it seems like the RestActionMapper needs to be injected with the > > struts.rest.namespace so it can be knowledgeable aobut this when building > > the actionmapping namespace . . . > > But I thin it's rather how you name your action packages: > - com.demo.action.rest.RestAction > - com.demo.a

Re: REST Mappers

2012-12-13 Thread ChadDavis
> So, I can't get this to work when using with convention/rest plugin > > combination. I did NOT try to use it with a xml/rest plugin combo. > > You can combine convention/xml/rest together - in struts.xml you can > define constants or even a new stack which is simpler than use > annotations > Ye

Re: REST Mappers

2012-12-12 Thread ChadDavis
Did you try to use the new REST plugin without Convention plugin ? > REST plugin can work with XML based configuration as well and it has > support for namespace prefix - struts.rest.namespace So, I can't get this to work when using with convention/rest plugin combination. I did NOT try to use i

Re: REST Mappers

2012-12-10 Thread ChadDavis
On Mon, Dec 10, 2012 at 9:30 AM, Lukasz Lenart wrote: > > I'm adding the convention/rest plugin combo to our existing app right > now. > > It's not well documented, but I think it's going to work out. I'll > write > > up a blog entry and post it to the list when I'm finished with my spikes. > >

Re: REST Mappers

2012-12-10 Thread ChadDavis
On Sun, Dec 9, 2012 at 6:09 AM, Antonios Gkogkakis wrote: > another issue, was that every time we had a non REST action > being called. the RestActionMapper, would find it in the configuration and > would treat it as a rest action with no method, so it would try to guess > the method and fail be

Re: REST Mappers

2012-12-10 Thread ChadDavis
On Sun, Dec 9, 2012 at 3:24 AM, Antonios Gkogkakis wrote: > Had we wanted to use the more modern REST plugin, we would have to refactor > the app to use the convention plugin. I'm not sure whether > that's a straightforward task, but back then we encountered a few issues > and gave up. > I'm ad

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread ChadDavis
There are (from 2.3): > > 79:dtdMappings.put("-//Apache Software Foundation//DTD Struts > Configuration 2.0//EN", "struts-2.0.dtd"); > 80:dtdMappings.put("-//Apache Software Foundation//DTD Struts > Configuration 2.1//EN", "struts-2.1.dtd"); > 81:dtdMappings.put("-//Apache S

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread ChadDavis
Why aren't there mappings for the struts-xxx.dtd's? On Mon, Dec 3, 2012 at 1:20 AM, Lukasz Lenart wrote: > 2012/12/1 ChadDavis : > > Thanks Lukasz. This is very useful information. I think this clearly > fixes > > my problem, but I still have some questions. > &

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread ChadDavis
So, it seems like this should be added to the wiki on the webworks to struts 2 migration page . . . I'm more than willing to do provide the text. what do you think? On Mon, Dec 3, 2012 at 1:20 AM, Lukasz Lenart wrote: > 2012/12/1 ChadDavis : > > Thanks Lukasz. This is very usef

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread ChadDavis
Thanks! On Mon, Dec 3, 2012 at 1:20 AM, Lukasz Lenart wrote: > 2012/12/1 ChadDavis : > > Thanks Lukasz. This is very useful information. I think this clearly > fixes > > my problem, but I still have some questions. > > > > 1) when was xwork moved to ASF? > &

Re: wierd stack trace regarding parsing of struts.xml

2012-12-01 Thread ChadDavis
> > But what do you think needs to match the jar file? I mean, > struts2-core.jar doesn't contain xwork-1.1.1.dtd, but the xwork jar does . > . . so why wouldn't it find it if it was just taking the xwork-1.1.1.dtd > and checking the classpath. > > When XWork was moved to ASF, we changed all the D

problem with docs for convention plugin

2012-06-26 Thread ChadDavis
Found a minor bug in the docs that is kind of troublesome on the user, but easy to fix I'm sure . . . http://struts.apache.org/2.3.4/docs/convention-plugin.html#ConventionPlugin-Introduction The convention plugin points to an older version, which is actually not compatible with the 2.3.4 struts

Re: Jetty 6.x vs Tomcat 6.x

2009-03-20 Thread ChadDavis
On Thu, Mar 19, 2009 at 11:12 AM, Wes Wannemacher wrote: > In theory, an app should work on any app server, but from time to time > I've found out about incompatibilities the hard way. For instance, Similarly, I found incompatibility in JSP parsers in the past. My issue was moving from TC to Web

Re: doc problem at struts.properites page

2009-03-02 Thread ChadDavis
I'd be more than happy to fix this kind of thing. How would I do that? On Mon, Mar 2, 2009 at 2:17 PM, Musachy Barroso wrote: > That should be "default.properties" > > On Mon, Mar 2, 2009 at 4:14 PM, ChadDavis wrote: >> On the page that explains the struts.prop

doc problem at struts.properites page

2009-03-02 Thread ChadDavis
On the page that explains the struts.properties, the documentation says: " the list of properties can be found in struts-default.properties (inside struts2.jar). " Shouldn't that just be "default.properties" or is there another properties file called "struts-default.properties"?

struts2-archetype-starter

2009-03-02 Thread ChadDavis
Is there one of these for 2.1 yet? When I follow the links I end up at a 2.0.11 version. I'm just wondering if the docs are behind or this just isn't available yet. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org Fo

Re: [ANN] "Ajax on Struts 2" Training at ApacheCon Europe

2009-02-07 Thread ChadDavis
> Its good to hear... Is there any possibility of getting video of the session > or the presentations.. this will be useful for the developers who are not > able to come to the conference, at least for the developers in other > countries... They don't publish the trainings like that. I'm not sure

Re: How to set base context path?

2009-02-05 Thread ChadDavis
You want this one: http://www.imdb.com/title/tt0042546/ On Thu, Feb 5, 2009 at 3:14 PM, Musachy Barroso wrote: > Ah, now you made curious... > > musachy > > On Thu, Feb 5, 2009 at 5:13 PM, David C. Hicks wrote: >> >> ChadDavis wrote: >>> >>> &quo

Re: How to set base context path?

2009-02-05 Thread ChadDavis
case the path was actually hard-coded in a JSP. Ugh! We also had > not provided a namespace for our struts package, and so apparently it was > defaulting to the package name. Just little details that get left until the > last minute. > > ChadDavis wrote: >>> >>> 2)

Re: How to set base context path?

2009-02-05 Thread ChadDavis
> 2) Is it possible to not have to have the base path defined in Struts at > all? It seems to me that this would be the ideal solution. If you deploy the app as the root app in the servlet container, then your struts namespaces are essentially doing this. I think the net effect is what you are

Re: Access Struts2 Action Properties

2009-02-05 Thread ChadDavis
Custom tag? Is this a custom JSP tag? On Thu, Feb 5, 2009 at 2:21 AM, Dominik Fischer wrote: > Hello folks, > > how can i access a property (i.e. data) of a class like > > public class BabyAction extends ActionSupport implements RequestAware { >private List data; > >public Li

[ANN] "Ajax on Struts 2" Training at ApacheCon Europe

2009-02-04 Thread ChadDavis
Hello. I'm Chad Davis, one of the authors of Struts 2 in Action. I'll be teaching a one day training on Struts 2 Ajax at the ApacheCon Europe ( http://eu.apachecon.com/c/aceu2009/ ). This course will work for Struts 2 newbies as well as Struts 2 developers wanting to see how the framework plays