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 (
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 =
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
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
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
?
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
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
)
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
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=/
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
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
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
12 matches
Mail list logo