Hi Michael again, I said what you have said properly but none of the interceptors defined in struts.xml are working. <interceptor-ref name="exception"/> <interceptor-ref name="alias"/> <interceptor-ref name="servlet-config"/> <interceptor-ref name="prepare"/> <interceptor-ref name="i18n"/> <interceptor-ref name="chain"/> <interceptor-ref name="debugging"/> <interceptor-ref name="profiling"/> <interceptor-ref name="scoped-model-driven"/> <interceptor-ref name="model-driven"/> <interceptor-ref name="fileUpload"/> <interceptor-ref name="checkbox"/> <interceptor-ref name="static-params"/> <interceptor-ref name="params">
What do you think what causes this mistakes. Thanks. Michael Horwitz wrote: > > You need to do two things: > > 1) Add the Apache snapshot repository to your list of repositories in your > pom.xml file. > 2) Add a property in the pom.xml file for the Struts version. > 3) Add the Struts2 2.1.0-SNAPSHOT dependencies to your project. > > It may take some fiddling to get it all working. > > To do 1) add the following to the <repositories> section in the top level > pom.xml in your project: > > <repository> > <id>apache-snapshots</id> > <url>http://people.apache.org/repo/m2-snapshot-repository</url> > </repository> > > To do 2) add the following in the <properties> section of the top level > pom.xml in your project: > > <struts.version>2.1.0-SNAPSHOT</struts.version> > > To do 3) add the following dependencies to the pom.xml in the web module > in > your project (if you started from a basic archetype, this is the top level > pom.xml file): > > <dependency> > <groupId>org.apache.struts</groupId> > <artifactId>struts2-core</artifactId> > <version>${struts.version}</version> > </dependency> > <dependency> > <groupId>org.apache.struts</groupId> > <artifactId>struts2-codebehind-plugin</artifactId> > <version>${struts.version}</version> > </dependency> > <dependency> > <groupId>org.apache.struts</groupId> > <artifactId>struts2-spring-plugin</artifactId> > <version>${struts.version}</version> > <exclusions> > <exclusion> > <groupId>org.springframework</groupId> > <artifactId>spring-beans</artifactId> > </exclusion> > <exclusion> > <groupId>org.springframework</groupId> > <artifactId>spring-context</artifactId> > </exclusion> > <exclusion> > <groupId>org.springframework</groupId> > <artifactId>spring-core</artifactId> > </exclusion> > <exclusion> > <groupId>org.springframework</groupId> > <artifactId>spring-web</artifactId> > </exclusion> > </exclusions> > </dependency> > > > Mike > > On 5/11/07, Struts2 Fan <[EMAIL PROTECTED]> wrote: >> >> >> Hi all, >> >> I just couldn't find how to change the struts-2.0.6 version to >> 2.1.0-SNAPSHOT. I know it is not stable but I want to test its ajax >> support. >> >> Thanks in advance. >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-change-struts-version-to-2.1.0-SNAPSHOT-tf3725933s2369.html#a10427252 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/How-to-change-struts-version-to-2.1.0-SNAPSHOT-tf3725933s2369.html#a10435007 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]