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
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
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
3 matches
Mail list logo