Rest Plugin + IndexController and disabling content types

2008-08-30 Thread rakeshxp
Hi All, I have 2 questions regarding the struts-rest plugin ( 2.1.3-snapshot) 1) How can I write a controller that will handle the request on "/" ( i.e http://www.myhost.com )? 2) As I understand, the rest plugin by default handles XML and JSON extensions too ( http://struts.apache.org/2.x/docs

Re: Result Annotations

2008-08-29 Thread rakeshxp
Awesome. This worked! Thanks! newton.dave wrote: > > --- On Fri, 8/29/08, rakeshxp wrote: >> I am using Result annotations in the following manner (static way ) >> @Results({ >> @Result(name = "index", value = >> "/jsp/en_US/help.jsp")

Result Annotations

2008-08-28 Thread rakeshxp
Hi, I am using Result annotations in the following manner ( static way ) @Results({ @Result(name = "index", value = "/jsp/en_US/help.jsp") }) How can I pass a dynamic value to the result annotation, so that I can achieve something like this @Results({ @Result(name = "index", value = "/j

Re: Struts 2 Rest + Prevent Session creation

2008-08-28 Thread rakeshxp
Jeromy Evans - Blue Sky Minds wrote: > > rakeshxp wrote: >> But this does not seem to work. When I hit any restful URL, then there is >> a >> JSESSIONID cookie being set. Could someone point out what is wrong with >> the >> above config ? >> >> Thanks! &g

Struts 2 Rest + Prevent Session creation

2008-08-27 Thread rakeshxp
Creating a new post for a new query on struts 2 rest plugin. In my current app ( built on struts 2.0.10), I have a custom interceptor stack ( which is set as default-interceptor-ref ). the code looks like this: true WARN

Re: Struts 2 + Rest URLs

2008-08-27 Thread rakeshxp
rks ) Thanks! Jeromy Evans - Blue Sky Minds wrote: > > 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 configur

Re: Struts 2 + Rest URLs

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

Re: Struts 2 + Rest URLs

2008-08-27 Thread rakeshxp
Jeromy Evans - Blue Sky Minds 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 C

Struts 2 + Rest URLs

2008-08-27 Thread rakeshxp
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) 2) I am stuck at

Struts2 + Profiling

2007-09-17 Thread rakeshxp
Hello Everyone, I am using Struts 2.0.9. I want to disable profiling for my application and have the following properties configured to set so In Struts.xml The interceptors in my stack are

Re: Struts 2 URL parameters lost - final status

2007-08-15 Thread rakeshxp
I am using Struts 2.0.6 and the jar contains struts struts-default.xml which contains the following property We have a struts.xml in WEB-INF/classes folder and I was trying to override the default actionmapper by having the following lines in my struts.xml ( just for testing

Struts2 + Dynamic Forms + File Upload

2007-08-06 Thread rakeshxp
Hi, I am trying to create a form which would have dynamic number of file tag ( this would be created by the JS ). I am looking for a way to do so in struts. I have created the following class public class FileDetails { private File file; private String contentType; private String