From 7c622a4e5714af8f83ce30022c970cc36c2ee597 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 28 Aug 2012 14:14:54 -0500 Subject: Added common ROOT webapp. The current ROOT webapp will redirect users coming to the root URL path to the proper path of the subsystem's webapp. Since now a single Tomcat instance may have multiple subsystems, a new ROOT webapp has been added to present the user with a menu of all available webapps from all subsystems in the instance. Ticket #89 --- base/common/shared/webapps/ROOT/index.jsp | 209 ++++++++++++++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 base/common/shared/webapps/ROOT/index.jsp (limited to 'base/common/shared/webapps/ROOT/index.jsp') diff --git a/base/common/shared/webapps/ROOT/index.jsp b/base/common/shared/webapps/ROOT/index.jsp new file mode 100644 index 000000000..f45272f54 --- /dev/null +++ b/base/common/shared/webapps/ROOT/index.jsp @@ -0,0 +1,209 @@ + + + + +Certificate System + + + + + + + + + + + +
+ +
+
+ +
+ - +
+ + +
+
+ +
+ + +
+ +<% + ServletContext caContext = getServletContext().getContext("/ca"); + String caName = caContext.getServletContextName(); + String caPath = caContext.getContextPath(); + if (!"".equals(caPath)) { +%> +

+ +<%= caName %> + +

+ + + + + +<% + if (request.isSecure()) { +%> + + + + + + +<% + } +%> +
+
  • + End Users Services +
  • +
  • + Agent Services +
  • +
  • + Admin Services +
  • + +
    + +<% + } + + ServletContext kraContext = getServletContext().getContext("/kra"); + String kraName = kraContext.getServletContextName(); + String kraPath = kraContext.getContextPath(); + if (!"".equals(kraPath) && request.isSecure()) { +%> +

    + +<%= kraName %> + +

    + + + + + + + + +
    +
  • + Agent Services +
  • +
  • + Admin Services +
  • + +
    + +<% + } + + ServletContext ocspContext = getServletContext().getContext("/ocsp"); + String ocspName = ocspContext.getServletContextName(); + String ocspPath = ocspContext.getContextPath(); + if (!"".equals(ocspPath) && request.isSecure()) { +%> +

    + +<%= ocspName %> + +

    + + + + + + + + +
    +
  • + Agent Services +
  • +
  • + Admin Services +
  • + +
    + +<% + } + + ServletContext tksContext = getServletContext().getContext("/tks"); + String tksName = tksContext.getServletContextName(); + String tksPath = tksContext.getContextPath(); + if (!"".equals(tksPath) && request.isSecure()) { +%> +

    + +<%= tksName %> + +

    + + + + + + + + +
    +
  • + Agent Services +
  • +
  • + Admin Services +
  • + +
    + +<% + } +%> + +
    + + + + + -- cgit