Pass Vectors To HTML or SCript and Another Problem....HELP...PLEASE....

Hi,
I am creating a Servlet project.
I want to create screen#2 depending on what values are inputed in Screen#1.
Basically i want to Dynamically change the "Document TYpe" depending on First or last name....
The main thing is passing either a Vector or Array from screen#1 to generate "Document Type" in Screen#2.
How can i pass a Vector or array to either HTML or JavaScript...
Screen2 uses frames sets is there a better way to do this so I don't have to call two different files from one frame set file...
Any Help will be greatly Appreciated....
Thanks in advance...
Screen#1:
|---------------------|
|Firstname:___________|
|           |
|Lastname:____________|
|           |
| ----------- |
| | submit | |
| ----------- |
|           |
|---------------------|
Screen#2:
|-----------------------|--------|
|Frame1           |Frame2 |
|                |      |
|                |      |
| Image           |Document|
|                |Type      |
|                |      |
|                |     |
|-----------------------|--------|

Dynamically create a JavaScript array that can be accessed from either HTML page.
  <Script language="JavaScript">
  var recieveArray = [
   <% Vector v = (Vector) request.getAttribute("passedVector");
       for (int i = 0; i < v.size(); i++) { %>
            <%= (i != 0) ? "," : "" %>
            "<%= (String)v.elementAt(i) %>"
       <% } %>
    ];Just an illustration and not guaranteed to compile or run.

