Why does the fuzzy query made by dwz framework in javaweb project not reflect?

  java, question

< percentage@pageImport=”com.qdzq.zzpt.vo.Page “percentage >
< percentage@pageImport=”com.qdzq.zqbp.entity.* “percentage >
< percentage@pageImport = “com.qdzq.utils.htmltail” percentage >
< percentage @ pagelanguage = “Java” import = “Java.util. *” pageencing = “utf-8” percentage >
< percentage

String path = request.getContextPath();
 Getscheme () plus "://"
  • Getservername () plus “:”plus request.getServerName ()

  • Path plus “/”;
    List<ZqbpCommonSerlect> clist=(List<ZqbpCommonSerlect>)request.getAttribute(“clist”);

List<zqbp_custom> cuslist=(List<zqbp_custom>)request.getAttribute(“cuslist”);
HttpSession session1=request.getSession();
String filepath=(String)session1.getAttribute(“path”);
Page<ZqbpFlow> p=(Page<ZqbpFlow>)request.getAttribute(“page”);
Page<ZqbpProduct> p2=(Page<ZqbpProduct>)request.getAttribute(“i”);
List<zqbp_person> per=(List<zqbp_person>)request.getAttribute(“person”);
//String id=(String)request.getAttribute(“id”);

Page<zqbp_custom> pa =(Page<zqbp_custom>)request.getAttribute(“cusper”);

Percentage >

<! DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
< link href= “< percentage =basePath percentage > dwz/themes/default/Style (Kana Nishino song) css” rel = “stylesheet”

type="text/css" media="screen" />

< link href= “< percentage =basePath percentage > dwz/themes/CSS/core.css” rel = “stylesheet”

type="text/css" media="screen" />

< link href= “< percentage =basePath percentage > dwz/themes/CSS/print.css” rel = “stylesheet”

type="text/css" media="print" />

< link href= “< percentage =basePath percentage > dwz/Uploadify/css/Uploadify.css”

rel="stylesheet" type="text/css" media="screen" />

<head>
< base href= “< percentage =basePath percentage >” >

