Re: an odd problem about struts2 annotation

2011-10-02 Thread Jeffrey Black
Is your Tomcat configured for autodeploy=true? tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html JB On Sep 29, 2011, at 10:30 PM, Steven Yang wrote: > for one reason is that struts2 will not scan your classes in jar is that if > someone tempered with you jar or any of your jar has class wi

Re: an odd problem about struts2 annotation

2011-09-29 Thread Steven Yang
for one reason is that struts2 will not scan your classes in jar is that if someone tempered with you jar or any of your jar has class with Struts Annotations then your user can access these actions without you knowing it. I believe this is the same reason why Spring doesnt scan files in jars and i

Re: an odd problem about struts2 annotation

2011-09-29 Thread dan.zheng
I know some tricky about this problem the struts convention will scan action class in the specific package for example: struts.convention.package.locators indicate the action class suffix but when you jar the classes,I suppose that struts2 can't scan the action class in jar files,if this is true,I

Re: an odd problem about struts2 annotation

2011-09-29 Thread dan.zheng
I jar the classes and put it into WEB-INF/lib of course you know,the war will package all jars and jsp files in bundle why the struts2 can't scan classes in WEB-INF/lib? On Fri, Sep 30, 2011 at 10:05 AM, Steven Yang wrote: > sorry just to be clear > did you "jar" the classes or did you "war" the

Re: an odd problem about struts2 annotation

2011-09-29 Thread Steven Yang
sorry just to be clear did you "jar" the classes or did you "war" the classes? if you "jar" the classes then i dont think struts 2 will scan your classes in jars. On Thu, Sep 29, 2011 at 2:34 PM, dan.zheng wrote: > hi,everyone > I meet an odd problem with struts2 annotation,Let me elaborate it

an odd problem about struts2 annotation

2011-09-28 Thread dan.zheng
hi,everyone I meet an odd problem with struts2 annotation,Let me elaborate it first import java.util.List; import lombok.Getter; import lombok.Setter; import org.apache.commons.lang.StringUtils; import org.apache.struts2.ServletActionContext; import org.apache.struts2.convention.annotation.Acti