http://stripes.mc4j.org/jira/browse/STS-268
Patrick Lightbody Autoriginate, Inc. 503-488-5402 http://www.autoriginate.com [EMAIL PROTECTED] "Intelligent testing made convenient" On Sep 11, 2006, at 7:25 AM, James Strachan wrote: > Fancy submitting a patch? I'd like to see how this works too - I'm > interested in cleaner RESTian type URIs too. > > On 9/10/06, Patrick Lightbody <[EMAIL PROTECTED]> wrote: >> Just a heads up - for my project I've implemented "Clean URLs". That >> is, instead of /Home.action I have /home. I did this creating a >> filter that is almost an exact clone of the ServletDispatcher. The >> only tricky parts were: >> >> 1) I had to change the logic to look for the action bean earlier than >> normal, and, if it's not there, just chain through. This is required >> since the filter maps to /*. >> 2) The part where the JspFactory is created requires a Servlet, which >> the filter obviously is not. So I had to create a ghetto >> ServletHelper that just wires up a static instance of itself >> available publicly. This is, unfortunately, the same thing we did in >> WebWork with the JspSupportServlet. Not pretty, but then again >> neither is the JSP/Servlet API :) >> >> Other than that, it works like a charm. The only other thing I'd like >> to do is figure out how to intercept how s:link and s:url tags >> generate their links. Specifically, I want to generate /foo/bar >> rather than /foo?bar=. >> >> In WebWork, the ActionMapper did both the job of Stripes' >> ActionResolver as well as generating URLs for the ww:url tag, for >> example. Perhaps Stripes needs a similar concept? >> >> Patrick >> >> Patrick Lightbody >> Autoriginate, Inc. >> 503-488-5402 >> http://www.autoriginate.com >> [EMAIL PROTECTED] >> >> "Intelligent testing made convenient" >> >> >> >> --------------------------------------------------------------------- >> ---- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Stripes-development mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/stripes-development >> > > > -- > > James > ------- > http://radio.weblogs.com/0112098/ > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Stripes-development mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-development ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