Similar Messages

  • Iphone and email problems - help please!

    I have a few questions about email on the iphone I wondered if someone could help me with?
    1. If I check my email at home on wifi everything is fine, I can recieve and send emails no problem. If I am outside and using GPRS ( Not found an EDGE signal yet ) I can recieve emails but when I try and send one it tells me it cannot find the outgoing server after trying to send the email for a few minutes.
    2. Sometimes I open my email and its fine but when I go back and try and open an email I have previously read it says "This message has not been dowloaded from the server". How do I get the email to stay there?
    Thanks guys

    See my reply on this post.
    http://discussions.apple.com/message.jspa?messageID=5842248#5842248
    In sort, even once you view it, it will not remain in the Inbox for ever...it will attempt to redownload if accessed later.

  • Does Acrobat X Standard have Post Script and Press Quality option, please?

    Does Acrobat X Standard have Post Script and Press Quality option, please? Can anybody help please?

    The current version is Acrobat XI (not for XP or Vista). Adobe no longer sell Acrobat 9 or 10. So you would be buying in the "aftermarket". Which is fine, except that there are many fraudsters in there, doing things from selling versions that were upgraded (making you in violation of the license) to selling outright fakes, which often don't work at all, or stop when Adobe later blocks fraudulent serial numbers, or in the worst case also sneak malware onto the computer. So take great care selecting a seller. Beware of "too good to be true" prices, but the fraudsters are now wise to this too and may sell at a high price to seem legitimate.

  • £37 has disappeared from my iTunes account. But no apps or music or tv/movies have been bought. Has it been hacked and can you help please?

    £37 has disappeared from my iTunes account. But no apps or music or tv/movies have been bought. Has it been hacked and can you help please?

    Report it to Apple:
    How to report an issue with your iTunes Store purchase - http://support.apple.com/kb/HT1933 - working through iTunes application and iTunes Store interface.
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html
    Change the password on your account.

  • All of my playlists made on my Ipod touch 3rd gen keep disappearing when I sync it to itunes. Drivng me crazy. All software up to date on both itunes and Ipod. Help please.

    All of my playlists made on my Ipod touch 3rd gen keep disappearing when I sync it to itunes. Drivng me crazy. All software up to date on both itunes and Ipod. Help please.
    I tend to make my playlists right on my ipod. This did not happen for the last 2 years. Just started recently. Did get a new computer recently.

    That is because you got a new computer. You can only sync all media from one syncing computer. You can sync from any computer to iPod using the manual method but that does not sync from iPod to computer.
    To make this your syncing computer:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • HT1923 Hi, I have a iPod touch 4th generation and I does not show in iTunes. It comes up as charging when it is plugged into the computer but just not in iTunes. I have everything up to date and have restarted both computer and iPod. Help please?

    Hi, I have a iPod touch 4th generation. It comes up as charging when it is plugged into the computer but it does not show in iTunes. I have everything up to date and have restarted both computer and iPod. Help please?

    Try here  >   - http://support.apple.com/kb/TS1369.

  • My volume control is disabled after plugging in and unplugging headphones, Help Please...

    Dear all, this is my issue, I have since the beginning (October 2014) with my iPhone 5S, 64GB: My volume control is disabled after plugging in and unplugging headphones, Help Please...

    This should not happen if you have the output volume in System Prefs/Sound set low. Have you tried setting the ITunes player volume at top left a bit lower?

  • How to pass the result of one script to another?

    Hi
    Is there any possibility to pass info from one script to another? I run some scripts at night and they have to use the results I get during the day...
    Thank you in advance for any help
    Vera

    There's a couple of ways of doing this.
    It sounds like the second script isn't being called directly from the first one, so you can't pass the data directly, so that leaves you with a couple of options.
    One is to have the first script write the data to a file, then have the second script read that file.
    The other would be to store the data as a property in the first script - properties are saved between executions - then have the second script read the first script's property when it starts up.
    For the first option, just have the script write the data to a file:
    set myData to "here's the data to save"
    set myFile to (open for access file (path to home folder as text & "data.file") with write permission
    write myData to myFile starting at 0
    close access myFile
    Now the second script can read the file:
    set otherScriptsData to read file (path to home folder as text & "data.file")
    For the second option, just store the data as a property:
    property myData:""
    set myData to "here's the data to save"
    Now loading the data in the second script goes like:
    set otherScript to load script file "path:to:other.scpt"
    set otherScriptsData to otherScript's myData
    Here you can see the second script loading the script then reading its myData property.

  • WLC and windows radius issue and another problem

    Hi everyone.
    We have a problem with a costumer wireless infraestructure which has a WLC using a Windows 2003 radius server. for authentication.
    The users can't connet to the SSID from monday. Anything haven't been changed and the configuration is correct.
    I think its a client problem because the clients who use Linux can connect.
    Any idea?
    I have attached a debug dot1x events when a windows client try to connect.
    We have another problem with another SSID using local wpa2/pkm/ascii authentication..
    This SSID is used for smartphones. The clientes who use Android can connet, the clients who use IPhone can't.
    Is this a cospiracy? xD
    Thank you for avance.
    Best regards

    for the debug you attached, I see the client send an EAPOL start message, after it gets the Identity request.  It seems to move beyond that, and then
    Jul 30 15:36:47.396: 18:3d:a2:65:bd:54 Processing Access-Reject for mobile 18:3d:a2:65:bd:54
    I'd take a look at the IAS logs to see why this particular client was rejected.
    HTH,
    Steve
    Please remember to rate useful posts, and mark questions as answered

  • HT3819 Transferring ITunes from old lap top to new.  Tried and failed.  Help please

    I opened the Home Sharing on both lap tops as instructed in the help section, I've closed both I Tunes and opened again, but can't get the I Tunes on the new computer to open with all the stuff that is on the old.

    As long as don't have any metadata attached to the broken files which you would like to preserve...
    You could use iTunes Folder Watch with its option to "check for dead tracks on startup"
    Or
    Robert Jacobson's script itunes_remove_notfound
    Or
    Create a playlist called Found, select everything in Music and drag it into the Found playlist. Create a smart playlist called Lost matching All the rules Playlist is Music and Playlist is not Found. Your lost tracks will be in this playlist. You can delete them all with a Ctrl-A to select them and Shift-Delete to remove them.
    You can then delete the Lost & Found playlists.
    If there are ratings, play counts etc. attached to the broken links, but you've since reimported the files from another location then I have a script called FindTracks that could probably repair the broken links, and another called DeDuper that could dedupe and gather up the stats while preserving playlist membership etc.
    tt2

  • Browser cuts off half of table and contents? Help please.

    Hi,
    When viewing the page using some versions of IE7, the area
    where the Virtual tour viewer is and anything within the same table
    is cut in half ! I never even noticed it as I test on a laptop and
    desktop, both running IE7 and Firefox and there were no problems.
    Got 3 emails of totally different people asking where the other
    half of the page is, plus a friends browser does it also.
    The link is
    http://www.cicadastudio.ca/newyork.html
    The virtual tour viewer in the iframe, thumbnails and links
    are in the first big table. This gets cut in half approx after the
    text for each thumbnail so anything to the right is just white. No
    flash/quicktime logos and only half the viewer shows. It still
    works though loading the default panorama!
    The big table below holding regular still images with the
    black background displays correctly. Very strange.
    Does any one else only see half the table or know what may be
    causing it to happen? The most obvious thing would be the iframe
    but this has happed with some of the other pages also and they have
    no iframes on them.
    Thanks
    Andrew

     I see and It only prints half the photo? Interesting...
    What i would suggest doing is this,
    - go to the page/photo on face book where you are trying to print/save from
    - right click on the Photo and ""Save As"", now i would recommend saving them in the " My Pictures" from within the "My Documents" folder
    -Once saved, go ahead and open them up (Pictures)  from within the Folder and not the website, unfortunately, it sounds like the web site is not allowing the full command/picture to be sent through, but being a 3rd party Site We cannot be sure..
    -that is what i would advised to get those to Print Fully and to your Expectations
    __ if this Solution has helped Please Mark as resolved and A Kudos Would be Appriciated__
    even though i am a Employee of HP my Views and Opinions are my own...
    I am an HP employee.
    __ if this Solution has helped Please Mark as Resolved and feel free to Provide a Kudos__

  • It is possible to insert a html code in iWeb?? help please!!

    Hi there, and thanks for helping me!
    I have a question. I am new to iWeb, and  I am making my first website with Adobe Dreamweaver CS5. I have the HTML, CSS code ready to be uploaded to the web. So I wonder if it is possible to insert my HTML and CSS code in iWeb so I can publish it? I mean, my code in Dreamweaver is ready to be publish, so I want to put the code in iWeb and then publish it with all HTML, CSS and Javascript code. Thanks!

    You might be able to reuse some of your html in iWeb with the HTML-snippet:
    Whenever I need to do something tricky in iWeb I insert a HTML-snippet from the drop down insert menu -> widgets  (or the Media Browser Widgets palette), adjust its size and paste the HTML code into the snippet.
    You will not be able to recreate a complete page this way, but you might be able to save some  preformatted parts of your page, like elaborate tables and groups of pictures.

  • Calling arraylist from another class - help please!!

    Hey, I need some help calling my arraylist from my GUI class, as the arraylist is in the 'AlbumList' class and not in the 'GUI' class i get the error 'cannot find symbol', which is pretty obvious but i cannot figure how to get around this problem. help would be greatly appreciated.
    i have written ***PROBLEM*** next to the bad line of code!
    Thanks!!
    public class Album
        String artist;
        String title;
        String genre;
        public Album(String a, String t, String g)
            artist = a;
         title = t;
            genre = g;
         public String getArtist()
            return artist;
        public String getTitle()
            return title;
         public String getGenre()
            return genre;
    public class AlbumList
        public ArrayList <Album> theAlbums;
        int pointer = -1;
        public AlbumList()
            theAlbums = new ArrayList <Album>();
        public void addAlbum(Album newAlbum)
         theAlbums.add(newAlbum);
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class GUI extends JFrame
        public int max = 5;
        public int numAlbums = 4;
        public int pointer = -1;
        public GUI ()
            super("Recording System");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel main = new JPanel();
            JPanel panel1 = new JPanel();
            panel1.setLayout(new GridLayout(3,2,0,0));
            JPanel panel2 = new JPanel();
            panel2.setLayout(new GridLayout(1,2,20,0));
            final JLabel artistLBL = new JLabel("Artist: ");
            final JLabel titleLBL = new JLabel("Title: ");
            final JLabel genreLBL = new JLabel("Genre: ");
            final JTextField artistFLD = new JTextField(20);
            final JTextField titleFLD = new JTextField(20);
            final JTextField genreFLD = new JTextField(20);
            final JButton nextBTN = new JButton("Next");
            nextBTN.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    pointer++;
                    artistFLD.setText(theAlbums.get(pointer).getArtist());       ***PROBLEM***
                    titleFLD.setText("NEXT");
                    genreFLD.setText("NEXT");
            final JButton prevBTN = new JButton("Prev");
            prevBTN.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    pointer--;
                    artistFLD.setText("PREVIOUS");
                    titleFLD.setText("PREVIOUS");
                    genreFLD.setText("PREVIOUS");
         panel1.add(artistLBL);
            panel1.add(artistFLD);
            panel1.add(titleLBL);
            panel1.add(titleFLD);
            panel1.add(genreLBL);
            panel1.add(genreFLD);
            panel2.add(prevBTN);
            panel2.add(nextBTN);
            main.add(panel1);
            main.add(panel2);
            setVisible(true);
            this.getContentPane().add(main);
            setSize(500, 500);
    -----------------------------------------------------------------------Thanks!!
    Edited by: phreeck on Nov 3, 2007 8:55 PM

    thanks, it dosnt give me a complication error but when i press the button it says out of bounds error, and i think my arraylist may be empty possibly even though i put this data in.. this is my test file which runs it all.
    any ideas? thanks!!
    public class Test
        public static void main(String []args)
            AlbumList a = new AlbumList();
            String aArtist = "IronMaiden";
            String aTitle = "7thSon";
            String aGenre = "HeavyMetal";
            Album newA = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newA);
            aArtist = "LambOfGod";
            aTitle = "Sacrament";
            aGenre = "Metal";
            Album newB = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newB);
            aArtist = "JohnMayer";
            aTitle = "Continuum";
            aGenre = "Guitar";
            Album newC = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newC);
            aArtist = "StillRemains";
            aTitle = "TheSerpent";
            aGenre = "Metal";
            Album newD = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newD);
         GUI tester = new GUI();
    }

  • No vídeo in my TV with original cable component and Ipad air, help please.

    How can I see my Ipad air and moviles in my TV with the original component cable, at the moment no works.
    Help please.

    Hey adbridge683,
    This is usually in reference to USB issues. This article has great step by step troubleshooting, so you can see the steps first hand yourself to try. http://support.apple.com/kb/ts3694#error50
    There's really only about 7 things to look for in there, and I hope that one of them helps you out!
    Let me know.
    -Regards

  • I can't get the PDF option any where on my other apps....including my safari and pages?.help please

    I can't get the PDF option any where on my other apps....including my safari and pages?.help please

    Here's how:
    http://forums.adobe.com/docs/DOC-2532

Maybe you are looking for