|
-
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>
<%}%>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|