aspose file tools*
The moose likes Other Open Source Projects and the fly likes image upload problem in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "image upload problem in jsp" Watch "image upload problem in jsp" New topic
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: 60053
    
  65

A JSP is no place to be putting the Java code. Move it out of a JSP and into a servlet.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 60053
    
  65

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: image upload problem in jsp
 
Similar Threads
moving files over the network
JSP Page For Uploading a File to Destination Folder
Problem in uploading image to to mysql database
Uploading file path in properties file
Fetching information from database in jsp