Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
File Upload Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • File Upload

    Hello Friends

    I am a new member to this forum and spring framework too. I am doing a file upload module in our project and facing some basic things while.

    I have created the controller, Bean and the Htm Form. While compiling the controller i am facing this errors.

    Buildfile: build.xml

    build:
    [mkdir] Created dir: D:\jboss-4.0.2\server\default\deploy\sample.war\build\class es
    [javac] Compiling 2 source files to D:\jboss-4.0.2\server\default\deploy\sample.war\build\class es
    [javac] D:\jboss-4.0.2\server\default\deploy\sample.war\src\FileUpl oadController.java:5: package org.springframework.web.bind does not exist
    [javac] import org.springframework.web.bind.ServletRequestDataBin der;
    [javac] ^
    [javac] D:\jboss-4.0.2\server\default\deploy\sample.war\src\FileUpl oadController.java:7: cannot resolve symbol
    [javac] symbol : class SimpleFormController
    [javac] location: class FileUploadController
    [javac] public class FileUploadController extends SimpleFormController {
    [javac] ^
    [javac] D:\jboss-4.0.2\server\default\deploy\sample.war\src\FileUpl oadController.java:11: cannot resolve symbol
    [javac] symbol : class BindException
    [javac] location: class FileUploadController
    [javac] BindException errors)
    [javac] ^
    [javac] D:\jboss-4.0.2\server\default\deploy\sample.war\src\FileUpl oadController.java:8: cannot resolve symbol
    [javac] symbol : class ModelAndView
    [javac] location: class FileUploadController
    [javac] protected ModelAndView onSubmit(HttpServletRequest request,
    [javac] ^
    [javac] D:\jboss-4.0.2\server\default\deploy\sample.war\src\FileUpl oadController.java:28: cannot resolve symbol
    [javac] symbol : class ServletRequestDataBinder
    [javac] location: class FileUploadController
    [javac] ServletRequestDataBinder binder)
    [javac] ^
    [javac] D:\jboss-4.0.2\server\default\deploy\sample.war\src\FileUpl oadController.java:24: cannot resolve symbol
    [javac] symbol : variable super
    [javac] location: class FileUploadController
    [javac] return super.onSubmit(request, response, command, errors);
    [javac] ^
    [javac] D:\jboss-4.0.2\server\default\deploy\sample.war\src\FileUpl oadController.java:34: cannot resolve symbol
    [javac] symbol : class ByteArrayMultipartFileEditor
    [javac] location: class FileUploadController
    [javac] binder.registerCustomEditor(byte[].class, new ByteArrayMultipartFileEditor());
    [javac] ^
    [javac] 7 errors

    To avoid this should i append all the jar i found in the spring framework. The jar i already included is

    activation.jar
    antlr.jar
    commons-beanutils.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-logging.jar
    commons-validator.jar
    connector.jar
    ejb.jar
    itext-1.3.jar
    jakarta-oro.jar
    jaxrpc.jar
    jdbc2_0-stdext.jar
    jms.jar
    jsp-api.jar
    jstl.jar
    jta.jar
    log4j-1.2.9.jar
    mail.jar
    rowset.jar
    servlet-api.jar
    spring-core.jar
    spring-jdbc.jar
    spring-support.jar
    spring.ftl
    spring.jar
    struts.jar
    xml-apis.jar
Working...
X