Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-11 Thread Don Brown
On 9/11/07, Brian Pontarelli <[EMAIL PROTECTED]> wrote: > > * Would it be possible to support ReST-style parameters (which I > > believe are also SEO-preferred), so that > > "hello-world/save?message=Howdy" could be expressed > > "hello-world/save/message/Howdy". > > > We could give it a shot. Thi

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-11 Thread Ted Husted
On 9/11/07, Brian Pontarelli <[EMAIL PROTECTED]> wrote: > I'll try and get an example running today that tests this dynamic > parameters If it helps, I have some sample code checked in here * http://sq1-struts2.googlecode.com/svn/trunk/articles/smart-ajax-apps/ It goes with an article I'm draft

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-11 Thread Brian Pontarelli
I haven't tried it, but the Result does take a parameters array, which, depending on how it is handled, will allow expressions to be evaluated. In addition, I thought about adding support for expressions within the location of the Result annotation. This would allow you to use non-action redire

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-11 Thread Ted Husted
I filed issues for the last round at Google Code, and threw in one or two other tweaks. Here's a bigger question: For redirects, would we be able to support "Dynamic Parameters for Redirects"? Mark has a good description of the conventional S2 approach here: * http://www.vitarara.org/cms/struts

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-10 Thread Brian Pontarelli
Excellent feedback. Here's my thoughts: * Is SEO "Search Engine Optimization"? What makes hello-action more compliant than HelloAction? Most search engines do not understand or favor camel case as well as the dash or underscore. In fact, some engines will favor the dash character over under

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-10 Thread Ted Husted
So, I've been having great fun with the SmartURLs plugin, and, well, I have some notes :) I'd be happy to open issues for each of these on the Google Code site, but I thought it might be fun to bunch them together for the group. * Is SEO "Search Engine Optimization"? What makes hello-action more

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-07 Thread Brian Pontarelli
Ah, good catch. I'll fix that so that if it isn't set, it will assume no packages exist, which seems like it is an acceptable case. -bp Ted Husted wrote: It wanted "smarturls.action.packages" to be set to something that existed. An empty string also seems to work. I was walking through the wa

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-07 Thread Ted Husted
It wanted "smarturls.action.packages" to be set to something that existed. An empty string also seems to work. I was walking through the walk through, and so I hadn't created a package folder before creating my first page. It seems to be working now, so now I can play some more :) -Ted. On 9/7/

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-07 Thread Brian Pontarelli
I'm using a few other things from that package. You are probably right though - reducing dependencies to put it into core is best. I'll work on moving those files over today. What issues are you having? I could probably fix them pretty quickly. I'll definitely get an example or two completed

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-07 Thread Brian Pontarelli
Okay. Just finishing up the release of 0.18 and I'll put up that ZIP file. This uses DOM (just to save myself the headache of SAX handlers) and all the tests pass. I completely removed all the JDK 1.6 and JAXB stuff and things should be fine with JDK 1.5. You all should be able to drop the J

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-07 Thread Ted Husted
Can you also post a WAR with the hello-world page. I'm still having trouble getting it to run here. I don't know if it would be part of rolling back or not, but it might also be helpful to extract the URLClassLoaderResolver from the other JAR, rather than pull the whole thing along for the sake of

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-07 Thread Brian Pontarelli
Okay, the ZIP file is out there and contains the JAR , source JAR and Java.net Commons JAR. This should be deployable just via extraction. As for the JDK 1.6, I'm working on reverting that now. Although I have to say JAXB right in the JDK and unmarshalling with like 2 lines of code will be miss

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-07 Thread Brian Pontarelli
Sorry for the late reply to everyone. I've been super busy. The project uses a build system called Vertigo-Ant to make it simpler to download deps and such. It is something we use at Texturemedia and makes this project simpler. I can point you to that project if you want to build it. As for

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-07 Thread Ted Husted
I tried building it from source, using 1.6, under Eclipse, and the problem is that a dependency on "net.java.lang.URLClassLoaderResolver" was introduced between ".05" and .14 in the DefaultResultMapBuilder. I In the build.xml and IntelliJ files there are a number of dependencies on various product

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-07 Thread Jim Cushing
It looks like the plugin requires Java 1.6; I have tried running it under 1.6 yet, but that may be the issue. On Sep 6, 2007, at 7:53 PM, Ted Husted wrote: When deploying the SmartUrls plugin, my system is unable to find the class net.java.lang.URLClassLoaderResolver; I tried to google i

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-06 Thread Ted Husted
When deploying the SmartUrls plugin, my system is unable to find the class net.java.lang.URLClassLoaderResolver; I tried to google it without success. Can anyone tell me where this class might be found? It's used by the DefaultResultMapBuilder class. -Ted. On 9/6/07, Ted Husted <[EMAIL PROTE

Re: SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-06 Thread Ted Husted
On 9/4/07, Brian Pontarelli <[EMAIL PROTECTED]> wrote: > BTW, I'm planning on releasing 1.0 of SmartURLs this week and doing some > announcements to lists and such. Are these still plans on pulling that back > into core? I'm trying out 0.14 now. Should there be any problem trying it in an applic

SmartURLs (fork of s2: problem with codebehind plugin)

2007-09-04 Thread Brian Pontarelli
You could also try SmartURLs plugin. I've finally gotten around to writing documentation. I need to publish the latest JAR file today, but once that is up it works very well and I use it with directories like /WEB-INF/content and others. http://code.google.com/p/smarturls-s2 And the docs are: