2016-12-30

tomcat softlink









#remember what u did in:
/opt/Programs/apache-tomcat-8.0.36/conf/context.xml

<Resources allowLinking="true"></Resources>


#1
Create a real/physical file at dashboard with path:
 /opt/Programs/apache-tomcat-8.0.36/webapps/dashboard/gg.jsp

#2
Then go to cp or other module:
cd /opt/Programs/apache-tomcat-8.0.36/webapps/cp

#3
Create softlink so u can access same file & source from dashboard, when u access cp.(which simulate leftnav.jsp) by using script:
ln -s /opt/Programs/apache-tomcat-8.0.36/webapps/dashboard/gg.jsp gg.jsp

#script definition:
ln -s sourceFullPath shortcut
#more refer to:
https://www.cyberciti.biz/faq/unix-creating-symbolic-link-ln-command/
#or:
google linux softlink