??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一区在线免费,国产写真视频在线观看,久久五月精品http://www.aygfsteel.com/yemoo/Java技术修g...zh-cnThu, 01 May 2025 09:25:46 GMTThu, 01 May 2025 09:25:46 GMT60FreeMarkerҎ(gu)介l与概述【{自赛q网?/title><link>http://www.aygfsteel.com/yemoo/archive/2007/06/19/125034.html</link><dc:creator>Yemoo'S Java Blog</dc:creator><author>Yemoo'S Java Blog</author><pubDate>Tue, 19 Jun 2007 00:26:00 GMT</pubDate><guid>http://www.aygfsteel.com/yemoo/archive/2007/06/19/125034.html</guid><wfw:comment>http://www.aygfsteel.com/yemoo/comments/125034.html</wfw:comment><comments>http://www.aygfsteel.com/yemoo/archive/2007/06/19/125034.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yemoo/comments/commentRss/125034.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yemoo/services/trackbacks/125034.html</trackback:ping><description><![CDATA[ <p style="TEXT-INDENT: 2em">FreeMarker是一个模板引擎,一个基于模板生成文本输出的通用工具Q用纯Java~写 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">FreeMarker被设计用来生成HTML Web面Q特别是ZMVC模式的应用程? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">虽然FreeMarkerh一些编E的能力Q但通常由JavaE序准备要显C的数据Q由FreeMarker生成面Q通过模板昄准备的数? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">FreeMarker不是一个Web应用框架Q而适合作ؓ(f)Web应用框架一个组? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">FreeMarker与容器无养I因ؓ(f)它ƈ不知道HTTP或ServletQFreeMarker同样可以应用于非Web应用E序环境 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">FreeMarker更适合作ؓ(f)Model2框架Q如StrutsQ的视图lgQ你也可以在模板中用JSP标记? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">FreeMarker是免费的 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">1、通用目标 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">能够生成各种文本QHTML、XML、RTF、Java源代码等{? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">易于嵌入C的品中Q轻量Q不需要Servlet环境 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">插g式模板蝲入器Q可以从M源蝲入模板,如本地文件、数据库{等 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">你可以按你所需生成文本Q保存到本地文gQ作为Email发送;从Web应用E序发送它q回lWeb览? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">2、强大的模板语言 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">所有常用的指o(h)Qinclude、if/elseif/else、@环结? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">在模板中创徏和改变变? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">几乎在Q何地斚w可以使用复杂表达式来指定? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">命名的宏Q可以具有位|参数和嵌套内容 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">名字I间有助于徏立和l护可重用的宏库Q或者将一个大工程分成模块Q而不必担?j)名字冲H? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">输出转换块:(x)在嵌套模板片D는成输出时Q{换HTML转义、压~、语法高?sh)等{;你可以定义自q转换 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">3、通用数据模型 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">FreeMarker不是直接反射到Java对象QJava对象通过插g式对象封装,以变量方式在模板中显C? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">你可以用抽象(接口Q方式表C对象(JavaBean、XML文档、SQL查询l果集等{)(j)Q告诉模板开发者用方法,使其不受技术细节的打扰 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">4、ؓ(f)Web准备 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">在模板语a中内建处理典型Web相关dQ如HTML转义Q的l构 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">能够集成到Model2 Web应用框架中作为JSP的替? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">支持JSP标记? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">为MVC模式设计Q分d视化设计和应用程序逻辑Q分页面设计员和程序员 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">5、智能的国际化和本地? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">字符集智能化Q内部用UNICODEQ? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">数字格式本地化敏? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">日期和时间格式本地化敏感 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">非US字符集可以用作标识(如变量名Q? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">多种不同语言的相同模? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">6、强大的XML处理能力 </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em"><#recurse> ?lt;#visit>指o(h)Q?.3版本Q用于递归遍历XML? </p> <p style="TEXT-INDENT: 2em"> </p> <p style="TEXT-INDENT: 2em">在模板中清楚和直觉的讉KXML对象模型 </p> <img src ="http://www.aygfsteel.com/yemoo/aggbug/125034.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2007-06-19 08:26 <a href="http://www.aygfsteel.com/yemoo/archive/2007/06/19/125034.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>配置全局错误处理面http://www.aygfsteel.com/yemoo/archive/2007/06/06/122384.htmlYemoo'S Java BlogYemoo'S Java BlogWed, 06 Jun 2007 07:59:00 GMThttp://www.aygfsteel.com/yemoo/archive/2007/06/06/122384.htmlhttp://www.aygfsteel.com/yemoo/comments/122384.htmlhttp://www.aygfsteel.com/yemoo/archive/2007/06/06/122384.html#Feedback0http://www.aygfsteel.com/yemoo/comments/commentRss/122384.htmlhttp://www.aygfsteel.com/yemoo/services/trackbacks/122384.html在xml中配|如下:(x)
<error-page>
 (tng) (tng) (tng)<error-code>500</error-code>
 (tng) (tng) (tng)<location>error.jsp</location>
</error-page>
<error-page>
 (tng) (tng) (tng)<error-code>404</error-code>
 (tng) (tng) (tng)<location>notfound.jsp</location>
</error-page>

通过以上配置Q程序会(x)自动Ҏ(gu)错误cd转向不同的错误页面?img src ="http://www.aygfsteel.com/yemoo/aggbug/122384.html" width = "1" height = "1" />

