aspose file tools*
The moose likes JSP and the fly likes Editable table in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Editable table in jsp" Watch "Editable table in jsp" New topic
Author

Editable table in jsp

Dauren Zhumabayev
Greenhorn

Joined: Apr 25, 2013
Posts: 5
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

Joined: Jul 27, 2010
Posts: 1157

Welcome to the ranch Dauren. :) Can you show me what you have already written? Use code tags to paste code.


~ Mansukh
Dauren Zhumabayev
Greenhorn

Joined: Apr 25, 2013
Posts: 5
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

Joined: Jun 06, 2007
Posts: 2716
    
    6

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?


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Editable table in jsp