??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品免费在线观看,亚洲人成电影在在线观看网色,亚洲视频在线观看地址http://m.tkk7.com/juanshuchun/Never accpet failure no matter how oftern it visits you keep on going , never give up. never~~~ zh-cnMon, 12 May 2025 07:00:16 GMTMon, 12 May 2025 07:00:16 GMT60session maphttp://m.tkk7.com/juanshuchun/articles/167041.html*一?*一?Tue, 11 Dec 2007 12:25:00 GMThttp://m.tkk7.com/juanshuchun/articles/167041.htmlsession map code1:

protected Status getDialogStatus() {
         Map sessionMap 
= FacesContext.getCurrentInstance()
            .getExternalContext()
            .getSessionMap();
         
return(Status)sessionMap.get(org.apache.shale.dialog.Globals.STATUS);
      }

session map code2:

  ChartData data = new ChartData();
  data.setWidth(width);
  data.setHeight(height);
  data.setTitle(title);
  data.setNames(names);
  data.setValues(values);

  String id 
= component.getClientId(context);
  ExternalContext external 
= FacesContext.getCurrentInstance().getExternalContext();
  Map
<String, Object> session = external.getSessionMap();
  session.put(id, data);

Object 保存在sessionscope map 里,可以在页面导航到其他面Ӟq能l箋讉KObject?br /> requestMap或sessionMap 临时保存对象?

*一? 2007-12-11 20:25 发表评论
]]>
onchangehttp://m.tkk7.com/juanshuchun/articles/167037.html*一?*一?Tue, 11 Dec 2007 12:09:00 GMThttp://m.tkk7.com/juanshuchun/articles/167037.html   <html>
     
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      
<%@ taglib uri="http://corejsf.com/pager" prefix="corejsf" %>
  
       
<f:view>
          
<head>
             
<link href="styles.css" rel="stylesheet" type="text/css"/>
            
<title>Pager Test</title>
          
</head>
           
<body>
              
<h:form>
               
<h:dataTable id="timezones" value="#{bb.data}" var="row" rows="10">
                   
<h:column>
                     
<h:selectBooleanCheckbox value="{bb.dummy}" onchange="submit()"/>
                   
</h:column>
                   
<h:column>
                      
<h:outputText value="#{row}" />
                   
</h:column>
                
</h:dataTable>
                
<corejsf:pager dataTableId="timezones"
                   showpages
="20" selectedStyleClass="currentPage"/>
                   
<h:commandButton value="foo"/>
             
</h:form>
          
</body>
       
</f:view>
   
</html>
onchange="submit()"

*一? 2007-12-11 20:09 发表评论
]]>
Event listeners can affect the JSF life cycle in one of three wayshttp://m.tkk7.com/juanshuchun/articles/167034.html*一?*一?Tue, 11 Dec 2007 11:57:00 GMThttp://m.tkk7.com/juanshuchun/articles/167034.html1.Let the life cycle proceed normally.

2.Call FacesContext.renderResponse() to skip the rest of the life cycle up to Render Response.

3.Call FacesContext.responseComplete() to skip the rest of the life cycle entirely.

See "Immediate Components" on page 287 for an example of using FacesContext.renderResponse().

  private static final String US = "United States";
  
  
public void countryChanged(ValueChangeEvent event) {
     FacesContext context 
= FacesContext.getCurrentInstance();

     
if (US.equals((String) event.getNewValue()))
        context.getViewRoot().setLocale(Locale.US);
     
else
        context.getViewRoot().setLocale(Locale.CANADA);

     context.renderResponse();
  }

The call to renderResponse() skips the rest of the life cycle—including validation of the rest of the input components in the form—up to Render Response. Thus, the other validations are skipped and the response is rendered normally (in this case, the current page is redisplayed).

To summarize, you can skip validation when a value change event fires by doing the following:

  1. Adding an immediate attribute to your input tag

  2. Calling FacesContext.renderResponse() at the end of your listener


       

 上文引用Q《core JavaServer™ Faces, Second Edition?/span>

*一? 2007-12-11 19:57 发表评论
]]>
The Syntax of Value Expressionshttp://m.tkk7.com/juanshuchun/articles/167023.html*一?*一?Tue, 11 Dec 2007 11:25:00 GMThttp://m.tkk7.com/juanshuchun/articles/167023.html
Table 2-4. Predefined Objects in the Value Expression Language
Variable Name Meaning
header A Map of HTTP header parameters, containing only the first value for each name.
headerValues A Map of HTTP header parameters, yielding a String[]array of all values for a given name.
param A Map of HTTP request parameters, containing only the first value for each name.
paramValues A Map of HTTP request parameters, yielding a String[]array of all values for a given name.
cookie A Map of the cookie names and values of the current request.
initParam A Map of the initialization parameters of this web application. Initialization parameters are discussed in Chapter 10.
requestScope A Map of all request scope attributes.
sessionScope A Map of all session scope attributes.
applicationScope A Map of all application scope attributes.
facesContext The FacesContext instance of this request. This class is discussed in Chapter 6.
view The UIViewRoot instance of this request. This class is discussed in

 Finally, if the name is still not found, it is passed to the VariableResolver of the JSF application. The default variable resolver looks up managed-bean elements in a configuration resource, typically the faces-config.xml file.

Consider, for example, the expression

  #{user.password}


