I am getting null for getServlet().getServletContext().getRealPath("")

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AdeelKhan
    New Member
    • Nov 2006
    • 6

    I am getting null for getServlet().getServletContext().getRealPath("")

    I deployed my application on weblogic server
    and i am getting null with this statement

    String path = getServlet().ge tServletContext ().getRealPath( "")

    Please help
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    That is because path do not exist.
    I am not sure how the path structure in weblogic. you may need to ask it in weblogic forums.

    Regards
    Dheeraj Joshi

    Comment

    Working...