Harpreet Singh janda wrote:Have you tried to save the object using session.save() method?
If you check the API document for java.util.Collection you will see that Serializable is not a superinterface of it
"All collection implementations of the J2SE API are Serializable"
"..Map classes like HashMap and Hashtable have a values() method that returns a collection of just the values without the keys. In other words, if you called it on your HashMap, you'd get a Collection of objects.
..a collection that implements the Collection interface. But that isn't enough to to tell you whether the Collection returned by the values() method is Serializable"
Venkat Divvela Yesterday 02:33:22 Subject: behaviour of doStartTag of TagSupport
--------------------------------------------------------------------------------
The valid return values for doStartTag() function are SKIP_BODY and EVAL_BODY_INCLUDE. If the function doStartTag is not overriden then default value SKIP_BODY is returned.
view plaincopy to clipboardprint?
# public int doStartTag() throws JspException{
# return 9911;
# }
# public int doStartTag() throws JspException{
# return 9911;
# }
The function doStartTag is overriden and the returned value 9911 is not valid return value. The default behaviour applied only when the function is not overridden.
From the Tomcat 6.x source code it seems that if the return type is not equal to SKIP_BODY then return type is considered as EVAL_BODY_INCLUDE
if the doStarTag returns EVAL_BODY_INCLUDE and if the custom tag has body then body is evalauted once.
view plaincopy to clipboardprint?
<mytag:ClassicTag >Hello</mytag:ClassicTag>
<mytag:ClassicTag >Hello</mytag:ClassicTag>
Hence "hello" is displayed as output
Souvik Dasgupta Today 14:22:40 Subject: behaviour of doStartTag of TagSupport
--------------------------------------------------------------------------------
are you using Tomcat 6.x?