A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Loadvariables into Flash from JSP file

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    22

    Loadvariables into Flash from JSP file

    how do i load variables into flash from JSP file into a combo listbox?

    I need to retrieve the array $a into flash so how do i code?

    tried using

    loadVariables("chuachukang.jsp",_root, "POST");
    trace(a);
    but a is undefined.

    please hep!

    snippet JSP file
    <%
    ResultSet rs = statement.executeQuery(query);
    while (rs.next())
    {

    int i =1;
    int y=1;
    y++;
    int b =1;
    String [] $a = new String [10];
    ic=rs.getString("NRIC");
    String name=rs.getString("NAME");
    String add=rs.getString("ADDRESS");
    //String pcode=rs.getString("POSTALCODE");
    String religion=rs.getString("RELIGION");
    while(i<y){
    i++;
    $a[i]=(name);
    }
    while (b<i)
    {
    b++;
    System.out.println($a[b]);
    }
    %>
    <TR>
    <TD><%=ic%></TD>
    <TD><%=name%></TD>
    <TD><%=add%></TD>
    <TD><%=religion%></TD>
    </TR>

    <%}%>

  2. #2
    poet and narcisist argonauta's Avatar
    Join Date
    Nov 2001
    Location
    Under the bed
    Posts
    2,080
    i think you can't load variables in the _root. You have to load them into a LoadVars() object
    my blog: blog.innocuo
    Sponsored by your mom.

  3. #3
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    have a look at the "I can see vars in a textbox" thread near the top of this forum

    Musicman

  4. #4
    Junior Member
    Join Date
    Sep 2002
    Posts
    22
    can u dun mind just show me the coding in which i need to change to load my variable cause i really dunno much about flash

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center