i have a property where i'll set some true/false value to that property in action class and forward to jsp, now based on that property value i'll have to display a field. suppose if i have a hidden field for that property
If you're making a *decision* based on an arbitrary property, you don't need to make it a hidden property--unless you need to send it back to the server (which is where it came from in the first place). You can simply set a request attribute with the value and test for it in the JSP using a <c:if...> tag.
Everyone is a villain in someone else's story. Especially this devious tiny ad: