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

scripts in tags

 
yeshwanth reddy
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,

1. Can we have scripts in a classic tag? (I know that we cannot have scripts in a simple tag).

2. if jsp:getProperty is used on a bean and the bean doesnt contain that property, will the result be a null or an exception?

Regards,
Yashwanth
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yes, you can have script in body of the Classic tag. The script is process if the body-content is set to JSP. If is tagdependent it is treated as simple text. for body-content is empty/scriptless it is translation error.

Answer to your second question, it will throw exceptiom.


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