2013年12月8日星期日

eclipse when the project running web root directory where

String argu = ".";

This argu represents the current root directory.
then run when the current project , located in the root directory is where ?
where the tomcat ? In the bin it?



------ Solution ------------------------------------ --------
tomcat webapp directory below
------ Solution ------------------------ --------------------
C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0 \ webapps
------ Solution --------------------------------------------
TOMCAT under webapps inside
------ Solution ------------------------------- -------------

.....
------ For reference only ------------- --------------------------


positive solutions
------ For reference only --------------------------------- ------
in tomcat webapps directory server directory you installed under
------ For reference only ---------- -----------------------------
can get by System.getProperty ("user.dir").
------ For reference only -------------------------------------- - webapps inside
------ For reference only
TOMCAT under --------------------- ------------------
project alone on the right -properties- right side there is a location that is
------ For reference only ---- -----------------------------------

wrong. Servlet running when the current directory is where ? Not a bin next , nor is there webapps solve ah.
------ For reference only -------------------------------------- -
eclips is IDE, the development environment is not a WEB server how to run the project ? I said do not understand .

tomcat server.xml which is running the project configuration .

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

------ For reference only ----------------------------------- ----


In the ECLIPSE project to build and run the project in the servlet file , this time in the current directory where ?
------ For reference only -------------------------------------- -

ECLIPSE how to run servlet
------ For reference only ----------------------? -----------------

Run on server.. . . . .
when running String argu = ".";
argu directory where ?
------ For reference only -------------------------------------- -
not know the landlord is not meant

------ For reference only ---------------------------------- -----

when running JAVA file. This argu refers to the current project directory . That means when running the web project where is it .
------ For reference only -------------------------------------- -

not that directory. . String argu = "."
this path argu represents is which. Relative path
------ For reference only ------------------------------------ ---


limited comprehension can not understand sorry
------ For reference only ----------------------- ----------------
how nobody knew what I was in eclipse, run a web project upload control results should be I do not know where the root directory of the project can not upload . . . . Anybody know what I should add upload folder to the file folder can receive it . . . . . . The book says is the root directory
who will question if the release in the tomcat is running directly in the eclipse . . . . I can not find the

没有评论:

发表评论