>

Another thing I bumped into when playing with the calculator example and wanted
to make the URLs generated by Stripes prettier.

>From the quickstart:

> The URLs generated by Stripes are just defaults. To override the URL that an
> ActionBean is bound to all you have to do is annotate the class with
> the @UrlBinding annotation. For example we could have
> written @UrlBinding("/qs/calc") public class CalculatorActionBean ...

I tried this (actually, with the URL "/calc"), but it the resulting page is not 
found:

> HTTP ERROR: 404
> NOT_FOUND
> 
> RequestURI=/test/calc
> Powered by Jetty://

(I first went to the page /test/calc.jsp, and then clicked 'Add'.)

Ideally, I'd like to name my UrlBinding to "/calc.jsp", since it is confusing 
and 
just plain wrong to have two URLs for one page. (Now both /test/calc.jsp and 
/test/calc.action point to the same page.) But it then actions just do nothing 
except reload the .jsp. It's as if the page doesn't go through Stripes at all. 
Perhaps that's what actually is happening.

Antti



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to