Can some gurus out there please tell me if my questions below are even
possible to do?

Thank you.
Tyla

-----Original Message-----
From: Suon, Thla [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 11:24 AM
To: [EMAIL PROTECTED]
Subject: I Really Need Your Help...


I have a java servlet with embedded html.
My fragmented code looks like this:

          rs = stmt.executeQuery("SELECT * from scars.tc_prodcode where
status="+"'"+"active"+"'" +"order by full_name");
          out.print("<td>");
          out.print("<select name="+"prodcode size=1 "+"onChange= "
+"Sel_Prod(this)>");
          out.print("<option value= " +">" +"select a product code");
          while(rs.next()){
          int a = 0;
          int b = 0;
            pcabbr[a] = rs.getString("pcabbr");
             full_name[bb] = rs.getString("full_name");
             out.print("<option value= " +pcabbr[a]+">" +full_name[b]);
          }//end rs.next
          out.print("</select>");
          out.print("</td>");

Question:  How do I capture in java servlet what the user's onchange value
is?
                I want to write a function call "Sel_Prod", but I don't know
how java
                will know what the onchange value will be?
                I need to get the onchange value so that I can use that data
to do the next query.

I appreciate any help you guys can give me.  Thanks in advance...

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to