2013年9月13日星期五

jsp accumulate a field in how to achieve ? ? Jiji Ji . . Find great God Weapon. .







now want to cumulative how to achieve this value ? ?

<% totalMoney + = Integer.parseInt ("%> <%");%>


write error jsp page will not pass . .


Jijiji
------ Solution --------------------------------- -----------
this logic is best placed in the background , put front will affect the page loading speed
------ Solution ---------- ----------------------------------
struts2 tag set is provided



it should be possible


------ Solution ------------------------------------ --------




Total :
------ For reference only ---------------- -----------------------
I tried the second floor you this does not work ah ? ? The fine points are not able to speak ? ?


list I was on the third floor of the collection of the same can traverse it ? ?

there is no good trick children do ? ?

------ For reference only ---------------------------------- -----
is the list traversal ah. The same reason. Try.
------ For reference only -------------------------------------- -
floor method is feasible , but I did that string type field is how to become an int it ? ? I summed into string concatenation. .

This page is also reported red cross . . .

------ For reference only ---------------------------------- -----
because this field involves the fuzzy query so use a String type. . . .
------ For reference only -------------------------------------- -
you great God who have strokes child you " " " ? ? ? ?
------ For reference only -------------------------------------- -

proposed landlord understand how the labels and struts tags

when values ​​change if the database ( if the field is that there are all digital words )
------ For reference only ---------------- -----------------------
Why numeric string you have to define it
------ For reference only ---------------------------------------
as defined numeric ; can not fuzzy query it. . So the outset defined as a String type . .
------ For reference only -------------------------------------- -
jstl like the default will be transferred , struts2 unclear. Your online to see if there is no other way
------ For reference only ------------------------------ ---------
brother to bear stickers Thank you for help . . .

没有评论:

发表评论