Is there anyway we can use /client/{clientId}/business/{businessId} kind of
URLs in Struts 2.0?
-- AB
Hi everyone
What is the best practice to use REST url notation in Struts2 application ?
Does anyone have successful solution ?
Below are my consideration about the available solutions:
I used /* filter mapping for struts filter and set
and tried all available mappers for constant "struts.m
Yes it is.
Look at the REST plugin but then you'll need some more processing.
Jeromy Evans (who was/is a Struts commiter) posted an example a while ago.
Look at this thread here
http://www.mail-archive.com/iss...@struts.apache.org/msg12194.html
The example is supposed to be at: http://www.blues
http://www.blueskyminds.com.au/url-hierarchy/ is not available.
-- AB
On Mon, Jul 26, 2010 at 4:30 PM, Kevin Jones wrote:
> Yes it is.
>
> Look at the REST plugin but then you'll need some more processing.
>
> Jeromy Evans (who was/is a Struts commiter) posted an example a while ago.
>
> Look a
There is a cached copy of the site here
http://webcache.googleusercontent.com/search?q=cache:http://www.blueskyminds.com.au/url-hierarchy/
(you'll need to follow cached copies of the other links as well)
I've sent Jeromy Evans an email asking if it's OK to post his code.
If/when he replies I'll p
I've heard back from Jeromy Evans. He's happy for me to post the code.
Unfortunately it may not be until the weekend as I'm on the road at
the moment,
Kevin
On 26 July 2010 14:11, Kevin Jones wrote:
> There is a cached copy of the site here
>
> http://webcache.googleusercontent.com/search?q=cach
Thanks Kevin
From: Kevin Jones
To: Struts Users Mailing List
Sent: Mon, July 26, 2010 3:05:30 PM
Subject: Re: REST URLs
I've heard back from Jeromy Evans. He's happy for me to post the code.
Unfortunately it may not be until the weekend as I'm
Another option that doesn¹t tie you down to the REST plugin is to use the
URL Rewrite Filter ( www.tuckey.org/urlrewrite/)
We¹ve been using this for a while without any issues.
Z.
>
> Is there anyway we can use /client/{clientId}/business/{businessId} kind of
> URLs in Struts 2.0?
>
> -- AB
It's possible that the use case of a an empty action extension was not
considered when the filter was first designed. It does seem like a
valid use case, and it may be time to patch the filter.
-Ted.
On 7/26/07, matihost <[EMAIL PROTECTED]> wrote:
> I wondering why filter dispatcher do not check
First of all, put that constants in struts.properties file next to
struts.xml
there are some problems with constants defined in struts.xml, some of them
does not work correctly
Then, you can create your namespace and mappings for images and csses, this
will add security,
and you will be able to hi
I have found the order is important in the struts.xml file - i.e. if you
are changing a property that is being used by another (say the names of
the mappers for the CompositeActionMapper), you need to add the
declaration of the property and then define the object (the
CompositeActionMapper) tha
er
>> mapping, but i don`t want to use it.
>>
>> --
>> Greetings
>> Mateusz Nowakowski
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
&
via an init-param. I can
provide a patch if necessary (not sure if it is the best way to serve static
resources though).
Alvin
--
View this message in context:
http://www.nabble.com/S2-%2B-REST-urls-tp11811969p19174079.html
Sent from the Struts - User mailing list archive at Nabble.com
n context:
http://www.nabble.com/Struts-2-%2B-Rest-URLs-tp19179856p19179856.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> First of all, put that constants in struts.properties file next to
> struts.xml
> there are some problems with constants defined in struts.xml, some of them
> does not work correctly
Yes, you are right, for example constant "struts.locale" still is not loaded
correctly when it is in struts.xml
>
> I do not understand well. Do you mean to create new package in sruts.xmland
> add an action which serves static content ?
>
Exactly,
Best,
Aram
Aram Mkhitaryan
52, 25 Lvovyan, Yerevan 375000, Armenia
Mobile: +374 91 518456
E-mail: [EMAIL PROTECTED]
rakeshxp wrote:
Hi All,
I am migrating from struts 2.0.10 to 2.1.2 ( for need of restful URLs).
Could someone help me understand the following ?
1) Is it better to use Annotations or Codebehind for Restful URLs? ( I some
how like the annotations more than assuming some standard for resources)
Jeromy Evans wrote:
rakeshxp wrote:
Hi All,
I am migrating from struts 2.0.10 to 2.1.2 ( for need of restful URLs).
Could someone help me understand the following ?
1) Is it better to use Annotations or Codebehind for Restful URLs? (
I some
how like the annotations more than assuming some st
80/myapp/display/
>
> Where will be set as an ID for the DisplayController
> Otherwise you'll need to customize the actionmapper a little.
>
> Hope that helps.
>
>
>
>
> -
> To uns
mespace(value="/account/logout")
Thanks!
--
View this message in context:
http://www.nabble.com/Struts-2-%2B-Rest-URLs-tp19179856p19180602.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsu
rakeshxp wrote:
Jeromy Evans - Blue Sky Minds wrote:
This is a approach is fine. The annotations are a feature of CodeBehind
in 2.1 (used by CodeBehind to create the configuration)
Note that CodeBehind will be replaced by the ConventionPlugin in 2.2ish
but the annotations won't need to cha
I need to sign off, but have a look at the REST showcase included in the
apps directory of struts2.1
The location of results is best described here:
http://struts.apache.org/2.x/docs/codebehind-plugin.html
Codebehind doesn't have much flexibility in the result location.
If you use freemarker
ks!
>>
>>
>>
>
> Yes. The CodeBehind plugin checks for the presence of the annotation
> when generating the namespace and gives precedence to the annotation.
>
>
>
> -----
> To unsubscribe, e-m
23 matches
Mail list logo