iT邦幫忙

0

jsp上使用static

請教各位前輩我jsp頁面無法使用我其他clsss宣告的static 變數 出現紅線,我把它package變default package 可以去除紅線但是執行時也是500錯誤 有沒有辦法可以使用或是不能這麼用

除了500還有沒有其它console回傳的訊息?
要看其它的錯誤訊息,才能知道是宣告不對,還是語法錯誤
default package?我記得都要指定正確的package才行...
超超 iT邦新手 5 級 ‧ 2016-11-08 17:34:36 檢舉
HTTP Status 500 - Unable to compile class for JSP

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 16 in the jsp file: /system/header.jsp
parmeter.localh cannot be resolved to a type
13: <%
14: if ((session.getAttribute("memberName") == null)
15: {
16: response.sendRedirect(parmeter.localh+"/ls/system/login.jsp");
17: }
18:
19:
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答