0
私のアプリケーションでは、私はそれらの3 jspsの3 jsp files.outを含んでいるjspを持っています。私はボタンが押された1つのjspを持っています。コンテンツaccordion2.jspを変更したいです。 いったんボタンを押すと、サーブレットを呼び出します。このサーブレットのロジックpart.nwは、accordion2.jspまたはこのjspsをすべて含むJSPにリクエストを送信しますか? htmlの抜粋とともに使用しているスクリプト。jspがreincludedになっていない
<script type="text/javascript">
$(document).ready(function() {
// select all the links with class="lnk", when one of them is clicked, get its "href" value
// load the content from that URL and place it into the tag with id="content"
$('input.button').click(function() {
var url = $(this).attr('src');
alert(url);
var status= $(this).attr('value');
alert(status);
alert(url+"?name="+status);
$('.accordion2').detach();
$('.accordion2').load(url+"?name="+status);
alert("after load");
return false;
});
});
</script>
</head>
<body class="bodybg" >
<div class="wrapwidth">
<!--put header here -->
<%@include file="header.jsp" %>
<div class="mainbpdy">
<!--put vetinav here-->
<%@include file="vetinav.jsp" %>
<div class="sroolable">
<%@include file="accordion2.jsp" %>
</div>
</div>
<div class="footer">footer</div>
</div>
</body>
</html>
このサーブレットから、私はaccordion2.jsp、またはこのjspsをすべて含むJSPをリクエストしますか?何か試しましたか? –