Yes, you can tell Struts to not use any action extension at all. I'm
doing that right now for a Restful application I developed. I haven't
tried, but you might be able to use wildcards to match the extension
in the action mapping and perhaps use a custom dispatcher result to
determine which actua
n.com/struts2/stuff.html <-- Static HTML
http://domain.com/struts2/dynamic/stuff.html <-- Goes to an action.
Al.
-Original Message-
From: Kevin Conroy [mailto:[EMAIL PROTECTED]
Sent: 24 May 2007 15:51
To: Struts Users Mailing List
Subject: Re: [S2] Results Based on URL File Types
Hi
Hi Roger (and Al),
Thanks for your replies.
I had thought about doing something like what you specified Roger, by
passing the return type as a parameter. However, in keeping with what seems
to be fairly standard RESTful web service protocol, I was hoping to have the
return type specified after th
ECTED]
Sent: 24 May 2007 15:44
To: 'Struts Users Mailing List'
Subject: RE: [S2] Results Based on URL File Types
Just a small observation Roger, whilst you're solution is perfectly
workable, you would need to have a big switch statement (or something
similar) which could get messy.
nt: 24 May 2007 15:38
To: Struts Users Mailing List
Subject: Re: [S2] Results Based on URL File Types
I'm still a newbie as well so take this with a pinch of salt. I would try
doing it this way;
http://www.domain.com/struts2/queryName?param1=foo,param2=xml
http://www.domain.com/struts2/q
I'm still a newbie as well so take this with a pinch of salt. I would
try doing it this way;
http://www.domain.com/struts2/queryName?param1=foo,param2=xml
http://www.domain.com/struts2/queryName?param1=foo,param2=json
http://www.domain.com/struts2/queryName?param1=foo,param2=html
http://www.domai
ginal Message-
From: Kevin Conroy [mailto:[EMAIL PROTECTED]
Sent: 24 May 2007 14:42
To: user@struts.apache.org
Subject: [S2] Results Based on URL File Types
Hi everyone,
I'm new to Struts 2 (and Struts in general, for that matter). I've got the
Struts 2 framework up and running and I
Hi everyone,
I'm new to Struts 2 (and Struts in general, for that matter). I've got the
Struts 2 framework up and running and I'm trying to figure out how to get it
to support a use case for our new application. We'd like to have a set of
web services that look like this:
http://www.domain.com/st
8 matches
Mail list logo