当前位置: 代码迷 >> Java Web开发 >> 传值有关问题,求教
  详细解决方案

传值有关问题,求教

热度:57   发布时间:2016-04-17 15:59:26.0
传值问题,求教
页面代码:
<%@   page   language= "java "   pageEncoding= "GBK "%>

<%@   taglib   uri= "http://jakarta.apache.org/struts/tags-bean "   prefix= "bean "   %>
<%@   taglib   uri= "http://jakarta.apache.org/struts/tags-html "   prefix= "html "   %>
<%@   taglib   uri= "http://jakarta.apache.org/struts/tags-logic "   prefix= "logic "   %>
<%@   taglib   uri= "http://jakarta.apache.org/struts/tags-tiles "   prefix= "tiles "   %>
<%@   taglib   uri= "http://jakarta.apache.org/struts/tags-template "   prefix= "template "   %>
<%@   taglib   uri= "http://jakarta.apache.org/struts/tags-nested "   prefix= "nested "   %>

<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN ">
<html:html   locale= "true ">
    <head>
        <html:base   />
       
        <title> <bean:write   name= "photoInfo "   property= "phototitle "/> </title>

<meta   http-equiv= "pragma "   content= "no-cache ">
<meta   http-equiv= "cache-control "   content= "no-cache ">
<meta   http-equiv= "expires "   content= "0 ">        
<meta   http-equiv= "keywords "   content= "keyword1,keyword2,keyword3 ">
<meta   http-equiv= "description "   content= "This   is   my   page ">
<link   rel= "stylesheet "   type= "text/css "   href= "style.css ">
<script   type= "text/javascript ">
<!--
var   flag=false;
function   DrawImage(ImgD){
var   image=new   Image();
image.src=ImgD.src;
if(image.width> 0   &&   image.height> 0){
flag=true;
if(image.width/image.height> =   164/112){
if(image.width> 164){  
ImgD.width=164;
ImgD.height=(image.height*164)/image.width;
}else{
ImgD.width=image.width;  
ImgD.height=image.height;
}
ImgD.alt=image.width+ "× "+image.height;
}else{
if(image.height> 450){  
ImgD.height=570;
ImgD.width=(image.width*570)/image.height;  
}else{
ImgD.width=image.width;  
ImgD.height=image.height;
}
ImgD.alt=image.width+ "× "+image.height;
}
}
}  
function   submit(){
document.all.form1.submit();
}
function   firm(id){//利用对话框返回的值   (true   或者   false)
        if(confirm( "你确要删除这张照片吗? "))
        {//如果是true   ,那么就把页面转向thcjp.cnblogs.com
                location.href= "/blog/photoad.do?action=del&photoid= "   +   id;
        }
        else
        {//否则说明下了,赫赫
               
        }
}

//-->
</script>
  相关解决方案