How do i convert it to beans?

<html>
<%@ page import="java.sql.*"%>
<head>
<title>You can access the following mobile functions</title>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" width="100%">
<tr>
<td width="100%">
<p align="center"><b><font face="Georgia, Times New Roman, Times, serif" size="5">Mobile Functions</font></b></td>
</tr>
<tr>
<td width="100%">
     <p align="right"><font size="3" face="Arial, Helvetica, sans-serif"><strong><em>You
are logged in as
<%
     String attributevalue=(String)session.getAttribute("identity");
     out.print(attributevalue);%>
</em></strong> </font> </p></table>
          <%
          String accid="";
          int func[][]=new int[10][14];
          int findex=0;
          String func_name;
          String dbUrl = "jdbc:odbc:bank";
          String user = "";
          String password = "";
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          Connection c = DriverManager.getConnection(dbUrl, user, password);
          Statement s = c.createStatement();
          ResultSet columns = s.executeQuery("SELECT account_id FROM Depositor,Customer where                     Depositor.customer_id=Customer.customer_id and Customer.customer_id like                                    '"+attributevalue+"'");
          ResultSet r1;
          ResultSet r2;
          int rindex=0;
          int index=0;
          String[] id=new String[10];
          while(columns.next())
          accid=columns.getString("account_id");
          id[index]=accid;
          index++;
          }//end while get all account_id
          for(int i=0;i<index;i++)
          r1=s.executeQuery("SELECT msgin_seqno FROM FunctionAccess WHERE account_id like                          '"+id[i]+"'");
               while(r1.next())
                    func[i][findex]=r1.getInt("msgin_seqno");
                    findex++;               
               }//end while
          r1.close();
          }//end for
          for(int i=0;i<index;i++)
               %><hr><table>
               <tr><td><strong>For Account Number
               <%=id%></strong></td>
               </table>
               <%
               for(int j=0;j<findex;j++)
               r2=s.executeQuery("SELECT in_function FROM FunctionDefine                                              WHERE msgin_seqno like '"+func[i][j]+"'");     
                    while(r2.next())
                    func_name=r2.getString("in_function");
                    %>
               <table>
               <%=func_name%><br>
               </table>
                    <%
                    }//while
                    r2.close();
                    }//end for j
          }//end for i
%>
<hr>
</body>
</html>

First, next time you post, use [code] tags, as described in the [Fromatting Help] link.
I am not going to do all the work for you, half because I don't feel like sifting through all the code, and hald because in other thread about getting mail, you seem to want to do no work and have eveyone else do your job for you. And I don't like that kind of attitude.
But, on the otherhand, I will point you out to some resources:
http://java.sun.com/developer/onlineTraining/Beans/JBeansAPI/shortcourse.html
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans.html
And, while you are at it, look up Chapter 12 through 16 of http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

