[英]The method getRequest() from the type BaseAction refers to the missing type HttpServletRequest
[英]Error “HttpServletRequest refers to the missing type String”
我正在struts中實現一個項目,我在JSP頁面中收到錯誤。
我已經在Eclipce IDE中配置了Tomcat 6,JRE和JDK 6。
代碼是:
%request.getContextPath()%
錯誤是:
The method getContextPath() from the type HttpServletRequest refers to the missing type String
我該如何解決這個錯誤?
您尚未將JRE庫添加到IDE中。 添加它。
單擊您的項目並轉到構建路徑配置更新的jre路徑並選擇要添加的庫類型
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.