`
文章列表
This article contains a list of ruby on rails routing examples. If you find you have any questions please leave a comment. Routes are processed from the top of routes.rb down. If a route is matched it will stop processing the routes.rb file and use that route. I’m detailing basic and named routes b ...
routes: routes的命名允许你减少重复的代码,通过分配一个根据生成一个封装routes rule hash的方法的路径规则名称来实现, 你可以定义一个命名路径,你可以调用它在你的routes.rb文件中来代替connect方法. 例如: map.home '',:controller=>'main',: ...
转自:http://bea.iteye.com/blog/166347 不知道为什么copy下来发布不完整. 1 树与哈夫曼树 Java代码 package tree;           public class TreeNode {          TreeNode llink;          TreeNode rlink;          int info;      }     package tree;           public class Tree {               TreeNode root;              ...

hibernate search

Full Text Hibernate Lucene Search Hello World Example Using Maven and SQLite 17,746 views By Abhijit Ghosh on 2012-7-26 14:22:26   <iframe id="aswift_0" style="left: 0px; position: absolute; top: 0px;" name="aswift_0" frameborder="0" marginw ...
1 树与哈夫曼树 Java代码 package tree; public class TreeNode { TreeNode llink; TreeNode rlink; int info; } package tree; public class Tree { TreeNode root; public Tree() { } public boo ...
df (Disk Free) i接点 df -i (Inodes) ls (List) ls -al (-l 以long format格式显示 -a All) cd (Change Directory) cp cp -ax -a(archive 复制所有的目录) -x(复制后的格式与目标目录的格式是相同***发生了转化) mv (move) 文件移动和重命名 rm (Remove 文件的删除) mkdir/rmdir (make directory) 建立目录 rm -rf (Remove Directory) 强制删除目录和目录中的文件 -r Rec ...
创建型模式 1、FACTORY 追MM少不了请吃饭了,麦当劳的鸡翅和肯德基的鸡翅都是MM爱吃的东西,虽然口味有所不同,但不管你带MM去麦当劳或肯德基,只管向服务员说“来四个鸡翅”就行了。麦当劳和肯德基就是生产鸡翅的Factory 工 ...
1。安装前最好连上网,遇到的问题是安装中文出现问题。有些东西安装不上。2。安装jdk:第二步开始安装,安装JDK6 代码: sudo chmod +x jdk-6-linux-i586.bin         sudo ./jdk-6-linux-i586.bin 配置环境变量编辑/etc/profile文件添加以下内容: 代码: ...
环境:Ubuntu8.04 1.安装build工具 sudo aptitude install build-essential linux-headers-$(uname -r) 2.安装readline zlib libncurses5 apt-get install zlib1g-dev apt-get install libreadline5 libreadline5-dev apt-get install libncurses5 libncurses5-dev 3.安装ruby ruby的源代码下载: http://www.ruby-lang.org/en/downloads/ wget ...
1.jsp页面: <ww:div            id="twoseconds"            cssStyle="border: 1px solid yellow;"            href="/AjaxTest.action"            theme="ajax"            updateFreq="2000"            errorText="There was an error"            loadi ...
一.步骤: 1.在server.xml文件中建立数据源. <Service name="Cms">     <Connector debug="0" enableLookups="false" port="8084" protocol="AJP/1.3" redirectPort="8443"/>    <Connector acceptCount="100" connectionTimeout="20000&quo ...
<s:form action="addProduct" theme="simple"> <package name="convertDemo" extends="struts-default" namespace="/locale">   <action name="convertLocal" class="locale.ConvertLocale">    <result>/convertCal.jsp< ...
if struts2-spring-plugin-2.0.9.jar is in lib ,we must config the web.xml and application.xml.   The flowing is the simple test code. HelloWorld.java: package example; import com.opensymphony.xwork2.ActionSupport; public class HelloWorld extends ActionSupport { public static final String MESSAGE=" ...
<s:iterator value="bookList">        <tr class="trs">            <td>            <a href='<s:url action="edit" ><s:param name="bookId" value="bookId" /></s:url>'>            <s:property value="bookName ...
转载于在webwork的文章 1 配置struts.properties文件,指定spring作为struts的IoC容器struts.objectFactory = spring(1)默认的autowiring模式是:by name即如果applicationContext.xml文件中的bean id与struts.xml文件中的action name相同,就(2)如果要改为其他模式:struts.objectFactory.spring.autoWire = name|type|auto|constructor 2 配置web.xml文件,启动Spring侦听器<listener&g ...
Global site tag (gtag.js) - Google Analytics