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 :)



-- 
View this message in context: 
http://www.nabble.com/Struts2-%3A-Codebehind-and-Zero-Configuration-tf2793411.html#a7793209
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to