Quelltext von primaries.jsp
<%@ page import = "java.io.*, AstroOL.* " %>
<!doctype  html  public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
   <jsp:useBean id="primaries"
                class="AstroOL.beans.Primaries"
                scope="session"/>
<% String action = request.getParameter("action");
   String detail = "";
   if (action == null) action = ""; %>
<%-- Input-Fields aus der Seite abholen --%>
   <jsp:setProperty name="primaries" property="*"/>
<%

// Eingabevalidierungen
   primaries.actualize();
   primaries.resetMsg();
   primaries.validate();

// -- Die User-Action behandeln --
 if (action.equals("doList")) {
   primaries.getDirList(true);
   }
 else if ((action.indexOf("detail")==0)||((primaries.getPanel().equals("detail"))&&(primaries.getDirForm()!=null))) {
   if (action.length() > 6)
// Gewählte Nummer der Direktion    
     detail = primaries.getDetail(Integer.parseInt(action.substring(6)));
   else
// Eingegebene Direktionsformel parsen   
     detail = primaries.getDetail();
   primaries.setPanel("detail");
   }
 %>
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="Generator" content="Ruediger"s ASCII manufacturing studio">
   <title>Primärdirektionen</title>
   <link rel="stylesheet" type="text/css" href="../styles/main.css"></link>