The term user is not one of the predefined(预定? objects. When it is encounteredQ遇刎ͼ for the first time, it is not an attribute name in request, session, or application scope.

Therefore, the variable resolver processes the faces-config.xml entry:

  <managed-bean>
     <managed-bean-name>user</managed-bean-name>
     <managed-bean-class>com.corejsf.UserBean</managed-bean-class>
     <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>


The variable resolver calls the default constructor of the class com.corejsf.User-Bean. Next, it adds an association to the sessionScope map. Finally, it returns the object as the result of the lookup.

When the term user needs to be resolved again in the same session, it is located in the session scope


Composite Expressions
    

You can use a limited set of operators inside value expressions:

Arithmetic operators + - * / %. The last two operators have alphabetic variants div and mod.

Relational operators < <= > >= == != and their alphabetic variants lt le gt ge eq ne. The first four variants are required for XML safety.

Logical operators && || ! and their alphabetic variants and or not. The first variant is required for XML safety.

The empty operator. The expression empty a is true if a is null, an array or String of length 0, or a Collection or Map of size 0.

The ternary ?: selection operator.

 Operator precedence follows the same rules as in Java. The empty operator has the same precedence as the unary - and ! operators.

 Generally, you do not want to do a lot of expression computation in web pages—that would violate the separation of presentation and business logic. However, occasionally, the presentation layer can benefit from operators. For example, suppose you want to hide a component when the hide property of a bean is true. To hide a component, you set its rendered attribute to false. Inverting the bean value requires the ! (or not) operator:

  <h:inputText rendered="#{!bean.hide}" ... />


 

Finally, you can concatenate plain strings and value expressions by placing them next to each other. Consider, for example,

  <h:outputText value="#{messages.greeting}, #{user.name}!"/>


 

The statement concatenates four strings: the string returned from #{messages. greeting}, the string consisting of a comma and a space, the string returned from #{user.name}, and the string consisting of an exclamation mark.


        
上文Q《core JavaServer™ Faces, Second Edition?/span>



*一? 2007-12-11 19:25 发表评论
]]>
使用动态选择菜单http://m.tkk7.com/juanshuchun/articles/167017.html*一?*一?Tue, 11 Dec 2007 11:05:00 GMThttp://m.tkk7.com/juanshuchun/articles/167017.html<h:selectOneMenu value="#{form.country}" onchange="submit()"
     valueChangeListener
="#{form.countryChanged}">
     
<f:selectItems value="#{form.countryNames}"/>
  
</h:selectOneMenu>
onchange="submit()"

<f:selectItems value="#{form.countryNames}"/>   @ Specifies items for a select one or select many component

*一? 2007-12-11 19:05 发表评论
]]>
Using from-actionhttp://m.tkk7.com/juanshuchun/articles/167012.html*一?*一?Tue, 11 Dec 2007 10:52:00 GMThttp://m.tkk7.com/juanshuchun/articles/167012.htmlor two action method expressions that return the same action string.

        For example, suppose that in our quiz application, the startOverAction returns the string "again" instead of "startOver". The same string can be returned by the answerAction. To differentiate between the two navigation cases, you can use a from-action element. The contents of the element must be identical to the method expression string of the action attribute:

  <navigation-case>
     
<from-action>#{quiz.answerAction}</from-action>
     
<from-outcome>again</from-outcome>
     
<to-view-id>/again.jsp</to-view-id>
  
</navigation-case>
  
<navigation-case>
     
<from-action>#{quiz.startOverAction}</from-action>
     
<from-outcome>again</from-outcome>
     
<to-view-id>/index.jsp</to-view-id>
  
</navigation-case>
                       上文Q《core JavaServer™ Faces, Second Edition?/span>

*一? 2007-12-11 18:52 发表评论
]]>
使用通配W导?/title><link>http://m.tkk7.com/juanshuchun/articles/167010.html</link><dc:creator>*一?</dc:creator><author>*一?</author><pubDate>Tue, 11 Dec 2007 10:40:00 GMT</pubDate><guid>http://m.tkk7.com/juanshuchun/articles/167010.html</guid><description><![CDATA[<p>You can use wildcards in the from-view-id element of a navigation rule, for example:</p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">  </span><span style="color: #0000ff"><</span><span style="color: #800000">navigation-rule</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />     </span><span style="color: #0000ff"><</span><span style="color: #800000">from-view-id</span><span style="color: #0000ff">></span><span style="color: #000000">/secure/*</span><span style="color: #0000ff"></</span><span style="color: #800000">from-view-id</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />     </span><span style="color: #0000ff"><</span><span style="color: #800000">navigation-case</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />        <img alt="" src="http://m.tkk7.com/Images/dot.gif" /><br /> <img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />     </span><span style="color: #0000ff"></</span><span style="color: #800000">navigation-case</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"></</span><span style="color: #800000">navigation-rule</span><span style="color: #0000ff">></span></div> <p>This rule applies to all pages that start with the prefix /secure/. <strong>Only a single * is allowed, and it <span style="color: red">must</span> be at the end of the ID string.</strong></p>              <span style="font-size: 10pt; color: red">     上文Q《core JavaServer™ Faces, Second Edition?/span>                                                                               <img src ="http://m.tkk7.com/juanshuchun/aggbug/167010.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/juanshuchun/" target="_blank">*一?</a> 2007-12-11 18:40 <a href="http://m.tkk7.com/juanshuchun/articles/167010.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>把导航规则放在faces-config.xml 之外http://m.tkk7.com/juanshuchun/articles/167009.html*一?*一?Tue, 11 Dec 2007 10:37:00 GMThttp://m.tkk7.com/juanshuchun/articles/167009.htmlFiles listed in the javax.faces.CONFIG_FILES initialization parameter inside WEB-INF/web.xml. For example,

