Is the day to change the bug, today encountered this very headache, especially in other people's code based on the change, is the head big. After 2 hours, there is a mistake feeling very baffling, so that colleagues next to see a while, only to find out that they have made a naïve mistake, too do not pay attention to details:
The correct wording for a form is as follows:
The following are the referenced contents: <% expenseitemform form = (expenseitemform) request.getattribute ("Oldexpenseitemform"); %> <input name= "Expenseitemnumber" type= "text" class= "input" Value= "<%=form.getexpenseitemnumber ()%>" size= ">
Action-------------------- Expenseitemform oldexpenseitemform = new Expenseitemform (); Oldexpenseitemform.setexpenseitemnumber (Oldexpenseitemnumber); . . . Request.setattribute ("Oldexpenseitemform", oldexpenseitemform); |
The correct wording for a common field is as follows:
The
The following is the referenced content: <input name= "Roleid" "class=" "id=" Roleid "size=" &NBSP; value= "<%=request.getattribute (" Roleid ")%>" type= " Hidden "> or <input name=" Roleid "class=" "id=" Roleid "size=" "&NBSP; value=" ${roleid} "type= "Hidden" > Action-------------------- Request.setattribute ("Roleid", Roleid); |