Back Forum Reply New

Another newbie

I have been reading the posts and there seems to be others like me who are having some issues with handler mappings.  I have been playing for a few days and I just can't seem to get a hold on how this works.

I want to be able to fixed paths like ...

wagdogs/home.html
wagdogs/admin.html

so I have the following
   lt;bean id=quot;wagdogsControllerquot; class=quot;WagdogsControllerquot;gt;lt;/beangt;       lt;bean id=quot;adminControllerquot; class=quot;AdminControllerquot;gt;lt;/beangt;          lt;bean id=quot;uclMappingquot; class=quot;org..web.servlet.handler.Sim  pleuclHandlerMappingquot;gt;   lt;property name=quot;alwaysUseFullPathquot; value=quot;truequot; /gt;          lt;property name=quot;mappingsquot;gt;lt;propsgt;    lt;prop key=quot;/homequot;gt;wagdogsControllerlt;/propgt;    lt;prop key=quot;/adminquot;gt;adminControllerlt;/propgt;lt;/propsgt;       lt;/propertygt;   lt;/beangt;

But this does not work, I have to do the following to get it to work
   lt;bean id=quot;uclMappingquot; class=quot;org..web.servlet.handler.Sim  pleuclHandlerMappingquot;gt;   lt;property name=quot;alwaysUseFullPathquot; value=quot;falsequot; /gt;          lt;property name=quot;mappingsquot;gt;lt;propsgt;    lt;prop key=quot;/home*quot;gt;wagdogsControllerlt;/propgt;    lt;prop key=quot;/admin*quot;gt;adminControllerlt;/propgt;lt;/propsgt;       lt;/propertygt;   lt;/beangt;

The problem here is then that

wagdogs/homexxx.html

works as well and I do not want that.

So I would get very greatful if someone could remove the mystery and explain how handlers work.

Thanks,
Jim

Try this:Code:
lt;property name=quot;mappingsquot;gt; lt;propsgt;   lt;prop key=quot;/home.htmlquot;gt;wagdogsControllerlt;/propgt;   lt;prop key=quot;/admin.htmlquot;gt;adminControllerlt;/propgt; lt;/propsgt;
lt;/propertygt;In other words, your original attempt quot;homequot; doesn't match the actual ucl of quot;home.htmlquot;, whereas your second attempt quot;home*quot; does.

HTH,
¥
Back Forum Reply New