Home > Back-end >  Help request. GetParameterMap (); Value problem, a great god guide genuflect is begged
Help request. GetParameterMap (); Value problem, a great god guide genuflect is begged

Time:09-27

Public String saveAttr (it request, HttpServletResponse response) {

Map MapTemp=request. GetParameterMap ();
Map The map=new HashMap (a);
List Attrs=new ArrayList (a);
Map. PutAll (Utils. GetParameters (request));
for(int i=0; iThe map. The put (" itsmId, "mapTemp. Get (" itsmId"));
The map. The put (" systemId ", mapTemp. Get (" systemId "));
The map. The put (" catagory, "mapTemp. Get (" catagory"));
The map. The put (" processMethod, "mapTemp. Get (" processMethod"));
The map. The put (" moduleId ", mapTemp. Get (" moduleId "));
}
Attrs. Add (map);
RecordService. SaveAttr (attrs);
Request. SetAttribute (" message ", "save success");
Return a list (request, response);
}
I mean values at the front desk page shows all the data, such as a page of article 10 data, so the ten, now the problem is that I want to go to a line of data, such as the first line, the second line, such as how to do it, a great god genuflect is begged

CodePudding user response:

I am beginner, strives for the great god glad, thank you, thank you thank you

CodePudding user response:

This is not the content of hair before
?

CodePudding user response:

Not solve, according to the way they I tried, I think that is my description is not clear, so to be sent, the knot to stick

CodePudding user response:

Please do me a favour,

CodePudding user response:

See the code is the background to receive data, and then save,
The landlord issue as you describe is not clear, didn't understand, wrong character also influence

CodePudding user response:

MapTemp. Get (" itsmId ") this is my front page shows the primary key of the data bank of China, the question now is, I'm going to order take out ten data in each column, the don't understand?

CodePudding user response:

Expression is not very clear, is in turn take 10 data in the database, or take the page's ten data in turn

CodePudding user response:

Don't have to, in turn, only in a column of data, then click the save button, save the success, is this order

CodePudding user response:

reference 5 floor shzy1988 reply:
code is the background to receive data, and then save,
The building Lord issue as you describe is not clear, didn't understand, wrong character also affect mean

Don't understand, you can use to describe the actual data, such as your data is what kind of front desk page, then you need to get the data to the background processing, the thinking of background processing is

CodePudding user response:

refer to 6th floor y0714 response:
mapTemp. Get (" itsmId ") this is my front page shows the primary key of the data bank of China, the question now is, I'm going to order take out ten data in each column, the don't understand?


You mean the foreground to background data is 10 records, now you want is one line of data, is that right? If so, when you are at the front desk and values to filter the data you want, and then pass the background

CodePudding user response:

refer to the eighth floor y0714 response:
don't have to, in turn, take only one column, then click the save button, save the success, is this order

In fact you encountered problem is the front desk, existing in the Map there is no order value, and value is you need to order?

CodePudding user response:

 
//jdk1.4
Map map=new HashMap();
Set the Set=map. EntrySet ();
The Iterator it=set. The Iterator ();
While (it. HasNext ()) {
Entry Entry=(Entry) it. Next ();
String [] TMP=(String []) entry. The getValue ();
For (int I=0; i System. The out. Println (TMP) [I];
}
}
//JDK1.5 version
MapSet The set=map. EntrySet ();
Iterator It=set. The iterator ();
While (it. HasNext ()) {
Entry
System. The out. Println (" is the KEY: "+ entry. GetKey ());
For (String I: entry. The getValue ()) {
System. The out. Println (I);
}
}

CodePudding user response:

Do you want to do is to delete a row, or a page to show a few data of custom choice!

CodePudding user response:

First list at the front desk show had better use js off-the-shelf components such as extjs, jquryui
Because these components are bringing a row method, it seems the data format should be a line of the json format string

CodePudding user response:

Don't understand the original poster wants to do

CodePudding user response:

Don't understand the original poster wants to do

CodePudding user response:

On the map for loop is doing, useless.

CodePudding user response:

Don't know I do

CodePudding user response:

Don't know I do

CodePudding user response:

. I want to ask, if the request getParamterMap access parameters, the parameter before his face, rather than pass through the front page, and it can be placed in the map
  • Related