Yemoo'S Java Blog 2007-06-06 15:59 发表评论
]]>
Struts2下的用户权限验证问题解决Ҏ(gu)http://www.aygfsteel.com/yemoo/archive/2007/06/06/122367.htmlYemoo'S Java BlogYemoo'S Java BlogWed, 06 Jun 2007 07:17:00 GMThttp://www.aygfsteel.com/yemoo/archive/2007/06/06/122367.htmlhttp://www.aygfsteel.com/yemoo/comments/122367.htmlhttp://www.aygfsteel.com/yemoo/archive/2007/06/06/122367.html#Feedback6http://www.aygfsteel.com/yemoo/comments/commentRss/122367.htmlhttp://www.aygfsteel.com/yemoo/services/trackbacks/122367.html对于权限验证Q如果程序由目录划分Q如理员访问的面都放在admin下,q样我们可以写一个权限验证的qo(h)器,然后配置a(chn)dmin目录都要l过q个qo(h)器即可。这样对于jsp面的权限验证比较容易。但对于actionQ控制器c)(j)׃好控制了(jin)Q因为action是没有目录概늚Q如我们讉Ka(chn)ction的地址为:(x)http://xxx/sample/ac1.actionQ同时如果?a href="http://xxx/sample/xx/xx/ac1.action">http://xxx/sample/xx/xx/ac1.action同样可以讉KQ这是因为只要在q个目目录下,讉K的页面如果ؓ(f)action则struts׃(x)L询这个action名字对应的类Q而不前面的目录l构。因此我们不能再用过滤器对管理员部分的actionq行验证。经q查看struts2的相兌料发C(jin)拦截器这个有用的东西。通过struts2的配|文件的包管理功能和拦截器可以轻杄Ҏ(gu)定的action做管理(拦截Q,?br />===================================================
<package name="user" extends="struts-default">
 (tng) (tng)<!-- 前台用户操作部分 -->
 (tng) (tng)<!-- 框架,昄分类 -->
 (tng) (tng)<action name="queryCateForwardUI"
 (tng) (tng) (tng)class="com.topsoft.bookmanage.web.action.QueryCateForwardActionUI">
 (tng) (tng) (tng)<result>/mainPage.jsp</result>
 (tng) (tng)</action>
 (tng) (tng) (tng) 。。。。?br /></package>
<!-- 理员操作部?-->
 (tng)<package name="manager" extends="struts-default">
 (tng) (tng)<!-- 拦截?-->
 (tng) (tng)<interceptors>
 (tng) (tng) (tng)<interceptor name="auth" class="com.topsoft.common.LogonInterceptor" />
 (tng) (tng) (tng)<interceptor-stack name="authStack"> (tng)
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) <interceptor-ref name="auth"/> (tng)
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) <interceptor-ref name="paramsPrepareParamsStack"/> (tng)
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) </interceptor-stack> (tng)
 (tng) (tng)</interceptors>
 (tng) (tng)<!-- 默认执行的拦截器 -->
 (tng) (tng)<default-interceptor-ref name="authStack"/>
 (tng) (tng)<!-- 全局Action映射 -->
 (tng) (tng)<global-results>
 (tng) (tng) (tng)<result name="login" type="redirect">/managerLoginUI.action</result>
 (tng) (tng)</global-results>
 (tng) (tng)
 (tng) (tng)<!-- 后台理首页面UI -->
 (tng) (tng)<action name="managerIndexUI"
 (tng) (tng) (tng)class="com.topsoft.bookmanage.web.action.ManagerIndexActionUI">
 (tng) (tng) (tng)<result>/admin/index.jsp</result>
 (tng) (tng)</action>
 (tng)。。。。。?br /></package>
=================================================

通过使用拦截?qo(h)器可以完解x(chng)限验证的问题?img src ="http://www.aygfsteel.com/yemoo/aggbug/122367.html" width = "1" height = "1" />

Yemoo'S Java Blog 2007-06-06 15:17 发表评论
]]>
struts2的struts.properties配置文g详解 http://www.aygfsteel.com/yemoo/archive/2007/05/20/118722.htmlYemoo'S Java BlogYemoo'S Java BlogSun, 20 May 2007 11:05:00 GMThttp://www.aygfsteel.com/yemoo/archive/2007/05/20/118722.htmlhttp://www.aygfsteel.com/yemoo/comments/118722.htmlhttp://www.aygfsteel.com/yemoo/archive/2007/05/20/118722.html#Feedback0http://www.aygfsteel.com/yemoo/comments/commentRss/118722.htmlhttp://www.aygfsteel.com/yemoo/services/trackbacks/118722.htmlstruts.action.extension
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The URL extension to use to determine if the request is meant for a Struts action
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 用URL扩展名来定是否q个h是被用作Struts actionQ其实也是讄 action的后~Q例如login.do?do'字?/p>

struts.configuration
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The org.apache.struts2.config.Configuration implementation class
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) org.apache.struts2.config.Configuration接口?/p>

struts.configuration.files
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) A list of configuration files automatically loaded by Struts
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) struts自动加蝲的一个配|文件列?/p>

struts.configuration.xml.reload
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Whether to reload the XML configuration or not
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 是否加蝲xml配置(true,false)

