ITeye博客

2007 年文章归档

共 7 篇文章

数据源+freemarker+servlet生成xml文件

一.步骤: 1.在server.xml文件中建立数据源. <Service name="Cms"> <Connector debug="0" enableLookups="false" port="8084" protocol="AJP/1.3" redirectPort="8443"/> <Connector acceptCount="100" connectionTimeout="20000" debug="0" disableUploadTimeout="true" enableLookups="false" maxSpareThreads="75" maxThreads="150" …

2007-11-17 10:46 · Java · CMS · freemarker · XML · Servlet

struts学习之form表单, 配置文件action对应关系。

<s:form action="addProduct" theme="simple"> <package name="convertDemo" extends="struts-default" namespace="/locale"> <action name="convertLocal" class="locale.ConvertLocale"> <result>/convertCal.jsp</result> </action> <action name="addProduct" class="locale.ProductConfirm"> <result>/locale/showPro…

2007-11-01 16:03 · Struts · JSP · Web

struts2初步配置

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="HELL…

2007-10-27 13:48 · Apache · Struts · XML · JSP · Web

struts标签循环示例

<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"/> </a> </td> <td><s:property value="bookAuthor"/></td> <td><s:property value="bookPublish"/></td> <td><s:text name="format.date"><s:para…

2007-10-27 13:42 · Struts

struts2与spring结合

转载于在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侦听器 <liste…

2007-10-19 15:05 · Spring · Struts · XML · Bean · Webwork

请教一个问题,为什么我修改了样式表文件public/stylesheets/scaffold.css,在页面上没有变化.

请教一个问题,为什么我修改了样式表文件public/stylesheets/scaffold.css,在页面上没有变化.

2007-07-19 08:36 · 浏览器 · CSS

ROR新手请教连mysql数据库的问题.

UserController: class UserController < ApplicationController scaffold :user end database.yml: # MySQL (default setup). Versions 4.1 and 5.0 are recommended. # # Install the MySQL driver: # gem install mysql # On MacOS X: # gem install mysql -- --include=/usr/local/lib # On Windows: # gem install my…

2007-06-14 15:02 · C · C++ · Ruby · C# · MySQL