Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which action has the ability to match the request parameter to properties of some name in java bean be specifying '*' for attribute property ?

  • A.\(\lt\) jsp : include \(\gt\)
  • B.\(\lt\) jsp : set Property \(\gt\)
  • C.\(\lt\) jsp : use Bean \(\gt\)
  • D.\(\lt\) jsp : param \(\gt\)

Answer: B

The action is jsp : set Property (jsp:setProperty).

The jsp:setProperty action sets properties of a JavaBean. Writing property="*" tells it to match every request parameter to the bean property with the same name and set them all automatically.

jsp:useBean only locates or creates the bean, jsp:include inserts another resource into the page, and jsp:param passes a parameter to an included or forwarded page. None of them performs the '*' matching.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.