Re: [S2] Design patterns

2007-06-11 Thread Kyle Adams
meeboo wrote: > > Do you create an action class (e.g. UserAction.java) for all User actions, > or do you separate them into UpdateUser.java/CreateUser.java etc...? > I am also interested in the community's thoughts on this question. On one hand, having an action class for each use case tends

Re: [S2] RestfulActionMappers and Namespace

2007-04-20 Thread Kyle Adams
Musachy Barroso wrote: > > Does it work with only zero conf? (no RestfulActionMapper) > Yup. Works if I turn off RestfulActionMapper (zero conf still used) and works if I turns off the namespace (zero conf still used). Just doesn't work if all three are in effect. Kyle -- View this message

Re: [S2] RestfulActionMappers and Namespace

2007-04-20 Thread Kyle Adams
Kyle Adams wrote: > > As can be seen in the annotations, I'm using the JSON plugin to serve up > the result. Any ideas why it thinks "v1" is my action? Maybe it's the > combination of zero conf, a namespace, and RestfulActionMapper? > I should also no

Re: [S2] RestfulActionMappers and Namespace

2007-04-20 Thread Kyle Adams
Martin Gainty wrote: > > Does this help? > Hmm... not really. So the unit test works, but in my app I keep getting the following errors when trying to use namespaces in conjunction with the RestfulActionMapper: There is no Action mapped for action name v1. - [unknown location] This is a ver

[S2] RestfulActionMappers and Namespace

2007-04-19 Thread Kyle Adams
Do either of the RestfulActionMappers support namespaces? Either they don't, or I'm mucking something up. Kyle -- View this message in context: http://www.nabble.com/-S2--RestfulActionMappers-and-Namespace-tf3610682.html#a10090004 Sent from the Struts - User mailing list archive at Nabble.com.

Re: [S2] JSON Plugin and No Result Defined

2007-04-19 Thread Kyle Adams
Musachy Barroso wrote: > > I've found that the "Config Browser" plugin helps me a lot to debug this > kind of problems. > I'll have to look into that plugin. In the meantime, I think I've got it figured out. I had Struts' zero config feature enabled in my web.xml: actio

Re: [S2] JSON Plugin and No Result Defined

2007-04-19 Thread Kyle Adams
I've fixed the original problem, but I'm not sure why the fix works... I had to change my action name to title case: Is the requirement for a title cased action name specific to the JSON plugin? Other Struts 2 examples have their action names in all lowercase... Kyle -- View this message in

Re: [S2] JSON Plugin and No Result Defined

2007-04-19 Thread Kyle Adams
Kyle Adams wrote: > > I had to make a few modifcations that should probably be corrected in the > Confluence page, but more on that later. > Just realized that I forgot to mention those modifications: * Added a "package example;" at the beginning of JSONExample.j

[S2] JSON Plugin and No Result Defined

2007-04-19 Thread Kyle Adams
I suspect my problem is something obvious, the type that makes committers fire off "please read the list!" e-mails... But I've been searching through the list and haven't had any luck. Apologies in advance. I'm using the JSON plugin. As a sanity check, I tried to get the JSONExample listed at

Accessing a page via multiple methods

2005-09-06 Thread Kyle Adams
g an ActionForm for a screen that can be accessed either by submitting a form (POST) or by clicking on a link (GET)? Thanks, Kyle _ Kyle Adams | Java Developer | Gordon Food Service | 616-717-6162 - To unsubscribe, e-mai