Scott, 

The CodebehindUnknownHandler sort of does the work of the action mapper.
Think of it this way, instead of throwing a 404, the request is handled
by CodebehindUnknownHandler which will find the action/result using it's
own semantics. This allows regular struts.xml configuration at the same
time as Codebehind conventions.

-Wes

On Tue, 2008-06-17 at 14:08 -0700, stanlick wrote:
> That's what I expected to find but instead found this:
> 
> <struts>
>     <bean type="com.opensymphony.xwork2.UnknownHandler"
> class="org.apache.struts2.codebehind.CodebehindUnknownHandler" />
>     <bean type="com.opensymphony.xwork2.config.PackageProvider"
> name="codebehind" class="org.apache.struts2.config.ClasspathPackageProvider"
> />
> 
>     <constant name="struts.codebehind.pathPrefix" value="/"/>
>     <constant name="struts.codebehind.defaultPackage"
> value="codebehind-default"/>
>     <constant name="struts.mapper.alwaysSelectFullNamespace" value="true" />
> 
>     <package name="codebehind-default" extends="struts-default">
>     </package>    
> </struts>
> 
> Are you looking at the source in
> /struts-2.1.2/src/plugins/rest/src/main/java?
> 
> 
> 
> 
> newton.dave wrote:
> > 
> > --- On Tue, 6/17/08, stanlick <[EMAIL PROTECTED]> wrote:
> >> How does this action mapper make its way into the runtime configuration?
> > 
> > In the plugin XML file via bean and constant configs:
> > 
> > <bean name="rest" 
> >       type="org.apache.struts2.dispatcher.mapper.ActionMapper"
> >       class="org.apache.struts2.rest.RestActionMapper" />
> > 
> > and
> > 
> > <constant name="struts.mapper.class" value="rest" />
> > 
> > Dave
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to