Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Struts2 : Codebehind and Zero Configuration

Ron Chan

2006-12-11

Replies:


I've been trying to get Codebehind
http://struts.apache.org/2.x/docs/codebehind-plugin.html
and Zero Configuration
http://struts.apache.org/2.x/docs/zero-configuration.html
to work

found that I had to make a couple of changes

if (resultsByExtension == null) {
  resultsByExtension = loadResultTypes(configuration);
}

was missing from handleUnknownResult, so when using with Zero Conf
loadResutTypes is not run

also resultsByExtension is never null anyway so this code was never run

I made these 2 changes and it now works a treat...

goodbye configuration, hello convention :)



--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.