看板
[ java ]
討論串[J2SE] jsp之間有沒有辦法互相溝通?
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
如標題. 在web伺服器運作的時候,jsp會被建立一個實體. 並一直以這個實體處理各種請求,直到伺服器關閉為止. 以我對java web的認知是這樣..... 那,在運行的時候,有沒有可能取得其他jsp或是servlet的運行實體?. 例如..... test1.jsp. <%!. int x=1;
(還有245個字)
內容預覽:
如果要達成效果 可以用 HttpURLConnection 解. 不過這方法很多問題沒有考慮 不建議使用~. test1.jsp. <%. String method = request.getParameter("targetMethod");. String param = request.ge
(還有1224個字)
內容預覽:
public class ServletMan {. public static void add(HttpServlet servlet, String name){. servletMap.put(name, servlet);. }. public static HttpServlet get
(還有384個字)
首頁
上一頁
1
下一頁
尾頁