cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MII File Upload Functionality Error

Former Member
0 Kudos

Hello,

We have a requirement to provide a file upload functionality from the user local machine to a dynamic path on the MII server.

To fulfill the requirement, we are using a form within an irpt page that has several iBrowser applets as well a browse button that the user can use to pick the file to be uploaded. After the user is done with the selection and once the submit button is clicked, the form is posted to a JSP page in MII where we are able to grab the file object and save it to a hard coded location on the server.

In order to make the destination path for the file dynamic, we need to be able to read all the form values and dynamically construct the path to where the file is supposed to be saved.

Unfortunately, since we are using  enctype="multipart/form-data" in the form in the irpt page to get the upload working, we are not able to simply use request.getParameter in the JSP page to get the form values, instead we have to use MultipartStream class functionality to read the values from the form, which can make the code unnecessarily complex. We have a much simpler alternative solution using HttpServletRequest, which is a native java class however we are getting the following error:

Cannot process an HTTP request to servlet [jsp] in [XMII] web application.
[EXCEPTION]
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

Does anyone have an idea why MII is not recognizing the class? Or, does anyone know of a better way of doing this?

Thanks,

Mona  

Accepted Solutions (0)

Answers (1)

Answers (1)

HariCS23
Contributor
0 Kudos

Hi Mona,

I would try changing the extension of page from .irpt to .html and test.

irpt extension may be interfering with standard client server request response class objects.

Thanks

Hari