<%@ page import="woko.facets.WokoFacetContext" %>
<%@ page import="woko.facets.builtin.RenderPropertyName" %>
<%@ page import="woko.util.Util" %>
<%@ page import="woko.Woko" %>
<%@ page import="woko.persistence.ObjectStore" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%
    RenderPropertyName renderPropertyName = (RenderPropertyName)request.getAttribute("renderPropertyName");
    WokoFacetContext fctx = (WokoFacetContext)renderPropertyName.getFacetContext();
    Woko woko = fctx.getWoko();
    ObjectStore os = woko.getObjectStore();
    String propertyName = renderPropertyName.getPropertyName();
    Object owningObject = fctx.getTargetObject();
    String owningClassAsKey = owningObject.getClass().getSimpleName() + "." + propertyName;
    String propertyClassName = os.getClassMapping(Util.getPropertyType(owningObject.getClass(), propertyName));
%>

    <span class="<%=propertyName%> <%=propertyClassName%>">
        <s:label for="<%=owningClassAsKey%>"/>

<%@ page import="woko.facets.WokoFacetContext" %>
<%@ page import="woko.facets.builtin.RenderPropertyName" %>
<%@ page import="woko.util.Util" %>
<%@ page import="woko.Woko" %>
<%@ page import="woko.persistence.ObjectStore" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%
    RenderPropertyName renderPropertyName = (RenderPropertyName)request.getAttribute("renderPropertyName");
    WokoFacetContext fctx = (WokoFacetContext)renderPropertyName.getFacetContext();
    Woko woko = fctx.getWoko();
    ObjectStore os = woko.getObjectStore();
    String propertyName = renderPropertyName.getPropertyName();
    Object owningObject = fctx.getTargetObject();
    String objectKey = "object." + propertyName;
    String propertyLabel = propertyName;
    String propertyClassName = os.getClassMapping(Util.getPropertyType(owningObject.getClass(), propertyName));
%>

    <span class="<%=propertyName%> <%=propertyClassName%>">
        <s:label for="<%=objectKey%>"><%=propertyLabel%></s:label>

Use the right key in tag <s:label for='key'/>


<%--
 Copyright 2005-2006 The Kuali Foundation.

 $Source$

 Licensed under the Educational Community License, Version 1.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.opensource.org/licenses/ecl1.php

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
--%>
<%@ include file="/jsp/core/tldHeader.jsp"%>

<kul:documentPage showDocumentInfo="true"
	documentTypeName="KualiBudgetDocument"
	headerTitle="Research Administration - Audit Mode"
	htmlFormAction="researchBudgetAuditMode" headerDispatch="auditmode"
	headerTabActive="auditmode"
	showTabButtons="${KualiForm.auditActivated}"
	feedbackKey="app.krafeedback.link">

	<kul:errors keyMatch="${Constants.DOCUMENT_ERRORS}" />

	<kra-b:budgetHiddenDocumentFields includeDocumenHeaderIdFields="true"
		includeTaskPeriodLists="false" />

	<kra-b:budgetAuditMode />

</kul:documentPage>

<%--
 Copyright 2005-2006 The Kuali Foundation.

 $Source$

 Licensed under the Educational Community License, Version 1.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.opensource.org/licenses/ecl1.php

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
--%>
<%@ include file="/jsp/core/tldHeader.jsp"%>

<kul:documentPage showDocumentInfo="true"
	documentTypeName="KualiBudgetDocument"
	headerTitle="Research Administration - Audit Mode"
	htmlFormAction="researchBudgetAuditMode"
	headerDispatch="auditmode"
	headerTabActive="auditmode"
	showTabButtons="${!empty AuditErrors}"
	feedbackKey="app.krafeedback.link">

	<kul:errors keyMatch="${Constants.DOCUMENT_ERRORS}" />

	<kra-b:budgetHiddenDocumentFields includeDocumenHeaderIdFields="true"
		includeTaskPeriodLists="false" />

	<kra-b:budgetAuditMode />

</kul:documentPage>

KULERA-674: Hide expand all/collapse all if there are no audit errors


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Fill out a form</title>
<jsp:include page="Formatting.jsp" />

 	<jsp:include page="NavBar.jsp" />

Hello! You are all Awesome!!

		<jsp:include page="Form.jsp" />

Change header back to black

Change header back to black


<%@ page contentType="text/javascript;charset=UTF-8" language="java" %>
<%@taglib prefix="jsgen" uri="http://bioinformatics.northwestern.edu/taglibs/studycalendar/jsgenerator"%>
<%@taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<jsgen:replaceHtml targetElement="lightbox">

Session timed out

            Your session has expired.  For security, please log in again
            and then retry your last action.

        <tags:loginForm ajax="${true}"/>

</jsgen:replaceHtml>
LB.Lightbox.activate()
Event.observe('login', 'submit', function(e) {
    $('login-indicator').reveal()
    Event.stop(e);
    // TODO: deactivate is up here because otherwise it interferes with showing the bad password message.
    // Should figure out an alternative mechanism
    LB.Lightbox.deactivate()
    SC.asyncSubmit('login', {
        onComplete: function() {
            $('login-indicator').conceal()
        },
        onFailure: function() {
            // TODO:
            alert("Need error handling")
        }
    })
})
Event.observe('login-cancel-button', 'click', function() { LB.Lightbox.deactivate() });

<%@ page contentType="text/javascript;charset=UTF-8" language="java" %>
<%@taglib prefix="jsgen" uri="http://bioinformatics.northwestern.edu/taglibs/studycalendar/jsgenerator"%>
<%@taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<jsgen:replaceHtml targetElement="lightbox">

Session timed out

            Your session has expired.  Please log in again.
            Once you've logged in, you may need to retry your
            last action.

        <tags:loginForm ajax="${true}"/>

</jsgen:replaceHtml>
LB.Lightbox.activate()
Event.observe('login', 'submit', function(e) {
    $('login-indicator').reveal()
    Event.stop(e);
    SC.asyncSubmit('login', {
        onLoaded: function() {
            $('login-indicator').conceal()
            LB.Lightbox.deactivate()
        },
        onFailure: function() {
            // TODO:
            alert("Need error handling")
        }
    })
})
Event.observe('login-cancel-button', 'click', function() { LB.Lightbox.deactivate() });

Clarify message; address TODO about onComplete lightbox deactivation interfering with showing wrong password message

git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@580 0d517254-b314-0410-acde-c619094fa49f


<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %>
<%
    String sentryEndpoint = GlobalProperties.getFrontendSentryEndpoint();
%>
<% if (sentryEndpoint != null) { %>
<script src="https://browser.sentry-cdn.com/4.1.1/bundle.min.js" crossorigin="anonymous"></script>
<script>
Sentry.init({ dsn: '<%=sentryEndpoint.trim()%>' });
</script>
<% } %>

<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %>
<%
    String sentryEndpoint = GlobalProperties.getFrontendSentryEndpoint();
%>
<% if (!sentryEndpoint.equals("null")) { %>
<script src="https://browser.sentry-cdn.com/4.1.1/bundle.min.js" crossorigin="anonymous"></script>
<script>
Sentry.init({ dsn: '<%=sentryEndpoint.trim()%>' });
</script>
<% } %>

Fix null check in sentry.js

Fix null check in sentry.js


	<title>Login</title>

Login

<form method="post" action="/login.do?method=login" >

    Username

		<input type=text property="username"/>
         (required)

    Password

         <input type=text property="password"/>
         (required)

    <input type=submit>Login</submit>

</form>

Thanks for loggin in to our site.

	<title>Login</title>

Login

<form method="post" action="/loginServlet" >

    Username

		<input type="text" name="username"/>
         (required)

    Password

         <input type="password" name="password"/>
         (required)

    <input type="submit" value="Login"/>

</form>

Thanks for logging in to our site.

Change password to type=password. Correct typos. Change line endings.


<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

    <tiles:insertAttribute name="home-hero"/>

    <tiles:insertAttribute name="home-search"/>

            <tiles:insertAttribute name="first-box"/>

            <tiles:insertAttribute name="second-box"/>

            <tiles:insertAttribute name="third-box"/>

            <tiles:insertAttribute name="fourth-box"/>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

    <tiles:insertAttribute name="home-hero"/>

            <tiles:insertAttribute name="second-box"/>

            <tiles:insertAttribute name="fourth-box"/>

Put only Latest Experiments and Publications in section


<%@ page import="edu.ucsf.mousedatabase.objects.*" %>
<%@ page import="edu.ucsf.mousedatabase.*" %>
<%@ page import="java.util.ArrayList" %>
<%=HTMLGeneration.getPageHeader(null, false,false,"onload=\"setFocus('quickSearchForm', 'searchterms')\"") %>
<%=HTMLGeneration.getNavBar("HolderReport.jsp", false) %>
<%
  String orderby = request.getParameter("orderby");
    ArrayList<Holder> holders = DBConnect.getAllHolders(false,orderby);
    String table = HTMLGeneration.getHolderTable(holders,false);

%>

Holder List

Sort by First Name,
          Last name,
          Department,
          Date reviewed
          Mice Held

'Last review date' shows when the most recent review of the list of mice held by each investigator
was carried out.

To perform a review and notify admin that it has been done,
go to the page listing the mice held by an individual investigator (click on the
number in the last column on the right).

<%= table %>

<%@ page import="edu.ucsf.mousedatabase.objects.*" %>
<%@ page import="edu.ucsf.mousedatabase.*" %>
<%@ page import="java.util.ArrayList" %>
<%=HTMLGeneration.getPageHeader(null, false,false,"onload=\"setFocus('quickSearchForm', 'searchterms')\"") %>
<%=HTMLGeneration.getNavBar("HolderReport.jsp", false) %>
<%
  String orderby = request.getParameter("orderby");
    ArrayList<Holder> holders = DBConnect.getAllHolders(false,orderby);
    String table = HTMLGeneration.getHolderTable(holders,false);

%>

Holder List

Sort by First Name,
          Last name,
          Department,
          Date reviewed,
          Mice Held

'Last review date' shows when the most recent update of the list of mice held by each investigator
was carried out.

To perform a review and notify admin that it has been done,
go to the page listing the mice held by an individual investigator (click on the
number in the last column on the right).

<%= table %>

Update wording on holder report

Update wording on holder report


<%@ include file="/taglibs.jsp" %>

<c:if test="${!empty category}">

Home > ${category.title}

</c:if>

<c:if test="${empty category}">

Top 10 Top Votes

</c:if>
<%@ include file="popular-stories.jsp" %>

<%@ include file="/taglibs.jsp" %>

<c:if test="${!empty category}">

<a href="<c:url value="./" />" title="Home">Home > <a href="<c:url value="${category.name}-c.html" />">${category.title}

</c:if>

<c:if test="${empty category}">

Top 10 Top Votes

</c:if>
<%@ include file="popular-stories.jsp" %>

Fix link address of current category.

Fix link address of current category.


<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>

<tiles:importAttribute/>

<c:if test="${!empty pageDescription}">
  <fmt:message key="${pageDescription}" var="description"/>
  <c:if test="${!empty description}">

      <c:out value="${description}"/>

  </c:if>
</c:if>

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>

<tiles:importAttribute/>

<c:if test="${!empty pageDescription}">
  <fmt:message key="${pageDescription}" var="description"/>
  <c:if test="${!empty description}">

      <c:out value="${description}" escapeXml="false"/>

  </c:if>
</c:if>

Set escapeXml to false to allow markup in the properties file (temporarily).


<%@taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="laf" uri="http://gforge.nci.nih.gov/projects/ctmscommons/taglibs/laf" %>

<laf:box title="Account login">
    <laf:division>

Please log in

        <tags:loginForm/>

    </laf:division>
</laf:box>

Remove commented-out code and background-color override


<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>

<jsp:include page="/includes/header.jsp" flush="false">
	<jsp:param name="title" value="Progress" />
	<jsp:param name="headTitle" value="Progress" />
	<jsp:param name="meta" value="<meta http-equiv='refresh' content='3'>" />
</jsp:include>

    <c:out value="${progress.phaseLabel}"/>...

      <div align="left" style="float: left; width: <c:out value="${progress.phase / progress.phaseCount * 100}"/>%; height: 30px; background-color: green;">

<jsp:include page="/includes/footer.jsp" flush="false" />

<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>

<jsp:include page="/includes/header.jsp" flush="false">
	<jsp:param name="title" value="Progress" />
	<jsp:param name="headTitle" value="Progress" />
	<jsp:param name="meta" value="<meta http-equiv='refresh' content='3'>" />
</jsp:include>

    <c:out value="${progress.phaseLabel}"/>...

        <c:out value="${progress.phase / progress.phaseCount * 100}"/>%

      <div style="position: relative; top: -30px; z-index: 2; float: left; width: <c:out value="${progress.phase / progress.phaseCount * 100}"/>%; height: 30px; background-color: green;">

<jsp:include page="/includes/footer.jsp" flush="false" />

Put the percentage completed in the bar

Put the percentage completed in the bar


<%@ page session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>

		<title>Spring Mobile | Lite Device Resolver</title>

Device Resolver Example

Device:
			<c:choose>
				<c:when test="${currentDevice.normal}">Normal</c:when>
				<c:when test="${currentDevice.mobile}">Mobile</c:when>
				<c:when test="${currentDevice.tablet}">Tablet</c:when>
				<c:otherwise>Default</c:otherwise>
			</c:choose>

<%@ page session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>

		<title>Spring Mobile | Lite Device Resolver XML</title>

Device Resolver Example

Device:
			<c:choose>
				<c:when test="${currentDevice.normal}">Normal</c:when>
				<c:when test="${currentDevice.mobile}">Mobile</c:when>
				<c:when test="${currentDevice.tablet}">Tablet</c:when>
				<c:otherwise>Default</c:otherwise>
			</c:choose>

Update html title of lite-device-resolver-xml


<jsp:directive.include file="includes/top.jsp" />
  <c:url var="url" value="/login">
    <c:param name="service" value="${fn:escapeXml(param.service)}" />
    <c:param name="renew" value="true" />
  </c:url>

<spring:message code="screen.service.sso.error.header" />

<spring:message code="screen.service.sso.error.message"  arguments="${fn:escapeXml(url)}" />

<jsp:directive.include file="includes/bottom.jsp" />

<jsp:directive.include file="includes/top.jsp" />
  <c:url var="url" value="/login">
    <c:param name="service" value="${param.service}" />
    <c:param name="renew" value="true" />
  </c:url>

<spring:message code="screen.service.sso.error.header" />

<spring:message code="screen.service.sso.error.message"  arguments="${fn:escapeXml(url)}" />

<jsp:directive.include file="includes/bottom.jsp" />

Remove HTML escaping from the URL

Remove HTML escaping from the URL

You should not have to HTML escape here, and in fact it might even be buggy for some inputs.

The `<c:url />` tag  (line 2) will URL encode the value so it generates a valid query string parameter value.
The `${fn:escapeXml(url)}` on line 9 should then *HTML* escape the complete URL. (Actually you can probably use `htmlEscape="true"` as well on the `<spring:message />` tag.

That should do.


<%@page import="java.util.*,com.onelogin.saml2.Auth,com.onelogin.saml2.settings.Saml2Settings" language="java" contentType="application/xhtml+xml"%><%
Auth auth = new Auth();
Saml2Settings settings = auth.getSettings();
settings.setSPValidationOnly(true);
String metadata = settings.getSPMetadata();
List<String> errors = Saml2Settings.validateMetadata(metadata);
if (errors.isEmpty()) {
	out.println(metadata);
} else {
	response.setContentType("text/html; charset=UTF-8");

	for (String error : errors) {
	    out.println("<p>"+error+"</p>");
	}
}%>

<%@page import="java.util.*,com.onelogin.saml2.Auth,com.onelogin.saml2.settings.Saml2Settings" language="java" contentType="application/xhtml+xml"%><%
Auth auth = new Auth();
Saml2Settings settings = auth.getSettings();
settings.setSPValidationOnly(true);
List<String> errors = settings.checkSettings();

if (errors.isEmpty()) {
        String metadata = settings.getSPMetadata();
	out.println(metadata);
} else {
	response.setContentType("text/html; charset=UTF-8");

	for (String error : errors) {
	    out.println("<p>"+error+"</p>");
	}
}%>

Update demo to validate settings.

Update demo to validate settings.


  <jsp:include page="/footer-scripts.jsp" />

    Tachyon is an open source project developed at the UC Berkeley AMPLab.

    For help or advice using Tachyon, post a topic on the user mailing list.

Add link to the mailing list in the web ui.


<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>

<form id="lookup" method="POST">

      ID

        <input type="text"
               name="id"
               value="${id}"
               title="UUID des gesuchten Eintrags"
               pattern="^[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}$"
               required
        />

      <input type="submit" name="action" value="Suchen" />

</form>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>

<form id="lookup" method="POST">

      ID

        <input type="text"
               name="id"
               value="${id}"
               title="UUID des gesuchten Eintrags"
               pattern="^[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}$"
               required
        />

      <input type="submit" name="action" value="Nachschlagen" />

</form>

Fix form to use the right term

Fix form to use the right term


<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="spring" uri="/spring" %>

<title>Account Login</title>

Please enter your userid and password.

<form method="post">

User id:
<spring:bind path="loginCredentials.userId">

<input type="text" name="<c:out value="userId"/>" value="<c:out value=""/>">

</spring:bind>

Password:
<spring:bind path="loginCredentials.password">

<input type="password" name="<c:out value="password"/>" value="<c:out value=""/>">
</spring:bind>

<input type="submit" alignment="center" value="login">
</form>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<title>Account Login</title>

Please enter your userid and password.

<form method="post">

User id:
<spring:bind path="loginCredentials.userId">

<input type="text" name="<c:out value="userId"/>" value="<c:out value=""/>">

</spring:bind>

Password:
<spring:bind path="loginCredentials.password">

<input type="password" name="<c:out value="password"/>" value="<c:out value=""/>">
</spring:bind>

<input type="submit" alignment="center" value="login">
</form>

Use URL to find spring taglib

Use URL to find spring taglib


<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<%-- doesn't use <vitro:requiresAuthorizationFor> becuase the controller does complex authorization. -->

Configure Self-Edit Testing

${msg}

<form action="<c:url value="/admin/fakeselfedit"/>" >
    <input type="text" name="netid" value="${netid}"/>
    <input type="hidden" name="force" value="1"/>
     <input type="submit" value="use this netid for testing"/>
</form>

<form action="<c:url value="/admin/fakeselfedit"/>" >
    <input type="hidden" name="stopfaking" value="1"/>
    <input type="submit" value="stop using netid for testing"/>
</form>

<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<%-- doesn't use <vitro:requiresAuthorizationFor> becuase the controller does complex authorization. --%>

Configure Self-Edit Testing

${msg}

<form action="<c:url value="/admin/fakeselfedit"/>" >
    <input type="text" name="netid" value="${netid}"/>
    <input type="hidden" name="force" value="1"/>
     <input type="submit" value="use this netid for testing"/>
</form>

<form action="<c:url value="/admin/fakeselfedit"/>" >
    <input type="hidden" name="stopfaking" value="1"/>
    <input type="submit" value="stop using netid for testing"/>
</form>

Fix compile error in the comments.

Fix compile error in the comments.


<%@taglib prefix="security" uri="http://bioinformatics.northwestern.edu/taglibs/studycalendar/security" %>
<%@taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="laf" uri="http://gforge.nci.nih.gov/projects/ctmscommons/taglibs/laf" %>
<html>
    <head>
        <%--<tags:stylesheetLink name="main"/>--%>
        <style type="text/css">
            ul.menu {
                margin: 0;
                padding: 0;
            }
            ul.menu li {
                padding: 0.5em;
                list-style-type: none;
                margin: 0.5em;
            }
            /*h2 {*/
                /*margin-top: 2em;*/
            /*}*/
        </style>
    </head>
    <body>

    <security:secureOperation element="/pages/admin/manage/sites">
        <laf:box title="Administration">
            <laf:division>
                <ul class="menu">
                    <tags:restrictedListItem url="/pages/admin/manage/sites">Manage sites</tags:restrictedListItem>
                    <tags:restrictedListItem url="/pages/admin/manage/listUsers">Manage users</tags:restrictedListItem>
                    <tags:restrictedListItem url="/pages/admin/configure">Configure PSC</tags:restrictedListItem>
                </ul>
            </laf:division>
        </laf:box>
    </security:secureOperation>

    </body>
</html>

<%@taglib prefix="security" uri="http://bioinformatics.northwestern.edu/taglibs/studycalendar/security" %>
<%@taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="laf" uri="http://gforge.nci.nih.gov/projects/ctmscommons/taglibs/laf" %>
<html>
    <head>
        <style type="text/css">
            ul.menu {
                margin: 0;
                padding: 0;
            }
            ul.menu li {
                padding: 0.5em;
                list-style-type: none;
                margin: 0.5em;
            }
        </style>
    </head>
    <body>

    <security:secureOperation element="/pages/admin/manage/sites">
        <laf:box title="Administration">
            <laf:division>
                <ul class="menu">
                    <tags:restrictedListItem url="/pages/admin/manage/sites">Manage sites</tags:restrictedListItem>
                    <tags:restrictedListItem url="/pages/admin/manage/listUsers">Manage users</tags:restrictedListItem>
                    <tags:restrictedListItem url="/pages/admin/configure">Configure PSC</tags:restrictedListItem>
                    <tags:restrictedListItem url="/pages/admin/configureAuthentication">Configure authentication</tags:restrictedListItem>
                </ul>
            </laf:division>
        </laf:box>
    </security:secureOperation>

    </body>
</html>

Add authentication link to main body of admin page

git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@2423 0d517254-b314-0410-acde-c619094fa49f


<%@include file="../inc/inc-full.jsp" %>
<c:if test="${param.showbutton}">
     <pmfn:message key="${param.buttontext}" />

</c:if>
<c:if test="${param.showlist}">

</c:if>

Update of jQuery reveals this issue

Update of jQuery reveals this issue


<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%--/**
     * Render a results cell
     * The following parameters must be set:
     * fields: a List of fields to render
     * icons: a List of icons to display
     */
--%>

<tiles:importAttribute/>

  <c:out value="${cld.unqualifiedName}"/>

<c:choose>
  <c:when test="${cld != null}">
    <c:forEach var="field" items="${cld.pkFieldDescriptors}" varStatus="status">

        <c:out value="${field.name}"/>

      =

        <c:out value="${object[field.name]}"/>

    </c:forEach>
  </c:when>
  <c:otherwise>

      <c:out value="${object}"/>

  </c:otherwise>
</c:choose>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%--/**
     * Render a results cell
     * The following parameters must be set:
     * fields: a List of fields to render
     * icons: a List of icons to display
     */
--%>

<tiles:importAttribute scope="request"/>

<c:choose>
  <c:when test="${cld != null}">
  <%-- Go through all the items in the WebConfig for this object --%>
  <%-- For the moment, only do the primary keys --%>
    <tiles:get name="/pkFields.jsp" />
  </c:when>
  <c:otherwise>
    <font class="resultsCellValue">
      <c:out value="${object}"/>
    </font>
  </c:otherwise>
</c:choose>

Call out to other jsps to do the actual processing


<%@ page language="java" %>
<%@ page import="gov.nih.nci.rembrandt.util.*" %>

<%
	String bottomPage = "rbtFramesBottom.jsp";
	String param = request.getParameter("p");
	if (param != null) {
		param = MoreStringUtils.cleanJavascriptAndSpecialChars(MoreStringUtils.specialCharacters, param);
		bottomPage = param;
	}

%>

<HTML>
<HEAD>
<TITLE>Rembrandt Report Annotation</TITLE>
</HEAD>

  <FRAMESET rows="70, *" border="0">
      <FRAME src="rbtFramesTop.jsp" scrolling="no">
      <FRAME src="<%=bottomPage%>">
  </FRAMESET>

</HTML>

<%@ page language="java" %>
<%@ page import="gov.nih.nci.rembrandt.util.*" %>

<%
	String bottomPage = "rbtFramesBottom.jsp";
	String param = request.getParameter("p");
	if (param != null) {
		param = MoreStringUtils.checkWhiteListBeforeCleaningJavascriptAndSpecialChars(MoreStringUtils.specialCharacters, param);
		bottomPage = param;
	}

%>

<HTML>
<HEAD>
<TITLE>Rembrandt Report Annotation</TITLE>
</HEAD>

  <FRAMESET rows="70, *" border="0">
      <FRAME src="rbtFramesTop.jsp" scrolling="no">
      <FRAME src="<%=bottomPage%>">
  </FRAMESET>

</HTML>

Call checkWhiteListBeforeCleaningJavascriptAndSpecialChars() instead to clean param valule

SVN-Revision: 15459


<%--@elvariable id="accessKey" type="java.lang.String"--%>
<%--@elvariable id="type" type="atlas.model.ExperimentType"--%>

<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/experiment.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/customized-bootstrap-3.3.5.css">

<%@ include file="includes/experiment-description.jsp" %>

<%--@elvariable id="accessKey" type="java.lang.String"--%>
<%--@elvariable id="type" type="atlas.model.ExperimentType"--%>

<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/experiment.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/alt-customized-bootstrap-3.3.5.css">

<%@ include file="includes/experiment-description.jsp" %>

Use the bootstrap without corners on the experiment page too - works well with foundation


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title><bean:message key="contactgroup.creation.page.title"/></title>

<bean:message key="contactgroup.creation.page.title" />

            <bean:message key="form.contactgroup.groupname" />

                <input type="submit" class="btn btn-primary" value="<bean:message key="form.creation.validate"/>" />
                <input type="reset" class="btn btn-primary" value="<bean:message key="form.cancel" />" />

Fix typo in html (missing </tr>)

Fix typo in html (missing </tr>)


<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:url var="homeUrl" value="/" />
<c:url var="aboutUrl" value="/legal/about" />

Go...

Home

Download

Git repositories

About this site

Make download / git repo links external

Make download / git repo links external


<%@page import="edu.ucsf.mousedatabase.*" %>
<%@page import="edu.ucsf.mousedatabase.objects.*" %>
<%@page import="java.util.*" %>
<%=HTMLGeneration.getPageHeader(null,false,true) %>
<%=HTMLGeneration.getNavBar("Options.jsp", true) %>

Options

Site settings

 Manage settings

Email Options

 Manage email templates

 View email log

Tweak options layout, side by side now

Tweak options layout, side by side now


  <jsp:include page="footer-scripts.jsp" />

    Tachyon is an open source project developed at the UC Berkeley AMPLab.

  <jsp:include page="/footer-scripts.jsp" />

    Tachyon is an open source project developed at the UC Berkeley AMPLab.

Correct the jsp file path

Correct the jsp file path


<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

        ${ store.displayName }

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

        ${ store.displayName }

URL

${ store.url }

Creator

${ store.creator.displayName }

Registration Date

<fmt:formatDate pattern="yyyy-MM-dd" value="${ store.registrationDate }" />

Add the details of the store in the StoreDetailView

Signed-off-by: Aitor Magán <a93a7d273b830b2e8a26461c1a80328a1d7ad27a@conwet.com>


<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.hillsdon.net/ns/reviki/tags" prefix="sw" %>

<tiles:insertTemplate template="SiteTemplate.jsp">
  <tiles:putAttribute name="title">Search results</tiles:putAttribute>
  <tiles:putAttribute name="heading">Search results for '<c:out value="${param.query}"/>'</tiles:putAttribute>
  <tiles:putAttribute name="content">
    <c:choose>
      <c:when test="${not empty results}">

          <c:forEach var="match" items="${results}">

              <sw:wikiLink page="${match.page}"/>

                ${match.htmlExtract}

          </c:forEach>

      </c:when>
      <c:otherwise>

No results found.

      </c:otherwise>
    </c:choose>
    <c:if test="${not empty suggestCreate}">
      <a href="<c:url value="/pages/${wikiName}/${suggestCreate}"/>">Create new page <c:out value="${suggestCreate}"/>
    </c:if>
  </tiles:putAttribute>
</tiles:insertTemplate>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.hillsdon.net/ns/reviki/tags" prefix="sw" %>

<tiles:insertTemplate template="SiteTemplate.jsp">
  <tiles:putAttribute name="title">Search results</tiles:putAttribute>
  <tiles:putAttribute name="heading">Search results for '<c:out value="${param.query}"/>'</tiles:putAttribute>
  <tiles:putAttribute name="content">
    <c:choose>
      <c:when test="${not empty results}">

          <c:forEach var="match" items="${results}">

              <sw:wikiLink page="${match.page}"/>

                ${match.htmlExtract}

          </c:forEach>

      </c:when>
      <c:otherwise>

No results found.

      </c:otherwise>
    </c:choose>
    <c:if test="${not empty suggestCreate}">
      <a href="<sw:wikiUrl page="${suggestCreate}"/>">Create new page <c:out value="${suggestCreate}"/>
    </c:if>
  </tiles:putAttribute>
</tiles:insertTemplate>

Use tag rather than construct URL by hand.


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Fill out a form</title>
<jsp:include page="Formatting.jsp" />

 	<jsp:include page="NavBar.jsp" />

Hello! You are all awesome!

		<jsp:include page="Form.jsp" />

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Fill out a form</title>
<jsp:include page="Formatting.jsp" />

 	<jsp:include page="NavBar.jsp" />

Hello! I am a web app!

		<jsp:include page="Form.jsp" />

Change header to say it is a web app

Change header to say it is a web app


<jsp:directive.page contentType="text/html" pageEncoding="utf-8" trimDirectiveWhitespaces="true"
		import="static vrampal.connectfour.webjsp.SessionKeys.*"
		import="static vrampal.connectfour.webjsp.RequestAttributeKeys.*" />
<jsp:useBean id="boardPrinter" class="vrampal.connectfour.webjsp.view.BoardPrinter" scope="application" />
<!DOCTYPE html>

<meta charset="utf-8" />
<title>ConnectFour</title>
<link rel="stylesheet" href="connectfour.css">

<%=request.getAttribute(ATTR_MAIN_MESSAGE_KEY)%>

<%=request.getAttribute(ATTR_SUB_MESSAGE_KEY)%>

Game id: <%=request.getAttribute(ATTR_GAME_ID_KEY)%>

			<%=boardPrinter.printBoard(session)%>

Play another game

<jsp:directive.page contentType="text/html" pageEncoding="utf-8" trimDirectiveWhitespaces="true"
		import="static vrampal.connectfour.webjsp.SessionKeys.*"
		import="static vrampal.connectfour.webjsp.RequestAttributeKeys.*" />
<jsp:useBean id="boardPrinter" class="vrampal.connectfour.webjsp.view.BoardPrinter" />
<!DOCTYPE html>

<meta charset="utf-8" />
<title>ConnectFour</title>
<link rel="stylesheet" href="connectfour.css">

<%=request.getAttribute(ATTR_MAIN_MESSAGE_KEY)%>

<%=request.getAttribute(ATTR_SUB_MESSAGE_KEY)%>

Game id: <%=request.getAttribute(ATTR_GAME_ID_KEY)%>

			<%=boardPrinter.printBoard(session)%>

Play another game

Use local BoardPrinter to avoir synchronized


				Edukapp

				    <shiro:authenticated>

<shiro:principal property="id"/>

<a href="/user/<shiro:principal property="id"/>"><shiro:principal property="username"/>

Log out

					</shiro:authenticated>

				    <shiro:notAuthenticated>
				        <%@ include file="login_form.jsp"%>

Log in

Register

                    </shiro:notAuthenticated>

				    <form class="navbar-search pull-right" action="/search_results.jsp" method="get"><input type="text" id="q" name="q" class="search-query" placeholder="Search"></form>

Allow username to be picked up using JQuery


<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

      <fmt:message key="view.actions"/>

          <fmt:message key="view.showresults"/>

	  <c:if test="${!empty PROFILE.username && TEMPLATE_BUILD_STATE == null}">

<form action="" method="post">
	        or... <input type="hidden" name="method" value="startTemplateBuild"/>
	        <input type="submit" value="Start building a template query" />
	      </form>

	  </c:if>

          <tiles:insert page="saveQuery.jsp"/>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

      <fmt:message key="view.actions"/>

        <html:image property="action" src="images/show_results.png" disabled="${fn:length(viewStrings) <= 0}">
          <fmt:message key="view.showresults"/>

	  <c:if test="${!empty PROFILE.username && TEMPLATE_BUILD_STATE == null}">

<form action="" method="post">
	        or... <input type="hidden" name="method" value="startTemplateBuild"/>
	        <input type="submit" value="Start building a template query" />
	      </form>

	  </c:if>

          <tiles:insert page="saveQuery.jsp"/>

Disable submit button when nothing is on view

Former-commit-id: 202f78ee36437e3cfb6d128ebfaa1a3a4e633845


<%@page contentType="text/html;charset=UTF-8" language="java"%>
<%@page import="edu.ucsf.mousedatabase.HTMLGeneration"%>
<%=HTMLGeneration.getPageHeader(null, false,false,"onload=\"setFocus('quickSearchForm', 'searchterms')\"") %>
<%=HTMLGeneration.getNavBar(null, false) %>

Licenses

  The full source of this application is available under the under the AGPL,
  and can be found on the project site hosted on Github:

  ucsf-mousedb.github.com/mouseinventory

  The wood mouse image on the search page is licensed from iStockphoto.

<%@page contentType="text/html;charset=UTF-8" language="java"%>
<%@page import="edu.ucsf.mousedatabase.HTMLGeneration"%>
<%=HTMLGeneration.getPageHeader(null, false,false,"onload=\"setFocus('quickSearchForm', 'searchterms')\"") %>
<%=HTMLGeneration.getNavBar(null, false) %>

Licenses

  The full source of this application is available under the under the AGPL,
  and can be found on the project site hosted on Github:

  musIndex.github.com/mouseinventory

  The wood mouse image on the search page is licensed from iStockphoto.

Update open source code location

Update open source code location


<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/functions"%>

<c:set var="backSlash" value="\\u005C" />
<c:set var="configFilePath"
	value="${f:replace(teConfigFile, backSlash, '/')}" />

  <%@include file="site/welcome.html" %>

		<%
		    if (user != null && user.length() > 0) {
		    	out.println("View sessions");
		    	out.println("
");
		    }
		%>

Available Test Suites

	       <c:import var="xslt" url="/styles/config2table.xsl" />
	       <c:import var="configFile" url="file:///${configFilePath}" />
	       <x:transform doc="${configFile}" xslt="${xslt}" />

Move "View sessions" element into section


<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="t" uri="http://tiles.apache.org/tags-tiles" %>

<!DOCTYPE html>

    <meta charset="utf-8">
    <title>${ title }</title>
    <t:insertAttribute name="styles" />

    <t:insertAttribute name="navbar" />

    <c:if test="${ not empty message }">

         ${ message }

    </c:if>

    <t:insertAttribute name="panels" ignore="true" />

      <t:insertAttribute name="content" />
      <t:insertAttribute name="footer" />

    <t:insertAttribute name="scripts" />
    <t:insertAttribute name="scripts.extras" ignore="true" />
    <t:insertAttribute name="scripts.view" ignore="true" />

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="t" uri="http://tiles.apache.org/tags-tiles" %>

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>${ title }</title>
    <t:insertAttribute name="styles" />

    <t:insertAttribute name="navbar" />

    <c:if test="${ not empty message }">

         ${ message }

    </c:if>

    <t:insertAttribute name="panels" ignore="true" />

      <t:insertAttribute name="content" />
      <t:insertAttribute name="footer" />

    <t:insertAttribute name="scripts" />
    <t:insertAttribute name="scripts.extras" ignore="true" />
    <t:insertAttribute name="scripts.view" ignore="true" />

Add HTML meta to manage better the device width

Signed-off-by: Aitor Magán <a93a7d273b830b2e8a26461c1a80328a1d7ad27a@conwet.com>


<%@page import="com.salsaw.msalsa.cli.SalsaAlgorithmExecutor"%>

			<%=SalsaAlgorithmExecutor.M_SALSA_HEADER%>
			<button data-target="#navbar-main" data-toggle="collapse"
				type="button" class="navbar-toggle">

			</button>

Documentation

Contacts

<%=SalsaAlgorithmExecutor.M_SALSA_HEADER%>

Multiple Sequence Alignment by Local Search Algorithm

Add link to documentation page

[ENH] Add link to documentation page


<%--@elvariable id="hasBaselineResults" type="boolean"--%>
<%--@elvariable id="jsonFacets" type="java.lang.String"--%>
<%--@elvariable id="identifier" type="java.lang.String"--%>
<%--@elvariable id="geneQuery" type="java.lang.String"--%>
<%--@elvariable id="conditionQuery" type="java.lang.String"--%>
<%--@elvariable id="conditionQuery" type="java.lang.String"--%>
<%--@elvariable id="query" type="java.lang.String"--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/css/alt-customized-bootstrap-3.3.5.css"/>

Add Bootstrap CSS and pass contextPath in atlasUrl


<%-- This is the standard decorator for all study calendar pages --%>
<%@taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <title>caBIG Study Calendar Module - <decorator:title/></title>
    <tags:stylesheetLink name="debug"/>
    <tags:stylesheetLink name="lightbox"/>
    <tags:stylesheetLink name="error-console"/>
    <tags:stylesheetLink name="common"/>
    <tags:javascriptLink name="prototype"/>
    <tags:javascriptLink name="lightbox"/>
    <tags:javascriptLink name="error-console"/>
    <tags:javascriptLink name="common"/>

    <decorator:head/>

    <decorator:body/>

        <tags:logout/>

    <tags:errorConsole/>
    <tags:debugInfo/>

<%-- This is the standard decorator for all study calendar pages --%>
<%@taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <title>caBIG Study Calendar Module - <decorator:title/></title>
    <tags:stylesheetLink name="debug"/>
    <tags:stylesheetLink name="lightbox"/>
    <tags:stylesheetLink name="error-console"/>
    <tags:stylesheetLink name="common"/>
    <tags:javascriptLink name="prototype"/>
    <tags:javascriptLink name="lightbox"/>
    <tags:javascriptLink name="error-console"/>
    <tags:javascriptLink name="common"/>

    <decorator:head/>

    <decorator:body/>

        <a href="<c:url value="/pages/studyList"/>">Calendar Menu <tags:logout/>

    <tags:errorConsole/>
    <tags:debugInfo/>

Add menu link to footer. This is a stopgap until breadcrumbs are implemented.


<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>coverPage</title>

    <%@ include file="/include/cssimports.jsp" %>

Welcome To MyDigitalScrapBook.

MyDigitalScrapBook is a free, safe, and convenient way to share photos with your friends and family, without the drama that comes with other social sites. Just click the log in button below to start uploading, editing, and storing your precious memories.

                            Log In or Sign Up With Google

CSE360 Project - Arizona State University

Add url to sign in or sign up

Add url to sign in or sign up


<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!-- TRY TO REDIRECT TO DASHBOARD PAGE -->
<!--c:redirect url="http://localhost:8080/fim/user/dashboard"/-->

<stripes:layout-render name="/WEB-INF/pages/layout/default.jsp" pageTitle="FIM: Hello world">
    <stripes:layout-component name="content">

       <stripes:layout-render name="/WEB-INF/pages/cards/userCard.jsp"/>

    </stripes:layout-component>
</stripes:layout-render>

<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>

<!-- TRY TO REDIRECT TO DASHBOARD PAGE -->
<!--c:redirect url="http://localhost:8080/fim/user/dashboard"/-->

<stripes:layout-render name="/WEB-INF/pages/layout/default.jsp" pageTitle="FIM: Hello world">
    <stripes:layout-component name="content">

       <stripes:layout-render name="/WEB-INF/pages/cards/userCard.jsp"/>

    </stripes:layout-component>
</stripes:layout-render>

Remove tag because deploy on dev do not work


<jsp:directive.include file="includes/top.jsp" />
  <c:url var="url" value="/login">
    <c:param name="service" value="${fn:escapeXml(param.service)}" />
    <c:param name="renew" value="true" />
  </c:url>

<spring:message code="screen.service.sso.error.header" />

<spring:message code="screen.service.sso.error.message"  arguments="${fn:escapeXml(url)}" />

<jsp:directive.include file="includes/bottom.jsp" />

<jsp:directive.include file="includes/top.jsp" />
  <c:url var="url" value="/login">
    <c:param name="service" value="${param.service}" />
    <c:param name="renew" value="true" />
  </c:url>

<spring:message code="screen.service.sso.error.header" />

<spring:message code="screen.service.sso.error.message"  arguments="${fn:escapeXml(url)}" />

<jsp:directive.include file="includes/bottom.jsp" />

Remove HTML escaping from the URL


<%@ page import="org.mskcc.cbio.portal.servlet.QueryBuilder" %>
<%@ page import="org.mskcc.cbio.portal.util.GlobalProperties" %>
<%
    request.setAttribute(QueryBuilder.HTML_TITLE, "cBio Cancer Genomics Pathway Portal::Error");
    String userMessage = (String) request.getAttribute(QueryBuilder.USER_ERROR_MESSAGE);
%>

<jsp:include page="global/header.jsp" flush="true" />

            <% if (userMessage != null) { %>
                Oops!  <%= userMessage %>

            <% } else {%>
                Oops!  An Error Has occurred while processing your request.
              <% } %>
             Please try again or send email to <%= GlobalProperties.getEmailContact() %> if this is any error in this portal.

	<jsp:include page="global/footer.jsp" flush="true" />

</form>
<jsp:include page="global/xdebug.jsp" flush="true" />

<%@ page import="org.mskcc.cbio.portal.servlet.QueryBuilder" %>
<%@ page import="org.mskcc.cbio.portal.util.GlobalProperties" %>
<%
    request.setAttribute(QueryBuilder.HTML_TITLE, "cBio Cancer Genomics Pathway Portal::Error");
    String userMessage = (String) request.getAttribute(QueryBuilder.USER_ERROR_MESSAGE);
    String emailContact = (userMessage != null && userMessage.contains("not authorized")) ?
      "cbioportal-access at cbio dot mskcc dot org" : GlobalProperties.getEmailContact();
%>

<jsp:include page="global/header.jsp" flush="true" />

            <% if (userMessage != null) { %>
                Oops!  <%= userMessage %>

            <% } else {%>
                Oops!  An Error Has occurred while processing your request.
              <% } %>
             Please try again or send email to <%= emailContact %> if this is any error in this portal.

	<jsp:include page="global/footer.jsp" flush="true" />

</form>
<jsp:include page="global/xdebug.jsp" flush="true" />

Update to access control email address

Update to access control email address


<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

        <input type="checkbox" id="${field}selectAll" /> <spring:message code="jpm.converter.collection.selectall" text="Select all" />

Fix in collection converter 2

Fix in collection converter 2


Change header to say 'I am a web app'

Change header to say 'I am a web app'

For demo


Add menu link to footer.  This is a stopgap until breadcrumbs are implemented.

git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@664 0d517254-b314-0410-acde-c619094fa49f


<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page contentType="text/javascript" %>
$(document).ready(function() {
    Keemto.init();
    <sec:authorize access="isAuthenticated()">
        Keemto.activeSession.set({login: '<sec:authentication property="principal.username" />'});
    </sec:authorize>

});

<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page contentType="text/javascript" %>
$(document).ready(function() {
    Keemto.init();
    <sec:authorize access="isFullyAuthenticated()">
        Keemto.activeSession.set({login: '<sec:authentication property="principal.username" />'});
    </sec:authorize>

});

Fix wrong test on authentication JSP tag


<%@page import="placebooks.model.PlaceBook"%>
<%@ page isELIgnored="false" contentType="text/html" pageEncoding="windows-1252"%>
<%@ taglib prefix="spring"  uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>

<title>PlaceBooks account</title>

Account

<%
    // This scriptlet declares and initializes "date"
    System.out.println( "Getting current user" );
    placebooks.model.User user = placebooks.controller.UserManager.getCurrentUser();
    out.println(user.getName());

    for(PlaceBook placebook: user.getPlacebooks())
    {
    	out.println("" + placebook.getKey() + "");
    }
%>

<%@page import="javax.jdo.PersistenceManager"%>
<%@page import="placebooks.controller.UserManager"%>
<%@page import="placebooks.model.User"%>
<%@page import="placebooks.controller.PMFSingleton"%>
<%@page import="placebooks.model.PlaceBook"%>
<%@ page isELIgnored="false" contentType="text/html" pageEncoding="windows-1252"%>
<%@ taglib prefix="spring"  uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>

<title>PlaceBooks account</title>

Account

<%
    // This scriptlet declares and initializes "date"
    System.out.println( "Getting current user" );
	PersistenceManager pm = PMFSingleton.getPersistenceManager();
    User user = UserManager.getCurrentUser(pm);
    out.println("
" + user.getName() + "
");
    out.println("
" + user.getEmail() + "
");

    for(PlaceBook placebook: user.getPlacebooks())
    {
    	out.println("" + placebook.getKey() + "");
    }
%>

Change reference to getUser() to getUser(PersistenceManager)


<%@taglib uri="http://www.sourceforge.net/webassembletool" prefix="w"%>
<w:includeTemplate page="/templates/sparkle/index.html">

			<w:includeParam name="title">ESIGate Test Example</w:includeParam>

			<w:includeParam name="colTwo">

Hello World

This is a simple demo tutorial of ESIGate's remote template

			</w:includeParam>

</w:includeTemplate>

<%@taglib uri="http://www.sourceforge.net/webassembletool" prefix="w"%>
<w:includeTemplate page="/templates/sparkle/index.html">

			<w:includeParam name="title">ESIGate Test Example</w:includeParam>

			<w:includeParam name="colTwo">

Hello World

This is a simple demo tutorial of ESIGate's remote template

			</w:includeParam>

			<w:includeParam name="menu">

Activity

ESIGate

			</w:includeParam>

			<w:includeParam name="colOne">

Remote content

				<w:includeblock page="/content/blocks.html" name="block3"></w:includeblock>
			</w:includeParam>

</w:includeTemplate>

Include a remote block code

Include a remote block code


<%@ include file="/WEB-INF/jsp/include.jsp" %>
<tiles:insertDefinition name="baseNoSide">
	<tiles:putAttribute name="mainContent" type="string">

Default Product View For: <c:out value="${productSkus.product.name}"/>

 <blc:breadcrumb categoryList="${breadcrumbCategories}" />

		Name
		Description

		<c:out value="${currentProduct.name}"/>
		<c:out value="${currentProduct.description}"/>

SKUs

		Name
		Price
		Add to Cart

	<c:forEach var="item" items="${currentProduct.skus}" varStatus="status">

			<c:out value="${item.name}"/>
			<c:out value="${item.price}"/>
			<a href="<c:url value="/basket/addSku.htm"><c:param name="skuId" value="${item.id}"/></c:url>">Add to Basket

	</c:forEach>

	</tiles:putAttribute>
</tiles:insertDefinition>

<%@ include file="/WEB-INF/jsp/include.jsp"%>
<tiles:insertDefinition name="baseNoSide">
	<tiles:putAttribute name="mainContent" type="string">

		<blc:breadcrumb categoryList="${breadcrumbCategories}" />

${currentProduct.name}

${currentProduct.description}

SKUs

				Name
				Price
				Add to Cart

			<c:forEach var="item" items="${currentProduct.skus}" varStatus="status">

					<c:out value="${item.name}" />
					<c:out value="${item.retailPrice}" />
					<a href="<c:url value="/basket/addSku.htm"><c:param name="skuId" value="${item.id}"/></c:url>">Add to Cart

			</c:forEach>

	</tiles:putAttribute>
</tiles:insertDefinition>

Fix product page so it displays basic properties


                Copyright 2015 WMIIG | All rights reserved

                    Contact Me

 whoischarles.com

 charles@whoischarles.com

                    Follow Me

Github

Twitter

Facebook

                Copyright 2015-2016 WMIIG | All rights reserved

                    Contact Me

 whoischarles.com

 charles@whoischarles.com

                    Follow Me

Github

Twitter

Facebook

Fix copyright text for 2016

Fix copyright text for 2016

* Fix copyright text for 2016
* Link WMIIG link to / instead of #


Read AE autocomplete plugin JS from its own directory


Remove HTML escaping from the URL

Remove HTML escaping from the URL

You should not have to HTML escape here, and in fact it might even be buggy for some inputs.

The `<c:url />` tag  (line 2) will URL encode the value so it generates a valid query string parameter value.
The `${fn:escapeXml(url)}` on line 9 should then *HTML* escape the complete URL. (Actually you can probably use `htmlEscape="true"` as well on the `<spring:message />` tag.

That should do.


<%@ taglib uri="/webwork" prefix="ww" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<ww:set name="companyLogo" value="companyLogo"/>
<c:if test="${!empty(companyLogo)}">
  <ww:set name="companyUrl" value="companyUrl"/>
  <c:choose>
    <c:when test="${!empty(companyUrl)}">

    </c:when>
    <c:otherwise>

    </c:otherwise>
  </c:choose>
</c:if>

<%@ taglib uri="/webwork" prefix="ww" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<ww:set name="companyLogo" value="companyLogo"/>
<c:choose>
  <c:when test="${!empty(companyLogo)}">
    <ww:set name="companyUrl" value="companyUrl"/>
    <c:choose>
      <c:when test="${!empty(companyUrl)}">

      </c:when>
      <c:otherwise>

      </c:otherwise>
    </c:choose>
  </c:when>
  <c:otherwise>

  </c:otherwise>
</c:choose>

Add a default icon if company informations aren't set

git-svn-id: 1d22bf2b43db35b985fe5d7437c243537c14eeaa@482744 13f79535-47bb-0310-9956-ffa450edef68


<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<c:forEach var="type" items="${characterizationTypes}" varStatus="ind">

				${type}    summaryViewLayer2

				<c:forEach var="charBean"
					items="${characterizationSummaryView.type2Characterizations[type]}">
					<%@ include file="bodySingleCharacterizationSummaryView.jsp"%>

				</c:forEach>

</c:forEach>

<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<c:forEach var="type" items="${characterizationTypes}" varStatus="ind">

				${type}

				<c:forEach var="charBean"
					items="${characterizationSummaryView.type2Characterizations[type]}">
					<%@ include file="bodySingleCharacterizationSummaryView.jsp"%>

				</c:forEach>

</c:forEach>

Remove debuging text "summaryViewLayer2" from title.

SVN-Revision: 17127


<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

    <title>Pluto Portal</title>

Apache Pluto

An Apache Portals Project

			<c:forEach var="portlet" varStatus="status"
				items="${currentPage.portletIds}">
				<c:set var="portlet" value="${portlet}" scope="request" />
				<jsp:include page="portlet-skin.jsp" />
			</c:forEach>

       © 2003-2011 Apache Software Foundation

Remove portlet spec stylesheet, as not needed and often causes errors when missing


<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<%-- Import all attributes --%>
<tiles:importAttribute/>

<c:if test="${empty templateQuery}">
    <c:set var="templateQuery" value="${QUERY}"/>
</c:if>

','  ')}" escapeXml="false"/>
    <tiles:insert name="setFavourite.tile">
        <tiles:put name="name" value="${templateQuery.name}"/>
        <tiles:put name="type" value="template"/>
    </tiles:insert>

<%-- description --%>

${templateQuery.description}

Add template title and description to results pages

Former-commit-id: fa6d082e83df0cefb52674c9d32ebee59ab30659


Add template title and description to results pages

Former-commit-id: 7b7c17a9229d49e28bb8ea381664cc6204b7c942


<%
/**
 * OpenCPS is the open source Core Public Services software
 * Copyright (C) 2016-present OpenCPS community
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>
 */
%>

Add jsp file for portlet 4

Add jsp file for portlet 4


Add JSP file for portlet 9

Add JSP file for portlet 9


<%--
  #%L
  ACS AEM Commons Package
  %%
  Copyright (C) 2014 Adobe
  %%
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  #L%
  --%>
<%@page session="false" import="
                  org.apache.sling.api.resource.Resource,
                  org.apache.sling.api.resource.ResourceUtil,
                  org.apache.sling.api.resource.ValueMap,
                  org.apache.sling.api.resource.ResourceResolver,
                  org.apache.sling.api.resource.ResourceMetadata,
                  org.apache.sling.api.wrappers.ValueMapDecorator,
                  java.util.List,
                  java.util.ArrayList,
                  java.util.HashMap,
                  java.util.Locale,
                  com.adobe.acs.commons.genericlists.GenericList,
                  com.adobe.granite.ui.components.ds.DataSource,
                  com.adobe.granite.ui.components.ds.EmptyDataSource,
                  com.adobe.granite.ui.components.ds.SimpleDataSource,
                  com.adobe.granite.ui.components.ds.ValueMapResource,
                  com.day.cq.wcm.api.Page,
                  com.day.cq.wcm.api.PageManager"%><%
%><%@taglib prefix="cq" uri="http://www.day.com/taglibs/cq/1.0" %><%
%><cq:defineObjects/><%

// set fallback
request.setAttribute(DataSource.class.getName(), EmptyDataSource.instance());

Locale locale = request.getLocale();

Resource datasource = resource.getChild("datasource");
ResourceResolver resolver = resource.getResourceResolver();
ValueMap dsProperties = ResourceUtil.getValueMap(datasource);
String genericListPath = dsProperties.get("path", String.class);
if (genericListPath != null) {
    Page genericListPage = pageManager.getPage(genericListPath);
    if (genericListPage != null) {
        GenericList list = genericListPage.adaptTo(GenericList.class);
        if (list != null) {
            List<Resource> fakeResourceList = new ArrayList<Resource>();
            for (GenericList.Item item : list.getItems()) {
                ValueMap vm = new ValueMapDecorator(new HashMap<String, Object>());
                vm.put("value", item.getValue());
                vm.put("text", item.getTitle(locale));

                fakeResourceList.add(new ValueMapResource(resolver, new ResourceMetadata(), "nt:unstructured", vm));
            }

            DataSource ds = new SimpleDataSource(fakeResourceList.iterator());
            request.setAttribute(DataSource.class.getName(), ds);
        }

    }
}
%>

Add a Granite UI DataSource for Generic Lists


<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>STEP Capstone</title>
    <link id="style" rel="stylesheet" href="style.css">
    <link rel="icon" href="images/step-favicon.svg" type="image/svg" sizes="16x16">

You do not have access to edit this event.

Add access denied jsp page

Add access denied jsp page


<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<script type="text/javascript">
(function() {
    var callbacks = {
        matchCb: function(id, type) {
            window.open(window.service.replace('/service/', '/portal.do?class=' + type + "&externalids=" + id));
        },
        listCb: function(pq) {
            var service = new intermine.Service({'root': window.service, 'token': "<tiles:getAsString name="token"/>"});
            service.query(pq, function(query) {
                var dialogue = new intermine.query.actions.ListCreator(query);
                dialogue.render().$el.appendTo('#<tiles:getAsString name="widgetId"/>-widget');
                dialogue.openDialogue();

                query.on('list-creation:success', window.LIST_EVENTS['list-creation:success']);
                query.on('list-creation:failure', window.LIST_EVENTS['list-creation:failure']);
            });
        },
        resultsCb: function(pq) {
            (new intermine.Service({'root': service})).query(pq, function(query) {
                window.open(service.replace('/service/', "/run.do") + "?query=" + query.toXML());
                window.focus();
            });
        }
    };
    window.widgets.<tiles:getAsString name="style"/>('<tiles:getAsString name="widgetId"/>', '<tiles:getAsString name="bagName"/>', '#<tiles:getAsString name="widgetId"/>-widget', callbacks);
})();
</script>

Refactor out scriptlet inserted for widgets

Former-commit-id: f84c17437ffab522d5e4699bcd657a5806ec0743


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<stripes:layout-render name="../../../../../client/layout/adminlayout.jsp">
	<stripes:layout-component name="contents">

		<script type="text/javascript">
			/* global Ext, CoreUtil */
			Ext.onReady(function () {
				var componentStore = Ext.create('Ext.data.Store', {
					// This store only grabs components which have Questions.
					storeId: 'componentStore',
					autoLoad: true,
					sorters: 'componentName',
					fields: [
						'componentId',
						'componentName'
					],
					proxy: {
						id: 'componentStoreProxy',
						type: 'ajax',
						url: '../api/v1/resource/components/questionviews'
					}
				});

				var componentPanel = Ext.create('Ext.grid.Panel', {
					flex: 2,
					store: componentStore,
					layout: 'fit',
					columns: [
						{
							text: 'Components',
							dataIndex: 'componentName',
							flex: 1
						}
					]
				});

				var questionPanel = Ext.create('Ext.grid.Panel', {
					flex: 3,
					layout: 'fit',
					viewConfig: {
						emptyText: 'Please select a component.',
						deferEmptyText: false
					},
					columns: [
						{
							text: 'Questions',
							dataIndex: 'componentName',
							flex: 1
						}
					]
				});

				var answerPanel = Ext.create('Ext.grid.Panel', {
					flex: 3,
					layout: 'fit',
					viewConfig: {
						emptyText: 'Please select a component.',
						deferEmptyText: false
					},
					columns: [
						{
							text: 'Answers',
							dataIndex: 'componentName',
							flex: 1
						}
					]
				});

				var mainPanel = Ext.create('Ext.panel.Panel', {
					title: 'Manage Questions <i class="fa fa-question-circle"  data-qtip="User questions and answers about a component."></i>',
					bodyPadding: '6em',
					layout: {
						type: 'hbox',
						align: 'stretch',
						pack: 'start',
						fit: 'fit'
					},
					defaults: {
					},
					items: [
						componentPanel,
						{
							xtype: 'splitter'
						},
						questionPanel,
						{
							xtype: 'splitter'
						},
						answerPanel
					]
				});
				Ext.create('Ext.container.Viewport', {
					layout: 'fit',
					items: [
						mainPanel
					]
				});
			});

		</script>
	</stripes:layout-component>
</stripes:layout-render>

Create initial framework for new Ext JS version of Component Questions

We set up a UI framework for the new component versions page, including
three panels across the screen in an hbox configuration. The idea is
that a user selects the component, selections a question belonging to
a component, and then the answers to to that question.

The three panels, componentPanel, questionPanel, and answerPanel, are
all inside of mainPanel, and are separated by splitters, which allow the
panels to be resized across the entire panel, adjusting automatically.


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@taglib prefix="fg" tagdir="/WEB-INF/tags/form/form-group" %>

<jsp:useBean id="address" scope="page" class="models.Address"></jsp:useBean>

<t:layout pageTitle="Address form">
    <form class="form-horizontal">
        <fg:text property="name" text="Name" value="${address.name}"></fg:text>
        <fg:text property="christianname" text="Christianname" value="${address.christianname}"></fg:text>
        <fg:text property="email" text="Email" value="${address.email}"></fg:text>
        <fg:text property="phone" text="Phone" value="${address.phone}"></fg:text>
        <fg:text property="mobile" text="Mobile" value="${address.mobile}"></fg:text>
        <fg:text property="country" text="Country" value="${address.country}"></fg:text>
        <fg:text property="postcode" text="Postcode" value="${address.postcode}"></fg:text>
        <fg:text property="city" text="City" value="${address.city}"></fg:text>
        <fg:text property="street" text="Street" value="${address.street}"></fg:text>
        <fg:number property="number" text="Number" value="${address.number}"></fg:number>
        <fg:text property="birthday" text="Birthday" value="${address.birthday}"></fg:text>

                <button type="submit" class="btn btn-default">Save</button>

    </form>
</t:layout>

Create address form, with inputs build with the form-group tags


<!DOCTYPE HTML>

	<title>MHi-Library - 7 Up 7 Down Inventory</title>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<link rel="stylesheet" href="assets/css/main.css" />

		<jsp:include page="/WEB-INF/templates/header.jsp"/>

7 Up/7 Down Inventory

A brief assessment derived from the General Behavior Inventory. Designed to be applicable for youths and adults,
                            and to improve separation between mania and depression dimensions

Administrator - Self

Target Population - 5 years old and older

Timeframe Measured - Past year or past week depending on version

Training Required - None

Reliability, Validity, and Norms - Reliable and valid but currently lacking norms

Available Languages - English only

Copyright Information - Public domain

            <jsp:include page="/WEB-INF/templates/footer.jsp"/>

Add a file as a demo

Add a file as a demo


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Name printing</title>
</head>
<body>
	<%
	  for (int i = 0; i < 10;i++) {
	%>
	Hi, my name is Peter.<br/>
	<%
	  }
	%>
</body>
</html>

Add name print example about the JSP.

Add name print example about the JSP.


<%@ page isErrorPage="true" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>

      <title>Error</title>

    <%
      String error = exception.getMeesage();

    %>

There are errors in the configuration of TEAM Engine

<%=error %>

Update documentation and put it in rst

Update documentation and put it in rst


<%-- forward to layout if this is the guest account
  -- include this in pages which guest should not access
  --%>
<% String checkGuestUserName = (String) session.getAttribute ("userName"); %>
<% if ( checkGuestUserName == null || checkGuestUserName == "guest" ) { %>
  <jsp:forward page="layout.jsp"/>
<% } %>

Include file to check if currently guest or null user
and forward to layout.

git-svn-id: 477788cc2a8229a747c5b8073e47c1d0f6ec0604@3367 f5dbab47-78f9-eb45-b975-e544023573eb


<%@page import="net.jforum.util.preferences.*" %>
<%
if (SystemGlobals.getBoolValue(ConfigKeys.INSTALLED)) {
    response.setStatus(301);
    response.setHeader("Location", "forums/list.page");
} else {
	response.setStatus(301);
	response.setHeader("Location", "install.jsp");
}
%>

<%@page import="net.jforum.util.preferences.*" %>
<%@page import="java.io.File" %>
<%
	final File file = new File(SystemGlobals.getValue(ConfigKeys.INSTALLATION_CONFIG));

	if (SystemGlobals.getBoolValue(ConfigKeys.INSTALLED) || file.exists()) {
	    response.setStatus(301);
	    response.setHeader("Location", "forums/list.page");
	} else {
		response.setStatus(301);
		response.setHeader("Location", "install.jsp");
	}
%>

Determine if JForum has already been installed by checking the existence of JForum configuration file


Add template title and description to results pages


<%@page language="java"
	contentType="text/html"
	import="java.io.File,
		java.util.LinkedList,
		org.opennms.core.resource.Vault,
		org.opennms.web.authenticate.Authentication,
                org.opennms.web.navigate.NavBarEntry
 		"
%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

<%

    if (request.getAttribute("navBar") == null) {
        String mapEnableLocation = Vault.getHomeDir() + File.separator +
            "etc" + File.separator + "map.enable";
        File mapEnableFile = new File(mapEnableLocation);

        LinkedList navBar = new LinkedList();
        navBar.add(new NavBarEntry("nodelist", "element/nodelist.jsp",
		   "Node List"));
        navBar.add(new NavBarEntry("element", "element/index.jsp", "Search"));
        navBar.add(new NavBarEntry("outages", "outage/index.jsp", "Outages"));
        navBar.add(new NavBarEntry("event", "event/index.jsp", "Events"));
        navBar.add(new NavBarEntry("alarm", "alarm/index.jsp", "Alarms"));
        navBar.add(new NavBarEntry("notification", "notification/index.jsp",
                   "Notification"));
        navBar.add(new NavBarEntry("asset", "asset/index.jsp", "Assets"));
        //navBar.add(new NavBarEntry("security", "security.jsp", "Security"));
        navBar.add(new NavBarEntry("report", "report/index.jsp", "Reports"));
        if (mapEnableFile.exists()) {
          navBar.add(new NavBarEntry("map", "map/index.jsp", "Map"));
        }
        if(request.isUserInRole(Authentication.ADMIN_ROLE)) {
          navBar.add(new NavBarEntry("admin", "admin/index.jsp", "Admin"));
        }
        navBar.add(new NavBarEntry("help", "help/index.jsp", "Help"));

        request.setAttribute("navBar", navBar);
        request.setAttribute("location", request.getParameter("location"));
    }
%>

    <c:forEach var="navEntry" items="${navBar}">
      <c:choose>
        <c:when test="${navEntry.name == 'Help'}">

        </c:when>
        <c:otherwise>

        </c:otherwise>
      </c:choose>

      <c:choose>
        <c:when test="${location == navEntry.locationMatch}">
          <c:out value="${navEntry.name}"/>
        </c:when>
        <c:otherwise>
          <a href="<c:out value="${navEntry.URL}"/>"><c:out value="${navEntry.name}"/>
        </c:otherwise>
      </c:choose>

    </c:forEach>

Add hopefully the final file that should have been part of the nav bar rework commit


<%
/**
 * OpenCPS is the open source Core Public Services software
 * Copyright (C) 2016-present OpenCPS community
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
%>

<%@ include file="../init.jsp"%>

<%
	String backURL = ParamUtil.getString(request, "backURL");
%>

<liferay-ui:header
	backURL="<%= backURL %>"
	title="service-list"
/>

Add new page serviceconfig collection

Add new page serviceconfig collection


Refactor out scriptlet inserted for widgets


<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>Your Requests</title>
    <%@ include file="/bootstrap-css.html" %>

                    Date

                    Start

                    End

                    Ticket

<%@ include file="/bootstrap-js.html" %>

Add page for viewing isolate requests

Add page for viewing isolate requests


<%@ page import="java.security.cert.X509Certificate" %>
<%@ page import="java.security.Principal" %>
<head><title>SSL JSP</title></head>
<body>
<% X509Certificate certChain[] = (X509Certificate[]) request.getAttribute("javax.servlet.request.X509Certificate");
  if (certChain != null) {
    /* for debug ...
    for (int i = 0; i < certChain.length; i++) {
      out.println ("Client Certificate [" + i + "] = "
                      + certChain[i].toString());
    }
     */
    X509Certificate principalCert = certChain[0];
    Principal principal = principalCert.getSubjectDN();
    out.println ("Name: " + principal.getName());
  } else {
    out.println ("Fail no cert :-(");
  }

 %>
</body>

Add the jsp for proxy presentation.

Add the jsp for proxy presentation.


<!DOCTYPE HTML>
<%@page import="java.util.Map"%>

   Key
   Value

  <%
  //loop over all entries of the System.getProperties().entrySet()
  %>

  <%
  // close the loop...
  %>

Add example for JSP with Java Snippets

Add example for JSP with Java Snippets


<%@ include file="/taglibs.jsp"%>

Laws list

<c:forEach var="law" items="${laws}" >

${law.caption} click

</c:forEach>

Add basic view for laws list

Add basic view for laws list


<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="css/main.css">
		<script type="text/javascript" src="javascript/script.js"></script>
	</head>
	<body onload="window.print();self.close()">
		<jsp:include page="bodySamplePublicationSummaryView.jsp" />
	</body>
</html>

Implement Print page for Publication summary view

SVN-Revision: 15178


<%
/**
 * OpenCPS is the open source Core Public Services software
 * Copyright (C) 2016-present OpenCPS community
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>
 */
%>

<%@page import="org.opencps.processmgt.util.ProcessUtils"%>
<%@ include file="../init.jsp" %>

<%
	long processStepId = ParamUtil.getLong(request, "processStepId");

%>

<aui:select name="actionUserId" showEmptyOption="true" label="">
	<%
		List<User> assignUsers = ProcessUtils.getAssignUsers(processStepId, 0);
		for (User userSel : assignUsers) {
		%>
			<aui:option value="<%= userSel.getUserId() %>"><%= userSel.getFullName() %></aui:option>
		<%
		}
	%>
</aui:select>

Add assign_user page for ajax request

Add assign_user page for ajax request


<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %>

VERY Secure Page

This is a protected page. You can only see me if you are a supervisor.

<authz:authorize ifAllGranted="ROLE_SUPERVISOR">
   You have "ROLE_SUPERVISOR" (this text is surrounded by <authz:authorize> tags).
</authz:authorize>

Home

Logout

VERY Secure Page

This is a protected page. You can only see me if you are a supervisor.

Home

Logout

Remove security taglib dependency in OpenID sample.


<%--
  ~ Copyright 2006-2008 Sxip Identity Corporation
  --%>
<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>OpenID HTML FORM Redirection</title>
</head>
<body onload="document.forms['openid-form-redirection'].submit();">
    <form name="openid-form-redirection" action="${message.OPEndpoint}" method="post" accept-charset="utf-8">
        <c:forEach var="parameter" items="${message.parameterMap}">
        <input type="hidden" name="${parameter.key}" value="${parameter.value}"/>
        </c:forEach>
        <button type="submit">Continue...</button>
    </form>
</body>
</html>

Add support of OpenID 2.0.

Add support of OpenID 2.0.


<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/woko/jsp/taglibs.jsp"%>

<%@ page import="woko.facets.builtin.WokoFacets" %>
<%@ page import="woko.util.Util" %>
<%@ page import="woko.Woko" %>
<%@ page import="woko.facets.WokoFacetContext" %>
<%@ page import="woko.facets.builtin.RenderListItem" %>

<%
    RenderListItem listItem = (RenderListItem)request.getAttribute(WokoFacets.renderListItem);
    WokoFacetContext fctx = (WokoFacetContext)listItem.getFacetContext();
    Woko woko = fctx.getWoko();

    Object result = fctx.getTargetObject();
    String title = Util.getTitle(request, result);
    // compute link if view facet is available
    String href = null;
    String resultKey = woko.getObjectStore().getKey(result);
    String resultClassName = woko.getObjectStore().getClassMapping(result.getClass());
    if (woko.getFacet(WokoFacets.view, request, result)!=null) {
        href = new StringBuilder().
                append(request.getContextPath()).
                append("/").
                append(WokoFacets.view).
                append("/").
                append(resultClassName).
                append("/").
                append(resultKey).
                toString();
    }
%>
    <%=resultKey%> -
    <%
        if (href!=null) {
    %>
    <a href="<%=href%>">
        <%
            }
        %>
        <c:out value="<%=title%>"/>
        <%
            if (href!=null) {
        %>
    </a>
    <%
        }
    %>
    (<%=resultClassName%>)

Add the jsp used to render the list items


<!doctype html>

	<meta charset="UTF-8">
	<title>Document</title>

Maven + Spring MVC - Supermarket with Checkout mechanism Web Project Example

Message : ${message}

Counter : ${counter}

Add first initial view file

Add first initial view file


<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<link rel="stylesheet" type="text/css" href="tips/css/tips.css"/>

    <jsp:include page="tips/tip${id}_long.jsp"/>
    Show all tips >>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<link rel="stylesheet" type="text/css" href="tips/css/tips.css"/>

    <jsp:include page="tips/tip${id}_long.jsp"/>
<%
  -- removed for now as it doesn't work:
  Show all tips >>
%>

Remove the "show all tips" link as it doesn't work.

Former-commit-id: cb455f784f44642bc1128f89798ae54f40c896cc


<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<script type="text/javascript">
(function() {
    var callbacks = {
        matchCb: function(id, type) {
            window.open(window.service.replace('/service/', '/portal.do?class=' + type + "&externalids=" + id));
        },
        listCb: function(pq) {
            var service = new intermine.Service({'root': window.service, 'token': "<tiles:getAsString name="token"/>"});
            service.query(pq, function(query) {
                var dialogue = new intermine.query.actions.ListCreator(query);
                dialogue.render().$el.appendTo('#<tiles:getAsString name="widgetId"/>-widget');
                dialogue.openDialogue();

                query.on('list-creation:success', window.LIST_EVENTS['list-creation:success']);
                query.on('list-creation:failure', window.LIST_EVENTS['list-creation:failure']);
            });
        },
        resultsCb: function(pq) {
            (new intermine.Service({'root': service})).query(pq, function(query) {
                window.open(service.replace('/service/', "/run.do") + "?query=" + query.toXML());
                window.focus();
            });
        }
    };
    window.widgets.<tiles:getAsString name="style"/>('<tiles:getAsString name="widgetId"/>', '<tiles:getAsString name="bagName"/>', '#<tiles:getAsString name="widgetId"/>-widget', callbacks);
})();
</script>