Text Entry Box--Advanced Actions--Conditional Statement--Double quotes in literal input value

Hello forums,
I'm new to the forums (and Captivate in general), but I'm having a real problem carrying out a tutorial design and I think you may be my only hope.  Let me explain what I want to do and the difficulty that I'm having:
I'm an instruction librarian at a university, and I'm designing an interactive tutorial for English 100 students to complete in order to become familiar with how to search the library catalog.  What I've done is taken a screenshot of the catalog search page, made it the background of a slide in Captivate (vers. 6), and placed a text entry box over the search bar in the screenshot.  The idea is for the students to conduct a simulated search by choosing one of three suggested search string formulations, and depending on the search string they enter, the tutorial will jump to a slide featuring a screenshot of what the actual search results would look like.  The idea is to emphasize the use of keywords over full-sentence phrases, and the use of double quotation marks to enclose multi-word search terms.
So I've set the action for the TEB to "Execute Advanced Actions" and then created some IF/THEN statements in the "Advanced Actions" pop-up window (with action type set to 'conditional'). The script is such that if the student enters the first search option (how does sleep affect college students) in the TEB, the tutorial jumps to 1 slide, if they enter the second option (college students AND sleep), featuring a Boolean operator (AND), the tutorial jumps to a 2nd slide, and if they enter the third option ("college students" AND sleep) with the double quotes around "college students" and the Boolean operator, the tutorial should jump to a 3rd slide.  This action script works fine for the first two input options, but I can't make it work for the third search option.
I think that it has something to do with the fact that the third input option features double quote marks, and this seems to throw off the script (I tried a quote-less input value for the third IF/THEN just to make sure that it would work jumping to the 3rd slide and it did), and I'm wondering if anyone has any suggestions as to how I can get around this issue.  Again, I need it to work so that if the student enters "college students" AND sleep, with the quote marks and the Boolean operator, the tutorial will jump to a slide showing the search results if those search terms were used in a real search of the catalog.
I'd be extremely grateful for any help that anyone here can give me, we've been trying to make our online tutorials more engaging and interactive (and therefore more interesting), and I think this would be a great way to teach students about using quotes in their catalog searches.
Thank you for your time and consideration.
Andrew Wilk
College Library
UW-Madison

The tutorial is for a "how to use catalog searching" instruction in an undergraduate library session.  We use boolean operators (AND, OR, NOT) to combine search terms, ex. to search for books about the sleeping habits of college students, I would enter "college students AND sleep."  Because "college students" is a multi-word phrase to describe one concept, I need to put quotation marks around the phrase to prevent the catalog from searching for the individual words separately, so the most correct search becomes ["college students" AND sleep] with quotation marks around only "college students," a user-typed "AND," and the word "sleep" (no q-marks).
A colleague of mine worked out a pretty cool (if complicated) solution that I'll share if anyone is interested.  Since the q-marks where the problem, we've set it up so that the TEB validates the response for the search string with q-marks around "college students." If they enter it correctly, the tutorial jumps to the corresponding slide. The attempt # is set to 1, and if the user fails to enter the validated phrase (they misspell or use one of the other response options) then the TEB is set to run an Advanced Actions Script in which the other two options are scripted in IF/THEN statements that cause, when the term is entered correctly, the tutorial to jump to their corresponding slides. We've created another tab of IF/THEN statements that say that if the response is NOT equal to one of these response options, then the slide restarts (technically the slide "jumps" back to itself and starts over) and the user gets another chance to start the cycle over again.
I know this is confusing (I had a really hard time explaining it in words), so if anyone is interested I could make a Jing video when I have some time.
Thank you for all your suggestions

