>From the research I have done on using URLRewrite with Struts2, it just isn't >very easy to get the two working together. I had previously used Struts 1 >with URLRewrite and again it is difficult. It seems easiest when using >URLRewrite with plain old servlets..
Other frameworks such as Ruby on Rails and Stripes (from what I was told), incorporate the RESTful URL syntax out of box. It would be nice to see S2 implement this one day. The REST plugin kinda does this, sortof, but not really in a full blown approach. In order for S2 to do this fully, S2 tags would have to be able to generate URLs RESTfully as well as break apart requests using regex, IMO. Andy > Date: Tue, 24 Feb 2009 10:09:44 +0100 > Subject: Re: issues when using urlrewritefilter with struts2 > From: krom...@gmail.com > To: user@struts.apache.org > > Last time I reply to myself, honest... > > On Tue, Feb 24, 2009 at 9:25 AM, Wim De Smet <krom...@gmail.com> wrote: > > I tried rewriting without including the query string, but for some > > reason struts then doesn't pick up on the get parameters, so if you > > try to include them in an s:url it doesn't work. I'll try some more > > things but I'm afraid I'll just end up having to give this up. > > Turns out this particular problem was being caused by a stray '?' > (question mark) at the end of the to part of the rule. Removing that > solved this and now at least it works if I don't include the query > params. Thanks all for your help. > > regards, > Wim > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ Access your email online and on the go with Windows Live Hotmail. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Access_022009