<div>Does anybody have samples of fileupload ?</div>
<div>&nbsp;</div>
<div>Can i get a copy?</div>
<div>&nbsp;</div>
<div>Best regards.</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">2007/10/12, Shinpei Ohtani &lt;<a href="mailto:shinpei.ohtani@gmail.com">shinpei.ohtani@gmail.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>As I see, you can not write &lt;filter&gt; after &lt;filter-mapping&gt; for web.xml.<br>So, make sure writing &lt;filter&gt; before &lt;filter-mapping&gt;.
<br><br>Thanks,<br><br>2007/10/12, 李乐 &lt;<a href="mailto:yourslee@gmail.com">yourslee@gmail.com</a>&gt;:<br>&gt; Thanks a lot for your attention.<br>&gt;<br>&gt; teeda1.0.11<br>&gt; seasar2 s2-dao-1.0.39 s2-extension-2.4.17
<br>&gt; tomahawk 1.1.1<br>&gt; commons-fileupload 1.0<br>&gt; -----------------------------------------------------web.xml---------------------------------------<br>&gt; &lt;?xml version=&quot;1.0&quot;?&gt;<br>&gt;<br>&gt; &lt;!--
<br>&gt;&nbsp;&nbsp;* Copyright 2004-2006 the Seasar Foundation and the Others.<br>&gt;&nbsp;&nbsp;*<br>&gt;&nbsp;&nbsp;* Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);<br>&gt;&nbsp;&nbsp;* you may not use this file except in compliance with the License.
<br>&gt;&nbsp;&nbsp;* You may obtain a copy of the License at<br>&gt;&nbsp;&nbsp;*<br>&gt;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a><br>&gt;&nbsp;&nbsp;*<br>&gt;&nbsp;&nbsp;* Unless required by applicable law or agreed to in writing, software
<br>&gt;&nbsp;&nbsp;* distributed under the License is distributed on an &quot;AS IS&quot; BASIS,<br>&gt;&nbsp;&nbsp;* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,<br>&gt;&nbsp;&nbsp;* either express or implied. See the License for the specific language
<br>&gt;&nbsp;&nbsp;* governing permissions and limitations under the License.<br>&gt; --&gt;<br>&gt;<br>&gt; &lt;!DOCTYPE web-app PUBLIC<br>&gt;&nbsp;&nbsp; &quot;-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN&quot;<br>&gt;&nbsp;&nbsp; &quot;
<a href="http://java.sun.com/dtd/web-app_2_3.dtd">http://java.sun.com/dtd/web-app_2_3.dtd</a>&quot;&gt;<br>&gt;<br>&gt; &lt;web-app&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;context-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;
javax.faces.CONFIG_FILES&lt;/param-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /WEB-INF/faces-config.xml<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/param-value&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;description&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Comma separated list of URIs of (additional) faces config files.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (e.g. /WEB-INF/my-config.xml)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; See JSF 1.0 PRD2, 10.3.2<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/description&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/context-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; --&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;context-param&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;server&lt;/param-value&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;description&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State saving method: &quot;client&quot; or &quot;server&quot; (= default)
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; See JSF Specification 2.5.2<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/description&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/context-param&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;context-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;javax.faces.DEFAULT_SUFFIX
&lt;/param-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;.html&lt;/param-value&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/context-param&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;encodingfilter&lt;/filter-name&gt;<br>
&gt;<br>&gt; &lt;filter-class&gt;org.seasar.extension.filter.EncodingFilter&lt;/filter-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;encoding&lt;/param-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;UTF-8&lt;/param-value&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;s2filter&lt;/filter-name&gt;<br>&gt;<br>&gt; &lt;filter-class&gt;org.seasar.framework.container.filter.S2ContainerFilter
&lt;/filter-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;hotdeployfilter&lt;/filter-name&gt;<br>&gt;<br>&gt; &lt;filter-class&gt;org.seasar.framework.container.hotdeploy.HotdeployFilter
&lt;/filter-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;extensionfilter&lt;/filter-name&gt;<br>&gt;<br>&gt; &lt;filter-class&gt;org.seasar.teeda.extension.filter.ExtensionFilter
&lt;/filter-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&lt;!--<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;loginfilter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-class&gt;test.web.start.LoginFilter
&lt;/filter-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>&gt;&nbsp;&nbsp;--&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&lt;!--<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;requestDumpFilter&lt;/filter-name&gt;<br>&gt;<br>&gt; &lt;filter-class&gt;
org.seasar.teeda.core.filter.RequestDumpFilter&lt;/filter-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>&gt;&nbsp;&nbsp;--&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;encodingfilter&lt;/filter-name&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;*.html&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;s2filter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;hotdeployfilter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/*&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&lt;!--<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;requestDumpFilter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/view/*&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;&nbsp;&nbsp;--&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;filter-mapping&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;extensionfilter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/teedaExtension/*&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt; &lt;!--&nbsp;&nbsp; --&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;dcwAuthfilter&lt;/filter-name&gt;<br>&gt;<br>&gt; &lt;filter-class&gt;jp.wess.logic.auth.DcwAuthFilter&lt;/filter-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;dcwAuthfilter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/view/cmn/frameset.html&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;dcwAuthfilter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/view/cmn/header.html&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;dcwAuthfilter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/view/cmn/menu.html&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;dcwAuthfilter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/view/cmn/procOver.html&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;dcwAuthfilter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/view/cu/*&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;dcwAuthfilter&lt;/filter-name&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/view/m/*&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;dcwAuthfilter&lt;/filter-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/view/op/*&lt;/url-pattern&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>&gt;<br>&gt;<br>&gt; &lt;!-- lile --&gt;<br>&gt; &lt;filter&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter-name&gt;extensionsFilter&lt;/filter-name&gt;<br>&gt;<br>&gt; &lt;filter-class&gt;org.apache.myfaces.component.html.util.ExtensionsFilter
&lt;/filter-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;uploadMaxFileSize&lt;/param-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;100m&lt;/param-value&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;description&gt;Set the size limit for uploaded files.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Format: 10 - 10 bytes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10k - 10 KB<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10m - 10 MB<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1g - 1 GB<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/description&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;uploadThresholdSize&lt;/param-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;100m&lt;/param-value&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;description&gt;Set the threshold size - files
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; below this limit are stored in memory, files above<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this limit are stored on disk.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Format: 10 - 10 bytes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10k - 10 KB
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10m - 10 MB<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1g - 1 GB<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/description&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;uploadRepositoryPath&lt;/param-name&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;/work&lt;/param-value&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;description&gt;Set the path where the intermediary files will be<br>&gt; stored.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/description&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- lile --&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&lt;!--<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;listener&gt;<br>&gt;<br>&gt; &lt;listener-class&gt;org.seasar.teeda.core.webapp.TeedaConfigureListener<br>
&gt; &lt;/listener-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/listener&gt;<br>&gt;&nbsp;&nbsp;--&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&lt;!-- Teeda initialize servlet --&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;teedaServlet&lt;/servlet-name&gt;
<br>&gt;<br>&gt; &lt;servlet-class&gt;org.seasar.teeda.core.webapp.TeedaServlet&lt;/servlet-class&gt;<br>&gt; &lt;!--&nbsp;&nbsp;&nbsp;&nbsp;If you want to run teeda-html-example as Portlet, replace<br>&gt; TeedaServlet with<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TeedaPortletExtendedServlet and add S2Portlet and Portlet Filter.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S2Portlet: <a href="http://s2portlet.sandbox.seasar.org/">http://s2portlet.sandbox.seasar.org/</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Portlet Filter: <a href="http://portals.apache.org/bridges/">http://portals.apache.org/bridges/
</a><br>&gt;<br>&gt; &lt;servlet-class&gt;org.seasar.teeda.core.webapp.TeedaPortletExtendedServlet<br>&gt; &lt;/servlet-class&gt;<br>&gt; --&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;param-name&gt;configPath&lt;/param-name&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;param-value&gt;app.dicon&lt;/param-value&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;param-name&gt;debug&lt;/param-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;param-value&gt;true&lt;/param-value&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/init-param&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/servlet&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- facesServlet --&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;facesServlet&lt;/servlet-name&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;load-on-startup&gt;2&lt;/load-on-startup&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/servlet&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;ajaxServlet&lt;/servlet-name&gt;<br>&gt;<br>&gt; &lt;servlet-class&gt;org.seasar.teeda.ajax.AjaxServlet&lt;/servlet-class&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;load-on-startup&gt;3&lt;/load-on-startup&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/servlet&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-mapping&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;facesServlet&lt;/servlet-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;*.html&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/servlet-mapping&gt;
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-mapping&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;teedaServlet&lt;/servlet-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/teedaServlet&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/servlet-mapping&gt;<br>
&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-mapping&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;ajaxServlet&lt;/servlet-name&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;*.ajax&lt;/url-pattern&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/servlet-mapping&gt;<br>&gt;<br>&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;session-config&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;session-timeout&gt;100&lt;/session-timeout&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/session-config&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;welcome-file-list&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;welcome-file&gt;view/main.html&lt;/welcome-file&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/welcome-file-list&gt;<br>&gt;<br>&gt; &lt;/web-app&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; 2007/10/12, Shinpei Ohtani &lt;<a href="mailto:shinpei.ohtani@gmail.com">shinpei.ohtani@gmail.com</a>&gt;:<br>&gt; &gt; Ok, please show me:
<br>&gt; &gt; -web.xml<br>&gt; &gt; -version of Teeda, Seasar2, and Tomahawk and commons-fileupload<br>&gt; &gt;<br>&gt; &gt; I am going to figure out as much as I can.<br>&gt; &gt; And, did you see teeda-html-example that I told you?
<br>&gt; &gt; Any differences you see or not?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; 2007/10/11, 李乐 &lt;<a href="mailto:yourslee@gmail.com">yourslee@gmail.com</a> &gt;:<br>&gt; &gt; &gt; I&#39;am sorry but of course i have getter&amp;setter methods in my page class.
<br>&gt; &gt; &gt; And i also has these namespace in my html file.<br>&gt; &gt; &gt; It&#39;s my fault that i didn&#39;t peist these code .<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; As i said , i don&#39;t want to show the inputFileUpload,thus i hide it.
<br>&gt; &gt; &gt; I want to use another button to achieve the upload function,<br>&gt; &gt; &gt; so i wrote a js to call the inputFileUpload&#39;s click method , when i<br>&gt; clicked<br>&gt; &gt; &gt; another button.<br>
&gt; &gt; &gt;<br>&gt; &gt; &gt; I wanna if these&#39;s something wrong with my web.xml?<br>&gt; &gt; &gt; should i write anything else ?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; 2007/10/11, Shinpei Ohtani &lt; <a href="mailto:shinpei.ohtani@gmail.com">
shinpei.ohtani@gmail.com</a>&gt;:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Hey,<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Ok, I see there might be some problems.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Is there setter/getter for &quot;private UploadedFile applyFile&quot;?
<br>&gt; &gt; &gt; &gt; We must have it.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; And I also mention that your html has namespace something like below<br>&gt; &gt; &gt; &gt; to use FileUpload.So, make sure for that.<br>
&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &lt;?xml version=&quot; 1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&gt; &gt; &gt; &gt; &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &quot;<br>&gt; <a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br>&gt; &gt; &gt; &gt; &lt;html xmlns:x=&quot; <a href="http://myfaces.apache.org/tomahawk">
http://myfaces.apache.org/tomahawk</a>&quot;<br>&gt; &gt; &gt; &gt; xmlns=&quot; <a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot; xml:lang=&quot;ja&quot; lang=&quot;ja&quot;&gt;<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; I don&#39;t get there is some javascript for the button, but<br>&gt; &gt; &gt; &gt; I think it does not need to.What is it for?<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Before having more help from this ML,<br>&gt; &gt; &gt; &gt; please see upload example from teeda-html-example.<br>&gt; &gt; &gt; &gt; (<br>&gt; &gt; &gt;<br>&gt; <a href="http://teeda.seasar.org/download/2007-10-10/teeda-html-example-1.0.11-SP1.zip">
http://teeda.seasar.org/download/2007-10-10/teeda-html-example-1.0.11-SP1.zip</a>)<br>&gt; &gt; &gt; &gt; It might be helpful.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Thanks, anyway.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; 2007/10/11, 李乐 &lt;<a href="mailto:yourslee@gmail.com">yourslee@gmail.com</a>&gt;:<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; ----------------------------------------page-----------------------------------------------------
<br>&gt; &gt; &gt; &gt; &gt; package jp.wess.web.entrcdApply;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; public class EntrcdObjectListPage extends BaseGridPage {<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; private UploadedFile applyFile;
<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public String doPaging() {<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super.setLimit(2);<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applyNoDto.setOffset(super.getNewOffset
());<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applyNoDto.setLimit (super.getLimit());<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (&quot;apply&quot;.equals(flag)) {<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applyTargetInfoItems =
<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; getEntrcdTargetInfoDao().getTargetInfoList(applyNoDto);<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super.setCount (applyNoDto.getCount());<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {
<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reissueTargetInfoItems =<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; getEntrcdReissueTargetInfoDao().getList(applyNoDto);<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super.setCount(applyNoDto.getCount
 ());<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return null;<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public String doApplyUpload() throws IOException {
<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String name = applyFile.getName ();<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long size = applyFile.getSize();<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(name);<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.out.println (size);<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InputStream in = null;<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OutputStream out = null;<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String path = &quot;D:\\aaa.txt&quot;;
<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in = applyFile.getInputStream();<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out = new FileOutputStream(path);<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int read = 0;<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int byteLength = 
applyFile.getBytes().length;<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; byte[] buffer = new byte[byteLength];<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while ((read = in.read(buffer)) != -1) {<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
out.write(buffer, 0, read);<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out.close();<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in.close();<br>&gt; &gt; &gt; &gt; &gt; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;long fileSize1 = 
applyFile.getSize();<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applyFile.getBytes();<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} catch (IOException e) {<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // TODO Auto-generated catch block
<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.printStackTrace();<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return null;<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt; &gt; &gt; &gt; &gt; }
<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; ----------------------------------------html-----------------------------------------<br>&gt; &gt; &gt; &gt; &gt; &lt;form id=&quot;form&quot;&gt;<br>&gt; &gt; &gt; &gt; &gt; &lt;x:inputFileUpload
<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp; id=&quot;applyFile&quot; name=&quot;applyFile&quot; style=&quot;display:none&quot;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; value=&quot;#{entrcdApply_entrcdObjectListPage.applyFile}&quot;<br>&gt; &gt; &gt; &gt; &gt; /&gt;
<br>&gt; &gt; &gt; &gt; &gt; &lt;input type=&quot;submit&quot; class=&quot;button large&quot;&nbsp;&nbsp;value=&quot;アップロード&quot;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; onclick=&quot;uploadfile(&#39;doApplyUpload&#39;,&#39;applyFile&#39;)&quot;
<br>&gt; &gt; &gt; &gt; &gt; id=&quot;doApplyUpload&quot;/&gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; -------------------------------------------------JavaScript-----------------------------------
<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; function uploadfile(btna, btnb) {<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; var buttona = document.getElementsByName(btna);
<br>&gt; &gt; &gt; &gt; &gt; var buttonb = document.getElementByName(btnb);<br>&gt; &gt; &gt; &gt; &gt; buttonb.click ();<br>&gt; &gt; &gt; &gt; &gt; }<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; 以上。<br>&gt; &gt; &gt; &gt; &gt; 2007/10/11, Shinpei Ohtani &lt;
<a href="mailto:shinpei.ohtani@gmail.com">shinpei.ohtani@gmail.com</a>&gt;:<br>&gt; &gt; &gt; &gt; &gt; &gt; Hi,<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; Let me see your page class and html.<br>&gt; &gt; &gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; &gt; &gt; 2007/10/11, 李乐 &lt; <a href="mailto:yourslee@gmail.com">yourslee@gmail.com</a>&gt;:<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; I want to upload file,but i don&#39;t want to display the inputtext
<br>&gt; and<br>&gt; &gt; &gt; &gt; &gt; button<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; as system designed ,so i hiddened it .<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; I&#39;d like to place a button to call the uploadfile button which
<br>&gt; is<br>&gt; &gt; &gt; &gt; &gt; hidden.<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; My code is like this:<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; &lt;x:inputFileUpload
<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp; id=&quot;applyFile&quot;&nbsp;&nbsp;style=&quot;display:none&quot;<br>&gt; &gt; &gt; name=&quot;applyFile&quot;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp; value=&quot;#{Apply_ListPage.applyFile}&quot;
<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; /&gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&lt;input type=&quot;submit&quot;&nbsp;&nbsp;name=&quot;applyupload&quot;<br>&gt; &gt; &gt; &gt; &gt; value=&quot;アップロード&quot;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; onclick=&quot;uploadfile(&#39;doApplyUpload&#39;,&#39;applyFile&#39;)&quot;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; id=&quot;doApplyUpload&quot;/&gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; function uploadfile(btna, btnb) {<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;var buttona = document.getElementsByName(btna);<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;var buttonb = 
document.getElementsByName (btnb);<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;buttonb.click ();<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; }<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; It doesn&#39;t work. Why?<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; Is there any other way to achieve my goal.<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; Seasar-user mailing list
<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user
</a><br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; --<br>&gt; &gt; &gt; &gt; &gt; &gt; =============================
<br>&gt; &gt; &gt; &gt; &gt; &gt; Shinpei Ohtani<br>&gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:shinpei.ohtani@gmail.com">shinpei.ohtani@gmail.com</a><br>&gt; &gt; &gt; &gt; &gt; &gt; =============================<br>&gt; &gt; &gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; &gt; &gt; Seasar-user mailing list<br>&gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org
</a><br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; &gt; Seasar-user mailing list<br>&gt; &gt; &gt; &gt; &gt; <a href="mailto:Seasar-user@ml.seasar.org">
Seasar-user@ml.seasar.org</a><br>&gt; &gt; &gt; &gt; &gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; --<br>&gt; &gt; &gt; &gt; =============================<br>&gt; &gt; &gt; &gt; Shinpei Ohtani<br>&gt; &gt; &gt; &gt; <a href="mailto:shinpei.ohtani@gmail.com">
shinpei.ohtani@gmail.com</a><br>&gt; &gt; &gt; &gt; =============================<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; Seasar-user mailing list
<br>&gt; &gt; &gt; &gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>&gt; &gt; &gt; &gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user
</a><br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; Seasar-user mailing list<br>&gt; &gt; &gt; <a href="mailto:Seasar-user@ml.seasar.org">
Seasar-user@ml.seasar.org</a><br>&gt; &gt; &gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;
<br>&gt; &gt; --<br>&gt; &gt; =============================<br>&gt; &gt; Shinpei Ohtani<br>&gt; &gt; <a href="mailto:shinpei.ohtani@gmail.com">shinpei.ohtani@gmail.com</a><br>&gt; &gt; =============================<br>&gt; &gt;
<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Seasar-user mailing list<br>&gt; &gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>&gt; &gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user">
https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Seasar-user mailing list<br>&gt; <a href="mailto:Seasar-user@ml.seasar.org">
Seasar-user@ml.seasar.org</a><br>&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>&gt;<br>&gt;<br><br><br>--<br>=============================<br>Shinpei Ohtani
<br><a href="mailto:shinpei.ohtani@gmail.com">shinpei.ohtani@gmail.com</a><br>=============================<br><br>_______________________________________________<br>Seasar-user mailing list<br><a href="mailto:Seasar-user@ml.seasar.org">
Seasar-user@ml.seasar.org</a><br><a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br><br></blockquote></div><br>