- 浏览: 151196 次
- 性别:
- 来自: 深圳
最新评论
-
hx0637:
楼主!小弟要面临面试了,能否指导下小弟?
面试 深圳一家公司的 -
kljismi:
你好,我现在正在开这项目的代码,但是我不明白@Privileg ...
权限管理模块分析 -
yzhw:
终于找到了
ImageSizer.java -
sunloveny:
国
struts国际化 -
jackotty:
谢谢楼主的分享
struts validator验证框架
文章列表
/*
* $Id: ActionServlet.java 264684 2005-08-30 03:08:01Z niallp $
*
* Copyright 2000-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a ...
- 2008-12-27 17:43
- 浏览 1206
- 评论(0)
1、配置struts
* 拷贝struts lib下的所有jar到WEB-INF/lib下
* 修改web.xml文件,配置ActionServlet
* 提供struts-config.xml文件
3、创建登录项目
* 创建jsp页面(login.jsp,login_success.jsp,login_error.jsp)
* 创建LoginActionForm.java
* 创建LoginAction.java
* 配置struts-config.xml文件
index.jsp
<!<%@ page language="java" ...
- 2008-12-27 17:32
- 浏览 907
- 评论(0)
CalAction.java
package com.bjsxt.struts;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts ...
- 2008-12-26 23:17
- 浏览 666
- 评论(0)
TestServlet.java
package com.bjsxt.servlet;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class TestSer ...
- 2008-12-26 22:46
- 浏览 1126
- 评论(0)
question.jsp
<%@ page contentType="text/html;charset=gbk"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix=" ...
- 2008-12-25 23:16
- 浏览 938
- 评论(0)
User.java
package org.lxh.myzngt.vo;
public class User {
/** sex property */
private String sex;
/** usermail property */
private String usermail;
/** userques property */
private String userques;
/** userid property */
private String userid;
/** realname property */
...
- 2008-12-25 22:42
- 浏览 1103
- 评论(0)
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.s ...
- 2008-12-25 22:06
- 浏览 1032
- 评论(0)
MD5Code.java
package org.lxh.myzngt.util;
public class MD5Code {
/*
* 下面这些S11-S44实际上是一个4*4的矩阵,在原始的C实现中是用#define 实现的, 这里把它们实现成为static
* final是表示了只读,切能在同一个进程空间内的多个 Instance间共享
*/
static final int S11 = 7;
static final int S12 = 12;
static final int S13 = 17;
static final in ...
- 2008-12-25 21:46
- 浏览 962
- 评论(0)
# Resources for parameter 'org.lxh.myzngt.struts.ApplicationResources'
# Project MyZhiNangTuanDemo
user.userid.null = <li> \u7528\u6237ID\u4e0d\u80fd\u4e3a\u7a7a\uff01
user.userpwd.null = <li> \u7528\u6237\u767b\u5f55\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01
user.userques.null = <li&g ...
- 2008-12-25 21:41
- 浏览 1119
- 评论(0)
AdminLoginFilter.java
package org.lxh.myzngt.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletRes ...
- 2008-12-25 21:26
- 浏览 1021
- 评论(0)
index.jsp
<%@ page contentType="text/html;charset=gbk"%>
<%@ page import="org.lxh.myzngt.util.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" p ...
- 2008-12-25 20:09
- 浏览 1135
- 评论(0)
UserForm.java
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package org.lxh.myzngt.struts.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apa ...
- 2008-12-25 19:54
- 浏览 901
- 评论(0)
temp.htm
<html>
<head>
<title>MLDN —— 我的智囊团</title>
<META NAME="Generator"
CONTENT="Struts + Spring + Hibernate + MySQL + Tomcat + CP">
<META NAME="Author" CONTENT="李兴华">
<META NAME="Keywords" CONTENT=&q ...
- 2008-12-25 19:43
- 浏览 899
- 评论(0)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="dataSource"
class="org.springframework.jndi.JndiObjectF ...
- 2008-12-25 19:39
- 浏览 1026
- 评论(0)
/*==============================================================*/
/* DBMS name: MySQL 4.0 */
/* Created on: 2007-6-28 15:25:46 */
/*==============================================================*/
drop table if exists admin;
dr ...
- 2008-12-25 17:50
- 浏览 1600
- 评论(0)