Re: can not get parameter (It's urgent)
You should have used String d = request.getParameter(txtdesc[r]); It would work the way you want it -Original Message- From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 1:18 PM To: [EMAIL PROTECTED] Subject: Re: can not get parameter (It's urgent) no, all text is having name txtdesc and i was trying to get value of txtdesc[r] using String d = request.getParameter("txtdesc["+r+"]"); so it was not responding this statement and returning null but now i take the values using String[] d = request.getParameterValues("txtdesc"); and d[r] is working fine Thanks Vaishali Relience Ind Ltd A'bad Adrian Janssen cc: Sent by: A Subject: Re: can not get parameter (It's mailing list urgent) about Java Server Pages specification and reference 05/28/02 01:18 PM Please respond to A mailing list about Java Server Pages specification and reference do you have form fields named like txtdesc[1] ? In other words like: 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
Re: can not get parameter (It's urgent)
no, all text is having name txtdesc and i was trying to get value of txtdesc[r] using String d = request.getParameter("txtdesc["+r+"]"); so it was not responding this statement and returning null but now i take the values using String[] d = request.getParameterValues("txtdesc"); and d[r] is working fine Thanks Vaishali Relience Ind Ltd A'bad Adrian Janssen cc: Sent by: A Subject: Re: can not get parameter (It's mailing list urgent) about Java Server Pages specification and reference 05/28/02 01:18 PM Please respond to A mailing list about Java Server Pages specification and reference do you have form fields named like txtdesc[1] ? In other words like: 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-INTERES
Re: can not get parameter (It's urgent)
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
Re: can not get parameter (It's urgent)
do you have form fields named like txtdesc[1] ? In other words like: 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
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
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