History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: BPM-275
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Wouter Zoons
Reporter: Albert Aymerich
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
Bpm4Struts Cartridge

Form encoding type setted as multipart/form-data

Created: 13/Feb/06 10:15 AM   Updated: 25/Feb/06 08:22 PM
Component/s: None
Affects Version/s: 3.1M1, 3.1-RC1, 3.1
Fix Version/s: 3.2-RC1

Environment: Independent


 Description   
All the html form tags are setted with the attribute: enctype="multipart/form-data".
With this setting, the struts controller doesn't works correctly when there is a forward to another struts path. I mean:
Browser->first.do->second.do->jsp
The struts controller looses the original request parameters in the second.do only when enctype is multipart.
This kind of navigation can be modelled with a conditional transition between two views.

I know this is more a struts bug than a bpm4struts bug, but this kind of enctype only is needed when working with attachments (file uploading). It is not necessary for all the requests.
I think is more probable to have the navigation showed above than to have a file upload. If this is the case, the jsp with the file filed should be modified by hand using 'copy-over' feature.

The modification (not to set the enctype) only affects in: action.jsp.vsl, page-table.jspf.vsl and manageable.jsp.vsl files.


 All   Comments   Change History      Sort Order:
Comment by Wouter Zoons [25/Feb/06 08:22 PM]
the multipart encoding should now only be set when at least one of the form fields is a file-upload