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
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")
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo