<c:if>标签的问题
我想在页面上根据传入的值来判断显示相应的名称,30 <=x <=35的时候显示一个名称,x不在30~35之间的时候显示另一个名称,现在的问题是,30 <=x <=3的时候能够正常显示,另一个条件不知道怎么写了,
HTML code:
<c:if test="${ x<30 and x>35}">大机构</c:if><!--这个错误的,好像大于号会被当做结束标签?-->
<c:if test="${ x not ge 30 and x not le 35}">大机构<c:if><!--这个也是错的-->
<c:if test="${ x ge 30 and x le 35}">中小机构<c:if>
正确的判断条件是什么啊
<c:if test="${ x le 30 and x ge 35}">大机构 </c:if>
<c:choose>
<c:when test="${30 < x && x < 35}">大机构 </c:when>
<c:otherwise>中小机构 <c:otherwise>
<c:choose>
<c:if test="${ x le 29 and x ge 36}">大机构 </c:if>
<c:choose>
<c:when test="${30 < x && x < 35}">大机构 </c:when>
<c:otherwise>中小机构 <c:otherwise>
<c:choose>
mark
<c:if test="${ x>30 and x <35}">大机构 </c:if>
<c:if test="${ x gt 30 and x lt 35}&q
相关问答:
问一下:
#include <stdio.h>
int main()
{
char x, y, z;
int i;
int a[16];
for(i=0; i<=16; i++)
{
a[i] = 0;
......
#include "stdio.h"
int main()
{
char *ch(char *, char *);
char str1[]="I am glad to meet you!";
char str2[]="Welcom to study C!";
&nb ......
#include"stdio.h"
#include"stdlib.h"
void ContrTwo(char i)
{
char str1[8];
itoa(i,str1,2);
printf("%s",str1);
}
unsigned char leftRot(char str,int i);
unsign ......
本人在项目中,用ssh架构,想做成分页的效果.
以前我在页面中是,这样取得数据的
<!--进行循环遍历数据-->
<!--进行循环遍历数据-->
<%
List<Users> lof = (List) request.getAttri ......