> I am having an textbox inside a form , form is used for entry and
> edit .
[quoted text clipped - 7 lines]
>
> Is there any possiblity to avoid code inside the jsp.
If you're using modern JEE with JSTL and EL:
<c:if test="${! empty bean1.method}" >
<jsp:getproperty name="bean1" property="method" />
</c:if>
or better yet, using whatever larger expression you're failing to show us:
<input type="text" id="method" name="method" value="${bean1.method}" />
without any conditional. In unified EL with JSF, it'd be better to use:
<h:inputText id="method" value="#{bean1.method}" />
without any conditional.

Signature
Lew