My status:
On my jsp site, I show a table when someone clicks on a line , Then this row should be marked for example with the color of the other badte color. More than one row can be marked. Two things are important first: I have to remember which rows are marked second: in which order.
I think:
I have an ArrayList and have entered all the row IDs in it. Therefore, I will solve both problems. Now I have the next click and line ID (req.getSession (.) SetAttribute (req.getParameter ("rowID"), "+ + arrayList.size ());) in the session for the jsp file
My problem is in the JSP file:
Now I do not know which session variable is named.
If this line ID is changed in Clicked? ..
I have just received the bean name. How do I get content from this session, if this exact line is marked?
Normally I am setting a session variable: req.getSession.setAttribut ("printView", boolean.true) and get the session variable so:
I work with Straps, Formin and JSP.
Sorry, I am not English and this problem is so difficult for me so I can not declare it better at this time. >
What was clicked about storing the ID of the rows A JavaScript map, then you can change it Bakgound color, to collect operation data, just using struts + Ajax (See struts 2 in Action Book Chapter 8).
In addition, if you are already uploading data in relation to the session, then execute the session application in your action command to be able to access session values.
Hope this help.
Comments
Post a Comment