on 03-30-2012 8:00 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.