DTD Question

I have an XML docuemnt structured like this:
<foo>
<goo />
<hoo />
<goo />
</foo>
where goo and hoo elements can appear in any order. I need to do DTD validation on this XML Document.
I was using
<!ELEMENT foo (goo*, hoo*)>
but the parser complained that the document did not follow the validation guidline (goo*, hoo*) which is understandable beause they have to appear in that order.
Does anyone know how I can use the validation without specifing an order?
I was thinking aout useing
<!ELEMENT foo (ANY)>
but that is dangerous, becuase I have other elements defined in my DTD file that sould not belong in foo.

That did not work, validation still requires the order of the elements be preserved.
<goo> then <hoo>, cannot have <hoo> then <goo>
Anybody?

Similar Messages

  • DTD Element Definition Question.

    Is it possible to define an ELEMENT in a DTD that limits what values that can be entered in the ELEMENTs text? For example, I want to limit what can be put in the ELEMENT Hazard to the text values of "Yes" or "No" and nothing else can be entered.
    1) <!ELEMENT Hazard ('Yes' | 'No') >
    or
    2) <!ELEMENT Hazard (Yes | No) >
    In example 2, don't 'Yes' and 'No' need to be elements themselves? And if so, then this is not what I want. I need to limit the Hazard tags text value to only be "Yes" or a "No":
    <Hazard>Yes</Hazard>
    or
    <Hazard>No</Hazard>
    No other text values can be entered.
    Any help would be appreciated!

    To do what you want you need to use an empty element and an attribute which you can enumerate. Ex: <Hazard state="YES"/>
    <!ELEMENT Hazard EMPTY>
    <!ATTLIST Hazard
    STATE ( YES | NO )>
    Oracle XML Team
    null

  • Re: Steve's book - PLSQL - Validation/DTD/Parser questions

    1)How much of the xpath plsql validation example in Steve's book (page 138 onwards) could (or should) be done by parsing with the appropriate DTD instead?
    2)If we receive an input XML doc that is missing the DTD line (reference to our published DTD) can we still enforce parsing with our DTD (without having to modify the input doc)?
    3)Can the plsql XML parser return all parse errors in one go (cf command line oraxml v filename)
    null

    We don't support file references ("cv1_0.dtd"). Only url type references
    are supported, of the form:
    @ <!DOCTYPE cv1 SYSTEM "http://www.oracle.com/public/cv1_0.dtd>
    Note that the url should be accessible to the world without the need to authenticate.
    you could put your dtd in the "public" area in your iFS system.
    Thanks,
    Sirisha
    null

  • Basic XML question: Purpose of a DTD?

    What does a DTD do? And do I need one? I've been using an XML config file for my app, but now that I'm looking for a simple XML editor, I can't just open my .xml file in the editor and GO. I need to specify some kind of DTD as well, so I can't even edit my file as I do in Forte.
    Thanks

    I read the SUN tutorials on using the DOM parser. I chose to use the DOM parser instead of the SAX parser, because it is simple to load a file and let the API parse the xml file from you. Then all you need to do is call the various methods that are provided to access parts of your XML file.
    For example, here is the function I use to load my config file, which I grabbed from the examples in the SUN XML tutorial. See part III of:
    http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/index.html
    public boolean loadFile(String filename) {
         // Get an instance of a DocumentBuilderFactor
            DocumentBuilderFactory  factory = DocumentBuilderFactory.newInstance();
         try {
                // Have the factory create a document builder
                DocumentBuilder builder = factory.newDocumentBuilder();
                // Builder parses the XML file and save it into a document object.
                xmlFile = builder.parse( filename );
                return true;
         catch (SAXException sxe) {
                // Error generated during parsing.
                Exception  x = sxe;
                if (sxe.getException() != null) x = sxe.getException();
                x.printStackTrace();
                return false;
         catch (ParserConfigurationException pce) {
                // Parser with specified options can't be built.
                pce.printStackTrace();
              catch (IOException ioe) {
               // I/O error
            System.out.println("XMLEasyReader: Error opening the config file : " + filename);
               ioe.printStackTrace();
         return false;
        }

  • How can i use one dtd inside another dtd

    Hello friends,
    I have read some where that one DTD can be imported into another DTD but idont remember how to do it.
    My question is suppose we have a DTD say xyz.dtd and i am writing a new DTD say abc.dtd, and lets assume that in abc.dtd i have to declare some of the elements of xyz.dtd, so iwant to import xyz.dtd into abc.dtd.
    Can anybody please give me a solution for this.
    Thank you,
    sridhar.

    something similar to this.
    // This is abc.dtd
    <!ELEMENT MESSAGE_NODE (MSGHEADER, MESSAGEBODY)>
    // Include the DTD for the Message Header
    <!ENTITY % MSGHEADER SYSTEM "xyz.dtd">
    %MSGHEADER;

  • CS4- JS : How to change the DTD Option - Reg.

    Dear All,
    I'm struggle to not getting the answer for change the DTD options though Script.
    Here I can Load the DTD using script and Validate then Its showing so many Errors, It means the root element is wrong [DOCTYPE] so the way I can change as per the XML Root Element.
    Root Element : Chapter
    Load DTD -> DOCTYPE name is  : text
    //================ Start Coding =================================//
    app.doScript(File("D:/program files/Adobe InDesign CS4/Scripts/XML Rules/glue code.jsx"));
    var myDoc = app.documents.item(0);
    var Store = new  Array();
    var count=0;
    myDTDPath = "C:\\Program Files\\Adobe\\Adobe InDesign CS4\\Executables\\Parser\\Macmil.dtd";
    myDoc.importDtd(File(myDTDPath));
    main();
    function main()
      if (app.documents.length != 0)
        var myDocument = app.documents.item(0);
        //This rule set contains a single rule.
        var DTDTitle  = new Array (new DTDRootTitle);
       with(myDocument)
         var elements = xmlElements;
         __processRuleSet(elements.item(0), DTDTitle);
      else
        alert("No open document");
      //Adds a return character at the end of every XML element.
        function DTDRootTitle()
          this.name = "DTDValidation";
          //XPath will match on every XML element in the XML structure.
          this.xpath = "//chapter";
          // Define the apply function.
           this.apply = function(elm, myRuleProcessor)
                with(elm)
                   Store[count] = elm.validate();
                   count+=1;
              return true;// Succeeded
            } //End of apply function
       for(var k=0; k<Store.length; k++)
            var test = Store[k];
             for(var m=0; m<test.length; m++)
              if(test[m].isValid == true)
              $.writeln(test[m].element.markupTag.name);
              $.writeln(test[m].errorMessage);
    //========================== End of the coding ==========================//
    Question : 1
    Manually I can load the DTD & change the DTD Options as per the Root Element of the XML.
    After Validate using Root Element Itself, Its working fine. Zero Errors.
    Mean while I can Load DTD though Script but I can't change the DTD Options, through Script.
    So Please any one can give me the solution for change the DTD Options using script.
    Please any one can give the solution, Really I can appriciate for this...
    Hope I'm waiting the result for this query....
    Thanks & Regards
    T.R.Hairhara Sudhan

    hello  T.R.Hairhara Sudhan
    i don't know whether this is write answer or not .
    do one thing from active doc get reference of Dtd and from dtd set rootTag = "root tag"
    e.g
    var dtd =  app.activeDocument.dtds[0];
    dtd.rootTag = xmlElement.markupTag;
    here xmlElement is value for "Validate from" in DTD option
    Regards
    tahir1987.

  • Question about Spry Collapsible Panel

    Hey guys my question is that I have a PSD sliced and imported into Dreamweaver and I was wondering if it was possible to have a Spry Collapsible Panel drop down from a button I designed in Photoshop and brought into dreamweaver? Basically I want a content area to drop down when that button is clicked and I figured a Spry Collapsible Panel might be able to accomplish that. I hope I'm explaining this clearly enough, I'm not very experienced with Dreamweaver. Thanks!

    Definitely possible.
    You should first import the image into DW.
    Insert > Spry > Spry Collapsible Panel
    It'll insert a demo panel.
    You'll then have to move your image <img src..> into the default first div under spry collapsible as follows:
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
      <div class="CollapsiblePanelTab" tabindex="0"><img src="location-to-your-image.jpg" width="100" height="50" /></div>
      <div class="CollapsiblePanelContent">Content</div>
    </div>
    You'll basically be removing 'TAB' from here to replace it with your img src tag.
    Your HTML should look like this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Collapsible Test</title>
    <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
      <div class="CollapsiblePanelTab" tabindex="0"><img src="location-to-your-image.jpg" width="100" height="50" /></div>
      <div class="CollapsiblePanelContent">Content</div>
    </div>
    <script type="text/javascript">
    <!--
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
    //-->
    </script>
    </body>
    </html>
    Do note that you'll have to copy the supporting spry files to your server for this to work. By default, DW will place them into your project folder once you insert the spry collapsible panel.

  • Splash page with animated gif only question

    Hello all:
    I have a splash page (index.html) that is designed using an animated gif created in photoshop. The rest of my site is Css/XHTML, but has some divs containing animated gifs. I have two questions;
    1: By using only the animated gif on the splash page, am I limiting or hindering my SEO (google, microsoft, yahoo) ranking opportunities as there is no "content" on the page that the spiders/bots can see? I went ahead and included some "content" but hid it by coloring the type the same as the background color hoping that might do something, but obviously I'm a SEO newbie so any suggestions are more than welcomed. I will include the code at the end of this post, and my site is: http://reynolds-marketing.com.
    2. Is there a way to pre-load the animated gifs on my pages so that they play more smoothly and efficiently?
    TIA for any of your help. Murman
    The code for the splash page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Reynolds Marketing - The Marketing Resource Source</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta name="description" content="Reynolds Marketing is a marketing services company offering a full spectrum of marketing services including: consultation, creative, production and logistical marketing services headquartered in Temecula, CA." />
    <meta name="keywords" content="Reynolds, Reynolds Marketing, marketing services company, marketing services agency, full spectrum of marketing services, full service marketing agency, marketing consultant, print creative, digital printing, offset printing, website design, website development, digital marketing, digital print on demand, DPOD,Video Production, Video Production, Direct Mail, Temecula, powerpoint presentations" />
    <link rel="shortcut icon" href="http://www.reynolds-marketing.com/favicon.ico"/>
    <!-- ImageReady Styles (index3.psd) -->
    <style type="text/css">
    <!--
    #index_ {
         position:relative;
         left:0px;
         top:0px;
         width:640px;
         height:480px;
         margin-left: auto;
         margin-right: auto;
    -->
    </style>
    <!-- End ImageReady Styles -->
    </head>
    <body bgcolor="#FFFFFF" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" id="index_" style="background-color:#FFFFFF;">
    <p>
      <!-- ImageReady Slices (index3.psd) -->
    <img src="images/index.gif" alt="" width="640" height="480" border="0" usemap="#indexMap" id="index" /></p>
    <p>Reynolds Marketing offers a full spectrum of marketing communications services including: consultation, creative, production and logistical marketing services located in Temecula, California. Our services include marketing consultation, press relations, public relations, copy writing, print creative, direct mail creative, video creative, web creative, interactive creative. Print production, direct mail, video production, web page creation and production. Digital print on demand, fulfillment services, powerpoint presentations, marketing communications, marketing communications conformance. To find out more about our services, please go to <a href="http://www.reynolds-marketing.com/who_we are.html">http://www.reynolds-marketing.com/who_we are.html</a> . </p>
    <p>Site map:<br />
      <a href="http://www.reynolds-marketing.com/index.html">http://www.reynolds-marketing.com/index.html</a><br />
      <a href="http://www.reynolds-marketing.com/who_we_are.html">http://www.reynolds-marketing.com/who_we_are.html</a><br />
      <a href="http://www.reynolds-marketing.com/contact_us.html">http://www.reynolds-marketing.com/contact_us.html</a><br />
      <a href="http://www.reynolds-marketing.com/what_we_do.html">http://www.reynolds-marketing.com/what_we_do.html</a><br />
      <a href="http://www.reynolds-marketing.com/services.html">http://www.reynolds-marketing.com/services.html</a><br />
      <a href="http://www.reynolds-marketing.com/clients.html">http://www.reynolds-marketing.com/clients.html</a><br />
      <a href="http://www.reynolds-marketing.com/projects.html">http://www.reynolds-marketing.com/projects.html</a><br />
      <a href="http://www.reynolds-marketing.com/news.html">http://www.reynolds-marketing.com/news.html</a></p>
    <p>
      <map name="indexMap" id="indexMap">
        <area shape="rect" coords="296,434,342,444" href="who_we_are.html" />
        <area shape="rect" coords="228,451,286,461" href="who_we_are.html" />
        <area shape="rect" coords="296,451,353,461" href="what_we_do.html" />
        <area shape="rect" coords="364,451,416,461" href="contact_us.html" />
      </map>
      <!-- End ImageReady Slices -->
      <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
      </script>
    </p>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-8703884-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </body>
    </html>

    My guess is yes, but that is just my opinion.  I believe the text/background same color idea was really in vogue back in the late 90's and we all heard that it was the kiss of death for SEO that the SE's hated them so much you got de-listed, not sure if that is a fact or not.
    My bigger concern would be how many people you are losing by making them wait to get to where they want to go.  I have told many a client that in some sense, the interent is too big, you have too much competition and people have thin patience for things like splash pages.  The ooo and aaa effect of animated gifs is long dead...again, in my opinion.
    I dont know the answer to your load question...
    Gray

  • Creating a Survey - Novice Javascript Question

    Hello,
    I am extrememely new to Javascript.  I have been doing some research online and copy/pasting code to create the results I need.  I am trying to create an online survey in Dreamweaver in which users select buttons to answer questions and then the total results appear at the bottom of the survey.  So far this is what I have:
    http://sicolaconsulting.com/SurveyTest4.php
    The problem I have with this is that on each line, a user can select more than one box.  I don't want this so I thought radio buttons would be better.  I then came up with this:
    http://sicolaconsulting.com/SurveyTest3.php
    The problem with this is that with the function I am using, I can only get it to display the value of the first line.  I need it to calculate the sum of all the lines.
    Can you help me revise the script I have to get my desired result.
    Here is my code for the first page, followed by the code for the second page.  THANK YOU!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <title>Survey</title>
    <style type="text/css">
    body,td,th {
              font-family: Tahoma, Geneva, sans-serif;
    </style>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    <title>Survey</title>
    <script type="text/javascript">
              function TotalPart1A() {
                        document.survey.Total1A.value = '';
                        var sum = 0;
                        for (i=0;i<document.survey.Part1A.length;i++) {
                          if (document.survey.Part1A[i].checked) {
                                    sum = sum + parseInt(document.survey.Part1A[i].value);
                        document.survey.Total1A.value = sum;
    </script>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper"><br />
      <div id="survey-header"><strong>Purpose:</strong><br />
        The Learning Style Survey assesses your general approach to learning. <br />
        It does not predict your behavior, but it is a clear indication of your overall style preferences.<br />
        <br />
        <strong>Instructions:</strong><br />
        For each item circle the response that represents your approach. Complete all items. <br />
        There are eleven major activities representing twelve different aspects of your learning style. <br />
        When you read the statements, try to think about what you generally do when learning. <br />
        <br />
        <strong>Time:</strong><br />
        It takes about 30 minutes to complete the survey. Do not spend too much time on any item. Indicate your immediate response (or feeling) and move on to the next item. <br />
        <br />
        <strong>For each item, enter your immediate response:<br />
          0 = Never  1 = Rarely  2 = Sometimes  3 = Often  4 = Always</strong><br />
      </div>
              <div id="survey">
    <form name="survey">
              <div id="survey-section1">
                    <table class="survey-table" cellspacing="0" width="812">
                      <tr>
                        <td height="24" colspan="2" align="left" bgcolor="#CCCCCC"><strong>Part 1: How I Use My Physical Senses</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>1</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>2</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>3</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>4</strong></td>
                        </tr>
                      <tr>
                        <td width="31" height="27">1</td>
                        <td width="515" align="left">I remember something better if I write it down.</td>
                        <td width="60"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td width="60"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td width="60"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td width="60"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td width="31" bgcolor="#EAEAEA">2</td>
                        <td height="27" align="left" bgcolor="#EAEAEA"> I take detailed notes during lectures.</td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>3</td>
                        <td height="27" align="left">When I listen, I visualize pictures, numbers, or words in my head.</td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">4</td>
                        <td height="27" align="left" bgcolor="#EAEAEA"> I prefer to learn with TV or video rather than other media. </td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>5</td>
                        <td height="27" align="left"> I use color coding to help me as I learn to work.</td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">6</td>
                        <td height="27" align="left" bgcolor="#EAEAEA"> I need written directions for tasks.</td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>7</td>
                        <td height="27" align="left"> I have to look at people to understand what they say.</td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">8</td>
                        <td height="27" align="left" bgcolor="#EAEAEA">I understand lecturers better when they write on the board.</td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>9</td>
                        <td height="27" align="left">Charts, diagrams, and maps help me understand what someone says. </td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">10</td>
                        <td height="27" align="left" bgcolor="#EAEAEA">I remember people’s faces, but not their names. </td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td> </td>
                        <td height="27" align="right">A TOTAL: </td>
                        <td colspan="2"><input type="text" size="10" name="Total1A" value="0"/></td>
                        <td align="right"> </td>
                        <td> </td>
                        </tr>
                      <tr>
                        <td> </td>
                        <td height="27" align="right"> </td>
                        <td> </td>
                        <td> </td>
                        <td align="right"> </td>
                        <td> </td>
                        </tr>
                      </table>
    </form>
                </div>
              </div>
        </body>
        </html>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <title>Survey</title>
    <style type="text/css">
    body,td,th {
              font-family: Tahoma, Geneva, sans-serif;
    </style>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
              function TotalPart1A() {
                        document.survey.Total1A.value = '';
                        var sum = 0;
                        for (i=0;i<document.survey.radiogroup1A.length;i++) {
                          if (document.survey.radiogroup1A[i].checked) {
                                    sum = sum + parseInt(document.survey.radiogroup1A[i].value);
                        document.survey.Total1A.value = sum;
    </script>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper"><br />
      <div id="survey-header"><strong>Purpose:</strong><br />
        The Learning Style Survey assesses your general approach to learning. <br />
        It does not predict your behavior, but it is a clear indication of your overall style preferences.<br />
        <br />
        <strong>Instructions:</strong><br />
        For each item circle the response that represents your approach. Complete all items. <br />
        There are eleven major activities representing twelve different aspects of your learning style. <br />
        When you read the statements, try to think about what you generally do when learning. <br />
        <br />
        <strong>Time:</strong><br />
        It takes about 30 minutes to complete the survey. Do not spend too much time on any item. Indicate your immediate response (or feeling) and move on to the next item. <br />
        <br />
        <strong>For each item, enter your immediate response:<br />
          0 = Never  1 = Rarely  2 = Sometimes  3 = Often  4 = Always</strong><br />
      </div>
      <div id="survey">
        <form name="survey" id="survey">
          <div id="survey-section1">
          <table class="survey-table" cellspacing="0" width="812">
            <tr>
              <td height="24" colspan="2" align="left" bgcolor="#CCCCCC"><strong>Part 1: How I Use My Physical Senses</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>1</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>2</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>3</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>4</strong></td>
            </tr>
            <tr>
              <td width="31" height="27">1</td>
              <td width="515" align="left">I remember something better if I write it down.</td>
              <td width="60"><input type="radio" name="radiogroup1A" value="1" onchange="TotalPart1A()"/></td>
              <td width="60"><input type="radio" name="radiogroup1A" value="2" onchange="TotalPart1A()"/></td>
              <td width="60"><input type="radio" name="radiogroup1A" value="3" onchange="TotalPart1A()"/></td>
              <td width="60"><input type="radio" name="radiogroup1A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td width="31" bgcolor="#EAEAEA">2</td>
              <td height="27" align="left" bgcolor="#EAEAEA"> I take detailed notes during lectures.</td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>3</td>
              <td height="27" align="left">When I listen, I visualize pictures, numbers, or words in my head.</td>
              <td><input type="radio" name="radiogroup3A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup3A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup3A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup3A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">4</td>
              <td height="27" align="left" bgcolor="#EAEAEA"> I prefer to learn with TV or video rather than other media. </td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>5</td>
              <td height="27" align="left"> I use color coding to help me as I learn to work.</td>
              <td><input type="radio" name="radiogroup5A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup5A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup5A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup5A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">6</td>
              <td height="27" align="left" bgcolor="#EAEAEA"> I need written directions for tasks.</td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>7</td>
              <td height="27" align="left"> I have to look at people to understand what they say.</td>
              <td><input type="radio" name="radiogroup7A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup7A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup7A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup7A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">8</td>
              <td height="27" align="left" bgcolor="#EAEAEA">I understand lecturers better when they write on the board.</td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>9</td>
              <td height="27" align="left">Charts, diagrams, and maps help me understand what someone says. </td>
              <td><input type="radio" name="radiogroup9A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup9A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup9A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup9A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">10</td>
              <td height="27" align="left" bgcolor="#EAEAEA">I remember people’s faces, but not their names. </td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td> </td>
              <td height="27" align="right">A TOTAL: </td>
              <td colspan="2"><input type="text" size="10" name="Total1A" value="0"/></td>
              <td align="right"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td height="27" align="right"> </td>
              <td> </td>
              <td> </td>
              <td align="right"> </td>
              <td> </td>
            </tr>
          </table>
        </form>
      </div>
    </div>
    </body>
    </html>

    Hi Nancy,
    I've been away from this for a while and have picked it back up.  I tried your suggested code and I'm having problems getting it to work.  I created a file using the code you supplied for the survey here:
    view-source:http://www.littlechisel.com/clients/GreenSurvey/GreenSurvey.html
    It doesn't work so I know I'm missing something.  If you could advise me on this, it would be great.  Thanks! Here is the code as I have it:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <script type="text/javascript">
    function calcscore() {
        var score = 0;
        $(".calc:checked").each(function() {
            score += parseInt($(this).val(), 10);
        $("input[name=sum]").val(score)
    $().ready(function() {
        $(".calc").change(function() {
            calcscore()
    </script>
    <link href="stylesheets/Survey.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <h1>jQuery Sum of Radio Fields</h1>
    <form action="">
    <h2>HOW GREEN ARE YOU?</h2>
    <p><strong>I walk/bicycle  to work/school. </strong><br>
    Yes
    <input class="calc" type="radio" name="radio1" value="10">
    No
    <input class="calc" type="radio" name="radio1" value="0">
    Sometimes
    <input class="calc" type="radio" name="radio1" value="5"></p>
    <p><strong>I buy  locally grown food. </strong><br>
    Yes
    <input class="calc" type="radio" name="radio2" value="10">
    No
    <input class="calc" type="radio" name="radio2" value="0">
    Sometimes
    <input class="calc" type="radio" name="radio2" value="5"></p>
    <p><strong>I recycle. </strong><br>
    Yes
    <input class="calc" type="radio" name="radio3" value="10">
    No
    <input class="calc" type="radio" name="radio3" value="0">
    Sometimes
    <input class="calc" type="radio" name="radio3" value="5"></p>
    <p><strong>I compost. </strong><br>
    Yes
    <input class="calc" type="radio" name="radio4" value="10">
    No
    <input class="calc" type="radio" name="radio4" value="0">
    Sometimes
    <input class="calc" type="radio" name="radio4" value="5"></p>
    <p>Total Green Score:
    <input type="text" name="sum">
    </p>
    </form>
    </body>
    </html>

  • Creating a Survey - Novice Question

    Hello,
    I am extrememely new to Javascript.  I have been doing some research online and copy/pasting code to create the results I need.  I am trying to create an online survey in which users select buttons to answer questions and then the total results appear at the bottom of the survey.  So far this is what I have:
    http://sicolaconsulting.com/SurveyTest4.php
    The problem I have with this is that on each line, a user can select more than one box.  I don't want this so I thought radio buttons would be better.  I then came up with this:
    http://sicolaconsulting.com/SurveyTest3.php
    The problem with this is that with the function I am using, I can only get it to display the value of the first line.  I need it to calculate the sum of all the lines.
    Can you help me revise the script I have to get my desired result. 
    Here is my code for the first page, followed by the code for the second page.  THANK YOU!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <title>Survey</title>
    <style type="text/css">
    body,td,th {
              font-family: Tahoma, Geneva, sans-serif;
    </style>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    <title>Survey</title>
    <script type="text/javascript">
              function TotalPart1A() {
                        document.survey.Total1A.value = '';
                        var sum = 0;
                        for (i=0;i<document.survey.Part1A.length;i++) {
                          if (document.survey.Part1A[i].checked) {
                                    sum = sum + parseInt(document.survey.Part1A[i].value);
                        document.survey.Total1A.value = sum;
    </script>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper"><br />
      <div id="survey-header"><strong>Purpose:</strong><br />
        The Learning Style Survey assesses your general approach to learning. <br />
        It does not predict your behavior, but it is a clear indication of your overall style preferences.<br />
        <br />
        <strong>Instructions:</strong><br />
        For each item circle the response that represents your approach. Complete all items. <br />
        There are eleven major activities representing twelve different aspects of your learning style. <br />
        When you read the statements, try to think about what you generally do when learning. <br />
        <br />
        <strong>Time:</strong><br />
        It takes about 30 minutes to complete the survey. Do not spend too much time on any item. Indicate your immediate response (or feeling) and move on to the next item. <br />
        <br />
        <strong>For each item, enter your immediate response:<br />
          0 = Never  1 = Rarely  2 = Sometimes  3 = Often  4 = Always</strong><br />
      </div>
              <div id="survey">
    <form name="survey">
              <div id="survey-section1">
                    <table class="survey-table" cellspacing="0" width="812">
                      <tr>
                        <td height="24" colspan="2" align="left" bgcolor="#CCCCCC"><strong>Part 1: How I Use My Physical Senses</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>1</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>2</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>3</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>4</strong></td>
                        </tr>
                      <tr>
                        <td width="31" height="27">1</td>
                        <td width="515" align="left">I remember something better if I write it down.</td>
                        <td width="60"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td width="60"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td width="60"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td width="60"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td width="31" bgcolor="#EAEAEA">2</td>
                        <td height="27" align="left" bgcolor="#EAEAEA"> I take detailed notes during lectures.</td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>3</td>
                        <td height="27" align="left">When I listen, I visualize pictures, numbers, or words in my head.</td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">4</td>
                        <td height="27" align="left" bgcolor="#EAEAEA"> I prefer to learn with TV or video rather than other media. </td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>5</td>
                        <td height="27" align="left"> I use color coding to help me as I learn to work.</td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">6</td>
                        <td height="27" align="left" bgcolor="#EAEAEA"> I need written directions for tasks.</td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>7</td>
                        <td height="27" align="left"> I have to look at people to understand what they say.</td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">8</td>
                        <td height="27" align="left" bgcolor="#EAEAEA">I understand lecturers better when they write on the board.</td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>9</td>
                        <td height="27" align="left">Charts, diagrams, and maps help me understand what someone says. </td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">10</td>
                        <td height="27" align="left" bgcolor="#EAEAEA">I remember people’s faces, but not their names. </td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td> </td>
                        <td height="27" align="right">A TOTAL: </td>
                        <td colspan="2"><input type="text" size="10" name="Total1A" value="0"/></td>
                        <td align="right"> </td>
                        <td> </td>
                        </tr>
                      <tr>
                        <td> </td>
                        <td height="27" align="right"> </td>
                        <td> </td>
                        <td> </td>
                        <td align="right"> </td>
                        <td> </td>
                        </tr>
                      </table>
    </form>
                </div>
              </div>
        </body>
        </html>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <title>Survey</title>
    <style type="text/css">
    body,td,th {
              font-family: Tahoma, Geneva, sans-serif;
    </style>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
              function TotalPart1A() {
                        document.survey.Total1A.value = '';
                        var sum = 0;
                        for (i=0;i<document.survey.radiogroup1A.length;i++) {
                          if (document.survey.radiogroup1A[i].checked) {
                                    sum = sum + parseInt(document.survey.radiogroup1A[i].value);
                        document.survey.Total1A.value = sum;
    </script>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper"><br />
      <div id="survey-header"><strong>Purpose:</strong><br />
        The Learning Style Survey assesses your general approach to learning. <br />
        It does not predict your behavior, but it is a clear indication of your overall style preferences.<br />
        <br />
        <strong>Instructions:</strong><br />
        For each item circle the response that represents your approach. Complete all items. <br />
        There are eleven major activities representing twelve different aspects of your learning style. <br />
        When you read the statements, try to think about what you generally do when learning. <br />
        <br />
        <strong>Time:</strong><br />
        It takes about 30 minutes to complete the survey. Do not spend too much time on any item. Indicate your immediate response (or feeling) and move on to the next item. <br />
        <br />
        <strong>For each item, enter your immediate response:<br />
          0 = Never  1 = Rarely  2 = Sometimes  3 = Often  4 = Always</strong><br />
      </div>
      <div id="survey">
        <form name="survey" id="survey">
          <div id="survey-section1">
          <table class="survey-table" cellspacing="0" width="812">
            <tr>
              <td height="24" colspan="2" align="left" bgcolor="#CCCCCC"><strong>Part 1: How I Use My Physical Senses</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>1</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>2</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>3</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>4</strong></td>
            </tr>
            <tr>
              <td width="31" height="27">1</td>
              <td width="515" align="left">I remember something better if I write it down.</td>
              <td width="60"><input type="radio" name="radiogroup1A" value="1" onchange="TotalPart1A()"/></td>
              <td width="60"><input type="radio" name="radiogroup1A" value="2" onchange="TotalPart1A()"/></td>
              <td width="60"><input type="radio" name="radiogroup1A" value="3" onchange="TotalPart1A()"/></td>
              <td width="60"><input type="radio" name="radiogroup1A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td width="31" bgcolor="#EAEAEA">2</td>
              <td height="27" align="left" bgcolor="#EAEAEA"> I take detailed notes during lectures.</td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>3</td>
              <td height="27" align="left">When I listen, I visualize pictures, numbers, or words in my head.</td>
              <td><input type="radio" name="radiogroup3A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup3A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup3A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup3A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">4</td>
              <td height="27" align="left" bgcolor="#EAEAEA"> I prefer to learn with TV or video rather than other media. </td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>5</td>
              <td height="27" align="left"> I use color coding to help me as I learn to work.</td>
              <td><input type="radio" name="radiogroup5A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup5A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup5A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup5A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">6</td>
              <td height="27" align="left" bgcolor="#EAEAEA"> I need written directions for tasks.</td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>7</td>
              <td height="27" align="left"> I have to look at people to understand what they say.</td>
              <td><input type="radio" name="radiogroup7A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup7A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup7A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup7A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">8</td>
              <td height="27" align="left" bgcolor="#EAEAEA">I understand lecturers better when they write on the board.</td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>9</td>
              <td height="27" align="left">Charts, diagrams, and maps help me understand what someone says. </td>
              <td><input type="radio" name="radiogroup9A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup9A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup9A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup9A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">10</td>
              <td height="27" align="left" bgcolor="#EAEAEA">I remember people’s faces, but not their names. </td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td> </td>
              <td height="27" align="right">A TOTAL: </td>
              <td colspan="2"><input type="text" size="10" name="Total1A" value="0"/></td>
              <td align="right"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td height="27" align="right"> </td>
              <td> </td>
              <td> </td>
              <td align="right"> </td>
              <td> </td>
            </tr>
          </table>
        </form>
      </div>
    </div>
    </body>
    </html>

    This is not the right forum for this question. This form is for JavaScript programming in Acrobat. The Dreamweaver forum here may be more appropriate.

  • Questions on logging in JDK 1.4

    Hi,
    This is my second try at getting some help on these questions. I thought I would try posting into the advanced language topics forum since I didn't get any response in the Java topics forum. I could really use some help on these two questions...
    I'm using the following code to test the new logging faciliites of
    SDK 1.4. I have two questions I would like to resolve.
    1) Why is this coming out in XML format, and how to I change it so
    it comes out in text format.
    2) How can I format the log to format a single log record into a
    single line, with the following fields (I want to make the log
    sortable by time and date).
    "date" "time" "class" "method" "thread" "message"
    and will look something like this
    2002-03-20 13:21:09 <SimpleLogExample:main:10> log message #4
    2002-03-20 13:21:09 <SimpleLogExample:main:10> log message #5
    2002-03-20 13:21:09 <SimpleLogExample:main:10> log message #6
    HERE IS THE ACTUAL (PARTIAL) OUTPUT FROM THE PROGRAM
    <?xml version="1.0" encoding="windows-1252" standalone="no"?>
    <!DOCTYPE log SYSTEM "logger.dtd">
    <log>
    <record>
    <date>2002-03-20T13:21:09</date>
    <millis>1016652069894</millis>
    <sequence>449148</sequence>
    <logger>main</logger>
    <level>CONFIG</level>
    <class>SimpleLogExample</class>
    <method>main</method>
    <thread>10</thread>
    <message>log message #4</message>
    </record>
    </log>
    HERE IS THE PROGRAM
    import java.util.logging.*;
    import java.io.*;
    public class SimpleLogExample {
    public static void main(String argv[]) throws IOException {
    Logger logger = Logger.getLogger("main");
    logger.setUseParentHandlers(false);
    logger.setLevel(Level.ALL);
    FileHandler fh = new FileHandler("%t/logfiles/Main.%g.log", 10485760, 3);
    fh.setLevel(Level.ALL);
    logger.addHandler(fh);
    for (int i=0; i<100000; i++) {
    logger.severe("log message #1");
    logger.warning("log message #2");
    logger.info("log message #3");
    logger.config("log message #4");
    logger.fine("log message #5");
    Thank you,
    Joel

    Here's a class I wrote to output one line per log record:
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2002</p>
    * <p>Company: Synchronous Designs</p>
    * @author Andrew Malcolm
    * @version 1.0
    import java.util.Date;
    import java.util.logging.*;
    import java.text.NumberFormat;
    class OneLinePerRecordFormatter extends SimpleFormatter
    private long m_startTime=System.currentTimeMillis();
    private NumberFormat m_numberFormat=NumberFormat.getInstance();
    /** constructor */
    public OneLinePerRecordFormatter()
    m_numberFormat.setMinimumIntegerDigits(8);
    m_numberFormat.setGroupingUsed(false);
    /** format */
    public String format(LogRecord logRecord)
    StringBuffer stringBuffer=new StringBuffer();
    stringBuffer.append("TIME ");
    stringBuffer.append(m_numberFormat.format(logRecord.getMillis()-m_startTime));
    stringBuffer.append(" DATE ");
    stringBuffer.append(new Date());
    stringBuffer.append(" THREAD UID ");
    stringBuffer.append(m_numberFormat.format(logRecord.getThreadID()));
    stringBuffer.append(" MESSAGE ");
    stringBuffer.append(logRecord.getMessage());
    if (logRecord.getSourceClassName()!=null)
    stringBuffer.append(" CLASS ");
    stringBuffer.append(logRecord.getSourceClassName());
    else
    stringBuffer.append(logRecord.getLoggerName());
    if (logRecord.getSourceMethodName()!=null)
    stringBuffer.append(" METHOD ");
    stringBuffer.append(logRecord.getSourceMethodName());
    if(logRecord.getThrown()!=null)
    stringBuffer.append(" EXCEPTION ");
    stringBuffer.append(logRecord.getThrown().getMessage());
    stringBuffer.append(" ");
    for(int line=0;line<logRecord.getThrown().getStackTrace().length;line++)
    stringBuffer.append(logRecord.getThrown().getStackTrace()[line]);
    stringBuffer.append(" ");
    stringBuffer.append("\r\n");
    return stringBuffer.toString();
    here's the test code:
    private static Logger m_logger=Logger.global;
    private static FileHandler m_fileHandler;
    public static void main(String[] args)
    try
    m_fileHandler=new FileHandler("log.txt",true);
    m_fileHandler.setFormatter(new OneLinePerRecordFormatter());
    m_logger.addHandler(m_fileHandler);
    catch(Exception e)
    &etc

  • Questions on HTML5 Output in FrameMaker 12

    I have a couple questions about the HTML5 Output:
    1. I have images that are not appearing in the output (they are in the source FM file, but not in the HTML5 output). What am I doing wrong?
    2. Is there a way to disable the glossary function so that it doesn't appear as an option in the HTML5 output?
    Any help is greatly appreciated. Thanks!

    1. Are all of the images in anchored frames? Have you edited any of the settings under Style mapping > Image?
    2. Currently, AFAIK, this is hardwired. You could try spelunking in a saved settings.sts file (it's just a zip container) to see if this can be turned off there [if you're quite familiar with XML, DTD's (.slp file), HTML and javascript],

  • Questions on in-memory with disk based overflow cache.

    Hi, support
    I want to create a cache which have two tiers, one is size limited local cache and the other uses a disk as a storage. As you said if the local cache is full, the other data will be moved to external cache (on disk). Does it mean the other data will be saved in a temp file? If so, could you let me know where is temp file? The config file is attached.
    Btw, although I used on disk cache as a external cache, I got Exception in thread "main" java.lang.OutOfMemoryError: Java heap space also when I put lots of data into the cache.
    Thanks a lot.
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
         <caching-scheme-mapping>
                        <!-- this local cache is used for buffer in rdsprocessor -->
              <cache-mapping>
                   <cache-name>bufferStorage</cache-name>
                   <scheme-name>SampleOverflowScheme</scheme-name>
              </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <overflow-scheme>
                   <scheme-name>           
                        SampleOverflowScheme
                   </scheme-name>
                   <front-scheme>
                        <local-scheme>
                             <high-units>100</high-units>
                        </local-scheme>
                   </front-scheme>
                   <back-scheme>
                        <external-scheme>
                             <lh-file-manager/>
                             <!--
                             <high-units>10</high-units>
                             -->
                        </external-scheme>
                   </back-scheme>
              </overflow-scheme>           
         </caching-schemes>
    </cache-config>
    Message was edited by:
    user620684

    Hi, Jon
    Thanks for your help.
    I will use an unconfigured LH file manager(I mean the file path and name will not be specified.).
    Currently, find the temp file will be created in C:\Documents and Settings\$user_name\Local Settings\Temp in windows.
    I have two questions on temp file.
    1) Does tangosol supply a mechanism to maintain the temp files?
    2) In solaris, which place will the temp file be created in?
    Thanks,
    Bin
    null

  • Some questions on whitespace and &

    Dear all,
    I have some questions on whitespace and & that need you kind help:
    1. Except /n /t /r and space, is there any characters that are whiteSpace characters?
    2. When parsing XML document, when the ignorableWhitespace() method is called? Will it be called from characters() ?
    e.g. Where the white space after <a> is called, and where is the white space between test1 and test 2 indied <b> is called?
    <a>
       <b>test1 test2</b>
    </a>  3. When the & should be escaped in a well-formed (or validated) XML file by replacing &?
    It should be excaped in any element content, such as <b>test1 & test2< /b> - except for <![CDATA[ section?
    It should NOT always be used in attributes? e.g. <a b="test1 & test2"/>  - has to do escaped by entity & - am I right?
    Thanks!
    Thanks
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thanks DrClap.
    >
    2. When parsing XML document, when the
    ignorableWhitespace() method is called? Will it be
    called from characters() ?It will be called when the document has a DTD and the
    parser is a validating one that is actually
    validating, when the parser sees whitespace that is
    not part of a DTD element. It will not be called from
    characters() because that is a method that you write.I wrote a contentHandler and using Xerces parser to parse an XML document. When I set validating feature to false, I found that for:
    <a>
       <b>test1 test2</b></a>The white space between <a> and <b> (including newline) is actually called from characters(), not in ignorableWhitespace(). So does this mean that if validating - white space is always called from ignorableWhitespace(), and if not validating, if it is always called from characters()?
    >
    3. When the & should be escaped in a well-formed(or
    validated) XML file by replacing &? The XML Recommendation says "The ampersand character
    (&) and the left angle bracket (<) may appear
    in their literal form only when used as markup
    delimiters, or within a comment, a processing
    instruction, or a CDATA section. If they are needed
    elsewhere, they must be escaped using either numeric
    character references or the strings "&" and
    "<" respectively."So in this sense, both & in <b>test1 & test2< /b> and <a b="test1 & test2"/> is illegal unless replacing them by & - right? What does the markup delimiters mena in above XML Recommendation ? Example?
    Thanks!

  • Newb setup question re: 500 cannot compile error

    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    This is on the default index.jsp page that installs with Apache Tomcat/4.1.18... at http://localhost:8080/index.jsp which maps to C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\index.jsp
    by now I have way too many java sdks installed...
    C:\Program Files\Java\j2re1.4.1_01
    C:\Program Files\Java\j2re1.4.0_03
    C:\j2sdk1.4.0_03
    C:\j2sdkee1.4
    The first one I tried got me the same error I am getting now.. and since I have tried different versions changing JAVA_HOME
    Right now..
    JAVA_HOME = C:\j2sdkee1.4
    CATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1
    I have no idea what's going on here not having much experience in settting up web servers or java SDKs. But in order to learn the stuff I have planned to I need teh following to get up and running on Win2K.. any help is greatly appreciated.
    Java JDK 1.4.
    Tomcat servlet\JSP engine 4.0.1.
    MySQL database 3.23.46
    If I stick a standard html page in the tomcat root it will show just fine.. so I suspect the whole Java thing is buggin for some reason.
    Here's the full text of the returned error followed by the text of the index.jsp file
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Unknown Source)
    Apache Tomcat/4.1.18
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/TR/REC-html40/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title><%= application.getServerInfo() %></title>
    <style type="text/css">
    <!--
    body {
    color: #000000;
    background-color: #FFFFFF;
    font-family: Arial, "Times New Roman", Times;
    font-size: 16px;
    A:link {
    color: blue
    A:visited {
    color: blue
    td {
    color: #000000;
    font-family: Arial, "Times New Roman", Times;
    font-size: 16px;
    .code {
    color: #000000;
    font-family: "Courier New", Courier;
    font-size: 16px;
    -->
    </style>
    </head>
    <body>
    <!-- Header -->
    <table width="100%">
    <tr>
    <td align="left" width="130"><img src="tomcat.gif" height="92" width="130" border="0" alt="The Mighty Tomcat - MEOW!"></td>
    <td align="left" valign="top">
    <table>
    <tr><td align="left" valign="top"><b><%= application.getServerInfo() %></b></td></tr>
    </table>
    </td>
    <td align="right"><img src="jakarta-banner.gif" height="48" width="505" border="0" alt="The Jakarta Project"></td>
    </tr>
    </table>
    <br>
    <table>
    <tr>
    <!-- Table of Contents -->
    <td valign="top">
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
    <tr>
    <td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
    <font face="Verdana" size="+1"><i>Administration</i>      </font>
    </td>
    </tr>
    <tr>
    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
    Tomcat Administration<br>
    Tomcat Manager<br>
    </td>
    </tr>
    </table>
    <br>
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
    <tr>
    <td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
    <font face="Verdana" size="+1"><i>Documentation</i>      </font>
    </td>
    </tr>
    <tr>
    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
    Tomcat Documentation<br>
    </td>
    </tr>
    </table>
    <br>
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
    <tr>
    <td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
    <font face="Verdana" size="+1"><i>Tomcat Online</i>      </font>
    </td>
    </tr>
    <tr>
    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
    Home Page<br>
    Bug Database<br>
    Users Mailing List<br>
    Developers Mailing List<br>
    IRC<br>
    </td>
    </tr>
    </table>
    <br>
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
    <tr>
    <td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
    <font face="Verdana" size="+1"><i>Examples</i>      </font>
    </td>
    </tr>
    <tr>
    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
    JSP Examples<br>
    Servlet Examples<br>
    WebDAV capabilities<br>
    </td>
    </tr>
    </table>
    <br>
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
    <tr>
    <td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
    <font face="Verdana" size="+1"><i>Miscellaneous</i>      </font>
    </td>
    </tr>
    <tr>
    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
    Sun's Java Server Pages Site<br>
    Sun's Servlet Site<br>
    </td>
    </tr>
    </table>
    </td>
    <td>     </td>
    <!-- Body -->
    <td align="left" valign="top">
    <p><center><b>If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!</b></center></p>
    <p>As you may have guessed by now, this is the default Tomcat home page. It can be found on the local filesystem at:
    <blockquote>
    <p class="code">$CATALINA_HOME/webapps/ROOT/index.html</p>
    </blockquote>
    </p>
    <p>where "$CATALINA_HOME" is the root of the Tomcat installation directory. If you're seeing this page, and you don't think you should be, then either you're either a user who has arrived at new installation of Tomcat, or you're an administrator who hasn't got his/her setup quite right. Providing the latter is the case, please refer to the Tomcat Documentation for more detailed setup and administration information than is found in the INSTALL file.</p>
    <p><b>NOTE: For security reasons, using the administration webapp
    is restricted to users with role "admin". The manager webapp
    is restricted to users with role "manager".</b>
    Users are defined in <code>$CATALINA_HOME/conf/tomcat-users.xml</code>.</p>
    <p>Included with this release are a host of sample Servlets and JSPs (with associated source code), extensive documentation (including the Servlet 2.3 and JSP 1.2 API JavaDoc), and an introductory guide to developing web applications.</p>
    <p>Tomcat mailing lists are available at the Jakarta project web site:</p>
    <ul>
    <li><b>[email protected]</b> for general questions related to configuring and using Tomcat</li>
    <li><b>[email protected]</b> for developers working on Tomcat</li>
    </ul>
    <p>Thanks for using Tomcat!</p>
    <p align="right"><font size=-1><img src="tomcat-power.gif" width="77" height="80"></font><br>
    <font size=-1>Copyright &copy; 1999-2002 Apache Software Foundation</font><br>
    <font size=-1>All Rights Reserved</font> <br>
     </p>
    <p align="right"> </p>
    </td>
    </tr>
    </table>
    </body>
    </html>

    I ended up uninstalling every java this and that.. and tomcat.
    Then installing only the j2sdk1.4.0_03 SDK.
    Then set up JAVA_HOME for all users and modified the path with full path to the bin (c:\j2sdk1.4.0_03\bin)
    Lastly I reinstalled tomcat and, voila, everything was working.
    It can be quite maddening when you THINK you did everything by the boook and something doesn't work. When you replied and confirmed that I was on the right track.. uninstalling and trying yet again became les frustrating an option.
    Thanks.
    BTW- I needed this env to do the projects in what sems to be a very interesting book.. "macromedia Flash MC application design and development" by Jessica Speigel .. published by New Riders.
    Her flash help website is at www.were-here.com.. the projects in the book are for flash-based multiplayer games and multi-user formums and such.

Maybe you are looking for