You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de> on 2008/08/05 18:18:51 UTC

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

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

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

Posted by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de>.
Am Dienstag, 5. August 2008 18:18:51 schrieb Torsten Krah:
> Does look like a bug, is it?

https://issues.apache.org/struts/browse/WW-2464

May this be related to this bug?
Can anyone tell me what is/was the fix? Can i use the latestet GA release and 
get this working (without patching)?

-- 
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