Home > Back-end >  The <c: if> less than value judgment
The <c: if> less than value judgment

Time:10-03

Judge & lt; C: if> Values in the database, but can't always judge
'& lt; Div & gt; '
+ '& lt; C: if test="${list [I] attribute06 ne null}" & gt; '
+ '& lt; Fieldset> '
+ '& lt; Legend> '
[I] + list are attribute06
+ '& lt;/legend> '
+ '& lt;/fieldset> '
+ '& lt;/c: if> '
+ '& lt; Span & gt; '
[I] + list content
+ '& lt;/span> '
+ '& lt;/div> '
Wanted him to judge the database data is empty fieldset don't show all the time, only is not null, according to is to iterate over the list, but why how to write in a fieldset display is null when empty

CodePudding user response:



How to judge whether a successful, digital area should not be displayed above the
Where there is a problem, or I write wrong

CodePudding user response:

The list [I] attribute06 ne null, the second line what is the meaning of this?

CodePudding user response:


Change is not equal to try?
CodePudding user response:

refer to the second floor fujianshiwo response:
list [I] attribute06 ne null, the second line what is the meaning of this?


This is, the list is to put the value of the attribute in the database to iterate over, because there are many a value, let his cycle, my idea is that the value judgment if he does not equal to null, to run & lt; C: if> In the middle of the statement, but how he will run the middle statement now

CodePudding user response:

reference a897645210 reply: 3/f
& lt; C: if test="${list [I] attribute06 ne null}" & gt;

Change is not equal to try?


Try once, or not

CodePudding user response:

'null', try adding a quote,

CodePudding user response:

CodePudding user response:

Thank you bosses have been solved

CodePudding user response:

refer to the eighth floor k157507281 response:
thank you bosses have been solved
excuse me, how do you solve? . The problem? I am a small white

CodePudding user response:

references 9 f fujianshiwo response:
Quote: refer to the eighth floor k157507281 response:

Thank you bosses have been solved
excuse me, how do you solve? . The problem? I am a small white

Use & lt; C: if> Or foreach to refer to a uri address, at the same time before because I was written in JS div interface, uri cannot run, introduced in the JSP, the interface from JS I change to the JSP

CodePudding user response:

refer to the eighth floor Mr. Laohei response:
thank you bosses have been solved
how to solve
  • Related