MyServlet - Easy Beginners Question

I am using Tomcat 5.5 on WinXP with JDK 1.6 and new to servlet programming.
I wrote a servlet. The servlet presents the drop down list wen i run it. Then I choose on the first drop down list a value. This determines which drop down list appears second and with which values to select from.
In the servlet code i have an html form that the servlet outputs with a submit button at the bottom. My problem is that I must click this submit button everytime when selecting from a dropdown list so that the servlet can process my selection and output he next dropdown list with the correct values.
How do I make use of the html form onselect and onchange actions on an input select tag so that the sevlet refresh the page with the next drop down and its available option values? The number of drop down lists produced by the servlet vary depending on the values choosen. Is there a sample of this somewhere?

How do I make use of the html form onselect and onchange actions on an input select tag so that the sevlet refresh the page with the next drop down and its available option values? You can use JavaScript or AJAX (if you need the server to do any processing)
The number of drop down lists produced by the servlet vary depending on the values choosen. Is there a sample of this somewhere?There's probably several. Did you try Google?

Similar Messages

  • Havent a clue! Please help! Easy ABAP Question!

    Helly Gurus
    I am loading from a dso to a cube and doing a lookup on a second dso.
    eg
    'Name' is in the DSO1
    I lookup 'Address' from DSO2
    Then load to the cube.
    The problem is there may be more than one address so although I have coded the lookup to
    find all addresses, I do know how to get these into my results.
    Only the first address it finds is there.
    loop at DATA_PACKAGE.
        select * from DSO1 where
        NAME = DATA_PACKAGE-NAME.
        if sy-subrc = 0.
          move-corresponding DSO2 to itab1. collect itab1.
        endif.
        endselect.
      endloop.
    What do I need to do to get all of the results?
    I am in 3.5 so do not have the use of an End Routine.
    Thanks
    Tom Tom

    you need to do several treatments in fact you need to add records on the data_package (by the way it is not an easy ABAP question as you mentioned !)
    So
    Treatment 1: select all the records from ods2 table of adresses outside the loop
        select names adresses
        from ods2
        into table g_itab_ods2
          for all entries in data_package
          where name eq data_package-name.
    Treatment 2: delete double records of the internal table.
        delete adjacent duplicates from g_itab_ods2 comparing names adresses.
    Treatment 3: loop over the data_package. Within this loop read the internal ods2 table and loop over it to assign the corresponding adresses. Then append the results to the temporary data_package_tmp and move all the records to the initial data_package.
    loop at data_package assigning <data_fields>.
       read table g_itab_ods2 into l_g_itab_ods2
          with key name = <data_fields>-name.
          if sy-subrc eq 0.
            loop at g_itab_ods2 assigning <adresses>
            where name                = <data_fields>-name.
              <data_fields>-adresses= <adresses>-adresses.
              append <data_fields> to lt_data_package_tmp.
            endloop.
          endif.
        endloop.
        data_package[] = lt_data_package_tmp[].
    free lt_data_package_tmp.
    this should do what you want to do. hope this could help you out.

  • Way too beginners question...

    Hi Gentlemen,
    I am just thinking of learning this technology,and have few very beginners questions to start my quest.
    1. Can I read any type of cards that have a chip on them?
    2. Do I need any particular reader/writer device or java can work with every type.
    3. Since I am beginner is there a tutorial that step by step walks you through how to run an example program or that teaches how to read or write from/to a card using any/ or a specific reader/writer device.
    4. I had hard time understanding the docs that come with the reference implementation docs.
    5. Is there a book you guys can recomend.I really appreciate it
    Thanks

    1. It's not so tricky. There are many cards with many OS types and derivatives on the market and the level of incompatibility is rather high. For the JavaCards - they are typically initialized with 3DES ECB keys that one have to know in order to retrieve context. So if you do not know this ....
    2. Many tools are depending on standard PC/SC IF provided with every win system. So if your reader was configured to work well without your JC IDE or whatever you use - the chance you will have no problems is big.
    3. Again, there are nice examples provided with Jcop tools ... although the article is also not bad. But it is much readings .... I always try to figure out what the code means ... and then do readings ...
    4. Yep, Java is like must ... but u can figure this out ... it is named JavaCard ... ain't no coffe ...
    5. Chen is one nice Lady and book is also nice. But Alchemist is Alchemist ...

  • Can't edit multiple tracks - plus 2 easy audio questions

    I have a sequence with 1 video track and 6 stereo audio tracks. I set an in and an out point. The area on the clips in the timeline between the two edit points highlights, I hit delete. Normally, the tracks between the points should disappear as the two segments come together and form one great edit.
    But all the tracks do not highlight and edit. The video track and stereo audio tracks 3+4 and 5+6 highlight and LIFT off. But audio tracks 1+2 do not highlight or edit. And the whole sequence doesn't close together where the edit should be.
    Only way I have been able to overcome this is to use the razor blade tool, cut each track individually. Highlight them all, and then hit delete.
    This didn't use to be the way. FCP used to edit through one track, 3 tracks or all tracks, no problem.
    Two audio questions. How do you stop the waveforms from drawing onto the clips in the timeline, in order to speed up FCP?
    How do you get the audio in captured clips to be a Stereo Pair, from the outset?
    Thanks to all you who help!

    Is it usual for FCP to bog down on a 4 minute piece when audio wave forms are turned on??
    <
    No. Should run fine. You get up into 6-12 audio tracks, FCP gets all moody and pouty.
    But it depends on your system's capabilities and how well you have chosen your sequence settings.
    Audio waveforms n FCP are a cruel joke compared to many other NLEs. Often easier to leave them off in the timeline, use the waveform in the Viewer and set markers for hooks in the audio tracks.
    bogiesan

  • Beginners Question - Removing Complex Backgrounds

    Hi all,
    I am new to Photoshop and have just bought Elements 12, i apologise if this question is in the wrong place.
    The company i work for often required images of our products to have the background removed and replaced with plain white, so the product is effectively floating in white.
    I have followed various Youtube videos on how to remove backgrounds, but all of them seem to have chosen the most basic of images to edit.
    The photos of our products (outdoor furniture) are in real environments such as highstreets and pavements etc. When i use the quick select tool or the lasso tool i just can't seem to get a nice straight edge around the actual product. The tools seem to be touch and go and one section seems to be okay where another seems to be out of place and 'zig-zaggy'. I often either cut into the product so it looks like someone has taken a bite out of it or i go too far out of the edge of the product, it just looks like a wave up the side of the product, i just can't seem to get a nice smooth finish all round the product. Sometimes if there are lamposts and other items in the way it wants to go around them rather than chop it off the image.
    Absolutely anybody who can point me in the right direction would be very much appreciated.
    Kind Regards,
    Mark

    No pen tool in Elements. It would help if you posted an image but some things to consider:
    Sometimes it's easier to select the area you want to get rid of and then invert the selection.
    No one selection tool is likely to be adequate for a complex image so expect to change tools regularly.
    Use tools like magic wand, quick selection or lasso to select the bulk of the selection.
    Use the selection brush to add/subtract edge areas. The [ and ] keys are your friend here as they rapidly decrease / increase the brush size.
    Use the Select menu options for fine adjustments - refine edge, feather, grow / contract.
    There is the hidden 'Quick Mask' mode accessible, when (a) you have a selection, and (b) create a layer mask (background must not be locked, by pressing the \ key. You can then paint in and out your selection.
    While getting your selection made, save it regularly (Select> Save Selection) to avoid losing work if you inadvertently deselect!
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Beginners question: how do i presentation of photos ?

    client wants a series of photos appearing one after the other - with fade transition - easy question 
    Thanks

    Search Google for "AS# slideshow tutorial" where you substitute 2 or 3 for the # depending on which version of actionscript you plan to use.  IF you're not experienced with using actionscript, then you may want to just search using Flash instead of AS#

  • Easy swing question for Java friends

    Hi could somebody test this short application and tell me why the "DRAW LINE" button doesnt draw a line as I expected?
    thank you very much!
    Circuitos.java:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.awt.geom.*;
    public class Circuitos extends JApplet {
         protected JButton btnRect;
         protected Terreno terreno;
         private boolean inAnApplet = true;
         //Hack to avoid ugly message about system event access check.
         public Circuitos() {
              this(true);
         public Circuitos(boolean inAnApplet) {
            this.inAnApplet = inAnApplet;
              if (inAnApplet) {
                   getRootPane().putClientProperty("defeatSystemEventQueueCheck",Boolean.TRUE);
         public void init() {
              setContentPane(makeContentPane());
         public Container makeContentPane() {
              btnRect = new JButton("DRAW LINE");
          btnRect.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                terreno.pintarTramo();
              terreno = new Terreno();
              JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              panel.add("North",btnRect);
              panel.add("Center",terreno);
              return panel;
         public static void main(String[] args) {
            JFrame frame = new JFrame("Dise�o de Circuitos");
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              Circuitos applet = new Circuitos(false);
              frame.setContentPane(applet.makeContentPane());
              frame.pack();
              frame.setVisible(true);
    }Terreno.java:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.geom.*;
    public class Terreno extends JPanel {
         Graphics2D g2;
         public Terreno() {
              setBackground(Color.red);
              setPreferredSize(new Dimension(500,500));
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
          g2 = (Graphics2D) g;
          g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);    
         public void pintarTramo () {     
              Point2D.Double start   = new Point2D.Double(250,250);
              Point2D.Double end     = new Point2D.Double(250,285);
              g2.draw(new Line2D.Double(start,end));            
    }

    I don't think the date I became a member has anything to do with it. Yes, I signed up a year ago to ask a question or two when I didn't know anything. It wasn't until recently have I started to use this forum again, only to try and help people as well as ask my questions. It took me a year to get to this point to where I can actually answer questions instead of just asking. So don't be silly and judge a person based on their profile.
    Secondly, I agree with you, the search utility is great. I use it all the time and usually I'll find my answers, but if I don't is it such a pain in the butt for you to see the same problem posted again?? I know how much you want people to use the resources available before wasting forum space with duplicate questions, but it's not going to happen. Some people are not as patient and you being a butt about it won't stop it.
    My point in general is that there are nice ways to help people and even rude ways, and your comments at times come across rude to me, even condescending. You have a lot of knowledge, therefore certain things seem trivial to you... but try to understand where some of the new people are coming from. The Swing tutorial is extremely helpful but if you don't understand the concept of programming or java that well... then it can be overwhelming and you don't know where to start. It's a huge tutorial and when people are stuck they just want an answer to their one question. Most figure it's easier to ask someone who already knows instead of reading an entire tutorial to get their answer.
    I've learned by both methods, by taking the time to research it myself and by asking a lot of questions. I have the time. Some don't. Please realize that not everyone is like you and they will continue to ask whether you like it or not. You have a choice, either help them or not.

  • Easy Slide Question for Website

    Easy question for u guys.
    What is the easiest way to create slider header such as these websites ->
    http://www.pclsolutions.com/
    http://www.alivre.com/
    What is the easies way of doing it???
    Dreamweaver has so many options, and I have very limited time so I was wondering if anybody could give me the easy answer here so I can proceed further.
    Thank you in advance guys.

    Log-in to the Adobe Widget Exchange and grab Spry Content Slideshow
    http://labs.adobe.com/technologies/widgetbrowser/
    WOW slider
    http://wowslider.com/
    NIVO slider
    http://nivo.dev7studios.com/
    just to name a few...
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Easy runtime question

    So I bind a variable in an ActionScript and store a value at
    compile time. Now I want to update that var at runtime, say
    calculate a meal.

    I had the following Java versions listed on one computer and one of them would not uninstall, so I am wondering how much of a problem that might be for the end user.
    Java 2 Runtime Environment, SE v1.4.2_03
    Java(TM) 6 Update 3
    J2SE Runtime Environment 5.0 Update 6
    Java 2 Runtime Environment Standard Edition v1.3.1_15 (this one is "stuck" within "Add/Remove Programs" listing)
    After removing all of the above Programs and rebooting the computer I installed "jre-6u7-windows-i586-p.exe" which translates as "Java(TM) 6 Update 7" (137.00 MB) for us simple humans to read.
    Suggestions:
    It would be great if the naming conventions of these programs made a little more sense or if the Downloads area of the Java web site had a Frequently Asked Question (FAQ) prominently featured at the top of the page explaining the history of these versions. I have been supporting the installation of these Plug-ins or Programs for several years and feel it has not gotten any easier with regards to names.
    It might even be nice to see a Timeline of versions showing:
    Java(TM) 6 Update 3, Released January 2008
    Java(TM) 6 Update 7, Released October 2008
    This would allow people using specific pieces of older software, as mentioned above, to have some idea of whether the version of Java they find on their machine is the appropriate version for some in-house application that was written and released in December 2007 (for example).
    If a web-based office application I use was written in February of 2008 then I might feel confident "Java(TM) 6 Update 3" is the right version for me!
    If this is confusing for me as an I.T. support professional, I can only imagine how the End Users view these cryptic file names!
    ~
    Edited by: Klaatu01 on Mar 9, 2009 9:49 AM
    Edited by: Klaatu01 on Mar 9, 2009 9:53 AM

  • Beginners question - making sense of form, item, pane & variable (with relation to where data is stored in the SQL database)

    Hi Everyone,
    I am new to writing reports (SQL code) for SAP, however I am aware that inside SAP Business One it is necessary to enable System Information (from the View menu) in order to see which tables (and related table attributes / column names) are related to various aspects of the various SAP 'modules' (e.g.: A/R Invoice).
    Using an A/R Invoice as an example I can see at the row (or line) level that an item with the description of 'Opening Balance Transfer' is contained in the table INV1, within the attribute (or column) called Dscription.
    However not every 'on screen object' shows a table / attribute. For example in the same A/R Invoice if I hover my mouse over the Balance Due field all I see is Form related information.
    My question is 'How do I make sense of the Form, Item, Pane, Variable information?', with relation to where data is stored within the SQL database?
    Links to online tutorials explaining how this feature of SAP Business One will be much appreciated, along with any personal advice regarding working with this information.
    Any (and all) help will be greatly appreciated.
    Kind Regards,
    David

    Hi David,
    1.Here I am explaining use of each field except pane
    a. Form ---> Used in additional authorization creator
    b. Item, column--->Useful in creating Formatted search queries (FMS)
    c. Variable --> Some of the field values based on another values. ie. indirect values.
    d. INV1---Table name
    2. How to get variable?
    As per your second attachment, to get balance due ,you need doc total field from OINV table. For example,
    SELECT T0.[DocNum], T0.[DocTotal] FROM OINV T0 WHERE T0.[DocNum] = 612004797
    Thanks & Regards,
    Nagarajan

  • Exporting a table to an EPUB (a beginners question)

    Epub beginner.
    I trying to teach my self how to create an EPUB, I have watched many tutorials
    from Adobe and beyond all very useful and educational.
    I am using Indesign CS5.5
    Question 1:
    What is the best way to export a ‘table’ to an EPUB doc’ that has dingbats/bullets/ticks in columns,
    when I create a EPUB the bullets/dingbats/ticks change to a font. Would it be better to make a ‘jpeg’
    of the ‘table’ then import back into indesign via the Articles Panel?
    Question 2:
    As a side issue, Is there a way by just using the bullets command to have a single bullet with no text
    so to use in a table instead of using Wingdings etc?
    Thanks in advance for your help.

    @Derek – just some questions on this:
    How about converting the table to a row of text frames grouped together and anchored to the main story?
    Just a "wild" idea, I know. Would that better the situation? I mean not to be forced to render the table to pixels? That could be an ugly thing.
    Or would be grouped text frames also be rendered to pixels by InDesign CS5.5's export to EPUB?
    And about the bulleted paragraphs:
    What, if we convert the bullets to live text?
    Ok, we'll likely get a font rendering issue with a font that cannot be included or if included cannot be rendered on the device. Only the substitute of that font, whatever that subsituted font will be.
    Or forget about the bullets formatted with text attributes and use vector shapes or anchored images in PNG format (PNG with transparency maybe)?
    Uwe

  • "Easy Setup" Question:   best setting?

    Howdy. I'm creating video with my HD Kodak Zi6 and the output looks a bit squished. (I'm fatter than usual.)
    I've had this trouble before and suspect that I have the wrong setting checked in Easy Set Up.
    What do you folks recommend?
    Thanks.
    Brad in Denver

    Hey Tom, I've been reading a lot of your posts on this forum advising not to get the Zi6 if you want to edit in FCE, but I bought the camera before I found them. I was meaning to ask why this is a bad camera to use, because I've been able to open and edit footage in FCE as well. By going to File > import. I used the easy setup:
    Format - HD, Rate - 29.97, Use -HDV-Apple Intermediate Codec 720p30
    Here is a link to a few clips thrown together with some transitions. I don't really know what I'm doing, so, it's terrible. (You've been warned)
    http://www.vimeo.com/3956558
    I'm really thinking about returning this camera though if it is terrible to pair with FCE, because the only reason I got it was to start learning FCE. I only have 2 days left to return it though. So I need to figure it out real quick. Do you think I should pay the restocking fee and get a cheap used DV camera off amazon/ebay etc?
    Appreciate all your help and posts.

  • Beginners Questions about Multiple JPanels in JFrame and event handling

    I am a newbie with SWING, and even a newerbie in Event Handling. So here goes.
    I am writing a maze program. I am placing a maze JPanel (MazePanel) at the center of a JFrame, and a JPanel of buttons (ButtonPanel) on the SOUTH pane. I want the buttons to be able to re-randomize the maze, solve the maze, and also ouput statistics (for percolation theory purposes). I have the backbone all done already, I am just creating the GUI now. I am just figuring out EventHandlers and such through the tutorials, but I have a question. I am adding an ActionListener to the buttons which are on the ButtonPanel which are on JFrame (SOUTH) Panel. But who do I make the ActionListener--Basically the one doing the work when the button is pressed. Do I make the JFrame the ActionListener or the MazePanel the ActionListener. I need something which has access to the maze data (the backbone), and which can call the Maze.randomize() function. I'm trying to make a good design and not just slop too.
    Also I was wondering if I do this
    JButton.addActionListener(MazePanel), and lets say public MazePanel implments ActionListenerdoesn't adding this whole big object to another object (namely the button actionlistener) seem really inefficient? And how does something that is nested in a JPanel on JFrame x get information from something nested in another JPanel on a JFrame x.
    Basically how is the Buttons going to talk to the maze when the maze is so far away?

    I'm not an expert, but here's what I'd do....
    You already have your business logic (the Maze classes), you said. I'm assuming you have some kind of public interface to this business logic. I would create a new class like "MazeGui" that extends JFrame, and then create the GUI using this class. Add buttons and panels as needed to get it to look the way you want. Then for each button that does a specific thing, add an anonymous ActionListener class to it and put whatever code you need inside the ActionListener that accesses the business logic classes and does what it needs to.
    This is the idea, though my code is totally unchecked and won't compile:
    import deadseasquirrels.mazestuff.*;
    public class MazeGui extends JFrame {
      JPanel buttonPanel = new JPanel();
      JPanel mazePanel = new JPanel();
      JButton randomizeB = new JButton();
      JButton solveB = new JButton();
      JButton statsB = new JButton();
      // create instanc(es) of your Maze business logic class(es)
      myMaze = new MazeClass();
      // add the components to the MazeGui content pane
      Component cp = getContentPane();
      cp.add(); // this doesn't do anything, but in your code you'd add
                // all of your components to the MazeGui's contentpane
      randomizeB.addActionListener(new ActionListener {
        void actionPerformed() {
          Maze newMaze = myMaze.getRandomMazeLayout();
          mazePanel.setContents(newMaze); // this is not a real method!
                                          // it's just to give you the idea
                                          // of how to manipulate the JPanel
                                          // representing your Maze diagram,
                                          // you will probably be changing a
                                          // subcomponent of the JPanel
      solveB.addActionListener(new ActionListener {
        void actionPerformed() {
          Solution mySolution = myMaze.getSolution();
          mazePanel.setContents(mySolution); // again, this is not a real
                                             // method but it shows you how
                                             // the ActionListener can
                                             // access your GUI
      // repeat with any other buttons you need
      public static void main(String[] args) {
        MazeGui mg = new MazeGui();
        mg.setVisible(true);
        // etc...
    }

  • Easy DMS Questions

    1. When Creating a DIR thru EDMS,  must it be assigned a number using a defined number range?, Can it not be an External and determined by user?
    2. Folder Numbers (Same ? as above)

    Hi John,
    generally it is recommended that documents in EasyDMS allow the usage of internal numbers. That means for the document type used in EasyDMS in internal number range should be maintained in transaction DC10.
    The usage of external number could be useful for folders and is required for the 2 standard EasyDMS folders:
    private: <userID>
    public: EDIPUBLICROOTFOLDER
    Here the number is assigned externally. For other documents and folders you can also use external numbering during the creation process if you navigate to the tab "Technical Details". Here you can enter a document number as well but this is not that easy when using Drag&Drop function for example.
    Best regards,
    Christoph

  • Easy Reports Questions

    Hi all,
    Platform Windows NT/2000, Reports 2.5
    I have to print the report to a file. The thing is that my report is very wide. It contains a lot of fields, and I want them all in one line, because ultimately it will be read in excel.
    Now i set the MODE to "CHARACTER", and it prints to a file, fine. But when I increase the width of the page, it allows me to set the fields where I want them to, and when I run the report it shows fine in the screen but when printed to the file, it wraps into the other line.
    Please guide my what to do.
    Regards
    naveen

    Hi,
    Actually the question on this topic is posted before
    2 years then also i am giving the solutions for some
    other members having the same problem.
    You have to search for the file DFLT.PRT and
    open this file in the Text Editor (Notepad).
    Change the settings of the width from 80 to the
    width you actually needed in the report output
    (Say 350). Save the file.
    And run the report and make the text file.
    You will see the problem solved.
    Regards
    Abhijit

Maybe you are looking for