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 (

Result Annotations

2008-08-29 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 =

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) }) How can I pass a dynamic value to the result annotation, so

Re: Struts 2 Rest + Prevent Session creation

2008-08-28 Thread rakeshxp
Found the issue. I had missed adding %@ page contentType=text/html; charset=UTF-8 session=false pageEncoding=UTF-8% in the JSP page ( by default session is true ). Now no session is created ( and so no JSESSIONID cookie is set ) Thanks! Jeromy Evans - Blue Sky Minds wrote: rakeshxp

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

Re: Struts 2 + Rest URLs

2008-08-27 Thread rakeshxp
? Thanks! 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 Codebehind for Restful URLs? ( I some how

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

Re: Struts 2 + Rest URLs

2008-08-27 Thread rakeshxp
) 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 configuration) Note that CodeBehind will be replaced by the ConventionPlugin

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: package name=mydefault extends=struts-default namespace=/

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 constant name=struts.devMode value=false / The interceptors in my stack are interceptor-ref

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 bean type=org.apache.struts2.dispatcher.mapper.ActionMapper name=struts class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper / bean

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