On 2016-11-01 15:17 (-0400), Ken McWilliams <ken.mcwilli...@gmail.com> wrote: 
> Am I wrong in assuming that this new package is supposed to be the default?
> If so it should extend conventions-default and there is some constant that
> should be set such that conventions uses this package by default.
> 
> Also, perhaps of greater importance: If conventions was working before then
> the results would by default be in /WEB-INF/content/ and does not <constant
> name="struts.convention.result.path" value="/"></constant> now ask struts
> to search at the root? In which case it probably won't find the previously
> established views?
> 
> For reference see: https://struts.apache.org/docs/convention-plugin.html
> Search on that page for:
> struts.convention.result.path and
> struts.convention.default.parent.package
> 
> On Tue, Nov 1, 2016 at 1:05 PM, ronald.a.ander...@gmail.com <
> ronald.a.ander...@gmail.com> wrote:
> 
> >
> >
> > On 2016-11-01 12:20 (-0400), Lukasz Lenart <lukaszlen...@apache.org>
> > wrote:
> > > 2016-11-01 4:00 GMT+01:00 Ronald Andersen <ronald.a.ander...@gmail.com>:
> > > > Hi Lakasz
> > > >
> > > > Below is the struts.xml and LoginAction (for reference). Using default
> > for
> > > >  package name in struts.xml:
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > >
> > > > <!DOCTYPE struts PUBLIC
> > > > "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
> > > > "http://struts.apache.org/dtds/struts-2.3.dtd";>
> > > > <struts>
> > > > <!-- constant to define result path locations to project root
> > directory -->
> > > > <constant name="struts.convention.result.path" value="/"></constant>
> > > > <package name="default" namespace="/" extends="struts-default">
> > > >         <interceptors>
> > > >             <interceptor name="myCustomInterceptor"
> > > > class="net.codejava.struts.MyCustomInterceptor" />
> > > >             <interceptor-stack name="customStack">
> > > >                 <interceptor-ref name="myCustomInterceptor"/>
> > > >             </interceptor-stack>
> > > >         </interceptors>
> > > >     </package>
> > > >
> > > > </struts>
> > >
> > > Do you have more interceptors in your customStack? Secondly, did you
> > > define it as a default stack with <default-interceptor-ref/> ?
> > >
> > > I'm using almost the same setup and everything is working perfectly
> > > fine. Are you sure there is no exception when starting container?
> > > Here you have almost the same setup
> > > https://github.com/apache/struts-examples/tree/master/unknown-handler
> > >
> > >
> > > Regards
> > > --
> > > Łukasz
> > > + 48 606 323 122 http://www.lenart.org.pl/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > For additional commands, e-mail: user-h...@struts.apache.org
> > >
> > > Hi Lukasz,
> >
> > Reviewing struts-examples/unknown-handler/ and interceptors
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> 
> -- 
> Sent from my C64 using a 300 baud modem
> Hi Ken,

Reviewing the convention plugin documentation

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to