<%
/*
 * Copyright (c) 1999-2000 BEA Systems, Inc.  All rights reserved
 *
 * THIS IS SOURCE CODE PUBLISHED FOR DEMONSTRATION PURPOSES
 *
 * This JHTML file illustrates how a University HTML client uses a servlet
 * to invoke operations on the WebLogic Enterprise University CORBA objects.
 */
%>

<%

  // Get the Course Action and Course Number
  String courseAction = (String) request.getParameter("COURSE_ACTION");
  String courseNumber = (String) request.getParameter("COURSE_NUM");

  String newurl;
  
  if (courseAction.equals("DISPLAY"))
  {
    newurl = "http://localhost:7001/displayDetailsServlet.jsp?COURSE_NUM=" + courseNumber;
    response.sendRedirect(newurl);
    return;
  }
%>

<html>
<head>
<title>Register For Course</title>
</head>
<body bgcolor=#FFFFFF>
<font face="Helvetica">

<h2>
<center>
<font color=#DB1260>
Please enter your Student Id
</font>
</h2>

<form name="registrar" action="/registerServlet.jsp" method="POST">
<table>
<tr><td align=right>Student Id </td>
    <td><input type="text" name="STUDENT_ID"></td></tr>
<br>
<tr><td align=right>Course Number </td>
    <td><input type="text" name="COURSE_NUM" value=<%=courseNumber%>></td></tr>
</table>
<br> <br>
<input type="submit" value="Register">
<input type="reset" value="Clear">

</form>
<p> <br><br>
Copyright (c) 1999-2000 BEA Systems, Inc. All Rights Reserved.

</center>
</font>
</body>
</html>