<web-app>
   
<context-param>
      
<param-name>javax.faces.CONFIG_FILES</param-name>
      
<param-value>WEB-INF/navigation.xml,WEB-INF/beans.xml</param-value>
   
</context-param>
   
</web-app>

(This mechanism is attractive for builder tools because it separates navigation, beans, etc.)

navigation.xml Qnavigation-rule
beans.xml       Qmanaged-bean

*一? 2007-12-11 18:37 发表评论
]]>
JSF Advanced Navigation :: redirect http://m.tkk7.com/juanshuchun/articles/167008.html*一?*一?Tue, 11 Dec 2007 10:09:00 GMThttp://m.tkk7.com/juanshuchun/articles/167008.html     If you add a redirect element after to-view-id, then the JSP container terminates the current request and sends an HTTP redirect to the client. The redirect response tells the client which URL to use for the next page.

    Redirecting the page is slower than forwarding because another round trip to the browser is involved. However, the redirection gives the browser a chance to update its address field.

Figure 3-8 shows how the address field changes when you add a redirection element, as follows:

<navigation-case>
      
<from-outcome>success</from-outcome>
      
<to-view-id>/success.jsp</to-view-id>
      
<redirect/>
</navigation-case>

Without redirection, the original URL (localhost:8080/javaquiz/index.faces) is unchanged when the user moves from the /index.jsp  page to the /success.jsp face. With redirection, the browser displays the new URL (localhost:8080/ javaquiz/success.faces).

Tip

Use the redirect element for pages that the user might want to bookmark.

                                                          上文Q《core JavaServer™ Faces, Second Edition?/span>

*一? 2007-12-11 18:09 发表评论
]]>
JavaServer Faces: The Complete Reference http://m.tkk7.com/juanshuchun/articles/167002.html*一?*一?Tue, 11 Dec 2007 09:51:00 GMThttp://m.tkk7.com/juanshuchun/articles/167002.htmlJSF 实现必须的库
            构徏JSF应用E序时必ȝ关键jar文g?jsf-api.jar ?jsf-impl.jar ?br />              除了核心JSFq行时jar文gQ还需要一些关键的“公共”jar文gQcommons-beanutils.jar     commonscollections.jar         commons-digester.jar    commons-logging.jar Q?br />
            
 1 # Jars for implementations of JCP standards
 2 standard.jar=local path to JSTL standard.jar
 3 jsf-impl.jar=local path to jsf-impl.jar
 4 
 5 
 7 # Jars for miscellaneous dependencies required #by Sun's JSF 1.1
 8 # implementation
 9 commons-beanutils.jar=local path to commons-beanutils.jar
10 commons-collections.jar=local path to commons-collections.jar
11 commons-digester.jar=local path to commons-digester.jar
12 commons-logging.jar=local path to commons-logging.jar


