2台の異なるマシンに同じコードがあります。一方は機能していますが、もう一方は機能していません。コードはここにあります...私が見逃したものを見つけることができますか?
public void urlParameters() {
FacesContext context = FacesContext.getCurrentInstance();
Map<String, String> paramMap = context.getExternalContext().getRequestParameterMap();
requestID = paramMap.get("id");
if (requestID.equals("1")) {
message = "right!!";
} else {
message = "Wrong!";
}
}
そして私はこのリンクでそれにアクセスします:
http://localhost:8080/SMDRepair/faces/review.xhtml?id=1