最新回答 / 凌洛塵
if(request.getParameterValues("favortie")!=null) 你指的是這句么?如果你沒勾選愛好肯定是不會顯示了,或者點擊超鏈接也沒有,因為超鏈接沒傳遞愛好,添加這句只是為了防止報空指針異常?out.println(favorites[i]+"   ");
2016-04-30
最贊回答 / qq_阿木木_2
<?xml version='1.0' encoding='utf-8'?><!--? Licensed to the Apache Software Foundation (ASF) under one or more? contributor license agreements.? See the NOTICE file distributed with? this work for additional information regarding copyright owners...
2016-04-28
最贊回答 / 蒙奇D杰
flush()時服務器會把請求頭部分以及現成的其他response體刷到客戶端,這里response置為commited,不能再改變其請求頭, 而response.sendRedirect("/index.jsp"); 要改變location請求頭,所以當然不行了.希望能幫助到你
2016-04-28