File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Needs to access array from servlet

 
Lekshmanan Suresh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

i am facing problem for posting row data from the forms to database via servlet.
also, i have stored all the elements in the jsp. How do i access from servlet.


See below of my codings:


var myArray = new Array((document.forms[0].length)-14);

var abc = myArray.length

alert(abc);

for(i=13;i<document.forms[0].length;i++){
myArray[i]= document.forms[0].elements[i].value;
// alert(myArray[i]);
}

for(i=13;i<myArray.length;i++){
// alert(i);
alert(myArray[i]);
}

I wanted to retrieve the myArray values from sevlet after submiting the form, Please need help also suggest me the optimum way to perform.


Rgards

Suresh
 
Piyush Mangal
Ranch Hand
Posts: 196
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code you have posted is java script code. What is your problem, you are having dificulty in submitting values from HTML or displaying values on HTML via Servlet?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic