diff --git a/bigbluebutton-web/web-app/demo/demo1.jsp b/bigbluebutton-web/web-app/demo/demo1.jsp index cc593fd51a..5e3bb6141e 100755 --- a/bigbluebutton-web/web-app/demo/demo1.jsp +++ b/bigbluebutton-web/web-app/demo/demo1.jsp @@ -1,119 +1,119 @@ - - -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<% - request.setCharacterEncoding("UTF-8"); - response.setCharacterEncoding("UTF-8"); -%> - - - - - Join a Course - - - -<%@ include file="bbb_api.jsp"%> - -
- -<% -if (request.getParameterMap().isEmpty()) { - // - // Assume we want to create a meeting - // - %> -<%@ include file="demo_header.jsp"%> + + +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<% + request.setCharacterEncoding("UTF-8"); + response.setCharacterEncoding("UTF-8"); +%> + + + + + Join a Course + + + +<%@ include file="bbb_api.jsp"%> + +
+ +<% +if (request.getParameterMap().isEmpty()) { + // + // Assume we want to create a meeting + // + %> +<%@ include file="demo_header.jsp"%> + +

Demo #1: Join a Course

+ + +
+ + + + + + + + + + + + + + + + +
+   + Full Name: +   +
+   +   +   +
+ +
+ + +<% +} else if (request.getParameter("action").equals("create")) { + + // + // Got an action=create + // + + // + // Request a URL to join a meeting called "Demo Meeting" + // Pass null for welcome message to use the default message (see defaultWelcomeMessage in bigbluebutton.properties) + // + String joinURL = getJoinURL(request.getParameter("username"), "Demo Meeting", null ); + + if (joinURL.startsWith("http://")) { +%> + + + +<% + } else { +%> + +Error: getJoinURL() failed +

+<%=joinURL %> + +<% + } +} +%> + + +<%@ include file="demo_footer.jsp"%> + + +