晕了,怎样才能把值传给ACTION呢 在线求救呀~~~~~
一个JSP页面,有3个TAB,每个TAB有不同的内容。可这个页面是早就设计好的,编写代码才发现3个TAB下的内容是写了3个层(DIV)控制的,不在FROM中,我怎样才能在ACTION中得到页面上的值呢?
以下是页面的代码?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<%@ taglib uri= "/WEB-INF/struts-html.tld " prefix= "html " %>
<%@ taglib uri= "/WEB-INF/struts-bean.tld " prefix= "bean " %>
<%@ taglib uri= "/WEB-INF/struts-tiles.tld " prefix= "tiles " %>
<%@ taglib uri= "/WEB-INF/struts-template.tld " prefix= "template " %>
<%@ taglib uri= "/WEB-INF/struts-nested.tld " prefix= "nested " %>
<%@ taglib uri= "/WEB-INF/struts-logic.tld " prefix= "logic " %>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=shift_jis " />
<title> aa </title>
<link href= "theme/Master.css " rel= "stylesheet " type= "text/css " />
<script language= "javascript ">
var downloadID = 0;
function changeType ( obj ) {
downloadID = obj.cellIndex;
if ( obj.className != "typeOn " )
selectType ( obj.cellIndex ) ;
}
function mouseOn () {
this.className= 'typeOver ';
}
function mouseOut (){
this.className= 'typeOff ';
}
function selectType ( index ) {
var tb = document.getElementById ( "bodyDiv ").firstChild ;
var row = tb.rows[0];
inTable = document.getElementById ( "tableArea " ) ;
for ( var i = 0 ; i < row.cells.length - 1 ; i ++ ) {
if ( row.cells[i].cellIndex == index ){
row.cells[i].className = "typeOn ";
row.cells[i].onmouseover= "this.className= ' '; ";
row.cells[i].onmouseout= "this.className= ' ' "
inTable.innerHTML = document.getElementById ( "type "+i ).innerHTML ;
}else{
row.cells[i].className = "typeOff ";
row.cells[i].onmouseover=mouseOn;
row.cells[i].onmouseout=mouseOut;
}
}
}
function excelDownload(){
form = document.getElementById( 'DownloadForm ');
form.tabID.value=downloadID;
form.action = " <%=request.getContextPath() %> /excelDownload.do?download=EXCEL ";
form.submit();
}
</script>
<style type=text/css>
.typeOn{
border-top:#6677ee solid 1px ;
border-left:#6677ee solid 1px ;
border-right:#6677ee so