<script src="../scripts/loadSymbols.js" type="text/javascript"></script>
<script src="../scripts/horoscopeInput.js" type="text/javascript"></script>
<style type="text/css">
  td.panel { width:33%; height:2em; }
  td.c     { vertical-align:top;
               padding-top:0.5em; }
  .tabstrip { border:solid black 1px;
              border-collapse:collapse;
              text-align:center; }
  table.tabstrip { width:100%; height:40em; }
  td.name { padding:0; }
  a.detail { color:black;width:100%;height:100%;padding-left:.5em;padding-right:.5em; }
  a.detail:link,
  a.detail:visited  { text-decoration:none; }
  a.detail:hover { text-decoration:none;background-color:yellow; }
  table.trcTab { background-color:yellow;border:solid black 1px;margin-top:.5em; }
  table.hintTab { background-color:#00ccff;border:solid black 1px;margin-top:.5em; }
  td.trc { padding:.05em; }
</style>
</head>

<body <%if (primaries.getPanel().equals("horo")){%>onLoad="setData("x1");"<%}%>>
<table class="tabstrip">
<tr class="tabstrip" >
<%if (primaries.getPanel().equals("horo")){%>
<td class="tabstrip <%if (primaries.getPanel().equals("horo")){%>active<%}%> panel"><a href="?panel=horo">Horoskopeingabe</a></td>
<td class="tabstrip panel" ><a href="javascript:submitData("?panel=list");">Direktionen - Liste</a></td>
<td class="tabstrip panel" ><a href="javascript:submitData("?panel=detail");">Direktionen - Detail</a></td>
<%}else{%>
<td class="tabstrip panel"><a href="?panel=horo">Horoskopeingabe</a></td>
<td class="tabstrip <%if (primaries.getPanel().equals("list")){%>active<%}%> panel" ><a href="?panel=list">Direktionen - Liste</a></td>
<td class="tabstrip <%if (primaries.getPanel().equals("detail")){%>active<%}%> panel" ><a href="?panel=detail">Direktionen - Detail</a></td>
<%}%>
</tr>
<tr class="tabstrip"><td class="tabstrip c" colspan="3">
<%---------------------------------------------------------------%>
<%-- Horoskop-Panel zur Eingabe der Horoskopdaten              --%>
<%---------------------------------------------------------------%>
<% if (primaries.getPanel().equals("horo")) { %>
<h1>Horoskopeingabe</h1>
<%@include file="horo.jsp"%>
<%---------------------------------------------------------------%>
<%-- List-Panel zur Ausgabe der Direktionsliste                --%>
<%---------------------------------------------------------------%>
<% } else if (primaries.getPanel().equals("list")) { %>
<h1>Direktionen - Liste</h1>
<form name="form1" method="post">
<input type="hidden" name="action">
<input type="hidden" name="panel" value="list">
<input type="hidden" name="sigLat" value="<%=primaries.getSigLat()%>">
<input type="hidden" name="onlyDirect" value="<%=primaries.getOnlyDirect()%>">
<table align="left" style="margin-left:5%">
<% if (primaries.hasMsg()) {%><tr><td colspan="2"><%= primaries.msg2html()%></td></tr><%}%>
<tr><td>Zeitraum (Jahr) von <input type="text" name="jahrVon" maxlength="4" size="4" value="<%=primaries.getJahrVon()%>"></td>
<td>bis <input type="text" name="jahrBis" maxlength="4" size="4" value="<%=primaries.getJahrBis()%>"></td></tr>
<tr><td>Filter Promissoren</td>
<td>
<select name="sensPtScope" style="width:15em">
<option value="1" <% if (primaries.getSensPtScope()==1){%>selected<%}%>>Nur starke Aspekte</option>
<option value="3" <% if (primaries.getSensPtScope()==3){%>selected<%}%>>Starke und mittlere Aspekte</option>
<option value="7" <% if (primaries.getSensPtScope()==7){%>selected<%}%>>Alle Aspekte</option>
</select>
</td></tr>
<tr><td>Filter Signifikatoren</td>
<td>
<select name="sigFilter" style="width:15em">
<option value="pam" <% if (primaries.getSigFilter().equals("pam")){%>selected<%}%>>Alle</option>
<option value="am"  <% if (primaries.getSigFilter().equals("am")){%>selected<%}%>>Hauptachsen</option>
<option value="pt"  <% if (primaries.getSigFilter().equals("pt")){%>selected<%}%>>Ptolemäus (SO, MO, AS, MC)</option>
<option value="p7"  <% if (primaries.getSigFilter().equals("p7")){%>selected<%}%>>Die 7 Planeten</option>
</select>
</td></tr>
<tr><td>Direktionsschlüssel</td>
<td>
<select name="key" style="width:15em">
<option value="0" <% if (primaries.getKey()==0){%>selected<%}%>>Ptolemäus</option>
<option value="1" <% if (primaries.getKey()==1){%>selected<%}%>>Wahre Zeit</option>
<option value="2" <% if (primaries.getKey()==2){%>selected<%}%>>Naibod</option>
<option value="3" <% if (primaries.getKey()==3){%>selected<%}%>>Cardano</option>
<option value="4" <% if (primaries.getKey()==4){%>selected<%}%>>Kündig</option>
<option value="5" <% if (primaries.getKey()==5){%>selected<%}%>>Bessler</option>
<option value="6" <% if (primaries.getKey()==6){%>selected<%}%>>diei motu</option>
</select>
</td></tr>
<tr>
<td><input type="checkbox" id="xSigLat" <% if (primaries.getSigLat()) { %>checked<% } %> onClick="document.getElementsByName("sigLat")[0].value=this.checked;">Signifikator mit Breite</td>
<td><input type="checkbox" id="xOnlyDirect" <% if (primaries.getOnlyDirect()) { %>checked<% } %> onClick="document.getElementsByName("onlyDirect")[0].value=this.checked;">Nur direkte Direktionen</td>
</tr>
<tr><td colspan="2" align="center"><input type="submit" value="Berechnen" onClick="document.form1.action.value="doList";"></td></tr>
<tr><td colspan="2">
<%-- Liste muss ggf. neu berechnet werden --%>
<% if (action.equals("doList")) primaries.getDirList(true); %>
<%= primaries.list2html() %>
</td></tr>
</table>
</form>
<%---------------------------------------------------------------%>
<%-- Horoskop-Panel zur Ausgabe von Details zu einer Direktion --%>
<%---------------------------------------------------------------%>
<% } else { %>
<h1>Direktionen - Detail</h1>
<form name="form1" method="post">
<input type="hidden" name="action" value="detail">
<input type="hidden" name="panel" value="detail">
<table align="center" style="margin-left:5%;">
<% if (primaries.hasMsg()) {%><tr><td colspan="2" align="center"><%= primaries.msg2html()%></td></tr><%}%>
<tr><td colspan="2"><b>Direktionsformel</b>&nbsp;<input type="text" name="dirForm" size="50" maxLength="50" value="<%=primaries.getDirForm()%>"></td></tr>
<tr><td align="center" valign="top">
<table class="trcTab">
<caption align="top"><b>Trace der Direktionsberechnung</b></caption>
<% if (detail != null) {%><tr><td class="trc">
<%=detail.replaceAll("\n","</td></tr><tr><tr><td nowrap class=\"trc\">").replaceAll("\t","</td><td align=\"right\"  nowrap class=\"trc\" style=\"font-family:Courier;\">")%>
</td></tr><%} else { %> <tr><td>&nbsp;</td></tr><% } %>
</table>
</td>
<td valign="top" align="center">
<%@include file="primaries_hints.html"%>
</td>
</tr>
</table>
</form>
<% } %>
</td></tr>
</table>
<p>
<hr class="thin">
<center>
<a href="../index.html">Zur&uuml;ck zur Homepage</a>
</center>
</body>
</html>
Zur Java-Dokumentation HTML-Aufbereitung mit der NetBeans IDE von Sun Zurück zur Homepage