Similar Messages

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • How can I convert an int to a string?

    Hi
    How can I convert an int to a string?
    /ad87geao

    Here is some the code:
    public class GUI
        extends Applet {
      public GUI() { 
        lastValue = 5;
        String temp = Integer.toString(lastValue);
        System.out.println(temp);
        showText(temp);
      private void showText(final String text) {
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            tArea2.setText(text + "\n");
    }

  • How can I convert an InputStream to a FileInputStream ???

    How can I convert an InputStream to a FileInputStream ???

    Thanks for you reply, however, I am still stuck.
    I am trying to convert my application (which runs smoothly) to a signed applet. The following is the original (application) code:
    private void loadConfig() {
    String fileName = "resources/groupconfig";
    File name = new File(fileName);
    if(name.isFile()) {
    try {
         ObjectInputStream in = new ObjectInputStream(new FileInputStream(fileName));
         pAndGConfig = (PAGroupsConfig)in.readObject();
         in.close();
         return;
    } catch(ClassNotFoundException e) {
         System.err.println("++ERROR: "+e);
    } catch(IOException e) {
         System.err.println("++ERROR: "+e);
    System.out.println("Can't find file: " + fileName);
    Because all code and resources now reside in a Jar file (for the signed applet), I must use the following line to access the resources:
    InputStream is = this.getClass().getResourceAsStream(fileName);
    I then need to convert the 'InputStream' to 'ObjectInputStream' or 'FileInputStream' so that I can work with it.
    I would be very grateful if you could help shed some light on the matter - Cobram

  • How can I convert an audio file (speech) into a text?

    Hello everybody!
      Can someone explain how I can convert a garageband file (voice speech) into a text? My Mac is a Mac OS X 10.5.8 version, so I don't have programs such as mountain Lion. I thought to use googlevoice. Is this option available? If yes, how can I use it?
    Thanks.

    Hello, I only find google voice available for Abdroid!?
    http://www.ehow.com/info_10033225_google-voice-system-requirements-android.html
    Some possibilitities, not sure if they have 10.5.8 compatble versions anymore...
    http://atmac.org/speech-to-text-dictation-software-for-os-x
    Some reviews of later Dragon Speak...
    http://www.finetunedmac.com/forums/ubbthreads.php?ubb=showflat&Number=22962

  • How do I convert my existing iTunes account to a .mac account?

    I am trying to convert my existing iTunes account which uses an Earthlink address. The following is the INSTRUCTIONS from the Apple web site on how to do this.
    "I just signed up for .Mac. How do I convert my existing iTunes account to
    my new .Mac account?
    We'll be happy to convert your account for you. Please provide your old account name, your new .Mac account name and your billing address in your email. We will also need your explicit permission to reset your password to complete the conversion."
    This is the URL where I found those INSTRUCTIONS:
    http://www.apple.com/support/itunes/musicstore/email/
    I FOLLOWED THE INSTRUCTIONS ABOVE!
    I am now on my fifth exchange of emails with iTunes support.
    HAS ANYBODY SUCCESSFULLY EXECUTED THESE INSTRUCTIONS? I don't want to lose the ability to play my existing purchased music, but I want to close down Earthlink as my ISP.
    17" G4 Powerbook   Mac OS X (10.4.6)  
    17" G4 Powerbook   Mac OS X (10.4.6)  

    On any page in the iTunes Store, click the flag icon at the lower right.  This brings up a page saying "Choose your country or region."  Click Canada.
    Before you can buy anything, you will need to enter your Canadian credit card.

  • How can I convert an OVM vm (.img) to VDI (virtualbox)?

    Hi,
    how can I convert an OVM vm (.img) to VDI (virtualbox)?
    Is .img format a raw image? If yes can I use "VBoxManage convertdd" to convert from .img to vdi?
    tnx & regards,
    S.

    Hi,
    "VBoxManage convertdd" solved.
    Regards,
    S.

  • How can I convert an AUDIO MPEG-4 to an MPEG3 format? I need it for a Powerpoint Presentation

    How can I convert an AUDIO  MPEG-4 to another type of file, such as MPEG3  or mp3

    Use Handbrake.
    You can download it for free from this site:
    http://www.macupdate.com/info.php/id/12987/handbrake
    Good luck

  • How do I convert a pdf in Adobe Acrobat 9 to Microsoft Word document?

    How do I convert a pdf in Acrobat 9 to a Microsoft Word document?

    Hi fireatty,
    In Acrobat 9, you can use the Export command (File > Export) to export your PDF to Word format.
    Please let us know if you need additional assistance.
    Best,
    Sara

  • I changed from i iphone 5 back to a iphone 4.. now my itunes does not recognise that i have a iphone 4! how do i convert my last back up (on iphone 5) to my new iphone 4?

    i changed from i iphone 5 back to a iphone 4.. now my itunes does not recognise that i have a iphone 4! how do i convert my last back up (on iphone 5) to my new iphone 4?

    In your case you can only restore from a backup that has been created with the same iOS version. An iPhone 4 can only run 7.1.2, and, unless your iPhone 5 did not run the same version, you can't use a newer iOS backup of the 5 on the iPhone 4

  • How do I convert my Voice Memo from iPhone 5s to a text file?

    How do I convert my Voice Memo from iPhone 5s to a text file?

    If you have Evernote, you could try quicktate.   http://www.quicktate.com
    I convert voice memos on my Mac using the Dictation feature:
    Open TextEdit on a new document
    Enable  Dictation & Speech enabled the System Preferences.
    Press the fn-key twice
    Play the voice memo on the iPhone and let the  Mac listen to it using the internal microphone with TextEdit open on a new document.
    Press the fn-key twice, to finish Dictation.  You will only see the transcribed text, when Dictation has finished.

  • I want to remove the monitor from my 17" Macbook Pro 2008 to use as an external for my Macbook Pro 15" 2012. How can I convert lvds to Thunderbolt and power the monitor?

    I want to remove the monitor from my 17" Macbook Pro 2008 to use as an external for my Macbook Pro 15" 2012. How can I convert lvds to Thunderbolt and power the monitor?

    It's almost impossible.  The new iMacs have a Target Display Mode, but it's built to do that.  Without ripping your screen out, finding an acceptable power supply, frame, and whatever electronics to convert a Thunderbolt signal to the screen, the cost will be much larger than buying a cheaper HiDef monitor that runs with an HDMI to Thunderbolt cable to your MacBook 15.  In fact, you can sell your 17" MBP for a lot of money, unless it's broken or something, buying you a really sweet monitor.
    By the way, I found your answer by searching this forum.  I would suggest using the search function here in the futuere.

  • How can I convert an array off byte into an Object ?

    Hi folks...
    I�m developing an application that comunicates a PDA and a computer via Wi-Fi. I�m using a DataStream ( Input and Output ) to receive / send information from / to the computer. Most off the data received from him is in the byte[] type...
    How can I convert an array off byte ( byte[] ) into an Object using MIDP 2.0 / CLDC 1.1 ?
    I found on the web 2 functions that made this... but it uses a ObjectOutputStream and ObjectInputStream classes that is not provided by the J2ME plataform...
    How can I do this ?
    Waiting answers
    Rodrigo Kerkhoff

    There are no ObjectOutputStream and ObjectInputStream classes in CLDC. You must know what you are writing to and reading from the DataStream. You should write the primitives like int, String to the DataOutputstream at one end and read those in exactly the same sequence at the outher end using readInt(), readUTF() methods.

  • How do I convert an array of BYTES (where each BYTE represents a bit) into a single Hex number?

    I am reading a signal from a USB-8451. This signal is stored as an array where each element represents a bit in the signal, but is stored in the array as a byte. How do I convert this array into a single Hex number. I attatched what I have so far, there are a few extra things to help me see what ia going on. One code uses Queue and the other uses arrays, let me know if you can help.
    Attachments:
    845x_EEPROMarrays.vi ‏27 KB
    845x_EEPROM.vi ‏26 KB

    mkssnwbrd wrote:
    ... so we can't introduce any other forms of signals or power into the circuit other than what the circuit already has. Trithfully I don't really know how I2C devices work, but my mentor here says that we can't use an I2C method becuase it will introduce voltage into the circuit and may damage out TCON chip.
    That makes absolutely no sense. What do you think is happening when you write the digital lines? You're setting a pin high. That voltage is being generated by the 8451x. I think you're not understanding what your mentor is saying. If it's an I2C device then you should be able to use the I2C function to simply talk to it. You still have not indicated what the device is, so there's little more I can say about that aspect of it.
    As far as the conversion is concerned, you basically need loop through your array of "bits", taking 16 at time since you said you have 16-bit values. It's not clear from your code whether your eventual goal is to get a numeric value or a string. This does not appear to be a subVI, so a simply numeric indicator formatted to display in hex format should be quite adequate. The array you are generating is an array of rings, whose datatype is I32, but they will have values of 0 or 1. You can use the example just posted, or you can use the attached variation.
    Attachments:
    Bits to Hex 2.vi ‏17 KB

  • I am on windows 8 platform, i used adobe elements to work on my image - the output is in dng format, how do i convert this to jpg format?

    i am on windows 8 platform, i used adobe elements to work on my image - the output is in dng format, how do i convert this to jpg format?

    When you make a DNG that's like making another raw file, so you will need to convert the DNG file just like your original raw. Don't use the Save button in the raw converter. That's just a link to the DNG converter. Normally you would click Open instead and then save in the editor as a jpg or other image format of your choice.

Maybe you are looking for

  • Airport Extreme Flashing - Orange

    I need some help with my Airport Extreme, which has been working faultlessly for 2,5 years, but then I tried to change some of the settings after which my MacBook air did no longer connect to it. I have been trying a Hard reset, a Factory Reset, chan

  • How do you reduce your selection to copy on webpage without text size option?

    I am trying to copy a page info into a microsoft works word new document page and is receiving the following error message: The information you copied exceeds the size limit for word processor, try reducing the size then copy and paste again......

  • BUG: Business Components using Datasources on Websphere - statement closed

    Hi, This is an unusual combinatation, we are deploying business components projects on websphere with a SQL Server database. This was originally deployed all to Oracle. We have managed to convert the project sucessfully (JDeveloper 10.1.3) and on Web

  • KDE4 File copy really slow

    When I copy a file, using KDE 4.6 and dolphin (or konqueror even), from a remote location (ssh, smb) the download tops out at 220KiB/s. From the commandline, I'm getting 4-10 MiB/s. Any idea's as to what can be happening? I thought it was my wireless

  • Launching Actor From Tools Menu

    I have written a configuration tool(lets call it application ABC for simplicity) within the actor framework for a very large API.  Application ABC was designed/intended to be launched from the Tools Menu in LabVIEW.  For development I ran application