A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Web Services
Author
can't use contextPath inside My webservice how to use it.
kannagiri rosei
Ranch Hand
Joined: Nov 26, 2005
Posts: 31
posted
Dec 05, 2005 07:32:00
0
Hi
i just want use context path in axis web app. in my service method. i am reading constant value from properties file.
String
path = System.getProperty(user.dir);
i used above
java
api.but not reading properly.
my property file is path is
axis-web app
/web-inf
classes
/myservice-read property file path.
/config
am deploying WAS5.1
tool/WSADIE5.1
//user.dir
takes default WASDIE path in WAS.
Balaji Loganathan
author and deputy
Bartender
Joined: Jul 13, 2001
Posts: 3150
posted
Dec 05, 2005 07:45:00
0
Please check out our famous Ulf home grown
web services FAQ
Spritle Software Blogs
kannagiri rosei
Ranch Hand
Joined: Nov 26, 2005
Posts: 31
posted
Dec 05, 2005 07:59:00
0
FYI
if i use getContextPath() -- it will return remote Service provider path only is it?
please let me clear balaji sir?
HttpServletRequest
req = (
HttpServletRequest
) context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
Balaji Loganathan
author and deputy
Bartender
Joined: Jul 13, 2001
Posts: 3150
posted
Dec 05, 2005 08:25:00
0
Yes.
Kind request: Please avoid using sir, just balaji is fine.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: can't use contextPath inside My webservice how to use it.
Similar Threads
Referencing to image files
Better way to determine current directory...
Writing Files to The Current Directory
Readind property file in web app
Java property files best practices
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter