we are passing mystring=hhhh as reqest url parameter
<%=mystring%>// what is the output
out put print nothing..i understand that because we didnt add gettors and settors for String class. and this mystring is refer to bean class and url parameter mystring is not related. it only give to make confuse. but why it didnt print the hashcode value of String object( through toString)?
I wish I could help more as I really don't feeling developing sever side scripts at the moment. I don't think your using the language correctly. Typically, the useBean directive is used when parsing URL parameters directly to some class, maybe like a Customer in a forum or shopping cart. If you simply want to display the URL parameter just use scriptlets.