• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

image upload problem in jsp

 
fredrick esedo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP is no place to be putting the Java code. Move it out of a JSP and into a servlet.
 
fredrick esedo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic