include-variables.jsp 1.1 KB

123456789101112131415161718192021222324252627
  1. <%@ page import="com.techempower.*,
  2. com.techempower.gemini.*,
  3. com.techempower.gemini.form.*,
  4. com.techempower.gemini.messaging.*,
  5. com.techempower.gemini.jsp.*,
  6. com.techempower.helper.*,
  7. hello.*,
  8. hello.accounts.entity.*,
  9. java.math.*,
  10. java.text.*,
  11. java.util.*" %><%@ page session="false" %><%
  12. //
  13. // Sets up variables for use on all JSP pages.
  14. //
  15. GhContext context = (GhContext)request.getAttribute("Context");
  16. GhRequestVariables vars = new GhRequestVariables(context);
  17. // Note that default stylesheets and scripts that are to be included on
  18. // -all- pages should be defined in GhInfrastructure's
  19. // constructor. Page-scope stylesheets and scripts should be defined by
  20. // overloading the jspInit function to call sas.addScript and sas.addSheet.
  21. // Request-scope scripts and sheets can be defined by using vars.sas.
  22. // However, request-scope scripts and sheets are quite uncommon.
  23. %>