Re: [Stripes-users] Mapping to the context root

2009-10-18 Thread Oscar Westra van Holthe - Kind
On 18-10-2009 at 17:39, Freddy Daoud wrote: > Hi Stephen, > > You can do this: > > @UrlBinding("/") > public class YourActionBean implements ActionBean { > @DefaultHandler > public Resolution something() { > ... > } > } > > Hope that helps. Sorry for the quick minimal answer but I'm s

Re: [Stripes-users] Mapping to the context root

2009-10-18 Thread Grzegorz Krugły
Freddy Daoud pisze: > Ah.. well I don't use Glassfish, I don't use EAR files, and I don't > have any problems with / ;-) > Yeah, most of my problems are because of Glassfish bugs (see my trouble with URL decoding few posts back) and being too enterprisey ;-) Perhaps people here have experien

Re: [Stripes-users] Mapping to the context root

2009-10-18 Thread Freddy Daoud
> Well... First of all, setting appropriate context root in web app didn't > work because when it is packed in an EAR file, application.xml has to be > used. But having / there doesn't work, neither ROOT, etc. So I found out > that there's a conception of default web app in Glassfish settings. T

Re: [Stripes-users] Mapping to the context root

2009-10-18 Thread Grzegorz Krugły
Freddy Daoud pisze: > Hi Grzegorz, > > >> I've had many problems with binding to / and in the end just wrote my >> own filter which rewrites some URLs (eg. / to /home). >> > > I'm curious, what were the many problems that you encountered? Well... First of all, setting appropriate context

Re: [Stripes-users] Mapping to the context root

2009-10-18 Thread Freddy Daoud
Hi Grzegorz, > I've had many problems with binding to / and in the end just wrote my > own filter which rewrites some URLs (eg. / to /home). I'm curious, what were the many problems that you encountered? Cheers, Freddy http://www.stripesbook.com ---

Re: [Stripes-users] Mapping to the context root

2009-10-18 Thread Grzegorz Krugły
Remember that in web.xml it has to say like the following - url-pattern is important here. I've had many problems with binding to / and in the end just wrote my own filter which rewrites some URLs (eg. / to /home). If You'd like, I can give it to You. DynamicMappingFilter

Re: [Stripes-users] Mapping to the context root

2009-10-18 Thread Freddy Daoud
Hi Stephen, You can do this: @UrlBinding("/") public class YourActionBean implements ActionBean { @DefaultHandler public Resolution something() { ... } } Hope that helps. Sorry for the quick minimal answer but I'm short on time, let me know if you need more details. Cheers, Freddy ht

[Stripes-users] Mapping to the context root

2009-10-18 Thread Stephen Nelson
Hello, I'm just beginning development with Stripes having come from Struts2 and Wicket in the past. I have a question which I feel is probably a FAQ but couldn't find it either on the stripes site or with some Google searching. Maybe I missed it though. Anyway I want to map an action to the

Re: [Stripes-users] Multiple @HandlesEvent

2009-10-18 Thread Grzegorz Krugły
Why would I separate editing from creating? It would be 99.9% of repeating myself. Alex Wibowo pisze: > I think you need to rethink the design of your method. I generally try > to keep a method to be as simple as possible (i.e. do one thing, > instead of multiple things) > --

Re: [Stripes-users] Multiple @HandlesEvent

2009-10-18 Thread Alex Wibowo
I think you need to rethink the design of your method. I generally try to keep a method to be as simple as possible (i.e. do one thing, instead of multiple things) 2009/10/2 Grzegorz Krugły > Hello, > > Is it possible to use multiple @HandlesEvent on a single action method? > I don't like my cur

[Stripes-users] IntelliStripes 2.0.7 is out

2009-10-18 Thread Evgeny Shepelyuk
Hi, After long delay - new version with minor bugfix. Get it from http://intellistripes.googlecode.com/files/IntelliStripes-2.0.7.jar or IntelliJ plugin repository. -- Come build with us! The BlackBerry(R) Developer Co

Re: [Stripes-users] URL decoding seems wrong

2009-10-18 Thread Grzegorz Krugły
When I'm farther from the deadline, I'll take some time to file the issue in Glassfish project, because it's their bug (wrong URL decoding in getServletPath) in the first place. I'd just like to know the difference between getRequestURI and getServletPath methods, thus I ask :-) The STS-575 does

Re: [Stripes-users] URL decoding seems wrong

2009-10-18 Thread Ben Gunter
Hi, Grzegorz. Take a look at STS-575 for a little history on this topic. http://www.stripesframework.org/jira/browse/STS-575 We don't want to go down this path again. It seems like an insignificant change, but it's not. -Ben 2009/10/17 Grzegorz Krugły > I meant using URLDecoder.decode(request