Re: How can I get the real path of application in struts

2004-10-17 Thread Michael McGrady
Action is part of a "common Java application", so, you can do the same, if you want. yu wang wrote: In JSP I can use the application.getRealPath("") to get the real path. and In common Java Application I use System.getProperty("user.dir"). But How can I get Real path in ACTION. thanks in advance

RE: How can I get the real path of application in struts

2004-10-17 Thread David G. Friedman
Yu (you!)! I think you just solved your own problem: getServlet().getServletContext().getRealPath(); Regards, David -Original Message- From: yu wang [mailto:[EMAIL PROTECTED] Sent: Sunday, October 17, 2004 9:41 PM To: [EMAIL PROTECTED] Subject: How can I get the real path of application

How can I get the real path of application in struts

2004-10-17 Thread yu wang
In JSP I can use the application.getRealPath("") to get the real path. and In common Java Application I use System.getProperty("user.dir"). But How can I get Real path in ACTION. thanks in advance kingfish - To unsubscribe, e-ma