Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Editable table in jsp

 
Dauren Zhumabayev
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody. I am new in Java and web at all. I can not figure out how to obtain, process and transmit the values from table on jsp-page to the database. That table is gradebook of students (i.e. it contains names of students and their grades by any lesson) with inputs in any cell. The next complexity is that the dimension of table can be different, i.e. dynamic (I mean, for example, it may be 6 labs on one subject or may be 8 labs on other subject).

JSP page contains table with inputs in any cell (except 1st column and headers) and button submitting all values from input to DB.

PS. I know that it is easier to use something like jsGrid with inline editting, but I know nothing about js or ajax, and really has no time to read about it. So, if you have any idea how to realize it without js I'll be gratefull. If not, I'm gonna spend some days learning ajax and js. Thanks.
 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the ranch Dauren. :) Can you show me what you have already written? Use code tags to paste code.
 
Dauren Zhumabayev
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mansukhdeep Thind wrote:Welcome to the ranch Dauren. :) Can you show me what you have already written? Use code tags to paste code.


Hello, thanks for your attention.

Here is table on jsp


Next code is action for /set-mark.do. Only what can I do at this moment is that I can get all parameter values from the table in array list. And the next task is process this list in right way.



And I have a idea to divide this list by function which take two parameter: array and number to divide this array. But it is not correct yet)



That is all.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would not encourage the use of scriptlets in JSP, but the code looks good for the table value retrieval.
What is the problem you are facing?

You should be forwarding to the next action, isn't it?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic