Paul W. Chen

Greenhorn
+ Follow
since Sep 26, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Paul W. Chen

If you put JSP in body-content in your TLD for simple tag, you will get the error. For class tag, you can specify JSP if you have class tag alone. But for answer D since scripting element is inside simple tag, hence it is not allowed. So the bottom line is you can not have scripting body content in simple tag.
In JSP 2.0 spec page 191, it indicated

The body of a Simple Tag, if present, is tranlated into JSP Fragment and passed to the setJspBody method. The tag can then execute the fragment as many times as needed. ... Because JSP fragment do not support scriptlets, the <body-content> of a SimpleTag cannot be "JSP"...
Does HttpSessionBindingListener has to be Configured in DD? How about HttpSessionActivationListener? In HFJP page 254, it said only HttpSessionBindingListener does not need to configure in DD. But in errata, it changed to

"You do NOT configure session binding listeners OR SESSION ACTIVATION LISTENERS in the DD! "

Also in page 261, it said HttpSessionActivationListener must be configured in DD. But errata ssid this should be removed.

So my understanding to this is HttpSessionBindingListener and HttpSessionActivationListener BOTH do not need to be configured in DD. Am I correct?