jsp 页面引入 java类
1 <%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 2 <%@ page import="com.ccc.inf.acms.client.DynamicConfigLoader" %>
1. 引入所需的java类
1 <% 2 String uploadPath=DynamicConfigLoader.get("a.upload.path"); 3 %> 4 <a href="<%=uploadPath %>${d.file1}" target="_blank"> 5 ${d.file1Name} 6 </a>
2. 使用引入的java类,给java变量赋值,并在jsp页面中使用