要求の属性値として設定されたブール値を取得する方法。requst getAttributeでブール値を取得する方法java?
要求は/ isOriginalFile
属性を含んでも含まなくてもよい次のスニペット
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
boolean isOriginal = (boolean) req.getAttribute(“isOriginalFile");
//Some code
}
を考えてみましょう。これをどう扱う?
いいね!うまく動作します:-) – lsof