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.
Javaサーブレットに次のコードがあります。
if(passenger == null){ response.sendError(400, "The specified passenger does not exist."); }
ページはエラーページにリダイレクトされますが、残りのサーブレットコードは引き続き実行されます。サーブレットをリダイレクトして「ブレーク」する方法を教えてください。
if(passenger == null){ response.sendError(400, "The specified passenger does not exist."); return; //or return null; depending on return type of method }