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 to
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 very
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 note that when I remove the namespace annotation
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
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
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.java
* Added an import
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:
action name=Item class=com.gfs.item.webapp.action.ItemAction
Is the requirement for a title cased action name specific to the JSON
plugin? Other Struts 2 examples have their
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:
init-param
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
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-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
10 matches
Mail list logo