Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Pasing arrays to servlets?  RSS feed

 
Allen Schell
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an HTML page that captures user input and displays it in tabular format. After completing the input process, I need to get that data to a servlet for processing. Any thoughts on how can I get the array of data displayed in the table to the servlet?
I could write an applet and stream the data to the servlet through it, but this seems like an awfully big hack.
TIA
 
Matthew X. Brown
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see the need to take the data "directly" from the table- since the table is simply a display page(right?)- I'm assuming that your page flow is:
1. enter data
2. go to the next page where it displays the data in a tabular format
Is this right?
I'd use hidden fields and just store the values there. Then use the standard request.getParameter methods to pick up the values.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!