This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

synatax of JSP using JavaBeans

 
cyril vidal
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
it looks odd.
At first glance, it's allowed to use the following syntax for <jsp:useBean>:

but not for <jsp:setProperty> nor for <jsp:getProperty>
So, the following syntax will throw a Japser translation time error:

Did you also note it? May be tricky question for the exam...
Regards,
Cyril.
[ December 05, 2003: Message edited by: cyril vidal ]
[ December 05, 2003: Message edited by: cyril vidal ]
 
Bryan Basham
author
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Cyril,
The jsp:useBean std tag may contain body content (which is used to initialize the newly created bean). The jsp:setProperty and jsp:getProperty std tags do not allow for body content; they must use the empty tag notation Note the '/' at the end of the tag.
BTW, tricky questions are not allowed, but hard questions are. There are no tricky SCWCD questions, but in the new exam there will be lots of hard ones.
Regards,
Bryan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic