H
Hannes Heckner
Hello,
I have the following code in my otherwise fully functional jsp:
<% String test = "Hello World"; %>
<logicresent name="test">
here is hello world
</logicresent>
This will never show "here is hello world
Why?
Suggestion:
Because test is no bean
What I am trying to accomplish is this:
<%MyBean bean = myForm.getBean() %>
it is possible in my application that bean is null
so if I use
<bean:write name="bean" property"someting"/>
I will get a NPE
so I tried to use
<logicresent name="bean"/>
Hurray it is here
<bean:write name="bean" property"something"/>
</logicresent>
with the same effect that even if the bean is there there is no output
Any tips on this one?
Best regards,
Hannes
I have the following code in my otherwise fully functional jsp:
<% String test = "Hello World"; %>
<logicresent name="test">
here is hello world
</logicresent>
This will never show "here is hello world
Why?
Suggestion:
Because test is no bean
What I am trying to accomplish is this:
<%MyBean bean = myForm.getBean() %>
it is possible in my application that bean is null
so if I use
<bean:write name="bean" property"someting"/>
I will get a NPE
so I tried to use
<logicresent name="bean"/>
Hurray it is here
<bean:write name="bean" property"something"/>
</logicresent>
with the same effect that even if the bean is there there is no output
Any tips on this one?
Best regards,
Hannes