Similar Messages

  • Advanced action: jump to next slide if all text entry boxes are filled out. If not, pause project and show error message

    Hi there
    Working with captivate 4 and advanced actions, which is a great new feature, I encounter the following problem:
    I have a sign-in slide, where the user has to insert his name and several other data. For user-friendly handling, I have the text entry boxes appearing one after another, so when the user confirms his entry, the next text entry box appears and has the focus.
    The button for jumping to the next slide works with an advanced action:
    Only if the user has filled out all the text entry boxes, the action "jump to the next slide" is performed.
    If not, an error message is shown.
    It works well so far.
    Now, I want the project to pause there, and not to jump back to the beginning of the slide (as suggested in another Thread in this forum), because then the text entry boxes dissappear again.
    I tried to set the movie control variable rdcmndPause to 1 in order to make the movie pause, but nothing happens.
    I tried it with an external playback control bar and without, it didn't work in either case.
    I found the hint:
    To control the project through the skin file, add the prefix cpSkinLoader_mc to the variables. This might be the solution.(?)
    But how can I change the name of a MovieControl Variable?
    If anyone knows, how this is supposed to work or has another suggestion to solve the problem, please let me now.
    Thanks a lot.
    Petra

    Hi Petra,
    I believe I can help you, but from a completely different angle than anything you've tried yet.  I try to find simple solutions to complex problems.  No advanced actions will be needed, just a little creative timing.  First, I need to be sure I correctly understand what it is you're hoping to accomplish.
    If I understand you correctly, you've got a single welcome slide.  On this slide you've got several TEB's (text entry boxes), set up with variables to make your project more personal or gather some required information.  These TEB's have no right or wrong answers, they simply require an entry: such as an address which begins with a numeric key.  The TEB's are set to appear one after another, as one is completed the next one appears.  Once all have been completed a next button, set to "jump to next slide" takes them  to the next slide and on through your course.  You want the project to pause until the user clicks this button, and only proceed if all TEB's have been entered.  If not, you wish an error message to appear.
    If the above description is correct, I'd do the following:
    Leave your TEB's to show up one at a time as the previous is submitted, as you've described. (each one pauses the slide till info is submitted, then "continues" the slide and the next TEB displays)
    Set each TEB to "display for rest of slide".
    For the next button:  In the properties dialog box, options tab, name the button "Next_button" and uncheck the visibility box.
    Open the properties for the final TEB that students will fill in and set the on success property to "show" then choose the Next_button by clicking the drop down arrow beside the "show" field.  This will hide the Next button until all TEB's have been filled in.
    There is no error message, because there is no possibility of error.  Why tell a student they've messed up, just eliminate that possibility!    All TEB's only display after the previous is entered, and the Next button is hidden until the last TEB is entered.
    I've tested this in a simple 3 slide project and it all worked fine, including some variables.  If you need more detailed info, or would like to see the sample proj. I created let me know.
    Hope this helps.
    randy

  • Text entry boxes in CP6 - Enter key to validate input does not work in Safari?

    I'm using Captivate 6 to create a step by step walkthrough of some different processes that are commonly completed in my workplace. Some of the example processes have portions where text is entered to simulate a process the end user might need.  I have text entry boxes in these slides that require validation of the input to move along, with Enter used as a shortcut key. This works great in Firefox, Chrome and IE all the way down to 8....but if the course is run in Safari, the enter key does nothing.  Is this a known issue?
    Additional info: For many of these text entry boxes, the point is that it is a search field that has a little binoculars icon next to it that executes the search in the actual software we are simulating. For these slides I actually have the submit button associated with the text box made invisible (no fill, no stroke) and placed on top of the binoculars icon. This is an acceptable method of doing the task we're demonstrating, and just so happens to be a workaround for the enter key not working in Safari. However, a few places we have text entry that doesn't have the search/binocular icon next to it because there is a different goal on that section of the software we're visualizing. In those cases, there is no place for me to put an invisible submit button, and I can't make the submit button visible because that's not how the software we're demonstrating would work (thus defeating the purpose of the training).

    Sorry, this is a known bug with no fix available yet, but the makers of SwiftKey are aware of it and we will work with them to fix it: https://bugzilla.mozilla.org/show_bug.cgi?id=617298
    For now, the only solution is to use a different keyboard when using Firefox.

  • Text entry box actions based on value

    Hi there..
    I am currently working on a software simulator where users search for orders by typing an order number in a search field... In Captivate I have created a Text Entry box with "submit" button, what I am trying to achieve in is if the user type specific value (numbers) and click "submit" button it will take them to a specific slide in the project BUT if they type difference value (in the same text entry box) and click "submit" button it will take them to different slide in the project ?
    hope I have explained the question clearly.. btw I am using Captivate v5
    thanks

    OK, you know how to add the correct entries. Set attempts to infinite, and create this conditional action to trigger by Success for the TEB:
    I created a user variable to associate with the TEB instead of the generic one, it is labeled v_order.  I labeled the slides to jump to as well, makes it easier to use in an advanced action. Screenshots are from CP8, so will look bit different for you, but what you hneed is the same.

  • Text entry box with double-click button - is this possible?

    I need to produce a simulation in Captivate 3 where the user types in some text, then double-clicks a button to open another window.
    With a normal text entry box the button doesn't seem to have the option to respond to a double click.
    I can't add in an extra slide with a click box to simulate the double-click as I have icons that change colour with time on the first slide.
    Are there any other ways of getting round this?

    Thanks for the suggestion. That would work brilliantly normally, just not on this slide, unfortunately.
    The reason for this is I have two hint icons on the screen - 1 shows a basic one then the second is a rollover slidelet with a clip of the correct action being performed. The first is on screen for a few seconds, then the second takes over.
    The earliest I would be able to set the second click would be around 8 seconds in, to allow the second hint to appear before the text box pauses the slide. So anyone who immediately knew which area to click would have to click once then wait a while to make the second click.
    It's annoying that the problem is of my own making by having the 2 icons, but as I've done this through a series of lessons, I can't really change it now.
    I might just go ahead with the single click option (unless there's a double-click in C4? [hoping to get this soon!]) and hope that no-one notices that the screen changes a bit too quickly to really have registered the second click.

  • Text Entry Box - Different Results based on Different Entries?

    Hello,
    I'm trying to figure out a way to use the Text-Entry Box (if there's a better tool to go about this, let me know) in order to bring up a particular caption box with a particular response. So for example, in a standard text-entry box, I have listed 4 possible "correct" answers, and for this example, I'll just say answer 1, answer 2, answer 3, and answer 4. I would like each answer to bring up a different caption box with a different statement based on which answer they type in. Basically:
    Answer one -> Caption 1
    Answer two -> Caption 2
    etc.
    All I can ever get is for each answer to just respond to the same standard buttons, Success, Failure, etc. I can't seem to add a new button that would pop up like the standard ones, or, as I would like better, Captions instead. Any ideas?

    Hello,
    Perhaps it is a problem with terminology, but as the 'proclaimed' advanced actions freak I have to ask what you mean by your latest answer 'captions did not come as variables to use'. A button is not a variable in my mind, but you mean perhaps the object ID? Which statement did you use in the advanced actions where the object ID of the captions do not show? AFAIK that is only the case with the statements Assign and Expression if you use variables, but there the button will not be in the list as well.
    Do you understand why I'm puzzled?
    My work flow would be this one:
    Create the Text captions TC_one, TC_two... and set them to invisible
    Create the Advanced conditional action that checks which (correct) answer was chosen, this action will have one decision for each correct answer; the action to be executed is to show TC_one in case answer1 was chose, TC_two for answer2 etc. If you allow the user to change his answer, hide at the same time the other captions
    Attach this action as Success action to the TEB, and have a shortcut or the Submit button like you wish.
    In case you allow also a Retake functionality, where the user returns to this slide, you'll need sort of a Reset that hides all Text Captions when entering the slide
    Please, I hope you'll take the time to answer my question in the first paragraph.
    Lilybiri

  • How to make mutiple shortcut keys in one text entry box

    I'm trying to make F8 and Enter work in one text entry box and only one because I need to make the scoring work the way I want it to. I have made both F8 and Enter work, however they are both in seperate text entry boxes when I want both to work in the same text entry box... Please Help, this will solve alot of problems I've been having.

    Ok so I tried using advanced actions and failed... here's my attempt on putting 2 shortcuts in one text entry box with different entries like the problem described earlier on this thread:
    Note: I have 2 TEB in one slide I tried using in this action.. 1 has variable name PF8, the other has PF82, where I'm trying to have PF82 contain both actions of both TEBs.
    1. Went into advanced actions.
    2. Action name: Linking2inone
    3. Made it a conditional action.
    4. In "IF" attempted to use both any and all conditions are true
    5. Also in "IF" PF82 contains PF8
    6. Actions Jump to Slide 11
    7. updated action successfully.
    Then I closed advanced actions. I tried making the PF8 TEB have "no action" when correct and tested it... didn't work... then I made PF8 TEB have Jump to slide 11 when correct, cut and pasted it to another slide because I thought that PF8 TEB as a seperate TEB in the same slide was messing with the Advanced Action I'm trying to perform. Therefore, since PF8 was just in another slide, PF8 wouldn't be deleted still having the same action value in advanced actions having PF82 contain the action of PF8; but this failed as well...

  • How can I get a click box to interact with a text entry box on the same page?

    I'm creating a tutorial on using a specific system and trying to recreate what the end user would actual do in the system.  On one slide, the end user must enter text into a field, then press a button (click box) to advance to the next slide.  I want to be able to have the click box validate if the text entry is correct before advancing to the next slide.  Is there a way to get the click box to validate the text entry?  Not sure how to get the two objects to "talk" to each other rather than function independently.
    Literally, I want the end user to enter the data in the text entry box, then click on the Get button.  I need the Get button (click box) to both validate that the data entered in the text entry box is correct and, if it is, advance to the next slide.  If the data is incorrect, I need the Get button (click box) to show the failure caption and have the end user re-enter the data correctly.
    How do I get the objects to work together?

    Hi there
    You need to delete the Click Box. Yes, you heard me. Delete the puppy.
    I  know it sounds weird. But bear with me. After you delete it, double-click the Text Entry Box. Then click the Options tab. See that option called Show Button? Click it and click OK to dismiss the TEB properties.
    Now you have the button you want. If you don't want a button, double-click it and set it as transparent. Remove the text. Position as desired where the Click Box was before.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Text entry box question

    Hey all, I am currently working on a project and have run
    into a snag and cant seem to find the answer, or even if what i
    need can be done.
    Question 1: how do I advance a slide with the correct entry
    of a text field without a button or keypress?
    Question 2: if this is not possible, how can i have a text
    entry box check for correct input using a custom button?
    Any help would be appreciated, Thanks.
    M. Anderson

    Hi M. Anderson
    The first question may be accomplished if (and only if) the
    last letter the user is supposed to type is unique among all the
    letters. For example, BOFFO would not work. O occurs twice. But
    LIFE would work, because E is unique. You could then configure the
    letter E to be the shortcut for the Text Entry Box.
    For the button, it's pretty easy. Click the Options tab and
    look at your choices. Make sure the "Button" option contains a
    check mark. After you dismiss the dialog, you end up with a rather
    generic looking button. But once you enable the button, you may
    then double-click it to edit its properties. You could choose an
    image, or you could make it invisible and position the invisible
    button over another image you placed on the slide as a simple image
    object.
    Hopefully this helps some... Rick

  • Text Entry Box - On losing focus?

    Hello fellow Captivators.  I'm being thick-headed, I guess, but I'm trying to figure out how I might use the new feature of Text Entry Boxes on the Advanced tab:
    I tried the setting as in the graphic, then when I preview, I click in the text entry box to give it focus, then I tab out of it (focus shifted to the playbar), but nothing happens.
    Is this how it's supposed to work?  And I'd love some suggestions about how to use this new feature.
    Thanks very much.
    Mister C.

    Thanks for your insight, Rick.  It is as you say.  If I type a character in the TEB first, then the on focus lost action on the Advanced tab takes place.
    But it doesn't quite make sense to me.  I'm doing a little testing.  The more I test, the more confused I get!!!
    I configured a TEB with a Submit button.  On success, I set it to go to the next slide.  On the Advanced tab, I configured the on focus lost action to go to the previous slide.  Then I tried it ---
    If I type the correct text and click the Submit button, I'd expect the go to next slide action to take place.  Instead, since the focus was lost when I clicked the Submit button, it went to the previous slide.  If I type the incorrect text and click the Submit button, I'd expect to get incorrect feedback.  Instead, again, since the focus was lost when I clicked the Submit button, it went to the previous slide.  If I type correct text and use my shortcut key of Enter, the first Enter does nothing, then a second Enter executes the on success action and goes to the next slide.  But, if I type incorrect text and use my shortcut key of Enter, it shows incorrect feedback --- I assume because focus is not lost just by pressing Enter.  But --- this doesn't make sense either, because the help file says "On Focus Lost Select the action that should be performed when the user presses Enter or Tab, or moves the pointer away from the object."   If I configure the shortcut key to be Tab instead of Enter, regardless of whether I type correct or incorrect text, the on focus lost action happens and I go to the previous slide.
    So it looks like the Advanced tab on focus lost is taking precedence over the submit button validation process.  That is, except for the Enter key shortcut.
    Does this behavior match with your experience?   Or does it even make any sense?

  • Text Entry box stops on "S"

    I have something happening in a SIMULATION that is driving me crazy.
    I have a text entry box that I want the user to type in something to the effect of:
    [email protected]
    But... as soon as they type the "S", the text entry box stops accepting keystrokes.  To confound the issue, I can type in virtually ANYTHING else into the text entry box as long as I don't type in the "S", and the text entry box accepts it.
    Why?

    Hi Lilybiri, here is the advanced action that is triggered when a hotspot (click1) on the main slide is clicked. The second line to hide the text_entry_fields group is what I've added to solve the problem but I'd be happoer if this particular line wasn't necessary.
    Here is the timeline:
    Once the rugbyPop is closed by clicking Button_153 this advanced action is triggered:

  • Do Text Entry Boxes have to be done in a particular order

    I am trying to use multiple text entry boxes on one slide. Each TEB has a conditional action tied to it.
    The CA is designed so that user could do the TEBs in any order, and when the last one is completed, the CA moves to the next slide.
    This approach works for click boxes, but does not work consistently for TEBs.

    I am using Auto submit; the lose focus action is the same conditional action I use for the TEB, Enter is the shortcut key

  • Using Value in a Text Entry Box for Calculation in a Variable

    I have a project where I ask the user to fill in their name in one entry box and their two-digit age in another text entry box.  Later in the project, I want to ask them to think back to when they were 6 years old and how they would describe themselves at that time.  (the project is on self-awareness).  To make this as personable as possible, I thought it would be neat to say. "(Name Variable), think back to about (Years Since 6)years ago, when you were just about 6 years old".  I am having trouble getting the "Years Since 6" variable to work, and would like to know if it is possible.
    I have set up the text entry box variable as "v_age"
    I have set up a variable as "v_age6" with a value of "6"
    I have set up the result variable as "v_result_age6"
    I have set up a standard action with a mathematical expression that reads "v_result_age6 = v_age - v_age6"
    The variable output does not show on the stage in project preview mode, and I think it's because there is only one variable with an assigned value in the equation.  The "v_age" variable does not have an assigned value because that is a text entry box.
    Is it possible to use a value typed in from a user as a variable to do math with?
    Thanks.

    Welcome to the forum,
    Each TEB has an associated variable, its generic name is the same as the TEB. But you'd better link your variable with the more significant name to the TEB. Have a look at this real old blog post, still valid (although maybe the screenshots are bit out of date):
    http://blog.lilybiri.com/timesaving-tip-create-associated-variable-for
    BTW: you didn't need to create an extra variable for the number 6. This action would have done as well:
        Expression  v_resultage6 = v_age - 6
    How do you trigger the action, by which event?
    http://blog.lilybiri.com/events-and-advanced-actions
    Lilybiri

  • Problem with Text Entry BoX in Adobe Captivate 6

    I could not enter correct responses for my text entry box. Plus, the "success" and " failure" options were greyed out for me under properties>options.
    I notice my icon is IAB for text entry box, whereas some users have a placeholder sign for the icon.

    This is very strange, even when not validated you should have at least the Success option in the Properties panel. If it is not validated you are left only with the Success event, that can fire an action when the Submit button for the TEB is pressed (or the shortcut key is used). You cannot be working on a master slide, because it is not possible to insert a TEB there. Please, post a screenshot of the stage with the properties panel, actions accordion.
    http://blog.lilybiri.com/events-and-advanced-actions
    Lilybiri

  • An Array of Text Entry Boxes

    I am trying to make a servlet that has an array of text entry boxes for entering numbers. By changing numboxes, I would be able to vary the number of boxes. The problem is that it is only finding the first occurrence of the text entry boxes.
    If the idea of an array of text entry boxes is totally stupid, feel free to say that as well, as well as any suggestions as to a better basic approach. Thanks!
    To run my servlet:
    http://www.mycgiserver.com/servlet/waynefrank.ManyAverageServlet1
    My servlet:
    package waynefrank;               
    //** Computes an average of many numbers input by the user
    //** ManyAverageServlet1.java
    import javax.servlet.http.HttpServlet;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.*;
    import java.util.*;
    import javax.swing.*;
    //imported for buttons, labels, and images
    import java.awt.*;
    //imported for layout manager
    public class ManyAverageServlet1 extends HttpServlet
    // numboxes is the number of number-entry boxes we have.
    double numboxes = 04;
    String ctrCharValue = null;
    public void service(HttpServletRequest req, HttpServletResponse res)          
    throws IOException {
    res.setContentType("text/html");
         PrintWriter out = res.getWriter();
              Enumeration flds = req.getParameterNames();
              if (!flds.hasMoreElements()) {
         //*** No form submitted -- create one:
    out.print("<form method=\"POST\"" + " action=\"http://www.mycgiserver.com/servlet/waynefrank.ManyAverageServlet1\">");
    out.print("<font face=arial>");
    out.print("** Please enter numbers that you want to average. **");
    out.print("<br><br>");
    // xxxxxxx put processing to form text boxes
    for( int ctr = 1; ctr <= numboxes; ctr++) {
    out.print("<td><input name=numbox[ctr] size=17></td>");
    out.print(" "+ctr);
    out.print("<br>");
    // put out buttons
    out.print("<input type=submit name=sobmit value=Compute><br><br>");
    out.print("<input type=reset name=sobmit value=Clear><br><br>");
    out.print("Press the Compute button to get the average");
    out.print("</font>");
    // end of putting out form      
    out.println("</form></html>");
    //          Process events from page
              } else {
    double average;
    String[] NumEntered = {null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,};
    double[] numin = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,};
    String ACTION;
    ACTION = req.getParameter( "sobmit" );
    if( ACTION.equals( "Compute" ) )
    // xxxxxxx text box processing
    try {
    average = 0;
    out.print("<font face=arial>");
    for( int ctr = 1; ctr <= numboxes; ctr++) {
    // ??????? it is getting just the first one
    NumEntered[ctr] = req.getParameter("numbox[ctr]");
    numin[ctr] = Double.parseDouble((String) NumEntered[ctr]);
    out.print("Number "+ctr+"= "+NumEntered[ctr]);
    out.print("<br>");
    average = average + numin[ctr];
    average = average / numboxes;
    out.print("<br>");
    out.print("Average= "+average);
    out.print("</font>");
    } catch(NumberFormatException e) {
    out.print("<img src=http://www.mycgiserver.com/~waynefrank/katie.jpg>");
    out.print("<font face=arial>");
    out.print("<br><br>Even Katie knows you have to enter numbers !! ");
    out.print("Use the browser back button and try again. :)");
    out.print("</font>");
    }      out.close();
         } } ///:~ end of servlet

    I did what you suggested (I think) and it still comes up using just the first occurrence.
    out.print("<td><input name= '+ numbox[ctr] +' size=17></td>");
    NumEntered[ctr] = req.getParameter("+ numbox[ctr] +");
    The whole servlet:
    package waynefrank;               
    //**  Computes an average of many numbers input by the user
    //**  ManyAverageServlet1.java
    import javax.servlet.http.HttpServlet;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.*;
    import java.util.*;    
    import javax.swing.*;
    //imported for buttons, labels, and images
    import java.awt.*;
    //imported for layout manager
    public class ManyAverageServlet1 extends HttpServlet
    //  numboxes is the number of number-entry boxes we have.
    double numboxes = 04;
    String ctrCharValue = null;
    public void service(HttpServletRequest req, HttpServletResponse res)          
    throws IOException {
    res.setContentType("text/html");
         PrintWriter out = res.getWriter();
              Enumeration flds = req.getParameterNames();
         if (!flds.hasMoreElements()) {
         //*** No form submitted -- create one:
    out.print("<form method=\"POST\"" + " action=\"http://www.mycgiserver.com/servlet/waynefrank.ManyAverageServlet1\">");
    out.print("<font face=arial>");
    out.print("** Please enter numbers that you want to average.  **");
    out.print("<br><br>");
    // xxxxxxx  put processing to form text boxes
    for( int ctr = 1; ctr <= numboxes; ctr++)  {
    out.print("<td><input name= '+ numbox[ctr] +'  size=17></td>");
    out.print("<br>");
    //   put out buttons
    out.print("<input type=submit name=sobmit value=Compute><br><br>");
    out.print("<input type=reset name=sobmit value=Clear><br><br>");
    out.print("Press the Compute button to get the average");
    out.print("</font>");
    // end of putting out form                           
    out.println("</form></html>");
    //            Process events from page
              } else {
      double average;
    String[] NumEntered = {null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,};
    double[] numin = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,};
             String ACTION;
             ACTION = req.getParameter( "sobmit" );
    if( ACTION.equals( "Compute" ) )
    // xxxxxxx  text box processing
    try {
    average = 0;
    out.print("<font face=arial>");
    for( int ctr = 1; ctr <= numboxes; ctr++)  {
      NumEntered[ctr] = req.getParameter("+ numbox[ctr] +");
       numin[ctr] = Double.parseDouble((String) NumEntered[ctr]);
    out.print("Number "+ctr+"= "+NumEntered[ctr]);
    out.print("<br>");
    average = average + numin[ctr];
    average = average / numboxes;
    out.print("<br>");
    out.print("Average= "+average);
    out.print("</font>");
    }  catch(NumberFormatException e) {
         out.print("<img src=http://www.mycgiserver.com/~waynefrank/katie.jpg>");
    out.print("<font face=arial>");
    out.print("<br><br>Even Katie knows you have to enter numbers !!  ");
    out.print("Use the browser back button and try again.  :)");
    out.print("</font>");
    }       out.close();
         } }   ///:~  end of servlet

Maybe you are looking for

  • Dunning letter problem

    I need to show in the Dunning letter the assigned standard bank for incoming payment of the business patner. How to do ? Giuseppe

  • Is it possible to install Adobe Web Premium CS5.5 on a Windows 8?

    I have purchased Adobe Web Premium CS5.5 as a Student version. Currently I run it on a Windows 7 PC. I want to buy a new notebook and wonder whether it is possible to install my Adobe Web Premium CS 5.5 on a Windows 8 PC? Alternatively, is it possibl

  • Thin white line between line art and live paint fill?

    I am using live paint to paint cartoon character illustrations.  The artwork is brought into Illustrator CS3 and live traced.  Then I convert it to a live paint group and use the paint bucket to fill.  Everything looks fine no matter how much I zoom

  • ED pricing key is mandatory field in purchase order

    Hi, where can you specify that the IS-OIL field Excise Duty pricing key (OIINEX) should not be a mandatory field? In our production system and test system this is the case, but in our development system where we have turned on new G/L this field is n

  • Narrow audio strip.

    When I transfer audio tracks to FCP 10.1.3, I get a narrow band without visible wave forms or volume level adjustment ranges. How do I  get them back?  My Mac has 16GB of memory with a 3.4 GHz intel Corei5 processor using 10.9.5 version