org.apache.jasper.JasperException: An exception occurred processing JSP page /reg/reg_art_final.jsp at line 109
106:
107:
108:
109: boolean isMultipart = ServletFileUpload.isMultipartContent(request);
110:
111:
112: DiskFileItemFactory factory = new DiskFileItemFactory();
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.reg.reg_005fart_005ffinal_jsp._jspService(reg_005fart_005ffinal_jsp.java:230)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
org.apache.commons.fileupload.servlet.ServletFileUpload.isMultipartContent(ServletFileUpload.java:68)
org.apache.jsp.reg.reg_005fart_005ffinal_jsp._jspService(reg_005fart_005ffinal_jsp.java:173)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Mull Sheriff wrote:I don't want anything to do with servlets.
I was told by other more instructed people (more than me) that they decrease performances.
Look upon all they say with suspicion from here on out.
Sure; a JSP is just a servlet.
JSPs are compiled to servlets--nothing overly amusing here.
Are you pre-compiling the JSP?
A JSP is compiled into a servlet. So you have the choice of putting your code into a servlet, or using a JSP, in which case you end up with a servlet with exactly the same code plus a bunch of JSP scaffolding. Anybody who says using the plain old servlet would "decrease performance" is... no, the forum rule is "Be Nice" so I can't say it.
Mull Sheriff wrote:Since you said that there is no point in writing JSP pages, why does this section of the forum exist?
Mull Sheriff wrote: Since you said that there is no point in writing JSP pages, why does this section of the forum exist?
I'm sorry, I didn't mean to say there is no point in writing JSPs. The point in writing JSPs is to generate HTML and that's what you should use them for. Since uploading a file doesn't generate any HTML, using a JSP to do it just complicates things unnecessarily.
So put your file-uploading code into a servlet. When the file uploading is done, forward to a JSP which generates the HTML containing the response to the client.
No one said that.
And continuing with your "attitude" is likely to alienate the very people who can help you most. I suggest a change in strategy.
Since you said that there is no point in writing JSP pages, why does this section of the forum exist?
And yes, those that told you to avoid servlets -- avoid them. They're telling you nonsense.
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|