Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

struts-portlet-sample - UploadFileAction, caption parameter not set, ParametersInterceptor does not set property found by MultiPartRequest

Torsten Krah

2008-08-05

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi get a problem with the caption parameter of this example, it is sent and
found by the MultiPartRequest Handler, but it is not set by the
ParametersInterceptor; look at the stacktrace:

18:11:49,119 DEBUG [org.apache.struts2.dispatcher.multipart.MultiPartRequest]
Found item upload
18:11:49,119 DEBUG [org.apache.struts2.dispatcher.multipart.MultiPartRequest]
Item is a file upload
18:11:49,119 DEBUG [org.apache.struts2.dispatcher.multipart.MultiPartRequest]
Found item caption
18:11:49,119 DEBUG [org.apache.struts2.dispatcher.multipart.MultiPartRequest]
Item is a normal form field
18:11:49,120 DEBUG [org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher]
Creating action proxy for name = fileUpload, namespace = /view
18:11:49,120 DEBUG [com.opensymphony.xwork2.DefaultActionProxy] Creating an
DefaultActionProxy for namespace /view and action name fileUpload
18:11:49,121 DEBUG [com.opensymphony.xwork2.interceptor.I18nInterceptor]
intercept '/view/fileUpload' {
18:11:49,121 DEBUG [com.opensymphony.xwork2.interceptor.I18nInterceptor]
requested_locale=null
18:11:49,121 DEBUG [com.opensymphony.xwork2.interceptor.I18nInterceptor]
before Locale=de_DE
18:11:49,122 DEBUG
[com.opensymphony.xwork2.interceptor.StaticParametersInterceptor] Setting
static parameters {}
18:11:49,122 DEBUG [com.opensymphony.xwork2.interceptor.ParametersInterceptor]
Setting params uploadFileName => [ a.txt ] uploadContentType => [
text/plain ] templateDir => [ template ] theme => [ xhtml ] up
load =>
[ /home/krah/Development/seu/pluto-1.1.5/work/Catalina/localhost/struts2-portlet-0.0.1-SNAPSHOT/upload__6f236e88_11b93a379fc__8000_00000000.tmp ]
struts.portlet.mode => [ view ] struts.portlet.action
=> [ /view/fileUpload ]

Does look like a bug, is it?
If it is one, is this one already known and solved or some workarounds
available?
Or did i miss something?

--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a
completely unintentional side effect."
 -- Linus Torvalds

Attachment: smime.p7s (zipped)
©2008 gg3721.com - Jax Systems, LLC, U.S.A.