You're absolutely right ! I'll stick to the .xhtml extension, as I have no need for .html.
Thanks ! Pierre 2008/6/26 Laurie Harper <[EMAIL PROTECTED]>: > My guess is that using an action extension of .html creates a conflict with > the Dojo template resources, which are .html files. If you look at your > access logs (or use Firebug to see what XHR requests are being made during > page rendering), you'll see what I mean. > > The easiest thing to do is pick a different action extension (maybe .htm or > .xhtml). If you really need to be able to use .html as the action extension, > you'll have to figure out how to prevent Dojo template requests from being > treated as action requests. > > L. > > > Pierre Goupil wrote: > >> Hello all, >> >> I would like my S2 project to be mapped to .html actions, so I have >> set this up : >> >> - struts.action.extension=html in my struts.properties >> >> - <constant name="xwork.action.extension" value="html" /> in my >> xwork-default.xml >> >> - <constant name="struts.action.extension" value="html" /> in my >> struts-default.xml. >> >> Please note that for the two last ones, I have simply added the >> property to the original file provided in the jar. >> >> It works, in the sense that my actions respond and display my JSPs as >> desired. BUT I can't figure out how to have the auto-completer tag to >> work. If I use the .html extension, I get the following exception : >> >> --- >> Could not find action or result >> There is no Action mapped for action name ComboBox. - [unknown location] >> at >> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186) >> at >> org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41) >> at >> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494) >> at >> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) >> at >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) >> at >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >> at >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) >> at java.lang.Thread.run(Thread.java:619) >> --- >> >> I think this is because Struts is looking for an .action action >> extension : if I revert back to the default .action extension, it all >> works. But as you can guess, I would like to be able to use whatever >> extension I wish to. >> >> A clue, anyone ? >> >> Thanx in advance, >> >> Pierre GOUPIL >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >