Re: REST URLs

2010-07-27 Thread Zoran Avtarovski
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

REST URLs

2010-07-26 Thread Arun Kumar Boppudi
Is there anyway we can use /client/{clientId}/business/{businessId} kind of URLs in Struts 2.0? -- AB

Re: REST URLs

2010-07-26 Thread Kevin Jones
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:

Re: REST URLs

2010-07-26 Thread Arun Kumar Boppudi
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

Re: REST URLs

2010-07-26 Thread Kevin Jones
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

Re: REST URLs

2010-07-26 Thread Kevin Jones
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

Re: REST URLs

2010-07-26 Thread mailtolouis2020-struts
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

Struts 2 + Rest URLs

2008-08-27 Thread rakeshxp
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

Re: Struts 2 + Rest URLs

2008-08-27 Thread Jeromy Evans
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)

Re: Struts 2 + Rest URLs

2008-08-27 Thread Jeromy Evans
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

Re: Struts 2 + Rest URLs

2008-08-27 Thread rakeshxp
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

Re: Struts 2 + Rest URLs

2008-08-27 Thread rakeshxp
) 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

Re: Struts 2 + Rest URLs

2008-08-27 Thread Jeromy Evans
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

Re: Struts 2 + Rest URLs

2008-08-27 Thread Jeromy Evans
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

Re: Struts 2 + Rest URLs

2008-08-27 Thread rakeshxp
. - 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

Re: S2 + REST urls

2008-08-26 Thread alvins
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

Re: Re: S2 + REST urls

2007-07-30 Thread Aram Mkhitaryan
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]

Re: S2 + REST urls

2007-07-30 Thread meeboo
- 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

Re: S2 + REST urls

2007-07-27 Thread Ian Roughley
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)

Re: Re: S2 + REST urls

2007-07-27 Thread matihost
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.

Re: S2 + REST urls

2007-07-26 Thread Ted Husted
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

S2 + REST urls

2007-07-26 Thread matihost
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

Re: S2 + REST urls

2007-07-26 Thread Aram Mkhitaryan
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