- 浏览: 126173 次
- 性别:
- 来自: 北京
最新评论
-
stupider:
都是copy的,
eclipse 一直building workspace 问题 -
justmiracle:
。。。。。所谓,美中不足,略扯
转:天生我才很有用——iscroll的那些事 -
魏祖清:
onBeforeScrollStart: function ( ...
转:天生我才很有用——iscroll的那些事 -
yzwushang007:
您好,请问,怎么使用iscroll4,与jquery mobi ...
转:天生我才很有用——iscroll的那些事 -
hui253753547:
我这边怎么还是不行
eclipse 一直building workspace 问题
文章列表
Step - 1: Create directory by name "servicedef" in component directory "practice". This directory will contain all the service definition files e.g. services.xml, secas.xml.
Note : If it is a service which is written in Java then it will be placed in "src" directory and ...
Groovy Goodies
1.Start the name of groovy file from capital letter and then follow the camel case pattern.For example "PendingCommunications.groovy".
The reason behind is shown below (Comments from Joe on Developer Mailing List) :-
•The main reason for this is that when a script is run ...
These are the most important (most used) variables. To have more details, check out ScreenRenderer.java populateBasicContext and populateContextForRequest methods.
This means that you don't have to worry about these variables : they are available from the 1st line of your scripts (BeanShell or Groo ...
The Important values to change are the <display-name>, the localDispatcherName, the mainDecoratorLocation and the webSiteId.
<context-param>
<param-name>webSiteId</param-name>
<param-value>PRACTICE</param-value>
<description>A unique ID used to lo ...
该文件的简单定义:
<?xml version="1.0" encoding="UTF-8"?>
<ofbiz-component name="practice"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">
& ...
ofbiz学习笔记--form
- 博客分类:
- opentaps
1.显示信息的表单
<form name="ListOrders" type="list"
title="Orders" default-title-style="tableheadtext" target=""
default-widget-style="tabletext" default-tooltip-style="tabletext"
default-table-style="c ...
在做一个鼠标滑轮缩放图片,滚动滑轮浏览器的滚动条一起滚动,经过一番折腾,终于解决了,贴出来给有有需要的人参考下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset= ...
1, 最基本的乱码问题。
这个乱码问题是最简单的乱码问题。一般新会出现。就是页面编码不一致导致的乱码。
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=iso8859-1"%>
<html>
<head>
<title>中文问题</title>
<meta http-equiv="Content-Type" ...
很多情况下,我们需要在JavaBean、Servlet中获得当前的目录路径,比如载入配置文件,上传文件到服务器等。
1.载入jdbc.properties
1)ClassLoader的getResourceAsStream("XXX")
InputStream in=XXX.class.getClassLoader().getResourceAsStream("jdbc.properties");
getResourceAsStream()会到classes目录下找jdbc.propert ...
整理一:
这里的一片文章,我个人认为讲解的很详细,有对 java.sql.Date的使用还有困惑的请看。
java.sql.Date 只存储日期数据不存储时间数据
// 会丢失时间数据
preparedStatement.setDate(1, new java.sql.Date(date.getTime()));
//可以这样来处理
preparedStatement.setTimestamp(1, new java.sql.Timestamp(new java.util.Date().getTime()));
//想要得到完整的数据,包括日期和时间,可以这样
java.util.Date d ...