• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to change list map obejct value in jsp

 
mayank kothari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to change the list map object value in jsp file. it possible or not please guide me

thank in advance
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. are we talking about a List or a Map?
2. where does this object come from?

Bill
 
mayank kothari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William Brogden wrote:1. are we talking about a List or a Map?
2. where does this object come from?

Bill

Hi Bill ,

I have the list and list come from spring flow i want to change the one list object

Mayank
 
Stefan Evans
Bartender
Posts: 1822
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you be a bit more precise about what you mean by "change the list object"?

I would venture that any change code should be in a servlet/bean.

JSP should be used for displaying the contents of the list - possbily in a form for the user to edit.
But when you submit the form the handling mapping the values from the form back into the java object should be in java code, not a JSP page.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have an object implementing the java.util.List interface then you can use the methods in that interface to change the object references stored in that List.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!