*一? 2007-12-11 17:51 发表评论
]]>
儿不宜的素?/title><link>http://m.tkk7.com/juanshuchun/articles/166653.html</link><dc:creator>*一?</dc:creator><author>*一?</author><pubDate>Mon, 10 Dec 2007 06:26:00 GMT</pubDate><guid>http://m.tkk7.com/juanshuchun/articles/166653.html</guid><wfw:comment>http://m.tkk7.com/juanshuchun/comments/166653.html</wfw:comment><comments>http://m.tkk7.com/juanshuchun/articles/166653.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/juanshuchun/comments/commentRss/166653.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/juanshuchun/services/trackbacks/166653.html</trackback:ping><description><![CDATA[<embed align="center" src="http://player.youku.com/player.php/sid/XODc1NDg4NA==/v.swf" width="450" height="372" type="application/x-shockwave-flash" quality="high" allowscriptaccess="sameDomain"></embed> <img src ="http://m.tkk7.com/juanshuchun/aggbug/166653.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/juanshuchun/" target="_blank">*一?</a> 2007-12-10 14:26 <a href="http://m.tkk7.com/juanshuchun/articles/166653.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>【{?0岁前不要d乎的29件事http://m.tkk7.com/juanshuchun/articles/166467.html*一?*一?Sun, 09 Dec 2007 08:47:00 GMThttp://m.tkk7.com/juanshuchun/articles/166467.html 1、放?nbsp;      

  把握的反面就是放弃,选择了一个机会,q于放弃了其他所有的可能?span style="color: red">当新的机会摆在面前的时候,敢于攑ּ已经获得的一切,q不是功亏一,q不是半途而废Q这是ؓ了谋求更大的发展I间Q或者什么都不ؓQ只因ؓ喜欢q样做,因ؓQ年d是最大的Z。hQ只有在三十岁之前才会有q个胆量Q有q个别资本,有这个资根{?nbsp;       

2、失?nbsp;      

  不是不在乎,是在乎不赗三十岁前最怕失ȝ不是已经拥有的东西,而是梦想。爱情如果只是一个过E,那么正是q个q龄应当l历的,如果要承担结果,三十岁以后,可能会更有能力,更有资格?span style="color: red">其实Q三十岁之前我们要做的事情很多,E纵即逝,q久地沉溺在已经乾涸的爱河的沛_中,与这个年龄的生命节奏不合?nbsp;      

3、离?nbsp;      

  不是不在乎,是一切还来得及。一位三十八岁的奛_与老公l婚十五q_h十三q_l于分手。她_「如果说后来不愿意离婚是Z孩子Q那他第一ơ提出离婚我没有同意Q现在想来真不知道ؓ什么。如果那个时候早分手Q我的生zȝ不会是今天这个样子。现在再重新开始,总觉得一切都晚了?nbsp;     

4、漂?nbsp;      

  漂泊不是一U不q,而是一U资根{趁著没有家室拖累,著w体健康Q此时不飘何旉Q当Ӟ漂泊的不一定是w体Q也许只是惛_梦境。新世纪的时领袖是飘一代,渴望漂泊的h惟一不飘的是那颗心?nbsp;      

5、失?nbsp;      

  三十岁以前就到׃的滋呛_然是一件不q的事,但不一定是坏事?span style="color: red">三十岁之前就q早地固定在一个职业上l此一生也许才是最大的不幸。失业也许让你想起埋藏很久而尘的梦想Q也怼唤醒q你自己都从未知道的潜能。也怽本来没什么梦惻Iq时候也会D你去做梦?nbsp;      

6、时?nbsp;      

  不要q赶时尚。按说青qh应该是最时尚的,但是独立思考和个性生zL重要。在q个物质C会Q其实对时尚的追求早已经成ؓ寚wqq求?span style="color: red">今天Q时是物欲和世俗的同义语?/span>      

7、格?nbsp;      

  q是资的东西,「小资」这个词在今天又二度行Q追求格调就是他们的专利。小资们_有格调要满四大要gQ智慧、素充R自信和金钱。格调就是把「高」理解成I著、气质、爱好的品味和室内装潢。也是大老粗只会表现谈吐的庸俗,「小资」们已经有能力庸俗他们的心灵了。主观念倒不是非要另c,另类已经成ؓq轻늚L了,在今天,老土倒显得另cR关键是当今C会是一个创造观늚时代Q而不是一个固守陈旧观늚时代?nbsp;      

8、评?nbsp;      

  我们最不应该做出的牺牲是因ؓ别h的评仯改变自我,因ؓ那些对你指手画脚的h自己也不知道他们遵从的规则是什么?span style="color: red">千万不要只遵从规矩做事,规矩q在创造之中,要根据自q判断做每一件事Q虽然这样会ȝ一炏V?/span>       

9、幼E?nbsp;      

  不要怕h说我们幼E,q正说明你还q轻Q还充满zd。「成熟」是个吓人的词儿Q也是个害h的词ѝ成熟和q稚是对一个h最大而无当、最不负责Q、最没用的概括。那些庸人,l不会有他们q稚。不信,到哪天你被生zd得老气横秋Q暮气沉沉的时候,Z一定会说你成熟了,你就会知道「成熟」是个什么东ѝ?nbsp;      

10、不适应       

  在一首摇滚里有这么一句:「这个城市改变了我,q个城市不需要我。?span style="color: red">不要盲目地适应你生存的环境Q因为很可能q环境自w已l不适应q个C会的发展了?/span>       

11、失?nbsp;      

  我的老师曄跟我_一个hL要在感情上失恋一ơ,在事业上p|一ơ,在选择上失误一ơ,才能长大。不要说p|是成功之母那L老话Q?span style="color: red">p|来得早好Q要是三十岁Q四十岁之后再经历失败,有些事,很可能就来不及了?nbsp;      

12、错?nbsp;      

  q是q轻人的专利?/span>

13、浅?nbsp;      

  如果每看一ơ《泰坦尼克号》就一ơ眼泪,每看一ơ《大话西游》就W得直不赯Q就会有人笑你浅薄。其实那只能说明你的经依旧非常敏锐Q对哪怕非常微q刺激都会q速做出适应的反应;{你的感觉迟钝了Qh们就会说你深沉了?nbsp;    

14、明?nbsp; 

  不是不必在乎Q是不能在乎。明星在商品C会是一U消费品Q花了钱Q听了歌Q看了电影,明星们的表现再好Q不q是物超所D己Q也不值得崇拜呀Q就像你在地摊上׃十块׃的裙子,别h都猜是八癑֝׃的,物超所g吧?你就崇拜上这w裙子了Q?nbsp; 

15、代?nbsp; 

  不是不计代hQ而是要明白做M事都要付Z仗对我们q个q龄的h来说Q这l不是一句废话。否则,要到三十岁的时候才会明白自己曾l付Z多少代hQ却不明白ؓ什么付出,更不明白自己得到了多,得到什么?nbsp; 

16、孤?nbsp; 

  q是׃出的代h?nbsp; 

17、失?nbsp; 

  包括感情上的Q事业上的,也许仅仅是今天花了冤枉钱没买到可心的东西Q朋友家高朋满自己却插不上一句话。过分在乎失意的感受不是拿命q的捉弄来捉弄自己,是拿别人的错误来惩|自己?nbsp; 

18、缺?nbsp; 

  也许你个子矮Q也怽长得不好看,也许你的嗓音像唐老鸭、、、那么你的优势就是你不会被自p面的薄的亮Ҏ耽搁Q少׃些时_走一些弯Q直接发C内在的优势,直接挖掘自己深层的潜能?nbsp; 

19、误?nbsp; 

  如果Z恶意Q那么解释也没有用;如果Z善意Q就不需要解释。专门说到「误会」倒不是因Z个h在三十岁之前被h误会的时候更多,而是q个q龄的h想不开的时候更多?nbsp; 

20、谣a  

  q是一U传染病Q沈默是最好的疫苗。除非你能找Z染源Q否则解释恰C成ؓ病毒传播最理想的条件?nbsp; 

21、疯?nbsp; 

  q是q轻人最好的心理调适,只能说明你精力旺盛,w心健康。说你「疯狂」是某些生活压抑、心力交瘁的中老年人恶意的评hQ他们就像一部年久修的机器,最需要调适,但只能微调,一ơ大修就会让他们完诞?nbsp; 

22、稳?nbsp; 

  三十岁之前就在乎E_的生z,那只有两U可能,要么是中了彩票Q要么就是未老先衰?nbsp; 

23、压?nbsp; 

  中年够承受多大压力检验的是他的韧性;q轻承受多大压力Q焕发的是他的潜能?nbsp; 
  
24、出?nbsp; 

  也许是个ZQ也许是个陷阱。除非从考大学的那一M抱著这个目标,否则Q对待出国的态度应该像对待爱情一P努力争取Q成败随~?/span>?nbsp; 

25、薪?nbsp; 

  只是lh打工Q薪水再高也高不到哪儿去。所?span style="color: red">在三十岁之前Q机会远比金钱重?/span>Q?span style="color: red">事业q比金钱重要Q?span style="color: red">来q比金钱重要。对大多Ch来说Q?span style="color: red">三十岁之前干事业的首要目标绝不是挣钱Q而是挣未?/span>?nbsp; 

26、存?nbsp; 

  q倒不一定是因ؓ我们钱少Q年Mh现在谁都知道钱是有生命的。机会这么多Q条件这么好Q可以拿钱去按揭Q做今天的事Q花明天的钱Q也可以拉KL资,拉K厅R充c?span style="color: red">钱只有在它流通的q程中才是钱Q否则只 是一叠世界上质量最好的废纸?nbsp; 

  
27、房?nbsp; 

  除非你买房子是ؓ了升|要嘛是你结婚了。我有个同学Q家在外圎ͼ大学毕业之后Q单位没有宿舍,安q他买了一套房子。他曄有过d京工作的ZQ但是他觉得刚买了房子就dq城市说不q去Q就攑ּ了。到现在他工作稳定,但一事无成。唯一的成就是结婚了Qƈ且有了孩子,因ؓ他觉得不该让q房子永q空著,所以房子变成了家。房子是都市生活的寓aQ这个寓a不应该过早的和我们相兟?nbsp; 

28、年?nbsp; 

  奛_子一q二十五开始隐瞒自qq龄Q其实大可不必。现在青q期都gq到四十五岁了,二十五又得了什么呢Q?nbsp; 

29、在?nbsp; 

  q是一U拿不v、放不下的心态,它的反面不是攑ּQ而是天马行空Q自p在,永远保持革命乐观M的精?/span>



*一? 2007-12-09 16:47 发表评论
]]>
MYSQL常用命ohttp://m.tkk7.com/juanshuchun/articles/166145.html*一?*一?Fri, 07 Dec 2007 13:25:00 GMThttp://m.tkk7.com/juanshuchun/articles/166145.html有很多朋友虽然安装好了mysql但却不知如何使用它。在q篇文章中我们就从连接MYSQL、修改密码、增加用L斚w来学习一些MYSQL的常用命令?

一、连接MYSQL?

格式Q?mysql -hL地址 -u用户?Qp用户密码

1、例1Q连接到本机上的MYSQL?

首先在打开DOSH口Q然后进入目?mysqlbinQ再键入命omysql -uroot -pQ回车后提示你输密码Q如果刚安装好MYSQLQ超U用户root是没有密码的Q故直接回R卛_q入到MYSQL中了QMYSQL的提C符是:mysql>

2、例2Q连接到q程L上的MYSQL。假设远E主机的IP为:110.110.110.110Q用户名为root,密码为abcd123。则键入以下命oQ?

mysql -h110.110.110.110 -uroot -pabcd123

Q注:u与root可以不用加空|其它也一P

3、退出MYSQL命oQ?exit Q回车)

