Tim Azzopardi wrote:
I have been using appfuse 1.9.4 with webwork (and ibatis) and I have just migrated to struts2 (mostly) sucessfully. (File-upload and, i think, dojo are still not working. More details at the
end of the post)

I've upgraded to struts2 and I'm just now getting to the point where I'm trying to use a datepicker and fighting dojo, but I can help with your file upload problem: It is due to a change in some method names.

In the action, [gs]etFile{,FileName,ContentType} must change to [gs]etDocument{,FileName,ContentType}

I also found that there were a number of dtd's that should be updated, one of which necessitated a change of the outermost tag in struts.xml from <xwork> to <struts>.

Not sure that this change is strictly required, but I eventually modified organization.webapp.listener.StartupListener so that it no longer extends ContextLoaderListener, and instead added org.springframework.web.context.ContextLoaderListener as a listener to web.xml.

Below, I've updated Matt's webwork to struts2 migration instructions from
this thread http://www.nabble.com/-ANN--AppFuse-1.9.4-Released%21-tf2495476s2369.html#a6957455

My additions are marked in bold

JSYK, that bolding did not come through.

9. Download struts2 and create a directory lib\struts-2.0.1 containing
just antlr-2.7.2.jar (*if* using hibernate, antlr-2.7.6.jar is already in
lib/hibernate/lib)
        freemarker-2.3.4.jar
        ognl-2.6.7.jar
        struts2-all-2.0.1.jar
        struts-core-1.3.5.jar
        xwork-2.0-beta-1.jar
   Also put the following struts2 jar dependency in lib\jakarta-commons
        commons-chain-1.1.jar
[Note: I don't know if all these jars are strictly necessary]

I didn't find a need to add struts-core-1.3.5.jar. Do you remember what that addition fixed?

Interesting that I never before found the need to add commons-chain...
...just did it, so hopefully that'll help me somewhere :-)

Is there any specific reason you're not using the struts-packaged dojo? If/when you solve your dojo problem, please post about it--I have a feeling there are a number of people banging our heads against these components.

-Dale

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

Reply via email to