i was using getParameter and was not working as the txtdesc is an array of
text
but now getParameterValues is working fine

Thanks to all
Vaishali
Relience Ind Ltd
A'bad



Send the html code as the servlet code is fine.

-----Original Message-----
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 12:06 PM
To: [EMAIL PROTECTED]
Subject: can not get parameter (It's urgent)


hi all
i took an array or text in my page
on click of save button i just change the chmode=1 in mysave() of
javascript
and when submit the form it is

     String mode = request.getParameter("chmode");
     if (mode == null){
          mode = "0";
     }
     else{
          String tr = request.getParameter("totrow");
          int tot=Integer.parseInt(tr);
          for(int r=0;i<=tot;i++{
               String d = request.getParameter("txtdesc["+r+"]");
               String node=request.getParameter("txtnode["+r+"]");
               String lvl1=request.getParameter("txtlvl["+r+"]");
               INSERT..........
               OR
               UPDATE
          }
     }

but here i can not get txtdesc's value
it gives me null all time
even txtnode and txtlvl too i find null
see i gave some value in all and then click the save button but always it
takes null and make the array balnk.
what to do?
pls help it's urgent

answers will be appreciated

Thanks in advance
Vaishali
Relience Ind Ltd
A'bad

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

=====================================To unsubscribe: mailto
[EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to