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
Kevin,
>From my knowledge you can't achieve exactly what you're looking for in
struts2 because struts2 uses the first part of the last section of the url
resource identifier as the key for the action lookup (i.e. for all 4 of your
examples the action would be mapped to he same action for queryName
7 matches
Mail list logo