Loading ...
Sorry, an error occurred while loading the content.

Re: more troubles with jsp syntax (correction)

Expand Messages
  • Peter Bismuti
    Looks like line 128, not 117.
    Message 1 of 8 , Dec 6, 2000
    • 0 Attachment
      Looks like line 128, not 117.


      > I'm still seeing problems with jsp syntax. I have set:
      >
      > syntax sync minlines=5000
      >
      > which is much larger than the file I'm editing and it still is having
      > problems. In the section where JavaScript functions are defined I'm
      > seeing the colors flip between purple and cyan. I'm seeing the color
      > flip on line 117:


      _____________________________________________________________________
      | |
      | Pete Bismuti |
      | Department of Computer Science |
      | Florida State University |
      | bismuti@... (850) 644-6835 |
      |_____________________________________________________________________|
    • Peter Bismuti
      Message 2 of 8 , Dec 6, 2000
      • 0 Attachment
        <!--
        Here is the HTML file which shows what I am seeing. The probem is with the colors
        in the JavaScript functions
        -->

        <HTML>
        <HEAD>
        <TITLE>attribute_type.jsp.html</TITLE>
        </HEAD>
        <BODY BGcolor=#FFFFFF TEXT=#000000>
        <PRE>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>--</FONT>
        <FONT color=#0000ff>$Header:</FONT>
        <FONT color=#0000ff>$Author: </FONT>
        <FONT color=#0000ff>$Date:</FONT>
        <FONT color=#0000ff>$Revision: </FONT>
        <FONT color=#0000ff>--</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- </FONT>
        <FONT color=#0000ff> This page is used to add/edit new attribute type to the list of available attributes</FONT>
        <FONT color=#0000ff> to current client. This page can be gotten to by clicking on Alerts::Edit Attributes</FONT>
        <FONT color=#0000ff> page ('edit_attributes.jsp page') by clicking on the "Add New Attribute" button or by</FONT>
        <FONT color=#0000ff> clicking on one of the edit links of an existing attribute. In each case the servlet</FONT>
        <FONT color=#0000ff> 'InsertAttributeTypeServlet is called which in turns calls an EJB to submit the data</FONT>
        <FONT color=#0000ff> to the database. </FONT>
        <FONT color=#0000ff>--</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><%</FONT>
        <FONT color=#0000ff>/* </FONT>
        <FONT color=#0000ff> construct returnAddress - this constructs and stores as a</FONT>
        <FONT color=#0000ff> session variable the current URL by looping through the </FONT>
        <FONT color=#0000ff> parameters and building string that can be used as a request</FONT>
        <FONT color=#0000ff> using the GET method. This is used to create a </FONT><FONT color=#ff00ff>"back"</FONT><FONT color=#0000ff> link </FONT>
        <FONT color=#0000ff> in the 'admin_error.jsp' page. The string is stored in the variable </FONT><FONT color=#ff00ff>"return_address"</FONT><FONT color=#0000ff>.</FONT>
        <FONT color=#0000ff> */</FONT>
        <FONT color=#0000ff>// determine returnAddress</FONT>
        String requestURI = request.getRequestURI();
        String queryString = <FONT color=#ff00ff>""</FONT>;

        <FONT color=#0000ff>// construct query string</FONT>
        Enumeration params7 = request.getParameterNames();
        String paramName7 = <FONT color=#ff00ff>null</FONT>;
        String[] paramValues7 = <FONT color=#ff00ff>null</FONT>;

        <B><FONT color=#a52a2a>while</FONT></B> (params7.hasMoreElements()) {
        paramName7 = (String) params7.nextElement();
        paramValues7 = request.getParameterValues(paramName7);
        <B><FONT color=#a52a2a>for</FONT></B> (<B><FONT color=#2e8b57>int</FONT></B> i=<FONT color=#ff00ff>0</FONT>; i<paramValues7.length; i++){
        queryString += paramName7+<FONT color=#ff00ff>"="</FONT>+paramValues7[i].toString()+<FONT color=#ff00ff>"&"</FONT>;
        }
        }
        <B><FONT color=#a52a2a>if</FONT></B> (queryString.length() > <FONT color=#ff00ff>0</FONT>){
        queryString = queryString.substring(<FONT color=#ff00ff>0</FONT>,queryString.length()-<FONT color=#ff00ff>1</FONT>);
        }

        <FONT color=#0000ff>// now construct return address</FONT>
        String returnAddress = <FONT color=#ff00ff>null</FONT>;
        returnAddress = requestURI + <FONT color=#ff00ff>"?"</FONT> + queryString;

        <FONT color=#0000ff>// now set a session attribute</FONT>
        session.removeAttribute(<FONT color=#ff00ff>"returnAddress"</FONT>);
        session.setAttribute(<FONT color=#ff00ff>"returnAddress"</FONT>,returnAddress);
        <FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>HTML</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>HEAD</FONT></B><FONT color=#008b8b>></FONT>

        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>SCRIPT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#a020f0>//........................................................................</FONT>
        <FONT color=#a020f0> function Cancel(){</FONT>
        <FONT color=#a020f0> location = "/edit_attributes.jsp";</FONT>
        <FONT color=#a020f0> }</FONT>
        <FONT color=#a020f0>//........................................................................</FONT>
        <FONT color=#a020f0> function confirmDelete(message){</FONT>
        <FONT color=#a020f0> return confirm("Are you sure you would like to delete " + message + "?");</FONT>
        <FONT color=#a020f0> }</FONT>
        <FONT color=#a020f0>//........................................................................</FONT>
        <FONT color=#a020f0> function onSubmit(form){</FONT>
        <FONT color=#a020f0> var ai;</FONT>
        <FONT color=#a020f0> if (form.attributeId == null){</FONT>
        <FONT color=#a020f0> ai = true;</FONT>
        <FONT color=#a020f0> }else{</FONT>
        <FONT color=#a020f0> ai = isNotEmpty("Attribute ID",form.attributeId.value);</FONT>
        <FONT color=#a020f0> }</FONT>
        <FONT color=#a020f0> var an = isNotEmpty("Attribute Name",form.name.value);</FONT>
        <FONT color=#a020f0> var aw = isNotEmpty("Attribute Keyword",form.keyword.value);</FONT>
        <FONT color=#a020f0> var ni,ii;</FONT>
        <FONT color=#a020f0> if (form.attributeId == null){</FONT>
        <FONT color=#a020f0> ni = true;</FONT>
        <FONT color=#a020f0> ii = true;</FONT>
        <FONT color=#a020f0> }else{</FONT>
        <FONT color=#a020f0> ni = isNotInside(form.attributeId.value,attributeIdArray);</FONT>
        <FONT color=#a020f0> ii = isInteger(form.attributeId.value);</FONT>
        <FONT color=#a020f0> }</FONT>
        <FONT color=#a020f0> return (ai&&an&&aw&&ni</FONT><FONT color=#6a5acd>&&ii);</FONT>
        <FONT color=#a020f0> }</FONT>

        <FONT color=#a020f0>//........................................................................</FONT>
        <FONT color=#a020f0> function isNotEmpty(name,value){</FONT>
        <FONT color=#a020f0> if (value.length ==0){</FONT>
        <FONT color=#a020f0> alert("ERROR: "+name+" must be entered.");</FONT>
        <FONT color=#a020f0> return false;</FONT>
        <FONT color=#a020f0> }else{</FONT>
        <FONT color=#a020f0> return true;</FONT>
        <FONT color=#a020f0> }</FONT>
        <FONT color=#a020f0> }</FONT>
        <FONT color=#a020f0>//........................................................................</FONT>
        <FONT color=#a020f0> function isNotInside(attributeId,attributeIdArray){</FONT>
        <FONT color=#a020f0> for (var i=0; i</FONT><FONT color=#008b8b><</FONT>attributeIdArray<FONT color=#008b8b>.length; i++){</FONT>
        <FONT color=#008b8b> if (strip(attributeId) =</FONT>=<FONT color=#008b8b> strip(attributeIdArray[i])){</FONT>
        <FONT color=#008b8b> alert(</FONT><FONT color=#ff00ff>"ERROR: the attributeId '"</FONT><FONT color=#008b8b>+attributeId+</FONT><FONT color=#ff00ff>"' already exists, please choose another."</FONT><FONT color=#008b8b>);</FONT>
        <FONT color=#008b8b> return false;</FONT>
        <FONT color=#008b8b> }</FONT>
        <FONT color=#008b8b> }</FONT>
        <FONT color=#008b8b> return true;</FONT>
        <FONT color=#008b8b> }</FONT>
        <FONT color=#008b8b>//........................................................................</FONT>
        <FONT color=#008b8b>function isInteger(inputVal){</FONT>
        <FONT color=#008b8b> var inputStr =</FONT> inputVal.toString();
        <FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>for</FONT></B><FONT color=#008b8b> (var i=</FONT>0;<FONT color=#008b8b> i</FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>inputStr.length; i++){</FONT>
        <FONT color=#008b8b> var oneChar =</FONT> inputStr.charAt(i);
        <FONT color=#008b8b> if (oneChar =</FONT>=<FONT color=#008b8b> </FONT><FONT color=#ff00ff>"0"</FONT><FONT color=#008b8b> && oneChar ></FONT><FONT color=#a020f0> "-"){</FONT>
        <FONT color=#a020f0> continue;</FONT>
        <FONT color=#a020f0> }</FONT>
        <FONT color=#a020f0> if (oneChar </FONT><FONT color=#008b8b>< </FONT><FONT color=#ff00ff>"0"</FONT><FONT color=#008b8b> || oneChar ></FONT><FONT color=#a020f0> "9"){</FONT>
        <FONT color=#a020f0> alert("ERROR: attributeId must be an integer.");</FONT>
        <FONT color=#a020f0> return false;</FONT>
        <FONT color=#a020f0> }</FONT>
        <FONT color=#a020f0> }</FONT>
        <FONT color=#a020f0> return true;</FONT>
        <FONT color=#a020f0>}</FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>SCRIPT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>SCRIPT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#a020f0>function strip(string){</FONT>
        <FONT color=#a020f0> string = string.replace(/\s+$/,""); // strip off leading and trailing</FONT>
        <FONT color=#a020f0> string = string.replace(/^\s+/,"");</FONT>
        <FONT color=#a020f0> return string;</FONT>
        <FONT color=#a020f0>}</FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>SCRIPT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>SCRIPT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#a020f0>//........................................................................</FONT>
        <FONT color=#a020f0>// CODE functions</FONT>
        <FONT color=#a020f0>//........................................................................</FONT>
        <FONT color=#a020f0> function addCode() {</FONT>
        <FONT color=#a020f0> f = top.document.forms[0];</FONT>

        <FONT color=#a020f0> newCodeValue = strip(f.newCodeValue.value);</FONT>
        <FONT color=#a020f0> newCode = strip(f.newCode.value);</FONT>

        <FONT color=#a020f0> if(newCode==null || newCode.length </FONT><FONT color=#008b8b><</FONT>1<FONT color=#008b8b> || newCodeValue=</FONT>=null<FONT color=#008b8b> || newCodeValue.length </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>1 ){</FONT>
        <FONT color=#008b8b> return;</FONT>
        <FONT color=#008b8b> }</FONT>

        <FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>value</FONT></B><FONT color=#008b8b> =</FONT> f.newCode.value<FONT color=#008b8b> + </FONT><FONT color=#ff00ff>" = "</FONT><FONT color=#008b8b> + newCodeValue;</FONT>

        <FONT color=#008b8b> f.code.options.length++;</FONT>
        <FONT color=#008b8b> f.code.options[f.code.options.length-1].text=</FONT>value;
        <FONT color=#008b8b> f.code.options[f.code.options.length-1].value=</FONT>value;

        <FONT color=#008b8b> f.newCodeValue.value=</FONT><FONT color=#ff00ff>""</FONT><FONT color=#008b8b>;</FONT>
        <FONT color=#008b8b> f.newCode.value=</FONT><FONT color=#ff00ff>""</FONT><FONT color=#008b8b>;</FONT>

        <FONT color=#008b8b> }</FONT>

        <FONT color=#008b8b> function deleteCode() {</FONT>
        <FONT color=#008b8b> f =</FONT> top.document.forms[0];
        <FONT color=#008b8b> var length =</FONT> f.code.options.length;
        <FONT color=#008b8b> var i =</FONT> 0;
        <FONT color=#008b8b> while (i </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b> length-1){</FONT>
        <FONT color=#008b8b> if (f.code.options[i].selected){</FONT>
        <FONT color=#008b8b> var j =</FONT> i+1;
        <FONT color=#008b8b> while (j </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b> length){</FONT>
        <FONT color=#008b8b> var selectFlag =</FONT> f.code.options[j].selected;
        <FONT color=#008b8b> f.code.options[j-1] =</FONT> new<FONT color=#008b8b> Option(f.code.options[j].text,</FONT>
        <FONT color=#008b8b> f.code.options[j].value,</FONT>
        <FONT color=#008b8b> f.code.options[j].defaultSelected,</FONT>
        <FONT color=#008b8b> f.code.options[j].selected);</FONT>
        <FONT color=#008b8b> if (!selectFlag){ // work around </FONT><B><FONT color=#2e8b57>for</FONT></B><FONT color=#008b8b> netscape bug</FONT>
        <FONT color=#008b8b> f.code.options[j-1].selected =</FONT> false;
        <FONT color=#008b8b> }else{</FONT>
        <FONT color=#008b8b> f.code.options[j-1].selected =</FONT> true;
        <FONT color=#008b8b> }</FONT>
        <FONT color=#008b8b> j++;</FONT>
        <FONT color=#008b8b> }</FONT>
        <FONT color=#008b8b> length--;</FONT>
        <FONT color=#008b8b> }else{ // only increment counter if item is not deleted</FONT>
        <FONT color=#008b8b> i++;</FONT>
        <FONT color=#008b8b> }</FONT>
        <FONT color=#008b8b> }</FONT>
        <FONT color=#008b8b> if (f.code.options[length-1].selected){</FONT>
        <FONT color=#008b8b> length--;</FONT>
        <FONT color=#008b8b> }</FONT>
        <FONT color=#008b8b> f.code.options.length =</FONT> length;
        <FONT color=#008b8b> }</FONT>

        <FONT color=#008b8b> function saveIt(){</FONT>
        <FONT color=#008b8b> f =</FONT> top.document.forms[0];
        <FONT color=#008b8b> var length =</FONT> f.code.options.length;

        <FONT color=#008b8b> while(f.code.multiple=</FONT>=false){
        <FONT color=#008b8b> f.code.multiple=</FONT>true;
        <FONT color=#008b8b> }</FONT>

        <FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>for</FONT></B><FONT color=#008b8b>(i=</FONT>0;i<f.code.options.length;i++){
        <FONT color=#008b8b> f.code.options[i].selected=</FONT>true;
        <FONT color=#008b8b> }</FONT>
        <FONT color=#008b8b> if (onSubmit(f)){</FONT>
        <FONT color=#008b8b> f.submit();</FONT>
        <FONT color=#008b8b> }</FONT>
        <FONT color=#008b8b> }</FONT>

        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>SCRIPT</FONT></B><FONT color=#008b8b>></FONT>


        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TITLE</FONT></B><FONT color=#008b8b>></FONT><B><FONT color=#ff00ff>Attribute Type</FONT></B><FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TITLE</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>BODY</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>BGCOLOR</FONT></B><FONT color=#008b8b>=</FONT>#FFFFFF<FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><%@</FONT>
        <B><FONT color=#a52a2a>page</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>import</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"</FONT>
        <FONT color=#ff00ff> p3c.admininterface.ejb.TemplateManager.*,</FONT>
        <FONT color=#ff00ff> p3c.admininterface.ejb.Help.*,</FONT>
        <FONT color=#ff00ff> p3c.admininterface.ejb.*,</FONT>
        <FONT color=#ff00ff> p3c.admininterface.*,</FONT>
        <FONT color=#ff00ff> java.text.*,</FONT>
        <FONT color=#ff00ff>"</FONT>
        <FONT color=#008b8b>%></FONT>

        <FONT color=#008b8b><%@ </FONT><B><FONT color=#a52a2a>include</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>file</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"/includes/validate_user.jsp"</FONT><FONT color=#008b8b> %></FONT>
        <FONT color=#008b8b><%@ </FONT><B><FONT color=#a52a2a>include</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>file</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"/includes/admin_header.jsp"</FONT><FONT color=#008b8b> %></FONT>


        <FONT color=#008b8b><%</FONT>
        <FONT color=#0000ff>// retrieve the request input parameters</FONT>
        <FONT color=#0000ff>// then define an array in javascript that can be used</FONT>
        <FONT color=#0000ff>// to check against adding a new attribute with an already</FONT>
        <FONT color=#0000ff>// existing attributeId.</FONT>

        java.util.Enumeration params = request.getParameterNames();
        String paramName = <FONT color=#ff00ff>"attributeIdArray"</FONT>;
        String[] paramValues = <FONT color=#ff00ff>null</FONT>;
        <B><FONT color=#2e8b57>int</FONT></B> maxId = -<FONT color=#ff00ff>1</FONT>;

        out.println(<FONT color=#ff00ff>"<SCRIPT>"</FONT>);
        out.println(<FONT color=#ff00ff>" attributeIdArray = ["</FONT>);
        <FONT color=#0000ff>// display the input parameters</FONT>
        <FONT color=#0000ff>// as long as we're here, calculate new attributeId just in case</FONT>
        paramValues = request.getParameterValues(paramName);
        <B><FONT color=#a52a2a>if</FONT></B> ((paramValues != <FONT color=#ff00ff>null</FONT>)&&(paramValues.length > <FONT color=#ff00ff>0</FONT>)){
        <B><FONT color=#2e8b57>int</FONT></B> tmpId;
        <B><FONT color=#a52a2a>for</FONT></B> (<B><FONT color=#2e8b57>int</FONT></B> i = <FONT color=#ff00ff>0</FONT>; i < paramValues.length -<FONT color=#ff00ff>1</FONT>; i++) {
        out.println(<FONT color=#ff00ff>"'"</FONT>+paramValues[i].toString() + <FONT color=#ff00ff>"',"</FONT>);
        tmpId = java.lang.Integer.parseInt(paramValues[i].toString());
        <B><FONT color=#a52a2a>if</FONT></B> (tmpId > maxId){
        maxId = tmpId;
        }
        }
        out.println(<FONT color=#ff00ff>"'"</FONT>+paramValues[paramValues.length-<FONT color=#ff00ff>1</FONT>].toString() + <FONT color=#ff00ff>"'"</FONT>);
        tmpId = java.lang.Integer.parseInt(paramValues[paramValues.length-<FONT color=#ff00ff>1</FONT>].toString());
        <B><FONT color=#a52a2a>if</FONT></B> (tmpId > maxId){
        maxId = tmpId;
        }
        }
        out.println(<FONT color=#ff00ff>"];"</FONT>);
        out.println(<FONT color=#ff00ff>"</SCRIPT>"</FONT>);
        <FONT color=#008b8b>%></FONT>


        <FONT color=#008b8b><%</FONT>

        <B><FONT color=#2e8b57>int</FONT></B> attributeId = <FONT color=#ff00ff>0</FONT>; <FONT color=#0000ff>// set attribute to zero if this is the first one</FONT>

        <FONT color=#0000ff>// see if it is a new Attribute</FONT>
        <B><FONT color=#2e8b57>boolean</FONT></B> newAttrFlag = <FONT color=#ff00ff>false</FONT>;
        <B><FONT color=#a52a2a>if</FONT></B> (request.getParameter(<FONT color=#ff00ff>"newAttrFlag"</FONT>) != <FONT color=#ff00ff>null</FONT>){
        newAttrFlag = <FONT color=#ff00ff>true</FONT>;
        <B><FONT color=#a52a2a>if</FONT></B> (maxId != -<FONT color=#ff00ff>1</FONT>){ <FONT color=#0000ff>// otherwise add one greater than max</FONT>
        attributeId = maxId+<FONT color=#ff00ff>1</FONT>;
        }
        }<B><FONT color=#a52a2a>else</FONT></B>{ <FONT color=#0000ff>// if not, get the attributeId</FONT>
        <B><FONT color=#a52a2a>try</FONT></B>{
        attributeId = Integer.valueOf(request.getParameter(<FONT color=#ff00ff>"attributeId"</FONT>)).intValue();
        }<B><FONT color=#a52a2a>catch</FONT></B>(Exception ignore){}
        }

        <B><FONT color=#2e8b57>int</FONT></B> clientId = client.getSysid();

        String name = <FONT color=#ff00ff>""</FONT>;
        String dataType = <FONT color=#ff00ff>""</FONT>;
        String key = <FONT color=#ff00ff>""</FONT>;
        String keyword=<FONT color=#ff00ff>""</FONT>;
        String example = <FONT color=#ff00ff>null</FONT>;
        String defaultValue = <FONT color=#ff00ff>null</FONT>;
        AttributeCode[] codes = <FONT color=#ff00ff>null</FONT>;
        AttributeType attributeType = <FONT color=#ff00ff>null</FONT>;
        String reportDisplayChecked = <FONT color=#ff00ff>""</FONT>;

        <B><FONT color=#a52a2a>if</FONT></B>(!(newAttrFlag)){ <FONT color=#0000ff>// if it is not new, fill in the form</FONT>
        TemplateManager tmr = <FONT color=#ff00ff>null</FONT>;
        <B><FONT color=#a52a2a>try</FONT></B>{
        tmr = EjbUtil.getTemplateManager();

        attributeType = tmr.getAttributeType(clientId,attributeId);
        name = attributeType.getName();
        dataType= attributeType.getDataType();
        key = attributeType.getKey();
        keyword = attributeType.getKeyword();
        example = attributeType.getExample();
        defaultValue= attributeType.getDefaultValue();
        <B><FONT color=#a52a2a>if</FONT></B>(attributeType.isReportDisplay())
        reportDisplayChecked = <FONT color=#ff00ff>" CHECKED"</FONT>;
        } <B><FONT color=#a52a2a>catch</FONT></B>(Exception e){
        System.out.println(<FONT color=#ff00ff>"ERROR: Exception thrown: "</FONT> + e);
        }
        }
        <FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>FORM</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ACTION</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"InsertAttributeTypeServlet"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>METHOD</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"POST"</FONT><FONT color=#008b8b>, </FONT><FONT color=#6a5acd>onSubmit="</FONT><B><FONT color=#a52a2a>return</FONT></B><FONT color=#6a5acd> onSubmit(</FONT><B><FONT color=#2e8b57>this</FONT></B><FONT color=#6a5acd>);</FONT><FONT color=#6a5acd>"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>--</FONT>
        <FONT color=#0000ff><FORM ACTION="/display_servlet_info.jsp" METHOD="POST", onSubmit="return onSubmit(this);"></FONT>
        <FONT color=#0000ff>--</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TABLE</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>BORDER</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"0"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>CELLSPACING</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"0"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>CELLPADDING</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"0"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- Tittle --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>CENTER</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TABLE</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>BORDER</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"0"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>CELLSPACING</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"2"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>CELLPADDING</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"2"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorWhite%<FONT color=#008b8b>></FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>></FONT><FONT color=#008b8b><%=</FONT>fontTitle<FONT color=#008b8b>%></FONT>Attribute Type<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TABLE</FONT></B><FONT color=#008b8b>></FONT><FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>BR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>CENTER</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- Main Table --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><%!</FONT> <B><FONT color=#2e8b57>int</FONT></B> height = <FONT color=#ff00ff>25</FONT>; <FONT color=#0000ff>// height of a row </FONT><FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>CENTER</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TABLE</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>BORDER</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"0"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>CELLSPACING</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"2"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>CELLPADDING</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"2"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT><FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- Id --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTh%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTh<FONT color=#008b8b>%></FONT>
        ID<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"LEFT"</FONT><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTd%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><%=</FONT>attributeId <FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>INPUT</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>TYPE</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"HIDDEN"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>NAME</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"attributeId"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>VALUE</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"<%=attributeId %>"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- Name --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>VALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"middle"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTh%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTh<FONT color=#008b8b>%></FONT>
        Name<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"LEFT"</FONT><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTd%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>

        <FONT color=#008b8b><%</FONT><B><FONT color=#a52a2a>if</FONT></B> (name.length() == <FONT color=#ff00ff>0</FONT>){<FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>INPUT</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>TYPE</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"TEXT"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>NAME</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"name"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>value</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>'<%=name%>'</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>MAXLENGTH</FONT></B><FONT color=#008b8b>=</FONT>50<FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><%</FONT>
        }<B><FONT color=#a52a2a>else</FONT></B>{<FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>INPUT</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>TYPE</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"hidden"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>NAME</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"name"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>value</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>'<%=name%>'</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>MAXLENGTH</FONT></B><FONT color=#008b8b>=</FONT>50<FONT color=#008b8b>></FONT><FONT color=#008b8b><%=</FONT>name<FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><%</FONT>
        }
        <FONT color=#008b8b>%></FONT>


        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- Data Type --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>VALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"middle"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTh%<FONT color=#008b8b>></FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTh<FONT color=#008b8b>%></FONT>
        Data Type<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"LEFT"</FONT><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTd%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>SELECT</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>name</FONT></B><FONT color=#008b8b>=</FONT>dataType<FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>OPTION</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>% if(dataType.equals(</FONT><FONT color=#ff00ff>"string"</FONT><FONT color=#008b8b>))out.print(</FONT><FONT color=#ff00ff>"selected"</FONT><FONT color=#008b8b>); %></FONT> value=string<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN>String<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>option</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>OPTION</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>% if(dataType.equals(</FONT><FONT color=#ff00ff>"number"</FONT><FONT color=#008b8b>))out.print(</FONT><FONT color=#ff00ff>"selected"</FONT><FONT color=#008b8b>); %></FONT> value=number<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN>Number<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>option</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>OPTION</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>% if(dataType.equals(</FONT><FONT color=#ff00ff>"datetime"</FONT><FONT color=#008b8b>))out.print(</FONT><FONT color=#ff00ff>"selected"</FONT><FONT color=#008b8b>); %></FONT> value=datetime<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN>DateTime<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>option</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>OPTION</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>% if(dataType.equals(</FONT><FONT color=#ff00ff>"digits"</FONT><FONT color=#008b8b>))out.print(</FONT><FONT color=#ff00ff>"selected"</FONT><FONT color=#008b8b>); %></FONT> value=digits<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN>Digits<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>option</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>OPTION</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>% if(dataType.equals(</FONT><FONT color=#ff00ff>"amount"</FONT><FONT color=#008b8b>))out.print(</FONT><FONT color=#ff00ff>"selected"</FONT><FONT color=#008b8b>); %></FONT> value=amount<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN>Amount<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>option</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>OPTION</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>% if(dataType.equals(</FONT><FONT color=#ff00ff>"group"</FONT><FONT color=#008b8b>))out.print(</FONT><FONT color=#ff00ff>"selected"</FONT><FONT color=#008b8b>); %></FONT> value=group<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN>Set<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>option</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>OPTION</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>% if(dataType.equals(</FONT><FONT color=#ff00ff>"prompt"</FONT><FONT color=#008b8b>))out.print(</FONT><FONT color=#ff00ff>"selected"</FONT><FONT color=#008b8b>); %></FONT> value=prompt<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN>Prompt<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>option</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>SELECT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- Key Word --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>VALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"middle"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTh%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTh<FONT color=#008b8b>%></FONT>
        Keyword<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"LEFT"</FONT><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTd%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>INPUT</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>TYPE</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"TEXT"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>NAME</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"keyword"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>value</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"<%=keyword%>"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>MAXLENGTH</FONT></B><FONT color=#008b8b>=</FONT>50<FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- Example --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>VALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"middle"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTh%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTh<FONT color=#008b8b>%></FONT>
        Example<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"LEFT"</FONT><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTd%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- begin example area --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>input</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>type</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"TEXT"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>name</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"example"</FONT><FONT color=#008b8b>,</FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT>CENTER<FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>value</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"<%=example%>"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>MAXLENGTH</FONT></B><FONT color=#008b8b>=</FONT>255<FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- Default Value --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>VALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"MIDDLE"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTh%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTh<FONT color=#008b8b>%></FONT>
        Default Value<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"LEFT"</FONT><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTd%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- begin example area --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>input</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>type</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"TEXT"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>name</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"defaultValue"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>value</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"<%=defaultValue%>"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>MAXLENGTH</FONT></B><FONT color=#008b8b>=</FONT>255<FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- Report Display --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>VALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"middle"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTh%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTh<FONT color=#008b8b>%></FONT>
        Report Display<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"LEFT"</FONT><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTd%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- begin example area --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>input</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>type</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"checkbox"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>name</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"reportDisplay"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>value</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"T"</FONT><FONT color=#008b8b>, </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>reportDisplayChecked%<FONT color=#008b8b>></FONT> MAXLENGTH=255<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- Codes --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"CENTER"</FONT><FONT color=#008b8b>, </FONT><B><FONT color=#2e8b57>VALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"middle"</FONT><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTh%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTh<FONT color=#008b8b>%></FONT>Codes<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"LEFT"</FONT><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorTd%<FONT color=#008b8b>></FONT> height="<FONT color=#008b8b><%=</FONT> height <FONT color=#008b8b>%></FONT>"<SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- begin example area --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TABLE</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>BORDER</FONT></B><FONT color=#008b8b>=</FONT>0<FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ROWSPAN</FONT></B><FONT color=#008b8b>=</FONT>2<FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>height</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"<%= height %>"</FONT><FONT color=#008b8b>></FONT><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>SCRIPT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#6a5acd> </FONT><B><FONT color=#a52a2a>if</FONT></B><FONT color=#6a5acd> (navigator.appName == </FONT><FONT color=#ff00ff>"Netscape"</FONT><FONT color=#6a5acd>)</FONT><FONT color=#008b8b>{</FONT>
        <FONT color=#6a5acd> document.write(</FONT><FONT color=#ff00ff>"<SELECT WIDTH=150 MULTIPLE NAME=</FONT><FONT color=#6a5acd>\"</FONT><FONT color=#ff00ff>code</FONT><FONT color=#6a5acd>\"</FONT><FONT color=#ff00ff>, ALIGN=CENTER size=4 STYLE=</FONT><FONT color=#6a5acd>\"</FONT><FONT color=#ff00ff>width=2in</FONT><FONT color=#6a5acd>\"</FONT><FONT color=#ff00ff>>"</FONT><FONT color=#6a5acd>);</FONT>
        <FONT color=#6a5acd> </FONT><FONT color=#008b8b>}</FONT><B><FONT color=#a52a2a>else</FONT></B><FONT color=#008b8b>{</FONT>
        <FONT color=#6a5acd> document.write(</FONT><FONT color=#ff00ff>"<SELECT WIDTH=40 MULTIPLE NAME=</FONT><FONT color=#6a5acd>\"</FONT><FONT color=#ff00ff>code</FONT><FONT color=#6a5acd>\"</FONT><FONT color=#ff00ff>, ALIGN=CENTER size=4 STYLE=</FONT><FONT color=#6a5acd>\"</FONT><FONT color=#ff00ff>width=2in</FONT><FONT color=#6a5acd>\"</FONT><FONT color=#ff00ff>>"</FONT><FONT color=#6a5acd>);</FONT>
        <FONT color=#6a5acd> </FONT><FONT color=#008b8b>}</FONT>
        <FONT color=#6a5acd> </FONT><FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>SCRIPT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><%</FONT>
        <B><FONT color=#a52a2a>if</FONT></B> (attributeType!=<FONT color=#ff00ff>null</FONT>&&attributeType.getCodes() !=<FONT color=#ff00ff>null</FONT> && attributeType.getCodes().length > <FONT color=#ff00ff>0</FONT>){
        <B><FONT color=#a52a2a>for</FONT></B>(<B><FONT color=#2e8b57>int</FONT></B> j=<FONT color=#ff00ff>0</FONT>; j<attributeType.getCodes().length; j++){
        String code = attributeType.getCodes()[j].getCode();
        String value = attributeType.getCodes()[j].getValue();
        String expression = code + <FONT color=#ff00ff>" = "</FONT> + value;
        out.println(<FONT color=#ff00ff>"<OPTION VALUE=</FONT><FONT color=#6a5acd>\"</FONT><FONT color=#ff00ff>"</FONT> + expression + <FONT color=#ff00ff>"</FONT><FONT color=#6a5acd>\"</FONT><FONT color=#ff00ff>>"</FONT> + expression + <FONT color=#ff00ff>"</OPTION>"</FONT>);
        }
        }
        <FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>SELECT</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>HEIGHT</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"<%= height %>"</FONT><FONT color=#008b8b>></FONT><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><%</FONT><B><FONT color=#a52a2a>if</FONT></B> (adminUser.getRoleCode().equals(<FONT color=#ff00ff>"INSTALLER"</FONT>)){ <FONT color=#008b8b>%></FONT>

        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>INPUT</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>TYPE</FONT></B><FONT color=#008b8b>=</FONT>BUTTON<FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>VALUE</FONT></B><FONT color=#008b8b>=</FONT>Add<FONT color=#008b8b> </FONT><FONT color=#6a5acd>onclick='</FONT><FONT color=#6a5acd>addCode()</FONT><FONT color=#6a5acd>'</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>STYLE</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"width=50"</FONT><FONT color=#008b8b>></FONT> <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>INPUT</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>TYPE</FONT></B><FONT color=#008b8b>=</FONT>TEXT<FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>NAME</FONT></B><FONT color=#008b8b>=</FONT>newCode<FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>size</FONT></B><FONT color=#008b8b>=</FONT>3<FONT color=#008b8b>&!
        gt;</FONT> = <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>INPUT</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>TYPE</FONT></B><FONT color=#008b8b>=</FONT>TEXT<FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>NAME</FONT></B><FONT color=#008b8b>=</FONT>newCodeValue<FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>size</FONT></B><FONT color=#008b8b>=</FONT>10<FONT color=#008b8b>></FONT><FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><%</FONT>} <FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>height</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"<%= height %>"</FONT><FONT color=#008b8b>></FONT><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><%</FONT><B><FONT color=#a52a2a>if</FONT></B> (adminUser.getRoleCode().equals(<FONT color=#ff00ff>"INSTALLER"</FONT>)){ <FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>INPUT</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>TYPE</FONT></B><FONT color=#008b8b>=</FONT>BUTTON<FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>VALUE</FONT></B><FONT color=#008b8b>=</FONT>Delete<FONT color=#008b8b> </FONT><FONT color=#6a5acd>onClick='</FONT><FONT color=#6a5acd>deleteCode()</FONT><FONT color=#6a5acd>'</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>STYLE</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"width=50"</FONT><FONT color=#008b8b>></FONT><FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><%</FONT>} <FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TABLE</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- end example area --</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>TABLE</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>CENTER</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#0000ff><!</FONT><FONT color=#0000ff>-- buttons--</FONT><FONT color=#0000ff>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>CENTER</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TABLE</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>BORDER</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"0"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>CELLSPACING</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"2"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>CELLPADDING</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"2"</FONT><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorWhite%<FONT color=#008b8b>></FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TR</FONT></B><FONT color=#008b8b> </FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff><</FONT></SPAN><FONT color=#008b8b>%=</FONT>bgcolorWhite%<FONT color=#008b8b>></FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff>></FONT></SPAN>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TD</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"LEFT"</FONT><FONT color=#008b8b>></FONT><FONT color=#008b8b><%=</FONT>fontTd<FONT color=#008b8b>%></FONT><SPAN style="background-color: #ff0000"><FONT color=#ffffff>&</FONT></SPAN>nbsp<FONT color=#008b8b></</FONT><B><FONT color=#a52a2a>FONT</FONT></B><FONT color=#008b8b>></</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b>></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>TH</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>ALIGN</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"right"</FONT><FONT color=#008b8b>></FONT><FONT color=#008b8b><%=</FONT>fontTh<FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><%</FONT><B><FONT color=#a52a2a>if</FONT></B> (adminUser.getRoleCode().equals(<FONT color=#ff00ff>"INSTALLER"</FONT>)){ <FONT color=#008b8b>%></FONT>
        <FONT color=#008b8b><</FONT><B><FONT color=#a52a2a>INPUT</FONT></B><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>TYPE</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"BUTTON"</FONT><FONT color=#008b8b> </FONT><B><FONT color=#2e8b57>NAME</FONT></B><FONT color=#008b8b>=</FONT><FONT color=#ff00ff>"continueSubmit&quo<br/><br/>(Message over 64 KB, truncated)
      • Arjona, Ariel
        Just curious, but why do these syntax coloring problems happen? I ve had syntax coloring problems too, but setting minlines to 2500 solved it (with a serious
        Message 3 of 8 , Dec 6, 2000
        • 0 Attachment
          Just curious, but why do these syntax coloring problems happen? I've had
          syntax coloring problems too, but setting minlines to 2500 solved it (with a
          serious CPU hit when I scroll up though).

          What can be done to solve them? I'd love to help the Vim project, but I'm
          afraid I'm still not that good as a programmer :(

          > -----Original Message-----
          > From: Peter Bismuti [mailto:bismuti@...]
          > Sent: Wednesday, December 06, 2000 2:37 PM
          > To: bismuti@...
          > Cc: vim@...
          > Subject: Re: more troubles with jsp syntax (correction)
          >
          >
          > Looks like line 128, not 117.
          >
          >
          > > I'm still seeing problems with jsp syntax. I have set:
          > >
          > > syntax sync minlines=5000
          > >
          > > which is much larger than the file I'm editing and it still
          > is having
          > > problems. In the section where JavaScript functions are defined I'm
          > > seeing the colors flip between purple and cyan. I'm seeing the color
          > > flip on line 117:
        • Peter Bismuti
          I m not experiencing any CPU hit and mine is set to 5000, perhaps the minlines command is not taking for some reason.
          Message 4 of 8 , Dec 6, 2000
          • 0 Attachment
            I'm not experiencing any CPU hit and mine is set to 5000, perhaps the minlines
            command is not taking for some reason.


            >
            > Just curious, but why do these syntax coloring problems happen? I've had
            > syntax coloring problems too, but setting minlines to 2500 solved it (with a
            > serious CPU hit when I scroll up though).
            >
            > What can be done to solve them? I'd love to help the Vim project, but I'm
            > afraid I'm still not that good as a programmer :(
            >
            > > -----Original Message-----
            > > From: Peter Bismuti [mailto:bismuti@...]
            > > Sent: Wednesday, December 06, 2000 2:37 PM
            > > To: bismuti@...
            > > Cc: vim@...
            > > Subject: Re: more troubles with jsp syntax (correction)
            > >
            > >
            > > Looks like line 128, not 117.
            > >
            > >
            > > > I'm still seeing problems with jsp syntax. I have set:
            > > >
            > > > syntax sync minlines=5000
            > > >
            > > > which is much larger than the file I'm editing and it still
            > > is having
            > > > problems. In the section where JavaScript functions are defined I'm
            > > > seeing the colors flip between purple and cyan. I'm seeing the color
            > > > flip on line 117:
            >

            _____________________________________________________________________
            | |
            | Pete Bismuti |
            | Department of Computer Science |
            | Florida State University |
            | bismuti@... (850) 644-6835 |
            |_____________________________________________________________________|
          • Arjona, Ariel
            Exactly. If you put the command in .vimrc probably it won t work. What I did was edit my syntax/html.vim (in my case, with ASP files, it s what worked for me)
            Message 5 of 8 , Dec 6, 2000
            • 0 Attachment
              Exactly. If you put the command in .vimrc probably it won't work.
              What I did was edit my syntax/html.vim (in my case, with ASP files, it's
              what worked for me) and add the command there.

              -Ariel

              > -----Original Message-----
              > From: Peter Bismuti [mailto:bismuti@...]
              > Sent: Wednesday, December 06, 2000 4:58 PM
              > To: aarjona@...
              > Cc: vim@...
              > Subject: Re: more troubles with jsp syntax (correction)
              >
              >
              > I'm not experiencing any CPU hit and mine is set to 5000,
              > perhaps the minlines
              > command is not taking for some reason.
              >
              >
              > >
              > > Just curious, but why do these syntax coloring problems
              > happen? I've had
              > > syntax coloring problems too, but setting minlines to 2500
              > solved it (with a
              > > serious CPU hit when I scroll up though).
              > >
              > > What can be done to solve them? I'd love to help the Vim
              > project, but I'm
              > > afraid I'm still not that good as a programmer :(
              > >
              > > > -----Original Message-----
              > > > From: Peter Bismuti [mailto:bismuti@...]
              > > > Sent: Wednesday, December 06, 2000 2:37 PM
              > > > To: bismuti@...
              > > > Cc: vim@...
              > > > Subject: Re: more troubles with jsp syntax (correction)
              > > >
              > > >
              > > > Looks like line 128, not 117.
              > > >
              > > >
              > > > > I'm still seeing problems with jsp syntax. I have set:
              > > > >
              > > > > syntax sync minlines=5000
              > > > >
              > > > > which is much larger than the file I'm editing and it still
              > > > is having
              > > > > problems. In the section where JavaScript functions
              > are defined I'm
              > > > > seeing the colors flip between purple and cyan. I'm
              > seeing the color
              > > > > flip on line 117:
              > >
              >
              >
              > _____________________________________________________________________
              > |
              > |
              > | Pete Bismuti
              > |
              > | Department of Computer Science
              > |
              > | Florida State University
              > |
              > | bismuti@... (850) 644-6835
              > |
              >
              > |_____________________________________________________________
              > ________|
              >
            • Benji Fisher
              The only problem with editing syntax/html.vim is that you will have to do it again when you upgrade to vim 6.0 (paradise ;). The recommended approach is
              Message 6 of 8 , Dec 6, 2000
              • 0 Attachment
                The only problem with editing syntax/html.vim is that you will have
                to do it again when you upgrade to vim 6.0 (paradise ;). The
                recommended approach is described under

                :help mysyntaxfile-add

                I think that putting

                :autocmd Syntax jsp syn sync minlines=...

                in your mysyntaxfile (and setting the mysyntaxfile variable) should be enough.

                HTH --Benji Fisher

                "Arjona, Ariel" wrote:
                >
                > Exactly. If you put the command in .vimrc probably it won't work.
                > What I did was edit my syntax/html.vim (in my case, with ASP files, it's
                > what worked for me) and add the command there.
                >
                > -Ariel
                >
                > > -----Original Message-----
                > > From: Peter Bismuti [mailto:bismuti@...]
                > > Sent: Wednesday, December 06, 2000 4:58 PM
                > > To: aarjona@...
                > > Cc: vim@...
                > > Subject: Re: more troubles with jsp syntax (correction)
                > >
                > >
                > > I'm not experiencing any CPU hit and mine is set to 5000,
                > > perhaps the minlines
                > > command is not taking for some reason.
                > >
                > >
                > > >
                > > > Just curious, but why do these syntax coloring problems
                > > happen? I've had
                > > > syntax coloring problems too, but setting minlines to 2500
                > > solved it (with a
                > > > serious CPU hit when I scroll up though).
                > > >
                > > > What can be done to solve them? I'd love to help the Vim
                > > project, but I'm
                > > > afraid I'm still not that good as a programmer :(
                [snip]
              • Devin Weaver
                ... Yes this will make a serious CPU hit. VIM will highlight using specified syntax rules. In a simple situation a single line with a regex can determine
                Message 7 of 8 , Dec 6, 2000
                • 0 Attachment
                  On Wed, Dec 06, 2000 at 04:51:59PM -0500, Arjona, Ariel wrote:
                  > Just curious, but why do these syntax coloring problems happen? I've had
                  > syntax coloring problems too, but setting minlines to 2500 solved it (with a
                  > serious CPU hit when I scroll up though).

                  Yes this will make a serious CPU hit. VIM will highlight using specified syntax
                  rules. In a simple situation a single line with a regex can determine proper rule
                  (Like keywords or strings).

                  The problems arise when you have multiple lines which encompass one rule. Say for
                  example you want all strings to be highlighted pink but stings can spawn
                  multiple lines. And a string is defined as any character between the delimiters
                  <% and %> So you say the start of the string is <% and the end will be %>

                  1 Not a string <% Is a
                  2 String on more
                  3 than one line %> Not a string

                  Here everything between <% and %> is a String. Now imagine that a very small
                  view at the current line. Say line 2. The only way to tell that the characters
                  on line to are part of the String rule would be to search backwards till it hit
                  a <% or a %> if it hit a %> then it knows it not inside a String rule. or
                  visa-versa if it sees a <% it know it is in one.

                  Now imagine that the text on line 2 spawned about 100 lines. That's 100 lines of
                  Syntax Vim has to parse through till it get to the line your interested in.

                  As for the syncing heres more examples. Say for the purpose of this email your
                  vim screen is one line in height. so you can only view on line at a time. Lets
                  walk though the logic as we scroll *Down*.

                  line 1 we see that it begins with <!-- so we know it's a comment till we hit -->
                  however inside of comments are strings so if we hit a " before the --> we'll
                  have to handle that as well (See the nesting). Ok. so say we hit the --> at
                  around line 4. done. Next we see a <% which means were stopping all HTML
                  rendering and starting ASP. Next we see a string and a number and a variable
                  then a comment. And finally a %>. That was allot especially if that was like say
                  50 lines.

                  That the feel of the VIM logic (Top-down approach) the problems you see is when
                  you scrolling *Up* In order for the top-down approach to work here the above
                  process needs to find a place to start. By default this is the top of the
                  screen but in situations like above where you have nested syntax you need to
                  sync to something else. (For example a line with <% in it) But to search
                  backwards every time the person scrolls up the above process needs to be done
                  again and again. Very CPU incentive the more complex the rules. So VIM uses a
                  fall off value to stop this (minlines) if it can't find the sync pattern by
                  minlines above then it stops and renders it as normal. That's what you see. by
                  increasing minlines to something crazy like 5000 then VIM will search backwards
                  for a maximum of 5000 line till it hits the sync pattern or not and begin
                  rendering from there till it gets to the users view. 5000 lines is allot
                  considering the ASP syntax has about 20 or so rule on it's own not including
                  the HTML it has in to which has javascript. heck if every one of those has 20
                  rules that's 30 right there which it parses for 5000 lines *Every* time a user
                  scrolls up!

                  Yes there are alternative ways then the top-down approach but this one provides
                  the most flexibility that's why VIM can support practically any lexical syntax.
                  where as most other highlighting editors only support a few and have no room for
                  customization. Theres a trade off with performance and scalibility/flexibility
                  here your seeing one of the cons.

                  When ever this happens to me I just hit page up till it rights it self then page
                  down where I was. And yeah I know my explanation was long and pointless but I
                  was board at the time. Had to avoid work somehow :-)

                  Cheers.

                  --
                  If VIM were a woman, I'd marry her. Slim, organized, helpful and beautiful;
                  what's not to like?
                Your message has been successfully submitted and would be delivered to recipients shortly.