struts.continuations.package
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The package containing actions that use Rife continuations
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 含有actions的完整连l的package名称

struts.custom.i18n.resources
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Location of additional localization properties files to load
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 加蝲附加的国际化属性文Ӟ不包?properties后缀Q?/p>

struts.custom.properties
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Location of additional configuration properties files to load
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 加蝲附加的配|文件的位置


struts.devMode
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Whether Struts is in development mode or not
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 是否为struts开发模?/p>

struts.dispatcher.parametersWorkaround
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Q某些版本的weblogic专用Q是否用一个servleth参数工作区(PARAMETERSWORKAROUNDQ?/p>

struts.enable.DynamicMethodInvocation
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Allows one to disable dynamic method invocation from the URL
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 允许动态方法调?/p>

struts.freemarker.manager.classname
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The org.apache.struts2.views.freemarker.FreemarkerManager implementation class
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) org.apache.struts2.views.freemarker.FreemarkerManager接口?/p>

struts.i18n.encoding
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The encoding to use for localization messages
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 国际化信息内?/p>

struts.i18n.reload
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Whether the localization messages should automatically be reloaded
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 是否国际化信息自动加?

struts.locale
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The default locale for the Struts application
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 默认的国际化地区信息

struts.mapper.class
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) org.apache.struts2.dispatcher.mapper.ActionMapper接口

struts.multipart.maxSize
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The maximize size of a multipart request (file upload)
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) multiparth信息的最大尺寸(文g上传用)(j)

struts.multipart.parser
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The org.apache.struts2.dispatcher.multipart.MultiPartRequest parser implementation for a multipart request (file upload)
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 专ؓ(f)multiparth信息使用的org.apache.struts2.dispatcher.multipart.MultiPartRequest解析器接口(文g上传用)(j)


struts.multipart.saveDir
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The directory to use for storing uploaded files
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 讄存储上传文g的目录夹

struts.objectFactory
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The com.opensymphony.xwork2.ObjectFactory implementation class
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) com.opensymphony.xwork2.ObjectFactory接口QspringQ?/p>

struts.objectFactory.spring.autoWire
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Whether Spring should autoWire or not
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 是否自动l定Spring

struts.objectFactory.spring.useClassCache
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Whether Spring should use its class cache or not
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 是否spring应该使用自n的cache

struts.objectTypeDeterminer
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) com.opensymphony.xwork2.util.ObjectTypeDeterminer接口

struts.serve.static.browserCache
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) If static content served by the Struts filter should set browser caching header properties or not
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 是否strutsqo(h)器中提供的静(rn)态内容应该被览器缓存在头部属性中

struts.serve.static
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Whether the Struts filter should serve static content or not
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 是否strutsqo(h)器应该提供静(rn)态内?/p>

struts.tag.altSyntax
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Whether to use the alterative syntax for the tags or not
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 是否可以用替代的语法替代tags

struts.ui.templateDir
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The directory containing UI templates
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) UI templates的目录夹

struts.ui.theme
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The default UI template theme
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 默认的UI template主题

struts.url.http.port
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The HTTP port used by Struts URLs
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 讄http端口

struts.url.https.port
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The HTTPS port used by Struts URLs
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 讄https端口

struts.url.includeParams
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The default includeParams method to generate Struts URLs
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 在url中?默认的includeParams


struts.velocity.configfile
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The Velocity configuration file path
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) velocity配置文g路径

struts.velocity.contexts
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) List of Velocity context names
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) velocity的context列表


struts.velocity.manager.classname
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) org.apache.struts2.views.velocity.VelocityManager implementation class
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) org.apache.struts2.views.velocity.VelocityManager接口?/p>

struts.velocity.toolboxlocation
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) The location of the Velocity toolbox
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) velocity工具盒的位置
struts.xslt.nocache
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) Whether or not XSLT templates should not be cached
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 是否XSLT模版应该被缓?



Yemoo'S Java Blog 2007-05-20 19:05 发表评论
]]>
MyEclipse + Struts+Spring+hibernate 学习(fn)W记 之applicationContext解析[摘自Kelven Cheung]http://www.aygfsteel.com/yemoo/archive/2007/05/15/117480.htmlYemoo'S Java BlogYemoo'S Java BlogTue, 15 May 2007 00:21:00 GMThttp://www.aygfsteel.com/yemoo/archive/2007/05/15/117480.htmlhttp://www.aygfsteel.com/yemoo/comments/117480.htmlhttp://www.aygfsteel.com/yemoo/archive/2007/05/15/117480.html#Feedback0http://www.aygfsteel.com/yemoo/comments/commentRss/117480.htmlhttp://www.aygfsteel.com/yemoo/services/trackbacks/117480.html<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "

