2014年5月14日星期三

Consult request.getSession () getServletContext () getRealPath ("/");.. This sentence is the server path to get it?

Getting Started , thank you advise ~ !
------ Solution ---------------------------------------- ----

so I went to ask if this is the path to save the file saved to a file on the server yet ?  
yes.
------ For reference only -------------------------------------- -
this method seems to have been abandoned in the windows is so , linux hard to say.
------ For reference only -------------------------------------- -
returns the absolute path to the root directory of the virtual directory.
------ For reference only -------------------------------------- -
get is what you tomcat project root path
------ For reference only webapps under ---------------------- -----------------
you print it out do not know, this is the return path works include letters , absolute path.
------ For reference only -------------------------------------- -

so I went to ask if this is the path to save the file saved to a file on the server yet ?
------ For reference only -------------------------------------- -

so I went to ask if this is the path to save the file saved to a file on the server yet ?          
yes.  
Thank you ~ ~ ~

没有评论:

发表评论