二、修改密码?

格式Qmysqladmin -u用户?-p旧密?password 新密?

1、例1Q给root加个密码ab12。首先在DOS下进入目录mysqlbinQ然后键入以下命?

mysqladmin -uroot -password ab12

注:因ؓ开始时root没有密码Q所?p旧密码一就可以省略了?

2、例2Q再root的密码改为djg345?

mysqladmin -uroot -pab12 password djg345

三、增加新用户。(注意Q和上面不同Q下面的因ؓ是MYSQL环境中的命oQ所以后面都带一个分号作为命令结束符Q?

格式Qgrant select on 数据?* to 用户名@dL identified by \"密码\"

?、增加一个用户test1密码为abcQ让他可以在ML上登录,q对所有数据库有查询、插入、修攏V删除的权限。首先用以root用户q入MYSQLQ然后键入以下命令:

grant select,insert,update,delete on *.* to test1@\"%\" Identified by \"abc\";

但例1增加的用h十分危险的,你想如某个h知道test1的密码,那么他就可以在internet上的M一台电脑上d你的mysql数据库ƈ对你的数据可以ؓ所Ʋؓ了,解决办法见例2?

?、增加一个用户test2密码为abc,让他只可以在localhost上登录,q可以对数据库mydbq行查询、插入、修攏V删除的操作Qlocalhost指本C机,即MYSQL数据库所在的那台LQ,q样用户即用知道test2的密码,他也无法从internet上直接访问数据库Q只能通过MYSQLL上的web|讉K了?

grant select,insert,update,delete on mydb.* to test2@localhost identified by \"abc\";

如果你不想test2有密码,可以再打一个命令将密码消掉?

grant select,insert,update,delete on mydb.* to test2@localhost identified by \"\";

在上我们讲了登录、增加用戗密码更改等问题。下我们来看看MYSQL中有x据库斚w的操作。注意:你必首先登录到MYSQL中,以下操作都是在MYSQL的提C符下进行的Q而且每个命o以分L束?

一、操作技?

1、如果你打命令时Q回车后发现忘记加分P你无重打一遍命令,只要打个分号回R可以了。也是说你可以把一个完整的命o分成几行来打Q完后用分号作结束标志就OK?

2、你可以使用光标上下键调Z前的命o。但以前我用q的一个MYSQL旧版本不支持。我现在用的是mysql-3.23.27-beta-win?

二、显C命?

1、显C数据库列表?

show databases;

刚开始时才两个数据库Qmysql和test。mysql库很重要它里面有MYSQL的系l信息,我们改密码和新增用户Q实际上是用这个库q行操作?

2、显C库中的数据表:

use mysqlQ/Q打开库,学过FOXBASE的一定不会陌生吧

show tables;

3、显C数据表的结构:

describe 表名;

4、徏库:

create database 库名;

5、徏表:

use 库名Q?

create table 表名 (字段讑֮列表)Q?

6、删库和删表:

drop database 库名;

drop table 表名Q?

7、将表中记录清空Q?

delete from 表名;

8、显C中的记录Q?

select * from 表名;

三、一个徏库和以及插入数据的实?

drop database if exists school; //如果存在SCHOOL则删?

create database school; //建立库SCHOOL

use school; //打开库SCHOOL

create table teacher //建立表TEACHER

(

id int(3) auto_increment not null primary key,

name char(10) not null,

address varchar(50) default ’深圳’,

year date

); //l束

//以下为插入字D?

insert into teacher values(’’,’glchengang’,’深圳一?#8217;,’1976-10-10’);

insert into teacher values(’’,’jack’,’深圳一?#8217;,’1975-12-23’);

注:在徏表中Q?Q将ID设ؓ长度?的数字字D?int(3)q让它每个记录自动加一:auto_incrementq不能ؓI?not null而且让他成ؓdDprimary keyQ?Q将NAME设ؓ长度?0的字W字D(3Q将ADDRESS设ؓ长度50的字W字D,而且~省gؓ深圳。varchar和char有什么区别呢Q只有等以后的文章再说了。(4Q将YEAR设ؓ日期字段?

如果你在mysql提示W键入上面的命o也可以,但不方便调试。你可以以上命令原样写入一个文本文件中假设为school.sqlQ然后复制到c:\\?/span>Qƈ在DOS状态进入目?/span>\\mysql\\binQ然后键入以下命令:

mysql -uroot -p密码 < c:\\school.sql

如果成功Q空Z行无M昄Q如有错误,会有提示。(以上命o已经调试Q你只要?/的注释去掉即可用)?

四、将文本数据转到数据库中

1、文本数据应W合的格式:字段数据之间用tab键隔开Qnull值用\\n来代?/span>.

例:

3 rose 深圳二中 1976-10-10

4 mike 深圳一?1975-12-23

2、数据传入命?load data local infile \"文g名\" into table 表名;

注意Q你最好将文g复制?/span>\\mysql\\bin目录?/span>Qƈ且要先用use命o打表所在的库?

五、备份数据库Q(命o在DOS?/span>\\mysql\\bin目录下执?/span>Q?

mysqldump --opt school>school.bbb

注释:数据库school备䆾到school.bbb文gQschool.bbb是一个文本文Ӟ文g名Q取,打开看看你会有新发现?

后记Q其实MYSQL的对数据库的操作与其它的SQLcL据库大同异Q您最好找本将SQL的书看看。我在这里只介绍一些基本的Q其实我也就只懂q些了,呵呵。最好的MYSQL教程q是“晏子“译的“MYSQL中文参考手?#8220;不仅免费每个相关|站都有下蝲Q而且它是最权威的。可惜不是象\"PHP4中文手册\"那样是chm的格式,在查扑և数命令的时候不太方?/span>

 

源文?<http://inclear.bokee.com/5197086.html>

 



*一? 2007-12-07 21:25 发表评论
]]>
MyEclipse 配置Q不完全Q?/title><link>http://m.tkk7.com/juanshuchun/articles/166133.html</link><dc:creator>*一?</dc:creator><author>*一?</author><pubDate>Fri, 07 Dec 2007 13:02:00 GMT</pubDate><guid>http://m.tkk7.com/juanshuchun/articles/166133.html</guid><description><![CDATA[<span style="font-size: 10pt">【{】原文地址<a href="http://m.tkk7.com/cooky/archive/2007/10/05/150522.html">http://m.tkk7.com/cooky/archive/2007/10/05/150522.html<br /> </a><br /> MyEclipse [All in One] Version: 6.0.0 GA <br />         <font style="font-size: 8pt" size="2">文g字符~码:      <table cellspacing="2" cellpadding="2" width="500" border="0"> <tbody> <tr> <td>  <span style="font-size: 10pt">MENU: Window->Preferences->General->Workspace::Text file encoding: Other[UTF-8]</span></td> </tr> </tbody> </table> <br />         ~译和执行环?<br /> <table cellspacing="2" cellpadding="2" width="500" border="0"> <tbody> <tr> <td style="width: 506px; height: 49px">1. <span style="font-size: 10pt">MENU: Window->Preferences->Java->Compiler::Compiler compliance level: 6.0<br /> 2.  MENU: Window->Preferences->Java->Installed JREs::(Add...)jdk1.6.0<br /> 3.  MENU: Window->Preferences->MyEclipse->Application Servers->Tomcat->Tomcat 6.x::Enable,%Apache-tomcat-6.0.10%<br />                      Window->Preferences->MyEclipse->Application Servers->Tomcat->Tomcat 6.x->JDK::jdk1.6.0</span> <br /> </td> </tr> </tbody> </table> <br />           </font></span><br /> <img src ="http://m.tkk7.com/juanshuchun/aggbug/166133.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/juanshuchun/" target="_blank">*一?</a> 2007-12-07 21:02 <a href="http://m.tkk7.com/juanshuchun/articles/166133.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Xfirehttp://m.tkk7.com/juanshuchun/articles/166129.html*一?*一?Fri, 07 Dec 2007 12:35:00 GMThttp://m.tkk7.com/juanshuchun/articles/166129.html XFire是新一代的Java Web服务引擎QXFire使得在JavaEE应用中发布Web服务变得轻而易?/strong>。和其他Web服务引擎相比QXFire的配|非常简单,可以非常Ҏ地和Spring集成Q它使得Java开发h员终于可以获得和.Net开发h员一L开发效率?br />
׃使用了StAXQthe Streaming API for XMLQ基于流的XML解析Q作为XML解析器,XFire的运行速度又有了质的提高,q且XFire支持最新的JSR 181的Web服务注解。如果用Java 5Q只需要在源代码中~写相应的JSR 181注解QXFire可以根据Java 5注解自动提取所需的全部信息。由于JSR 181也是JavaEE Web服务标准的一部分Q用它最大的好处在于不仅极大地简化了配置Q而且避免了配|文件和某个特定的Web服务引擎的锁?

*一? 2007-12-07 20:35 发表评论
]]>
Web Services ?/title><link>http://m.tkk7.com/juanshuchun/articles/166125.html</link><dc:creator>*一?</dc:creator><author>*一?</author><pubDate>Fri, 07 Dec 2007 12:15:00 GMT</pubDate><guid>http://m.tkk7.com/juanshuchun/articles/166125.html</guid><description><![CDATA[<strong>Web Services </strong>是一U构建应用程序的普通模型,q能在所有支?Internet 通讯的操作系l上实施q行。Web Services 令基于组件的开发和 Web 的结合达到最佻IZlg的对象模型,如:Distributed Component Object Model(DCOM)、Remote Method Invocation(RMI)QInternet Inter-Orb Protocol(IIOP)都已l发布了很长旉了,但是q些模型都依赖于Ҏ对象模型协议Q?Web Services 利用 SOAP ?XML<br /> 对这些模型在通讯斚w作了q一步的扩展以消除特D对象模型的障碍?br />   Web Services 主要利用 HTTP ?SOAP 协议是商业数据在 Web 上传输,SOAP通过 HTTP 调用商业对象执行q程功能调用QWeb 用户能够使用 SOAP ?HTTP通过 Web 调用的方法来调用q程对象.<br /> <br /> <strong>Web Services l构</strong><br /> <br /> 客户Ҏ WSDL 描述文Q会生成一?SOAP h消息。Web Services 都是攑֜Web服务器(如IISQ后面,客户生成的SOAPh会被嵌入在一个HTTP POSTh中,发送到 Web 服务器来。Web 服务器再把这些请求{发给 Web Services h处理器。请求处理器的作用在于,解析收到?SOAP hQ调?Web ServicesQ?br /> 然后再生成相应的 SOAP 应答。Web 服务器得?SOAP 应答后,会再通过 HTTP应答的方式把信息送回到客L?br /> <br /> <strong>Web Services 体系</strong><br /> <br /> Web Services 体系主要包括以下几个斚wQ?br /> ?Web Services lg。包?3 U组Ӟ<br /> 服务提供者:提供服务Q进行注册以使服务可用;<br /> 服务代理Q服务交换所Q服务提供者和服务h者之间的媒体Q?br /> 服务h者:向服务代理请求服务,调用q些服务创徏应用E序?br /> ?Web Services 操作。包?3 U操作:<br />     发布/不发?Publish/Unpublish)Q提供者向代理发布Q注册)服务或不发布Q移<br />     去)q些服务的注册;<br /> 发现(Find)Q由服务h者向服务代理执行 find 操作Q服务请求者描q要扄<br /> 服务Q服务代理分发匹配的l果Q?br /> l定(Bind)Q在服务h者和服务提供者之间绑定,q两部分协商以h?br /> 可以讉K和调用提供者的服务?br /> ?UDDI——通用发现、描q和整合?br /> q是一个Web Services的信息注册规?ZUDDI的Web Services注册可以被发?UDDI 的发现方法是Q在 Web 上有一U分布的注册服务Q商务和服务以一U通用?XML 格式描述QXML 中的l构化数据易于发现、分析和操作?br /> ?WSDL——Web 服务描述语言?br /> Web 服务描述a?WSDL)是一U?XML 语法Qؓ服务提供者提供了描述构徏在不同协议或~码方式之上?Web Services h基本格式的方法?strong><span style="color: red"><strong>WSDL 用来描述一?Web Services 能做什么,它的位置在哪里,如何调用它等。在假定以SOAP/HTTP/MIME 作ؓq程对象调用机制的情况下QWSDL 会发挥最大作?/strong>?/span></strong>UDDI 注册描述?Web Services l大多数斚wQ包括服务的l定l节。WSDL 可以看作?UDDI 服务描述的子集?br /> WSDL 服务定义ؓ一个网l端点的集合Q或者说端口的集合。在 WSDL 里面Q端点及消息的抽象定义与它们具体的网l实现和数据格式l定是分ȝ。这样就可以重用q些抽象定义Q消息,需要交换的数据的抽象描qͼ端口cdQ操作的抽象集合。针对一个特定端口类型的具体协议和数据格式规范构成一个可重用的绑定。一个端口定义成|络地址和可重用的绑定的q接Q端口的集合定义为服务。因此一?WSDL 文在定义网l服务的时候用如下的元素Q?br /> cd——用某U的cdpȝQ如 XSDQ定义数据类型的容器Q?br /> 消息——通讯数据抽象的有cd的定义;<br /> 操作——服务支持动作的抽象描述Q?br /> 端口cd——一个操作的抽象集合Q该操作׃个或多个端点支持Q?br /> l定——针对一个特定端口类型的具体协议规范和数据格式规范;<br /> 端口——一个单一的端点,定义成一个绑定和一个网l地址的链接;<br /> 服务——相关端点的集合?br /> 所以不隄出,WSDL l客h供了一个模板,方便客户描述和绑定服?<br /> <img src ="http://m.tkk7.com/juanshuchun/aggbug/166125.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/juanshuchun/" target="_blank">*一?</a> 2007-12-07 20:15 <a href="http://m.tkk7.com/juanshuchun/articles/166125.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>лǵվܻԴȤ</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> վ֩ģ壺 <a href="http://8654123.com" target="_blank">ձVAҹӰԺ</a>| <a href="http://www-006688.com" target="_blank">Ļ9</a>| <a href="http://langtuojidian.com" target="_blank">ƵƷѹۿ99</a>| <a href="http://khushkhush.com" target="_blank">jzzijzzij߹ۿ츾</a>| <a href="http://cswangli.com" target="_blank">avպavۺ</a>| <a href="http://gstywy.com" target="_blank">Ƶ߹ۿƵ</a>| <a href="http://nnlxl.com" target="_blank">뿴avվ</a>| <a href="http://tqdrhj.com" target="_blank">ѹƵȫվ</a>| <a href="http://ge2hao.com" target="_blank">Ƶ</a>| <a href="http://livejimmy.com" target="_blank">׾ƷƵ</a>| <a href="http://vo168.com" target="_blank">ŷպ </a>| <a href="http://tv787.com" target="_blank">պavһ</a>| <a href="http://see01.com" target="_blank">һƵ</a>| <a href="http://pj9xx6.com" target="_blank">Ƶ</a>| <a href="http://arkinbokis.com" target="_blank">ɫվ߹ۿ</a>| <a href="http://55xxb.com" target="_blank">޾Ʒav</a>| <a href="http://yy975.com" target="_blank">þþƷ޸</a>| <a href="http://czdlglass.com" target="_blank">պƵ</a>| <a href="http://ybcin.com" target="_blank">69ʽƵ</a>| <a href="http://www-66409b.com" target="_blank">5</a>| <a href="http://qqc46.com" target="_blank">ëƬaëƬѲ100</a>| <a href="http://zblinghang.com" target="_blank">רAAAAAAƵ</a>| <a href="http://kimnote.com" target="_blank">ѿŮҹƬ</a>| <a href="http://clzqb2b.com" target="_blank">һ˿ѹۿձƵwww</a>| <a href="http://wcnmgb.com" target="_blank">һëƬѹۿ</a>| <a href="http://cangtuyuan.com" target="_blank">ѲһëƬ</a>| <a href="http://k4h3.com" target="_blank">þþþþëƬѲ</a>| <a href="http://qulu999.com" target="_blank">һ߲ѹۿİƵ</a>| <a href="http://amjt9.com" target="_blank">й߹ۿѸ</a>| <a href="http://juguanghr.com" target="_blank">պëƬ߹ۿ</a>| <a href="http://ytshdiping.com" target="_blank">Ʒxxxxˮ޹Ʒþһ </a>| <a href="http://jpvv8.com" target="_blank">ִӲˬִֿƵ</a>| <a href="http://cqtchtwq.com" target="_blank">þѿaëƬ</a>| <a href="http://554ka.com" target="_blank">Ʒþþþþþ</a>| <a href="http://fsszx888.com" target="_blank">޹aۺ</a>| <a href="http://502274.com" target="_blank">޸ľƷ26U</a>| <a href="http://ss8kk.com" target="_blank">˿1ҳ</a>| <a href="http://j2eesp.com" target="_blank">޹avŪŵ˸</a>| <a href="http://zg8k.com" target="_blank">2020þþƷۺһ</a>| <a href="http://qingdaostf.com" target="_blank">ŷͽȺ</a>| <a href="http://m0808dy.com" target="_blank">ɫַ߹ۿ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>