Just some clarifications. --- sukritthareja <[EMAIL PROTECTED]> wrote: > 2. web.xml > - Add following elements to web.xml > <listener> > <listener-class> > org.springframework.web.context.ContextLoaderListener > </listener-class> > </listener>
This is only necessary if you're using Spring. If you're not, it's not required, and will break applications that aren't using Spring due to the Spring classes not being found. > 3. struts-config.xml > c) Include <include file="struts-default.xml"/> This isn't necessary. > 4. Action Classes > b) Make your Action class to extend ActionSupport, instead of Action. While > this is not mandatory, it is beneficial to do so because then any POJO can > be used as an Action Object. Further we then will have access to predefined > tokens such as SUCCESS and ERROR. The reason to extend ActionSupport is to get the default implementations of things like validation and I18N support. Actions are POJOs without extending ActionSupport. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]