< title > contract addition < /title >
<script type=”text/javascript”>
function mSift_SeekTp(oObj,nDire){if(oObj.getBoundingClientRect&&!document.all){var oDc=document.documentElement;switch(nDire){case 0:return oObj.getBoundingClientRect().top加oDc.scrollTop;case 1:return oObj.getBoundingClientRect().right加oDc.scrollLeft;case 2:return oObj.getBoundingClientRect().bottom加oDc.scrollTop-110;case 3:return oObj.getBoundingClientRect().left加oDc.scrollLeft-217;}}else{if(nDire==1||nDire==3){var nPosition=oObj.offsetLeft;}else{var nPosition=oObj.offsetTop;}if(arguments[arguments.length-1]!=0){if(nDire==1){nPosition加=oObj.offsetWidth;}else if(nDire==2){nPosition加=oObj.offsetHeight;}}if(oObj.offsetParent!=null){nPosition加=mSift_SeekTp(oObj.offsetParent,nDire,0);}return nPosition;}}
function mSift(cVarName,nMax){this.oo=cVarName; this.Max=nMax; bracket
mSift.prototype={
Varsion:’v2010.10.29 by AngusYoung | mrxcool.com’,
Target:Object,
TgList:Object,
Listeners:null,
SelIndex:0,
Data:[],
ReData:[],
Create:function(oObj){
var _this=this;
var oUL=document.createElement(‘ul’);
oUL.style.display=’none’;
oObj.parentNode.insertBefore(oUL,oObj);
_this.TgList=oUL;
oObj.onkeydown=oObj.onclick=function(e){_this.Listen(this,e); };
oObj.onblur=function(){setTimeout(function(){_this.Clear(); },100); };
},
Complete:function(){},
Select:function(){
var _this=this;
if(_this.ReData.length>0){
_this.Target.value=_this.ReData[_this.SelIndex].replace(/*/g,’*’).replace(/\|/g,’|’);
_this.Clear();
bracket
setTimeout(function(){_this.Target.focus(); },10);
_this.Complete();
},
Listen:function(oObj){
var _this=this;
_this.Target=oObj;
var e=arguments[arguments.length-1];
var ev=window.event||e;
switch(ev.keyCode){
case 9://TAB
return;
case 13://ENTER
_this.Target.blur();
_this.Select();
return;
case 38://UP
_this.SelIndex=_this.SelIndex>0? _this.SelIndex-1:_this.ReData.length-1;
break;
case 40://DOWN
_this.SelIndex=_this.SelIndex<_this.ReData.length-1? _this.SelIndex plus 1:0;
break;
default:
_this.SelIndex=0;
bracket
if(_this.Listeners){clearInterval(_this.Listeners); bracket
_this.Listeners=setInterval(function(){
_this.Get();
},10);
},
Get:function(){
var _this=this;
if(_this.Target.value==”){_this.Clear(); return; bracket
if(_this.Listeners){clearInterval(_this.Listeners); };
_this.ReData=[];
var cResult=”;
for(var i=0; i<_this.Data.length; I plus)
if(_this.Data[i].toLowerCase().indexOf(_this.Target.value.toLowerCase())>=0){
_this.ReData.push(_this.Data[i]);
if(_this.ReData.length==_this.Max){break; bracket
bracket
bracket
var cRegPattern=_this.Target.value.replace(/*/g,’*’);
cRegPattern=cRegPattern.replace(/\|/g,’|’);
Cregpattern = cregpattern.replace (/\ plus /g,’\\ plus’);
cRegPattern=cRegPattern.replace(/\./g,’\\.’);
cRegPattern=cRegPattern.replace(/\? /g,’\\?’ );
cRegPattern=cRegPattern.replace(/\^/g,’\\^’);
cRegPattern=cRegPattern.replace(/\$/g,’\\$’);
cRegPattern=cRegPattern.replace(/\(/g,’\\(‘);
cRegPattern=cRegPattern.replace(/\)/g,’\\)’);
cRegPattern=cRegPattern.replace(/\[/g,’\\[‘);
cRegPattern=cRegPattern.replace(/\]/g,’\\]’);
cRegPattern=cRegPattern.replace(/\\/g,’\\\\’);
var cRegEx=new RegExp(cRegPattern,’i’);
for(var i=0; i<_this.ReData.length; I plus)
if(_this.Target.value.indexOf(‘*’)>=0){
_this.ReData[i]=_this.ReData[i].replace(/*/g,’*’);
bracket
if(_this.Target.value.indexOf(‘|’)>=0){
_this.ReData[i]=_this.ReData[i].replace(/\|/g,’|’);
bracket
CResult plus ='<li style=”padding:0 5px; line-height:20px; cursor:default;” SomeJavaScriptCode = “‘Plus
_ this.ooga’.’ ChangeOn(this);’ Add _ this.ooga’. SelIndex=’ plus i plus’; “onmousedown=”‘ add _ this.ooadd’. Select (); “>’
Add _ this.reedata [i]. replace (coreex, function (s) {return’ < spanstyle = “background: # 1874cd; font-weight:bold; font-style:normal; color:#e60;” >’ plus s plus’ < /span >’; }); Add’ < /li >’;
bracket
if(cResult==”){_this.Clear(); bracket
else{
_this.TgList.innerHTML=cResult;
_this.TgList.style.cssText=’display:block; position:absolute; background:#fff; border:#090 solid 1px; margin:-1px 0 0; padding: 5px; list-style:none; font-size:12px;’ ;
_ this.tglist.Style (Kana Nishino song) top = 103 plus’ px’;
_ this.tglist.Style (Kana Nishino song) left = 900 plus’ px’;
_ this.tglist.Style (Kana Nishino song) width = _ this.target.offsetwidth-12 plus’ px’;
bracket
var oLi=_this.TgList.getElementsByTagName(‘li’);
if(oLi.length>0){
oLi[_this.SelIndex].style.cssText=’background:#A4D3EE; padding:0 5px; line-height:20px; cursor:default; color:#fff;’ ;
bracket
},
ChangeOn:function(oObj){
var oLi=this.TgList.getElementsByTagName(‘li’);
for(var i=0; i<oLi.length; I plus)
oLi[i].style.cssText=’padding:0 5px; line-height:20px; cursor:default;’ ;
bracket
oObj.style.cssText=’background:#00CDCD; padding:0 5px; line-height:20px; cursor:default; color:#fff;’ ;
},
Clear:function(){
var _this=this;
if(_this.TgList){
_this.TgList.style.display=’none’;
_this.ReData=[];
_this.SelIndex=0;
bracket
bracket
bracket
</script>

</head>
<script type=”text/javascript”>
$(function() {

$('#file_upload').uploadify({
 Swf:' < Percent =basePath Percent > DWZ/Uploadify/Scripts/Uploadify. SWF',
 Uploader:' < percentage =basePath percentage > Admin/Public/upload.html',
 auto : true,
 'fileSizeLimit' : '700KB',
 'fileTypeDesc' : 'Doc Files',
 'fileTypeExts' : '*.doc;   *.docx;'  ,
 ButtonText:' please select attachment',
 'onUploadSuccess' : function(file, data, response) {
 //Each file will be called after uploading successfully, maybe twice.
 //alert ('file ['plus file.name plus'] uploaded successfully,' plus response plus' return value:' plus data);
 $("#shownode").append(
 "< p > successfully uploaded" plus file.name plus "file < /p >");
 document.getElementById("file").value = file.name;
 
 var obj = jQuery.parseJSON(data);
 Var dataObj = eval ("("plus obj.message ")");  //Intercept the message part and convert it into json object
 
 //parse list object
 var arr = eval(dataObj.root);
 var ret = "";
 for ( var i = 0, arrLength = arr.length;   i < arrLength;  I plus)
 var arrobj = arr[i];
 //alert(arrobj.id plus arrobj.value);
 Var node = "<p><a href='#' > parse return value-> number "
    • Arrobj.id plus “,with a value of” plus arrobj.value “

    • “;

    1. = retganode;

      //$("#shownode").append(node);
       bracket
       $("#shownode").append(ret);
       
       },
       'onQueueComplete' : function(queueData) {
       //alert (queuedata.uploads successful plus' files uploaded successfully!'    );
       $("#shownode").append(
       "< p > uploaded successfully"
      • queueData.uploadsSuccessful

      • “Files

        “);

        bracket
         
         });

        });

      </script>

    <body>

    <div id="navTab" class="tabsPage">
        <ul class="tabsMoreList">
        </ul>
        <div class="pageContent">
            <form method="post" id="carAddForm"
                action="<百分比=basePath百分比>admin/contract/add.html"
                class="pageForm required-validate"
                onsubmit="return validateCallback(this, navTabAjaxDone);">
                <div class="tabs" currentIndex="0" eventType="click">
                    <div class="tabsHeader">
                        <div class="tabsHeaderContent">
                            <ul>
                                <li><a href="javascript:;"><span>基本信息</span> </a></li>            </ul>
                        </div>
                    </div>
                    <div class="tabsContent" layoutH="73">
                        <div class="pageFormContent">
                            <p>
                                <label> 合同名称: </label> <input name="contractName" type="text"
                                    size="30" value="" maxlength="50" class="required" />
                            </p>
                            <!-- ajax动态下拉菜单 -->
                            <p>
                                <label> 合同类型: </label> <select name="contractType">
                                    <百分比
                                        for (ZqbpCommonSerlect one : clist) {
                                    百分比>
                                    <option value="<百分比=one.getSelectName()百分比>"><百分比=one.getSelectName()百分比></option>
                                    <!--     <input name="contractType" type="text" size="30" value=""
                                                        maxlength="50" class="required" /> -->
    
                                    <百分比
                                        }
                                    百分比>
                                </select>
    
                            </p>
                            <p><label>创建人:</label>
                                <select name="userId" style="width:215px;">
                                                        <百分比
                                                            for(int i=0;i<per.size();i加加) {
                                                        zqbp_person ps=per.get(i);
                                                        百分比>
                                                    <option  value="<百分比=ps.getPerson_name()百分比>"><百分比=ps.getPerson_name()百分比></option>
                                                    <百分比} 百分比>
                                                    </select>
                            </p>
                            <input id="nn" class="required textInput readonly valid" name="district.id" type="hidden" readonly="">
                <p>
                <label>客户:</label>
                <input type="hidden" id="abc" value="l" >
                <input  name="district.districtName" type="text"  value="" size="25" id="we">
                
                
                <a class="btnLook"  href="admin/custom/chazhao.html" lookupgroup="district">查找带回</a>
            </p>
                            
                            <p>
                                <label> 合同金额: </label> <input name="contract_money" type="text"
                                    size="30" value="" maxlength="50" class="required" />
                            </p>
                            <p>
                                <label> 合同开始时间: </label> <input name="con_start_time" type="text"
                                    size="30"  class="date" />
                            </p>
                            <p>
                                <label> 合同到期时间: </label> <input name="stop_time" type="text"
                                    size="30"  class="date" />
                            </p>
                            <p>
                                <label> 合同付款方式: </label> <input name="con_money_fangshi" type="text"
                                    size="30" value="" maxlength="50" class="required" />
                            </p>
                            <p>
                                <label> 合同涉及产品: </label> 
                                <select name="con_chanpin">
                                    <option value="-1">请选择</option>
                                    <百分比for(ZqbpProduct one:p2.getList()) {百分比>
                                        <option value="<百分比=one.getProductId()百分比>"><百分比=one.getProductName() 百分比></option>
                                    <百分比} 百分比>
                                </select>
                            </p>
                            <p>
                                <label> 开发系统: </label> <input name="con_xitong" type="text"
                                    size="30" value="" maxlength="50" class="required" />
                            </p>
                                <p>
                                                    <label>
                                                        审批流:
                                                    </label>
                                                    <select name="flow_id">
                                                    <百分比for(ZqbpFlow one : p.getList()){ 百分比>
                                                    <!-- <input name="con_name" type="text" size="30" value=""
                                                        maxlength="50"  /> -->
                                                        <option  value="<百分比=one.getFlowId()百分比>"><百分比=one.getFlowName()百分比></option>
                                                    
                                                        <百分比} 百分比>
                                                        </select>
                                                </p>
                                                
    
                            <p>
                                <input type="file" name="file_upload" id="file_upload" /> <input
                                    type="hidden" name="filepath" id="file">
                            </p>
                        </div>
    <div class="pageFormContent" layoutH="250"></div>
    </div>
                </div>
                <div class="formBar">
                    <ul>
                        <li>
                            <div class="buttonActive">
                                <div class="buttonContent">
                                    <button type="submit">保存</button>
                                </div>
                            </div></li>
                        <li>
                            <div class="button">
                                <div class="buttonContent">
                                    <a href="<百分比=basePath百分比>admin/contract/index.html" target="navTab"
                                        rel="car">返回</a>
                                </div>
                            </div></li>
                    </ul>
                </div>
            </form>
        </div>
    </div>
    <div id="footer">Copyright &copy; 2014</div>
    
    
    <script type="text/javascript">
        function aaa(){
            var aa=new Array();

    < percentage for (zqbp _ customcus: pa.getlist ()) {percentage >

    Aa.push (< percentage = "'"plus cus.getCustom_name () plus "'"percentage >));

    < percentage} percentage >
    return aa;

    bracket
     var b=new Array();
     b=aaa();

    //Create an instance. The first parameter is the name of the instance object, and the second parameter is the maximum number displayed.
    var oo=new mSift(‘oo’,20);
    //Data
    Oo.data = [‘liehuo.net’,’ liehuo.org’,’ liehuo JavaScript’,’ liehuo tutorial’,’ liehuo download’,’ li attribute’,’ li usage’,’ liehuo.org search’,’ liehuo college website’];
    //Specify text box objects to create special effects
    oo.Create(document.getElementById(‘abc’));

    var oxo=new mSift(‘oxo’,20);
    oxo.Data=b;
    oxo.Create(document.getElementById(‘we’));
    </script>
    </html>

    You shouldn’t use dwz. You can use jquery.