This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes scripts in tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "scripts in tags" Watch "scripts in tags" New topic
Author

scripts in tags

yeshwanth reddy
Ranch Hand

Joined: Mar 10, 2006
Posts: 38
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

Joined: Dec 04, 2004
Posts: 950
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


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: scripts in tags
 
Similar Threads
Radio control in Struts
setting any object as property in java bean
where all can we not put scripts?
How to use a custom tag lib in a JS script?
class property of a javabean