<beans>

 (tng) (tng)建立一个数据源
 (tng)<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
 (tng) <property name="driverClassName">
 (tng) (tng) <value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
 (tng) </property>
 (tng) <property name="url">
 (tng) (tng) <value>jdbc:microsoft:sqlserver://192.168.0.6:1433</value>
 (tng) </property>
 (tng) <property name="username">
 (tng) (tng) <value>sa</value>
 (tng) </property>
 (tng) <property name="password">
 (tng) (tng) <value></value>
 (tng) </property>
 (tng)</bean>

 (tng) 建立?x)话工厂c,q个cM用spring专门为hibernate3提供LocalSessionFactoryBean
 (tng)
 (tng)<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
 (tng) <property name="dataSource">
 (tng) (tng) <ref local="dataSource" /> (tng) --引用上面的数据源
 (tng) </property>
 (tng) <property name="mappingResources"> (tng) --调入映射文档
 (tng) (tng) <list>
 (tng) (tng) (tng) <value>com/yourcompany/User.hbm.xml</value> (tng)
 (tng) (tng) </list>
 (tng) </property>
 (tng) <property name="hibernateProperties"> (tng) --相关讄
 (tng) (tng) <props>
 (tng) (tng) (tng) <prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop>
 (tng) (tng) (tng) <prop key="hibernate.show_sql">true</prop>
 (tng) (tng) </props>
 (tng) </property>
 (tng)</bean>
 (tng) (tng)

 (tng) (tng) (tng) 定义事务理器,q个也是 spring专门为hibernate3提供的HibernateTransactionManager 事务理?br /> (tng)<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
 (tng) <property name="sessionFactory">
 (tng) (tng) <ref local="sessionFactory" /> (tng) (tng) --引用?x)话工厂c?br /> (tng) </property>
 (tng)</bean>

 (tng)定义实体DAO
 (tng)<bean id="userDAO" class="com.yourcompany.UserDAOImp">
 (tng) <property name="sessionFactory">
 (tng) (tng) <ref local="sessionFactory" />--引用?x)话工厂c?/font>
 (tng) </property>
 (tng)</bean>
 (tng)

 (tng)Z面的实体DAO定义一个代?proxy)c,q是spring决事务问题而提供TransactionProxyFactoryBean动态事务代理类
 (tng)<bean id="userDAOProxy" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
 (tng) <property name="transactionManager">
 (tng) (tng) <ref bean="transactionManager" /> (tng) --指定事务理?需要是spring专用?
 (tng) </property>
 (tng) <property name="target"> --目标实体DAOc?/font>
 (tng) (tng) <ref local="userDAO" />
 (tng) </property>
 (tng) <property name="transactionAttributes"> --定义要用事务的Ҏ(gu)
 (tng) (tng) <props>
 (tng) (tng) (tng) <prop key="insert*">PROPAGATION_REQUIRED</prop> (tng) --所有insert开头的Ҏ(gu)都用事务,出错要回?/font>
 (tng) (tng) (tng) <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop> --所有get开头的Ҏ(gu)都用只M?br /> (tng) (tng) (tng) <prop key="is*">PROPAGATION_REQUIRED,readOnly</prop>--所有ist开头的Ҏ(gu)都用只M?/font>
 (tng) (tng) </props>
 (tng) </property>
 (tng)</bean>

 (tng) (tng)?path="/login" (tng)的struts action 定义实际的actionc?该action (tng)已经q行 (tng)type="org.springframework.web.struts.DelegatingActionProxy"讄
 (tng) <bean name="/login" class="com.yourcompany.struts.action.LoginAction" singleton="false">
 (tng) (tng) (tng) <property name="userDAO">
 (tng) (tng) (tng) <ref bean="userDAOProxy" /> (tng) --注意Q这里指定的userDAO是上面定义的代理c?br /> (tng) </property>
 (tng)</bean>
</beans> (tng)

posted on 2006-12-05 15:40 kelven 阅读(1



]]>
NetBeans启动提示QCannot find java错误的解军_?/title><link>http://www.aygfsteel.com/yemoo/archive/2007/03/11/103115.html</link><dc:creator>Yemoo'S Java Blog</dc:creator><author>Yemoo'S Java Blog</author><pubDate>Sun, 11 Mar 2007 08:54:00 GMT</pubDate><guid>http://www.aygfsteel.com/yemoo/archive/2007/03/11/103115.html</guid><wfw:comment>http://www.aygfsteel.com/yemoo/comments/103115.html</wfw:comment><comments>http://www.aygfsteel.com/yemoo/archive/2007/03/11/103115.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yemoo/comments/commentRss/103115.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yemoo/services/trackbacks/103115.html</trackback:ping><description><![CDATA[今天把jdk?.6.0卸蝲后又安装?.5.04,然后发现netbeans无法启动Q提C“Cannot find java.exe...?在网上看到很多h说要修改环境变量Q但是偶的环境变量在安装完jdk后就配置好了(jin)Q没有问题?br />于是又费?jin)老半天的力气Q终于解决了(jin)Q办法如下:(x)<br />1Q启动jdk?font face="?hu)? size="2"> --jdkhome参数指出jdk路径<br />2Q修改netbean目录下的/etc目录下的netbeans.conf中的jdkhome的gؓ(f)当前jdk路径<br /><br />使用上面Ҏ(gu)中之一卛_Q?/font><img src ="http://www.aygfsteel.com/yemoo/aggbug/103115.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2007-03-11 16:54 <a href="http://www.aygfsteel.com/yemoo/archive/2007/03/11/103115.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>求最大公U数的算?/title><link>http://www.aygfsteel.com/yemoo/archive/2006/12/07/85984.html</link><dc:creator>Yemoo'S Java Blog</dc:creator><author>Yemoo'S Java Blog</author><pubDate>Wed, 06 Dec 2006 17:02:00 GMT</pubDate><guid>http://www.aygfsteel.com/yemoo/archive/2006/12/07/85984.html</guid><wfw:comment>http://www.aygfsteel.com/yemoo/comments/85984.html</wfw:comment><comments>http://www.aygfsteel.com/yemoo/archive/2006/12/07/85984.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yemoo/comments/commentRss/85984.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yemoo/services/trackbacks/85984.html</trackback:ping><description><![CDATA[ <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"> <span style="COLOR: #008000">/**</span> <span style="COLOR: #008000"> <br /> (tng)*Description:greatest (tng)common (tng)divisor<br /> (tng)*Author:yemoo (tng)2006.12.06<br /> (tng)</span> <span style="COLOR: #008000">*/</span> <span style="COLOR: #000000"> <br /> <br /> (tng)</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000"> (tng)Pt32{<br /> (tng) (tng) (tng) (tng)</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">思\Q辗转相除法</span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)divisor1(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)m,</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)n){ (tng) (tng) (tng) (tng)</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">Ҏ(gu)一Q@环法</span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)temp;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">(m</span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">n){ (tng) (tng) (tng) (tng)</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">if (tng)m<n,swap (tng)m,n</span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)temp</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">m;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)m</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">n;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)n</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">temp;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">while</span> <span style="COLOR: #000000">(m</span> <span style="COLOR: #000000">%</span> <span style="COLOR: #000000">n</span> <span style="COLOR: #000000">!=</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)temp</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">n;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)n</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">m</span> <span style="COLOR: #000000">%</span> <span style="COLOR: #000000">n;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)m</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">temp;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000"> (tng)n;<br /> (tng) (tng) (tng) (tng) (tng)}<br /><br /> (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)divisor2(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)m,</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)n){ (tng) (tng) (tng) (tng)</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">Ҏ(gu)二:(x)递归?/span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)temp;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">(m</span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">n){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)temp</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">m;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)m</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">n;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)n</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">temp;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000"> (tng)divisor22(m,n);<br /> (tng) (tng) (tng) (tng) (tng)}<br /><br /> (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)divisor22(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)m,</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)n){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">(m</span> <span style="COLOR: #000000">%</span> <span style="COLOR: #000000">n</span> <span style="COLOR: #000000">==</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000"> (tng)n;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}</span> <span style="COLOR: #0000ff">else</span> <span style="COLOR: #000000">{<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000"> (tng)divisor22(n,m</span> <span style="COLOR: #000000">%</span> <span style="COLOR: #000000">n);<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}<br /> (tng) (tng) (tng) (tng)}<br /><br /> (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">void</span> <span style="COLOR: #000000"> (tng)main(String (tng)args[]){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)KeyboardInput (tng)in</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000"> (tng)KeyboardInput();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)Pt32 (tng)obj</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000"> (tng)Pt32();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">input (tng)two (tng)integer:</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)a</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">in.readInt();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)b</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">in.readInt();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(a</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">b</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">'s (tng)greatest (tng)common (tng)divisor (tng)is (tng)</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">obj.divisor2(a,b));<br /> (tng) (tng) (tng) (tng) (tng)}<br /><br /> (tng)}</span> </div> <br />使用?jin)辗转相除法Q分别用@环和递归Ҏ(gu)实现?br /><br />吸取dreamstone大哥的程序写法,发现判断m、n大小的部分可以删除,因ؓ(f)如果m<n求余部分?x)自动交换两个变量?br /><br />改进后程序代码(_?jin)好多哦Q:(x)<br /><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"><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br /> (tng)*Description:greatest (tng)common (tng)divisor<br /> (tng)*Author:yemoo (tng)2006.12.07 (tng)</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br /><br /> (tng)</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000"> (tng)Pt32{<br /> (tng) (tng) (tng) (tng)</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">思\Q辗转相除法</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> (tng)divisor1(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> (tng)m,</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> (tng)n){ (tng) (tng) (tng) (tng)</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">Ҏ(gu)一Q@环法</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> (tng)temp;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(m</span><span style="COLOR: #000000">%</span><span style="COLOR: #000000">n</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)temp</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">n;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)n</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">m</span><span style="COLOR: #000000">%</span><span style="COLOR: #000000">n;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)m</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">temp;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> (tng)n;<br /> (tng) (tng) (tng) (tng) (tng)}<br /><br /> (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> (tng)divisor2(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> (tng)m,</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> (tng)n){ (tng) (tng) (tng) (tng)</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">Ҏ(gu)二:(x)递归?/span><span style="COLOR: #008000"><br /></span><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(m</span><span style="COLOR: #000000">%</span><span style="COLOR: #000000">n</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> (tng)n;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">{<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> (tng)divisor2(n,m</span><span style="COLOR: #000000">%</span><span style="COLOR: #000000">n);<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}<br /> (tng) (tng) (tng) (tng) (tng)}<br /><br /> (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> (tng)main(String (tng)args[]){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)KeyboardInput (tng)in</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> (tng)KeyboardInput();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)Pt32 (tng)obj</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> (tng)Pt32();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">input (tng)two (tng)integer:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> (tng)a</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">in.readInt();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> (tng)b</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">in.readInt();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(a</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">b</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">'s (tng)greatest (tng)common (tng)divisor (tng)is (tng)</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">obj.divisor2(a,b));<br /> (tng) (tng) (tng) (tng) (tng)}<br /><br /> (tng)}</span></div><img src ="http://www.aygfsteel.com/yemoo/aggbug/85984.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2006-12-07 01:02 <a href="http://www.aygfsteel.com/yemoo/archive/2006/12/07/85984.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>游戏行业井喷 10cL戏h才最受欢q【摘自csdn?/title><link>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85676.html</link><dc:creator>Yemoo'S Java Blog</dc:creator><author>Yemoo'S Java Blog</author><pubDate>Tue, 05 Dec 2006 12:44:00 GMT</pubDate><guid>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85676.html</guid><wfw:comment>http://www.aygfsteel.com/yemoo/comments/85676.html</wfw:comment><comments>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85676.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yemoo/comments/commentRss/85676.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yemoo/services/trackbacks/85676.html</trackback:ping><description><![CDATA[ <p>游戏产业的快速发展,带动?jin)游戏h才需求的大幅攀升。昨日,北京一家游戏学院在武汉举行首期培训班,专门培养游戏人才?/p> <p>  据介l,目前中国的网l游戏玩家已l达?633万h。中国出版工作者协?x)游戏工作委员?sh)(x)提供的数字表明,2004q_(d)中国的网l游戏仅销售收入已l上?7.9%Q达?4.7亿元Qƈ且该数字?009q有望达?09.6亿元?/p> <p>  而据专家预测Q?006q中国网l游戏市(jng)场将?3亿元Q中国手机游戏市(jng)模将?亿元。游戏行业的井喷式发展,引发?jin)游戏专业h才的极度匮乏。游戏研发h才匮乏,特别是中高人才奇缺的情况,已成Z重制U业持l发展的“瓶颈”?/p> <p>  中华英才|近日公布的一统计表明,从目前h才市(jng)场需求看Q?0cL戏h才最受企业欢q,分别为:(x)游戏术设计师(2DQ?DQ、网?amp;#8226;客服、3Q游戏设计高U讲师、手机游戏设计高U讲师、在U网l游戏设计高U讲师、手机游戏开发工E师、网l游戏开发工E师、JQ݋Q游戏Y件工E师、游戏策划师、片区渠道经理?/p> <p>  职业指导师指出,游戏人才会(x)成ؓ(f)׃?jng)场下一个新的亮炏V?</p> <img src ="http://www.aygfsteel.com/yemoo/aggbug/85676.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2006-12-05 20:44 <a href="http://www.aygfsteel.com/yemoo/archive/2006/12/05/85676.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>E序员应具备的素质【摘自csdn?/title><link>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85674.html</link><dc:creator>Yemoo'S Java Blog</dc:creator><author>Yemoo'S Java Blog</author><pubDate>Tue, 05 Dec 2006 12:37:00 GMT</pubDate><guid>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85674.html</guid><wfw:comment>http://www.aygfsteel.com/yemoo/comments/85674.html</wfw:comment><comments>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85674.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yemoo/comments/commentRss/85674.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yemoo/services/trackbacks/85674.html</trackback:ping><description><![CDATA[ <p>中国有很多精于编码的人,但是中国软g行业Q尤其是|络应用开发方面误区很大,很难形成有规模的软g开发力量和产品能力Q不但比国差距甚远Q和印度相比也是颇有不如。这些问题(sh)是在于中国程序员的智商和工作努力状况Q也不是在于国家和民间对开发的投入E度Q而是很大E度上,有一些对技术,对程序开发,寚w目设计方面的思想误区Q这些误区,D?jin)Y件行业的产品化能力不I~Z规模化和大型复用pȝ研发能力Q可以说Q改变认识误区,是解册Y件行业小作坊模式和个体英雄模式所带来的局限性的重要工作?</p> <p> <br />E序员是一U技术工作,在IT的发展中有相当重要的CQ从底层g通讯协议的徏立,到数据传输层的处理,到操作系l的Q到数据库^台的Q一直到应用层上各种数据营销q_的搭建,E序员在里面都扮演着举轻重的角色ƈ为IT事业的发展做Z(jin)巨大的A(ch)献?</p> <p>中国有很多小朋友Q他?8,9岁或21,2岁,通过自学也写?jin)不代码,他们有的代码写的很漂亮,一些技术细节相当出众,也很有钻研精,但是他们被一些错误的认识和观点左叻I~Z对系l,对程序的整体理解能力Q这些hQ一个网上的朋友说得很好Q他们实际上只是一些CodingfansQ压Ҏ(gu)有资格称为程序员Q但是据我所知,不少网l公司的CTO是q样的codingfans,拿着吓h的工资,做着吓h的项目,目的结局通常也很吓h?<br />E序员基本素质:(x) </p> <p>作一个真正合格的E序员,或者说是可以真正合格完成一些代码工作的E序员,应该h的素质?</p> <p>1Q团队精和协作能力 <br />把它作ؓ(f)基本素质Qƈ不是不重要,恰恰相反Q这是程序员应该具备的最基本的,也是最重要的安w立命之本。把高水q程序员说成独行侠的都是在呓语,M个h的力量都是有限的Q即便如linusq样的天才,也需要通过l成强大的团队来创造奇q,那些遍布全球的ؓ(f)linux写核?j)的高手们,没有协作_是不可想象的。独行侠可以作一些赚qY件发点小财,但是一旦进入一些大pȝ的研发团队,q入商业化和产品化的开发Q务,~Zq种素质的h完全不合格?jin)?</p> <p>2Q文档习(fn)?<br />说高水^E序员(sh)来不写文档的肯定是^臭未q的毛孩子,良好的文档是正规研发程中非帔R要的环节Q作Z码程序员Q?0Q的工作旉写技术文档是很正常的Q而作为高U程序员和系l分析员Q这个比例还要高很多。缺乏文档,一个Y件系l就~Z生命力,在未来的查错Q升U以?qing)模块的复用时就都?x)遇到极大的麻?ch)?</p> <p>3Q规范化Q标准化的代码编写习(fn)?<br />作ؓ(f)一些外国知名Y件公司的规矩Q代码的变量命名Q代码内注释格式Q甚臛_套中行羃q的长度和函数间的空行数字都有明规定,良好的编写习(fn)惯,不但有助于代码的UL和纠错,也有助于不同技术h员(sh)间的协作?<br />有些codingfans叫嚣高水q程序员写的代码旁h从来看不懂,q种叫嚣只能证明他们自己压根不配自称E序员。代码具有良好的可读性,是程序员基本的素质需求?<br />再看看整个linux的搭建,没有规范化和标准化的代码?fn)惯Q全球的研发协作是绝对不可想象的?<br />4Q需求理解能?<br />E序员需要理解一个模块的需求,很多朋友写E序往往只关注一个功能需求,他们把性能指标全部归结到硬Ӟ操作pȝ和开发环境上Q而忽视了(jin)本n代码的性能考虑Q有人曾l放a说写一个广告交换程序很单,q种Z来不知道在百万甚臛_万数量的访问情况下的性能指标是如何实现的Q对于这L(fng)E序员,你给他深蓝那套系l,他也做不出太极链的ƈ访能力。性能需求指标中Q稳定性,q访支撑能力以及(qing)安全性都很重要,作ؓ(f)E序员需要评估该模块在系l运营中所处的环境Q将要受到的负荷压力以及(qing)各种潜在的危险和恶意d的可能性。就q一点,一个成熟的E序员至需??q的目研发和跟t经验才有可能有?j)得?</p> <p>5Q复用性,模块化思维能力 <br />l常可以听到一些程序员有这L(fng)抱怨,写了(jin)几年E序Q变成了(jin)熟练工,每天都是重复写一些没有Q何新意的代码Q这其实是中国Y件h才最大浪费的地方Q一些重复性工作变成了(jin)熟练E序员的主要工作Q而这些,其实是完全可以避免的?<br />复用性设计,模块化思维是要程序员在完成Q何一个功能模块或函数的时候,要多想一些,不要局限在完成当前d的简单思\上,x(chng)看该模块是否可以qq个pȝ存在Q是否可以通过单的修改参数的方式在其他pȝ和应用环境下直接引用Q这样就能极大避免重复性的开发工作,如果一个Y件研发单位和工作l能够在每一ơ研发过E中都考虑到这些问题,那么E序员就不会(x)在重复性的工作中耽误太多旉Q就?x)有更多旉和精力投入到创新的代码工作中厅R?<br />一些好的程序模块代码,即便?0q代写成的,拿到现在攑ֈ一些系l里面作为功能模块都能适合的很好,而现在我看到的是Q很多小公司软g一升或改q就动辄全部代码重写Q大部分重复性工作无谓的费?jin)时间和_֊?</p> <p>6Q测试习(fn)?<br />作ؓ(f)一些商业化正规化的开发而言Q专职的试工程师是不可的Q但是ƈ不是说有?jin)专职的试工程师程序员可以不q行自测QY件研发作Z工E而言Q一个很重要的特点就是问题发现的早Q解决的代h(hun)p低,E序员在每段代码Q每个子模块完成后进行认真的试Q就可以量一些潜在的问题最早的发现和解冻Iq样Ҏ(gu)体系l徏讄效率和可靠性就有了(jin)最大的保证?<br />试工作实际上需要考虑两方面,一斚w是正常调用的试Q也是看程序是否能在正常调用下完成基本功能Q这是最基本的测试职责,可惜在很多公司这成了(jin)唯一的测试Q务,实际上还差的q那Q第二方面就是异常调用的试Q比如高压力负荷下的E_性测试,用户潜在的异常输入情况下的测试,整体pȝ局部故障情况下该模块受影响状况的测试,频发的异常请求阻塞资源时的模块稳定测试等{。当然ƈ不是E序员要对自q每段代码都需要进行这U完整测试,但是E序员必L醒认识自q代码d在整体项目中的地位和各种性能需求,有针Ҏ(gu)的q行相关试Qƈ早发现和解决问题,当然q需要上面提到的需求理解能力?</p> <p>7Q学?fn)和ȝ的能?<br />E序员是人才很容易被淘汰Q很Ҏ(gu)落伍的职业,因ؓ(f)一U技术可能仅仅在三两q内h领先性,E序员如果想安n立命Q就必须不断跟进新的技术,学习(fn)新的技能?<br />善于学习(fn)Q对于Q何职业而言Q都是前q所必需的动力,对于E序员,q种要求更加高?sh)(jin)。但是学?fn)也要找对目标,一些小codingfans们,他们也|z乐道于他们的学?fn)能力,一?x)学会(x)?jin)aspQ一?x)儿学?x)?jin)phpQ一?x)儿学?x)?jin)jspQ他们把q个作ؓ(f)炫耀的资本,盲目的追逐一些肤的Q表面的东西和名词,做网l程序不懂通讯传输协议Q做应用E序不懂中断向量处理Q这L(fng)技术h员,不管掌握?jin)多所谓的新语aQ永q不?x)有质的提高?<br />善于ȝQ也是学?fn)能力的一U体玎ͼ每次完成一个研发Q务,完成一D代码,都应当有目的的跟t该E序的应用状况和用户反馈Q随时ȝQ找到自q不Q这样逐步提高Q一个程序员才可能成长v来?<br />一个不具备成长性的E序员,即便眼前看是个高手,也不要选用Q因Z落伍的时候马上就C(jin)?<br />具备以上全部素质的hQ应当说是够格的E序员(sh)(jin)Q请注意以上的各U素质都不是由IQ军_的,也不是大学某些课本里可以学习(fn)到的Q需要的仅仅是程序员对自己工作的认识Q是一U意识上的问题?br /></p> <img src ="http://www.aygfsteel.com/yemoo/aggbug/85674.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2006-12-05 20:37 <a href="http://www.aygfsteel.com/yemoo/archive/2006/12/05/85674.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>八进制{十进制【限制int范围内?/title><link>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85530.html</link><dc:creator>Yemoo'S Java Blog</dc:creator><author>Yemoo'S Java Blog</author><pubDate>Tue, 05 Dec 2006 03:34:00 GMT</pubDate><guid>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85530.html</guid><wfw:comment>http://www.aygfsteel.com/yemoo/comments/85530.html</wfw:comment><comments>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85530.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yemoo/comments/commentRss/85530.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yemoo/services/trackbacks/85530.html</trackback:ping><description><![CDATA[ <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"> <span style="COLOR: #008000">/**</span> <span style="COLOR: #008000"> <br /> (tng)*Description:convert (tng)Oct (tng)to (tng)Dec<br /> (tng)*Author:yemoo (tng)2006.12.05<br /> (tng)</span> <span style="COLOR: #008000">*/</span> <span style="COLOR: #000000"> <br /> <br /> (tng)</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000"> (tng)P38{<br /> (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)convertOct2Dec(String (tng)Oct){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)result</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)power</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">for</span> <span style="COLOR: #000000">(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)i</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">Oct.length()</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">;i</span> <span style="COLOR: #000000">>=</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">;i</span> <span style="COLOR: #000000">--</span> <span style="COLOR: #000000">,power</span> <span style="COLOR: #000000">*=</span> <span style="COLOR: #000000">8</span> <span style="COLOR: #000000">){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">char</span> <span style="COLOR: #000000"> (tng)temp</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">Oct.charAt(i);<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)intTemp</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">Character.getNumericValue(temp);<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">(intTemp</span> <span style="COLOR: #000000">>=</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">&&</span> <span style="COLOR: #000000">intTemp</span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">8</span> <span style="COLOR: #000000">){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)result</span> <span style="COLOR: #000000">+=</span> <span style="COLOR: #000000">intTemp</span> <span style="COLOR: #000000">*</span> <span style="COLOR: #000000">power;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}</span> <span style="COLOR: #0000ff">else</span> <span style="COLOR: #000000">{<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">(temp</span> <span style="COLOR: #000000">==</span> <span style="COLOR: #000000">'</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">'</span> <span style="COLOR: #000000">&&</span> <span style="COLOR: #000000">i</span> <span style="COLOR: #000000">==</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)result</span> <span style="COLOR: #000000">=-</span> <span style="COLOR: #000000">result;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}</span> <span style="COLOR: #0000ff">else</span> <span style="COLOR: #000000">{<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000"> (tng)result;<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000"> (tng)result;<br /> (tng) (tng) (tng) (tng) (tng)}<br /><br /> (tng) (tng) (tng) (tng) (tng)String (tng)readInput(){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)KeyboardInput (tng)in</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000"> (tng)KeyboardInput();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.print(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">Please (tng)input (tng)a (tng)october (tng)number:</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000"> (tng)in.readString();<br /> (tng) (tng) (tng) (tng) (tng)}<br /><br /> (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">void</span> <span style="COLOR: #000000"> (tng)main(String (tng)args[]){<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)P38 (tng)obj</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000"> (tng)P38();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)String (tng)oct</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">obj.readInput();<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)value</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">obj.convertOct2Dec(oct);<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">Oct:</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">oct</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">==Dec:</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">value);<br /> (tng) (tng) (tng) (tng) (tng)}<br /> (tng)}</span> </div> <img src ="http://www.aygfsteel.com/yemoo/aggbug/85530.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2006-12-05 11:34 <a href="http://www.aygfsteel.com/yemoo/archive/2006/12/05/85530.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">ڻ</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ݸ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">Ͷ</a>| <a href="http://" target="_blank">º</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">ͼ</a>| <a href="http://" target="_blank">봨</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¡</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ȫ</a>| <a href="http://" target="_blank">żҿ</a>| <a href="http://" target="_blank">ϼ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̩</a>| <a href="http://" target="_blank">۰</a>| <a href="http://" target="_blank">ϼ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ľ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank">΢</a>| <a href="http://" target="_blank">̶</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" 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>