Re: [S2] Results Based on URL File Types

2007-05-24 Thread Don Brown
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

RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
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

Re: [S2] Results Based on URL File Types

2007-05-24 Thread Kevin Conroy
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

RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
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.

RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
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

Re: [S2] Results Based on URL File Types

2007-05-24 Thread Roger Varley
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

RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
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

[S2] Results Based on URL File Types

2007-05-24 Thread Kevin Conroy
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