????4??JavaBean?????

???????巽???????????????JavaBean???????CounterBean?????????count???????
????1 //??JSP????з????4???Χ???JavaBean???????
????2
????3
????4 //in page scope
????5 <jsp:useBean id="myBean1" scope="page" class="CounterBean"/>
????6 //in request scope
????7 <jsp:useBean id="myBean2" scope="request" class="CounterBean"/>
????8 //in session scope
????9 <jsp:useBean id="myBean1" scope="session" class="CounterBean"/>
????10 //in application scope
????11 <jsp:useBean id="myBean1" scope="application " class="CounterBean"/>
????JSP???????JavaBean???????????????JavaBean??????????????????????????<jsp:getProperty>???
?????磺
1 //getProperty
????2 <jsp:getProperty name="myBean1" property="count"/>
????3 //setProperty
????4 <isp:setProperty name="myBean1" property="count" value="0"/>
??????Struts????У?ActionForm Bean?????????JavaBean???????????????????????????????????????????????????Χ??request??session??
????5???????JSP?????

????6??EJB???

????7??XML????
????XML????????????????????????????????????Struts????web????У?????????????????????web.xml??struts-config.xml??web.xml????????Web????struts-config????????Struts????
????8??Web??????????÷???????
??????TomCat??JBoss??
???????????Щ????????????£????????Щ“???”???????????????MVC??????????????Struts?????磬??????????????????????????????硣?????????????????????????????£??????????????????????????Struts??