Removing test comments output
This commit is contained in:
parent
e60bd55d78
commit
79f0c67ce8
2 changed files with 5 additions and 1 deletions
|
@ -148,6 +148,7 @@ public class EntityController extends VitroHttpServlet {
|
||||||
// insert test for whether a css files of the same name exists, and populate the customCss string for use when construction the header
|
// insert test for whether a css files of the same name exists, and populate the customCss string for use when construction the header
|
||||||
}
|
}
|
||||||
String netid = iwDao.getNetId(entity.getURI());
|
String netid = iwDao.getNetId(entity.getURI());
|
||||||
|
|
||||||
vreq.setAttribute("netid", netid);
|
vreq.setAttribute("netid", netid);
|
||||||
vreq.setAttribute("vclassName", vclassName);
|
vreq.setAttribute("vclassName", vclassName);
|
||||||
vreq.setAttribute("entity",entity);
|
vreq.setAttribute("entity",entity);
|
||||||
|
@ -202,7 +203,7 @@ public class EntityController extends VitroHttpServlet {
|
||||||
vreq.setAttribute("scripts", "/templates/entity/entity_inject_head.jsp");
|
vreq.setAttribute("scripts", "/templates/entity/entity_inject_head.jsp");
|
||||||
|
|
||||||
RequestDispatcher rd = vreq.getRequestDispatcher( view );
|
RequestDispatcher rd = vreq.getRequestDispatcher( view );
|
||||||
rd.forward(req,res);
|
rd.forward(vreq,res);
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
log.error(e);
|
log.error(e);
|
||||||
req.setAttribute("javax.servlet.jsp.jspException",e);
|
req.setAttribute("javax.servlet.jsp.jspException",e);
|
||||||
|
|
|
@ -67,13 +67,16 @@ public class EntityWebUtils {
|
||||||
|
|
||||||
// see if we can get the URI from a namespace prefix and a local name
|
// see if we can get the URI from a namespace prefix and a local name
|
||||||
String requestURI = vreq.getRequestURI();
|
String requestURI = vreq.getRequestURI();
|
||||||
|
|
||||||
String[] requestParts = requestURI.split("/individual/");
|
String[] requestParts = requestURI.split("/individual/");
|
||||||
String[] URIParts = requestParts[1].split("/");
|
String[] URIParts = requestParts[1].split("/");
|
||||||
|
|
||||||
String namespace = "";
|
String namespace = "";
|
||||||
NamespaceMapper namespaceMapper = NamespaceMapperFactory.getNamespaceMapper(vreq.getSession().getServletContext());
|
NamespaceMapper namespaceMapper = NamespaceMapperFactory.getNamespaceMapper(vreq.getSession().getServletContext());
|
||||||
String t;
|
String t;
|
||||||
namespace = ( (t = namespaceMapper.getNamespaceForPrefix(URIParts[0])) != null) ? t : "";
|
namespace = ( (t = namespaceMapper.getNamespaceForPrefix(URIParts[0])) != null) ? t : "";
|
||||||
String localName = URIParts[1];
|
String localName = URIParts[1];
|
||||||
|
|
||||||
return vreq.getWebappDaoFactory().getIndividualDao().getIndividualByURI(namespace+localName);
|
return vreq.getWebappDaoFactory().getIndividualDao().getIndividualByURI(namespace+localName);
|
||||||
|
|
||||||
// entityIdStr = vreq.getParameter("adw");
|
// entityIdStr = vreq.getParameter("adw");
|
||||||
|
|
Loading…
Add table
Reference in a new issue