Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp:setProperty  RSS feed

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using
<jsp:setProperty name="person" property="*" />
inside the jsp:useBean tag,if there are some request params which donot have corresponding matching bean properties then what happens to those request params?
What do they get initialised to?
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


then what happens to those request params?


Well , nothing happens to request params , it is just there to be used else where (of course with in the same request scope).

What do they get initialised to?


What do "they" refer here ?

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean to say,if there are no corresponding bean attributes for some request parameters then what do those request parameters get initilized to?
 
Vijitha Kumara
Bartender
Posts: 3974
24
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
amarkirt saroay wrote:I mean to say,if there are no corresponding bean attributes for some request parameters then what do those request parameters get initilized to?


As mentioned above those request parameters are to be used for the values of the properties of the bean.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!