On Saturday 08 March 2008 16:40:23 Matt Raible wrote:
> Can you describe your problem in code - by showing what you're trying
> to do and the error you're seeing?
>
Sure!
------------------------------------------------------------
package com.myapp
/**
* Do not know, if this path is correct, but if the dependencies
* in the pom.xml would be right, eclipse would manage
* that for me...
* I just want to reuse the classe, which are utilized by
* org.appfuse.webapp.controller.FileUploadController
*/
import org.appfuse.webapp.controller.FileUpload;
import org.appfuse.webapp.controller.BaseFormController;
public class MyUploadController extends BaseFormController {
...
public ModelAndView onSubmit(HttpServletRequest request,
HttpServletResponse response, Object command,
BindException errors)
throws Exception
{
FileUpload fileUpload = (FileUpload) command;
...
}
}
------------------------------------------------------------
At the moment I just copied the code for FileUpload and FileUploadController
that I got from "appfuse:full-source" and added the missing functionallity
from BaseFormController in MyUploadController.
But I thought that it would be "nicer" (though not really necessary) to spare
that copy of already implented logic and reuse your BaseFormController and
FileUpload classes :)
Greetings
Kai Moritz
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]