2011/7/4 Aelbery Lee :
> Yes. I had set "struts.rest.namespace" in the struts.xml to "/ws".
It must work, could you show your action's source code ? Do you map
like these below:
/ws/model -> ModelAction.index()
/ws/mode/1 -> ModelAction.show()
Regards
--
Łukasz
+ 48 606 323 122 http://www.lena
Yes. I had set "struts.rest.namespace" in the struts.xml to "/ws".
--
View this message in context:
http://struts.1045723.n5.nabble.com/Struts2-REST-plugin-problems-tp3492324p4548572.html
Sent from the Struts - User mailing list a
gt; If I removed the PrefixBasedActionMapper and prefixMapping two lines,
> /myapp/mymodule works fine with restful action.
>
> But now /myapp/mymodule raise exception "method not found", execute();
> And /myapp/ws/mymodule raise exception "action not found", ws action.
&
und", ws action.
So I must make a mistake. Thanks for you help.
--
View this message in context:
http://struts.1045723.n5.nabble.com/Struts2-REST-plugin-problems-tp3492324p4544292.html
Sent from the Struts - User mailing l
Hi folks,
I've just resolved my issue. My goal is to add struts-restful-plugin to an
struts2 existent app. So i needed to have an url handler
If I request http://localhost:8080/myApp/login.action, it must be resolved
by DefaultActionMapper
If I request http://localhost:8080/myApp/service/client/3
Hi folks,
I've just resolved my issue. My goal is to add struts-restful-plugin to an
struts2 existent app. So i needed to have an url handler
If I request http://localhost:8080/myApp/login.action, it must be resolved
by DefaultActionMapper
If I request http://localhost:8080/myApp/service/client/3
On 8/31/10 5:17 PM, Rafael Taboada wrote:
But I'm having the same problem "HTTP status 404"
So it is failing to find any valid action mapping? What do your logs show?
This might help you figure out what's going on:
http://struts.apache.org/2.x/docs/config-browser-plugin.html
My struts.xml lo
Hi,
I was debugging PrefixBasedActionMapper and a I noticed that:
- It gets the right actionmappers
"/service" ->
org.apache.struts2.dispatcher.mapper.restful2actionmap...@34e6529c
"" -> org.apache.struts2.dispatcher.mapper.defaultactionmap...@50e8709d
- When I can access the uri /example/HelloW
Great,
But I'm having the same problem "HTTP status 404"
I've downloaded struts-blank2.2.1 and added jars about restful plugin
(struts2-rest-showcase-2.2.1)
My struts.xml looks like :
HelloWorld
On 8/31/10 4:40 PM, Rafael Taboada wrote:
I have in my struts.xml
It means, every url that contains 'service' must be mapped with
Restful2ActionMapper, everything else use default mapping.
Is that correct? What am i missing or doing wrong?
Almost. It means that every request that starts w
Hi,
I've been looking at PrefixBasedActionMapper. What is the way to configure
it?
I have in my struts.xml
It means, every url that contains 'service' must be mapped with
Restful2ActionMapper, everything else use default mapping.
Is that correct? What am i missing or doing wrong?
On Tue, Au
On 8/31/10 3:15 PM, Rafael Taboada wrote:
I migrated my app to 2.1 because I need to use restful plugin, didn't
think in 2.2 because it was released just a month ago (i think) and i
don't know if it is a good option in production environment.
Theoretically any GA (General Availability) release
Thanks so much for your answer.
I migrated my app to 2.1 because I need to use restful plugin, didn't think
in 2.2 because it was released just a month ago (i think) and i don't know
if it is a good option in production environment.
I'll consider your advice. Thanks
On Tue, Aug 31, 2010 at 1:21
On 8/31/10 2:05 PM, Rafael Taboada wrote:
Is there a chance to my traditional actions can co-exist with restful
controllers?...
If you're looking to have different parts of your url space get
processed by different action mappers, the PrefixBasedActionMapper
included in 2.2 might be what you'
On 8/31/10 1:04 PM, Rafael Taboada wrote:
I have an struts2.0.14 app working well and I decided to migrate to
struts2.1.8. Migration worked well.
But when I tried to include rest plugin, my current urls to process some
actions don't work. I have a http 404 error as a result. My goal is using
res
I've just noticed, that rest plugin change the way how i can access to a
specific action.
When i use http://localhost:8080/myApp/runLogin.action, action mapping is
failing. It thinks it is a restful method. and I can access the action
putting http://localhost:8080/myApp/runLogin!execute
Is there
Hi folks,
I have an struts2.0.14 app working well and I decided to migrate to
struts2.1.8. Migration worked well.
But when I tried to include rest plugin, my current urls to process some
actions don't work. I have a http 404 error as a result. My goal is using
restful to publish some methods loca
17 matches
Mail list logo