You need to write code in java (jsp) and you can (need) it seems like a request to do this all. There is a tab on the site - the transfer of contingent. It is necessary to transfer students, their number and other columns (Student1) from one date (dates are revealed). Transfer to another date, i.e. replace the date we choose. You need a query or Java code how to do it. Thanks in advance.

alt text

Closed due to the fact that the essence of the question is incomprehensible by the participants romeo , awesoon , user31688, AntonioK , Pavel Mayorov May 7, '15 at 5:44 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • four
    State the thought clearly and vividly. - ReinRaus
  • one
    for the questions "write me the code" you need to answer "it will cost $ N" :) state in a more specific language what you need. The first sentence "You need to write the code you need to turn the request" does not say anything at all - Anton Feoktistov
  • In short, I need to create a JSP page, and on it there are 2 dates as in the picture, a drop-down button and the button must be moved, students must be moved from one date to another ... - Amorey
  • This is not a question, but an offer to do something for you. The question is when there is a specific isolated problem. And here it seems the whole problem is in you. - Barmaley
  • Who can help what? Request at least ... PLZ - Amorey

1 answer 1

Probably you use some kind of database in which it is all stored.

The database entries are modified using the update statement. update students set data = '12 / 22/2012 'where data '12 / 21/2012'

where students is the table name, data is the name of the field in the table.

Usually, import java.sql mechanisms are used for this. At the request of "mysql + java Example", google produces a lot of things. Naturally, if you do not have MySQL - look for your own.

Zagogulin here a few. The first. You most likely already have functions to connect to the database, or maybe to execute queries - search. The second. Date formats for different databases may differ slightly. Pay attention!

UNDER ANY CIRCUMSTANCES DO NOT work with a live database immediately. First everything is on the copy !!

And only when it turns out, and you will understand what you have done, and everyone will say that “nothing has been broken”, something can be done somewhere.