import org.apache.portals.bridges.struts.StrutsPortlet;
public class HotDeployPortletListener implements HotDeployListener {
public void invokeDeploy(HotDeployEvent event) throws HotDeployException {
String servletContextName = null;
try {
<BUG>ServletContext ctx = event.getServletContext();
servletContextName = StringUtil.replace(
ctx.getServletContextName(), StringPool.SPACE,
StringPool.UNDERLINE);</BUG>
if (_log.isDebugEnabled()) {

import org.apache.portals.bridges.struts.StrutsPortlet;
public class HotDeployPortletListener implements HotDeployListener {
public void invokeDeploy(HotDeployEvent event) throws HotDeployException {
String servletContextName = null;
try {
ServletContext ctx = event.getServletContext();
servletContextName = PortalUtil.getJsSafePortletName(
ctx.getServletContextName());
if (_log.isDebugEnabled()) {
