• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setProperty with param & value...

 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP page need to set the property of a javabean to a value that is calculated with the JSP page.
which 3 attributes MUST be used to perform this initialization.

A. id
B. val
C. name
D. property
E. param
F. value
G. attribute

my personal answer is C, D, E.

in the other hand, i have a doubt : if i use param attribute to get the value from a form, then value attribute is not required to used anymore since i use param attribute to retrieve the value already, right?

1. if use param attribute inside <jsp:setProperty>, we cannot add value attribute into it.

2. we can use param and value attribute together inside <jsp:setProperty>.

guys, tell me which one correct....thanks......
 
Chandra Atla
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You CANNOT use both param and value in a single <jsp:setProperty ..>

Thanks,
Chandra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic