`
tracy婷婷
  • 浏览: 23480 次
  • 性别: Icon_minigender_2
社区版块
存档分类
最新评论
文章列表

定义异常

SQL> set serveroutput on; SQL> declare 2 num int; 3 begin 4 num := 'ssddfasf'; 5 exception 6 when value_error 7 then dbms_output.put_line('----类型错误------'); 8 end; 9 / ----类型错误------ P ...
import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Form; import javax.microedition.midlet.MIDlet; import javax.microedition.midlet.MIDletStateChangeException; public class Hello extends MIDlet { private Display display=Display.getDisplay(this); Form form=null ...
import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Form; import javax.microedition.midlet.MIDlet; import javax.microedition.midlet.MIDletStateChangeException; public class DisplayHello extends MIDlet { private Display display=Display.getDisplay(this); Form form=n ...

J2ME

    博客分类:
  • J2ME
import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Form; import javax.microedition.lcdui.Ticker; import javax.microedition.midlet.MIDlet; import javax.microedition.midlet.MIDletStateChangeException; public class TickerTest extends MIDlet { private Display display=D ...
 不同的背景样式 <s:iterator value="book" var="book" status="st"> <s:if test="#st.odd==true"> <tr bgcolor="#999999"> </s:if> <s:else> <tr bgcolor="#00FFFF"> </s:e ...
package com.web.struts.action; import java.io.File; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Random; import org.apache.commons.io.FileUtils; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.Act ...
<!-- 国际化 --> <constant name="struts.custom.i18n.resources" value="globalMessages"></constant>  在struts里面写上国际化  在项目界面里面写国际化的内容 中国  zh CN  user.name=登录名 user.pwd=密码   文件名称:globalMessages_zh_CN.properties     美国  en US user.name=the LoginNameuser. ...
// 获取ACTION上下文 ActionContext context = ActionContext.getContext(); // 获取session Map session = context.getSession(); 购物车 List cart=null; //初始化购物车 public void initcar(){ cart=(List) session.get("cart"); if(cart==null){ cart=new ArrayList(); } session.put("cart", ...

oracle视图

SQL> grant create view to scott; Grant succeeded. SQL> conn scott/tiger Connected. SQL> create or replace view v_emp_deptno as select empno,ename,job,sal from emp where sal>3000; View created. SQL> select * from v_emp_deptno; EMPNO ENAME JOB SAL ...

触发器

create or replace trigger over_tir before insert on tritest for each row when (new.stuid<2000) begin if :new.sindex>=30 then raise_application_error(-20001,'超出这个范围'); end if; end; /  
SQL> edit Wrote file afiedt.buf 1 declare 2 type curemptype is ref cursor; 3 curemp_ref curemptype; 4 command char(1); 5 currow emp%rowtype; 6 theename emp.ename%type; 7 begin 8 dbms_output.put_line('请输入操作命令:1-查找deptno=30的员工姓名;2查找job=manager的员工信息'); 9 ...
SQL> create sequence stuid 2 increment by 1 3 start with 1 4 nomaxvalue 5 nocycle 6 cache 10; Sequence created. SQL> select stuid.nextval from T_student; NEXTVAL ---------- 1 SQL> select stuid .currval from T_student; CURRV ...
第一步: 需要的8个导包 commons-fileupload-1.2.2.jar commons-io-2.0.1.jar commons-lang3-3.1.jar freemarker-2.3.19.jar ognl-3.0.6.jar struts2-core -2.3.8.jar xwork-core-2.3.8.jar javassist-lang3-3.1.jar   第二步 在web.xml里面需要写入的文件 <filter>         <filter-name>struts2</filter-name> ...
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> & ...
create database demodb_info go USE demodb_info GO --drop database demodb_info /****** Object: Table [dbo].[t_book] Script Date: 12/13/2012 17:28:38 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO --drop table [dbo].[t_book] CREATE TABLE [dbo].[t_ ...
Global site tag (gtag.js) - Google Analytics