Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2010
    Posts
    26
    Rep Power
    0

    Smile Real Path for Uploading Image

    config.getServletContext().getRealPath()
    is not working in Servlet
    can you please suggest me how to use this in servlet.
    This is working in jsp file succesfully.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,036
    Rep Power
    20

    Default

    What does "not working" mean?

  3. #3
    Join Date
    Mar 2010
    Posts
    26
    Rep Power
    0

    Default

    config.getServletContext().getRealPath() method not work in servlet.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,036
    Rep Power
    20

    Default

    You've just repeated yourself.
    What does "not work" mean?
    What happens?
    What result do you get?
    A compilation error?
    An exception?
    What?

  5. #5
    Join Date
    Mar 2010
    Posts
    26
    Rep Power
    0

Similar Threads

  1. Uploading an image in an applet to the webserver
    By Mathi_r in forum Java Applets
    Replies: 1
    Last Post: 06-10-2011, 03:24 AM
  2. retrieving/uploading image
    By stegano in forum New To Java
    Replies: 6
    Last Post: 04-07-2011, 03:56 AM
  3. Uploading a image to a database via swing
    By hacker9116 in forum JDBC
    Replies: 3
    Last Post: 03-29-2011, 11:35 AM
  4. image uploading and retrieval in jframe
    By deepesh in forum AWT / Swing
    Replies: 3
    Last Post: 07-25-2009, 05:33 PM
  5. Uploading image using JSP
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-11-2008, 09:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •