Grails default root path

Posted by srinath on Stack Overflow See other posts from Stack Overflow or by srinath
Published on 2010-05-27T15:37:51Z Indexed on 2010/05/27 15:41 UTC
Read the original article Hit count: 245

Filed under:
|

Hi,

Is there a variable where we can find out the root directory of my Grails application?

I tried request.getSession().getServletContext().getRealPath("/") But shows tmp/App-Test-0.1/ .

My app is located in tomcat "/home/srinath/work/projects/tomcat-6.0.18/webapps/App-Test-0.1"

could any one help me .

thanks in advance, sri..

© Stack Overflow or respective owner

Related posts about groovy

Related posts about root