| Author |
image upload problem in jsp
|
fredrick esedo
Greenhorn
Joined: Mar 04, 2010
Posts: 23
|
|
Hi every one,please i needs your assistance this jsp code they are 2 and both refuses to upload image
to the database as it keeps on displaying error as shown below
for the ist jsp code the error is as follow
---------------fred.jsp----------------
org.apache.jasper.JasperException:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:404)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
while the main code is as follow
-------------------fred.jsp-------------------
the second code displays error as follow
--------------esedo.jsp-----------------
org.apache.jasper.JasperException: /esedo2.jsp(6,2) Unterminated <% tag
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:132)
org.apache.jasper.compiler.Parser.parseScriptlet(Parser.java:780)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1445)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController
while the code is as follow
---------------esedo.jsp----------------
thanks for help and consern
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
|
|
|
A JSP is no place to be putting the Java code. Move it out of a JSP and into a servlet.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
fredrick esedo
Greenhorn
Joined: Mar 04, 2010
Posts: 23
|
|
Thank you for your response but is there anything i will do ist to circumvent this error
org.apache.jasper.JasperException:
in my jsp before i moved it to servlet.please I beg you
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
|
|
|
Why waste time trying to fix JSP syntax that will go away? Java code should never be placed in a JSP. This type of problem is one of the very many reasons why.
|
 |
 |
|
|
subject: image upload problem in jsp
|
|
|