2013年10月11日星期五

Percentile investigation , ognl usage how

 This post last edited by the FishOfThink on 2013-10-10 15:33:10
I was a lecturer in JAVA , is now teaching students struts courses . Encountered a tangle of problems , willing to please help.
company where you do the project in using SSH , use it over the STRUTS OGNL expressions ?
answer should not be too complicated, and I said as long as the number of items , and the use of OGNL number of items on it. Such as the following format .

number of items : 3
use OGNL number of items : 1

Thank you . CSDN allows up to 100 points, enough points I'll open another stickers scattered points .

bow ! ! ! !

PS: not used SSH framework of the brothers do not reply , and water paste without distinction , but also a waste of your keyboard , why bother ?
------ Solution ---------------------------------------- ----
number of items : 3
use OGNL number of items : 3
------ Solution ---------------------------- ----------------
number of items : 20
use OGNL number of items : 1 Use only had 1
------ Solution - -------------------------------------------
number of items : 3
use OGNL number of items : 2
------ Solution ------------------------------ --------------
WEB project : 10 +
use OGNL number of items : 50%
------ Solution ----------------------------- ---------------
number of items : 4
use OGNL number of items : 2
------ Solution ------------------------------ --------------
10 +
basic need , el used more
------ Solution ---------------------------- ----------------
number of items : 3
use OGNL number of items : 0
------ Solution ---------------------------- ----------------

and this proportion is the same as
------ Solution ------------- -------------------------------
number of items : 2
use OGNL number of items : 2
------ Solution ------------------------------ --------------
number of items : 10
use OGNL number of items : 0
now popular ajax, less than an expression .
------ Solution ------------------------- -------------------
number of items : 10 +
Use OGNL items: 80%

OGNL is quite handy
------ For reference only ---------------------------- -----------
OGNL expression is very strong. It can be removed if the Ni a value or a required field when the Ni another page can not channel this value. Take the most simple truth is , if you need to modify a Ni a page ID, Ni modified process can not go to modify its ID, then the other can only modify other information information how to , this time with OGNL expression is undoubtedly the best
------ For reference only ----------------------- ----------------
if used struts2 generally will use ognl, easy to chant. Useless struts who would go with that thing
------ For reference only ---------------------------- -----------
OGNL syntax he spent 20 minutes reading . basically needed now to see syntax rules.
The basic framework of the company without Struts
------ For reference only ----------------------------- ----------
never used Struts2 OGNL What the hell is not clear labels ?
------ For reference only -------------------------------------- -


OGNL how to use , what good I was clear that this is no need to introduce it.
The question now is , after all, OGNL not the only option , then the actual project , how many people use it?

------ For reference only ---------------------------------- -----
basic understanding , thank you

没有评论:

发表评论