Tapestry文件通过Tomcat上传

时间:2012-12-22 19:58:52

标签: java tomcat7 tapestry

我在Tapestry 5.3.6上上传文件时遇到问题。 我将此作为参考http://tapestry.apache.org/uploading-files.html 使用Jetty Web服务器,一切都很好,文件上传到项目目录。 但是,如果我在Tomcat上运行app,则文件会上传到Tomcat目录中。 有没有办法指出Tomcat将文件上传到项目目录? 在此先感谢:)

1 个答案:

答案 0 :(得分:0)

据我所知,您可以在AppModule中的contribApplicationDefaults方法中使用参数,例如

  

configuration.add(UploadSymbols.REPOSITORY_LOCATION,);

试试。