Greetings:
I just encountered something I don't understand. All calls to static
TurbineServlet methods such as
TurbineServlet.getServerName(), TurbineServlet.getServerPort(),
TurbineServlet.getContextPath(), etc. are returning
null. (However, curiously,TurbineServlet.getRealPath("/") returns an actual
path.)
One manifestation of this is that several of the ui pull tool functions
don't work. For example, using the flux tools, when one tries to add
a user who already exists, an alert message appears, along with a broken
image, with the following path:
<img
src="null://null:nullnull//resources/ui/skins/default/images/alert1.gif">
The actual construction of this path comes from
org.apache.turbine.services.pull.util.UIManager:
StringBuffer sb = new StringBuffer();
sb.append(TurbineServlet.getServerScheme()).
append("://").
append(TurbineServlet.getServerName()).
append(":").
append(TurbineServlet.getServerPort()).
append(TurbineServlet.getContextPath()).
append(resourcesDirectory).
append(SKINS_DIRECTORY).
append("/").
append(getSkin()).
append(IMAGES_DIRECTORY).
append("/").
append(imageId);
Has anyone else encountered this situation with TurbineServlet static methods?
Thanks,
Bruce
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>