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
Is there anyway we can use /client/{clientId}/business/{businessId} kind of
URLs in Struts 2.0?
-- AB
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.blueskyminds.com.au/url-hierarchy/ is not available.
-- AB
On Mon, Jul 26, 2010 at 4:30 PM, Kevin Jones kev.r.jo...@gmail.com 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
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
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 kev.r.jo...@gmail.com wrote:
There is a cached copy of the site here
Thanks Kevin
From: Kevin Jones kev.r.jo...@gmail.com
To: Struts Users Mailing List user@struts.apache.org
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
in 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
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
in context:
http://www.nabble.com/Struts-2-%2B-Rest-URLs-tp19179856p19180492.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
)
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 unsubscribe, e-mail: [EMAIL PROTECTED
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
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
.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Struts-2-%2B-Rest-URLs-tp19179856p19183626.html
Sent from the Struts - User mailing list archive at Nabble.com
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
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/S2-%2B-REST-urls-tf4152090.html#a11862390
Sent from the Struts - User mailing list archive at Nabble.com
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)
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 file.
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
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
constant name=struts.enable.DynamicMethodInvocation
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
23 matches
Mail list logo