do you have form fields named like txtdesc[1] ?

In other words like:

        <input type="hidden" name="txtdesc[1]">

This is what the code seems to be implying, if so, then reather use form
field like  "txtdesc1", i.e. withou the "[" and "]" as these might casuer
problems.

then in your Servlet you can use:

        String d = request.getParameter ( "txtdesc" + r );


> -----Original Message-----
> From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
> Sent: 28 May 2002 09:35
> To:   [EMAIL PROTECTED]
> Subject:      Re: can not get parameter (It's urgent)
>
> 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

--
**********************************************************************
The Truworths e-mail facility may not be used for the distribution of
chain letters or offensive email.  Truworths hereby distances itself
from and accepts no liability for the unauthorised use of its e-mail
facility or the sending of e-mail communications for other than
strictly business purposes.  Truworths furthermore disclaims liability
for any unauthorised instruction for which permission was not granted.

Please report abuse to [EMAIL PROTECTED]

===========================================================================
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