AdSense

網頁

2018/6/18

ZK 在ViewModel中取得contextPath

在ZK使用以下來取得應用程式根目錄context path。

String contextPath1 = Sessions.getCurrent().getWebApp().getServletContext().getContextPath();
String contextPath2 = Executions.getCurrent().getContextPath();

沒有留言:

AdSense