- 浏览: 214271 次
- 性别:
- 来自: 深圳
最新评论
文章列表
用的是struts框架
过滤器部分代码:
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException
{
HttpServletRequest httpreq = (HttpServletRequest)request;
HttpSession session = httpreq.getSession();
String url = httpreq.getRequestURI();
...
package com.zf.util;
import java.sql.*;
public class DB {
private static final String DRIVER="oracle.jdbc.driver.OracleDriver";
private static final String strURL="jdbc:oracle:thin:@localhost:1521:oracle9i";
private static final String username="system";
priv ...
index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>this is my first Extjs Demo...</title>
<!-- ext-all ...
张孝祥正在整理Java就业面试题大全.doc
//修改后
if(location.search.replace(/\?/ig,"").split("=")[1]=='1'){
// Add the appender to the logger
log.addAppender(popUpAppender);
}
Float f1 = new Float("10F");
Float f2 = new Float("10F");
Double d1 = new Double("10D");
System.out.println("abc"=="abc");
short c1=1;
short c2=1;
System.out.println(c1 == c2);
System.out.println(f1 == f2);
System.out.println( f1. ...
引用 Ext.BLANK_IMAGE_URL='scripts/ext/resources/images/default/tree/s.gif';
Ext.form.Field.prototype.msgTarget = 'side';
var mainPanel =new Ext.TabPanel({
region: 'center',
deferredRender: false,
activeTab: 0,
enableTabScroll : true,
margins: '0 4 5 0',//设置边距
items: [{
id:'homePage',
title:' ...
function formetSex(value,meta,record,rowIndex,colIndex,store){
// alert("[" + rowIndex + "," + colIndex + "]");
// alert(record.data.name);
return value=="0"?"男":"女";
}
Ext.onReady(function(){
var fields = ["id","name" ...
<div id="north-div"></div>
<div id="west-div"></div>
<div id="center-location"></div>
<div id='center-main'>
<div id="serviceconfig-menu"></div>
<div id="serviceconfig-illuminate"> ...
setTimeout(send, 0)
function search()
{
//会不会是这边在创建的时候 缺少一些选项控制?
var xmlHttp=createRequest();
var url = "search.php";
xmlHttp.open("POST",url,true);
xmlHttp.onreadystatechange=function(){
...
一种是修改firefox的设置,在firefox的地址栏中输入“about:config”,并找到signed.applets.codebase_principal_support,将其设为true。
还有就是
使用编程的方法,在访问其它域之前,可以使用如下代码打开权限:
try
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
}
catch (exception)
{
alert(exception);
}
SRGAjax.se ...