Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバーの操作時に JSP を呼び出して、必要なすべての表示を取得します。ここで、他の JSP からの href を使用してリンクをクリックしてページを呼び出す特別なシナリオがあります。リンクをクリックして JSP に移動するときに、ボタンを有効にしたい。
で追加パラメータを渡します<a href="some.jsp?enable=false">link</a>。jsp でパラメーターを確認し、ボタンの状態を無効に設定します。
<a href="some.jsp?enable=false">link</a>
<button <%=("false".equals(request.getPrameter("enable"))?"disabled":""%> > OK </button>