As pointed out, the nested tag syntax will not work, but you can probably do what you are trying to accomplish with the hidden tag. I am not sure if you are getting the value from your Action Form or what your bean and property names are. Maybe one of the following will work:
I had one more question <html:hidden property="text" value="myname" /> Is this same as <input type="hidden" name="text" value="myname">
The "text" is no bean, its a new value that I am creatign in a form to be passed to the servlet. for html:hidden I know that the "property" is compulsory, so in the above case is the property same as the name in html hidden tag?
Thanks once again
Joined: Feb 15, 2005
Yes, the property attribute of an <html:hidden> tag is equivalent to the name attribute of an <input> tag. If you use the view source function of your browser to see the rendered HTML of your pages, you'll see that your <html:xxx property="YYY"> tags have been translated to <input name="YYY"> tags.