2013年12月13日星期五

label -value problem

<s:if test="<%=curpagenum %> == 0"><b>没得</b></s:if>
<a href="index.jsp?curpage=<%=curpagenum-1 %>&pagesize=3" >上一页</a>
<a href="index.jsp?curpage=<%=curpagenum+1 %>&pagesize=3" >下一页</a>


When curpagenum greater than or equal to 2 , when it should display Previous how to write it ?

------ Solution ------------------------------------ --------
with c: choose tag chant !
------ Solution ---------------------------------------- ----
<% = curpagenum%> tag writes this stuff does not work, you write with el expressions .
------ Solution ---------------------------------------- ----
<c:if test="${curpagenum  == 0}"><b>没得</b></c:if>
curpagenum parameters in the background get set to
------ Solution --------------------- -----------------------
curpagenum put this variable into pageScope which then determine

------ Solution --------- -----------------------------------
not have

Next



Next ;


Previous


Previous
Next


------ For reference only ---------------------------- -----------
use js define a function
------ For reference only ------------------- --------------------
struts tag to tie ognl expression with
------ For reference only - --------------------------------------
being given a

An exception was thrown: class org.apache.jasper.JasperException:/admin/gzylb/my_misc.jsp(167,1) According to TLD or attribute directive in tag file, attribute test does not accept any expressions
/admin/gzylb/my_misc.jsp
/admin/gzylb/my_misc.jsp
With the following stack trace:

------ For reference only ----------------------------------- ----
little detail can it?
------ For reference only -------------------------------------- -


So now found my jsp not through Action over, so you can not use these labels. There are other solutions it?

没有评论:

发表评论