前台
<script type="text/javascript">
function func_load_remark(sr_id){
if(sr_id!=
$
$("#bparemark")
$("#itdremark")
$("#bugremark")
$("#itoremark")
});
}else{
$("#bparemark")
$("#itdremark")
$("#bugremark")
$("#itoremark")
}
}
function check(){
if($("#srid")
alert("請選擇SR_ID!");
$("#srid")
return false;
}
return true;
}
</script>
後台
package com
import java
import javax
import javax
import net
import net
import org
import org
import org
import com
import com
import com
public class LoadSrRemarkAction extends BaseAction{
private UserService userService;
public ActionForward executeAction(ActionMapping mapping
HttpServletRequest request
throws Exception {
String srid=request
TuOafSrMainTO srMain=userService
response
response
PrintWriter pw = response
pw
pw
return null;
}
public void setUserService(UserService userService) {
this
}
}
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20439.html