• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL question about setting bean property

 
Evan Wong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I set the bean property like the below using EL?
<jsp:setProperty property="email" name="testBean" param="email"/>

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the EL is an expression language. You would use the JSTL <c:set> tag to set a property value.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!