PIXNET Logo登入

MISTECH 技術手抄本

跳到主文

歡迎光臨 MIS 工作者在痞客邦的小天地

部落格全站分類:圖文創作

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 4月 15 週五 201616:25
  • easyui datagrid row data getSelected 送出至 Java 運用 JSON to Map 的作法

datagrid
使用 EasyUI 的 Datagrid 選擇到一筆記錄後,將這一筆完整的資料要送到後端 Java 接收,可以先轉換成 JSON 的格式再後送。
UI 的圖示如下,可以用 FireBug 去查看 JavaScript 裡的資料

(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(516)

  • 個人分類:JAVA - Struts2
▲top
  • 2月 17 週三 201614:23
  • Spring Task Execution and Scheduling Simple Example 工作排程器

applicationContext
上次介紹 Spring Quartz Job Schedule Simple Example 工作排程器 ,現在再來使用 Spring 原生的 Task Execution and Scheduling,首先來瞭解一下 @Scheduled annotation 的意思



This annotation is used for task scheduling. The trigger information needs to be provided along with this annotation. You can use the properties fixedDelay/fixedRate/cron to provide the triggering information.
1. fixedRate: makes Spring run the task on periodic intervals even if the last invocation may be still running. 固定時間執行,不管上一次是否結束
2. fixedDelay: specifically controls the next execution time when the last execution finishes. 上一次執行結束後,再依設定的固定時間執行
3. cron: is a feature originating from Unix cron utility and has various options based on your requirements. BJ4(就不解釋了)


(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(305)

  • 個人分類:JAVA - Struts2
▲top
  • 12月 10 週四 201509:04
  • Customising Struts2 JSP tags using FreeMarker

tag_01
Struts 2 Customize Theme & Freemarker Template 客制佈景與模板 說明了Struts2 的 tags 是可以自行客制成自已想要的佈景,現在來說明如何使用 FreeMarker 來制作 Struts2 屬於自已建作的 tag libs.
工具:
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(137)

  • 個人分類:JAVA - Struts2
▲top
  • 11月 18 週三 201513:04
  • Struts 2 Customize Theme & Freemarker Template 客制佈景與模板

struts2-freemarker
Struts 2 使用 FreeMarker 來作模板(Template) ,預設的模板是 xhtml (可以解開 struts2-core-2.3.x.x.jar 取得),若要客制佈景(Theme)與模板(Template),需要下列幾個步驟。
預計想要達成的效果有
1. Freemarker Template 中可以使用 Struts 的 tag
2. Customize Theme 客製顏色佈景
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(250)

  • 個人分類:JAVA - Struts2
▲top
  • 6月 08 週一 201514:30
  • jQuery-File-Upload with Struts2 的結合使用

upload-1.png
From: Polin Wei
經實作測試,可以正常運作。故記錄之.....
環境:
struts2: 2.3.16.3
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(1,361)

  • 個人分類:JAVA - Struts2
▲top
  • 5月 25 週一 201516:54
  • Struts2 的 異常處理 Exception & UnknownHandler & UnderConstruction

在 Struts2 的異常處理有兩種,一種是程式撰寫的邏輯出錯,另一種是找不到 action Name : There is no Action mapped for namespace...,避免系統出錯的改善作法如下:
 
程式撰寫的邏輯出錯:
在 Struts.xml 內加入
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(272)

  • 個人分類:JAVA - Struts2
▲top
  • 4月 13 週一 201514:19
  • Struts2: 在freemark頁面裡嵌入action class & parameters

在 freemark 的頁面要嵌入 action 及 參數( Parameters) 有兩種方式
1. 使用 struts2 tag: action



<img width='100px' src='
    <@s.action name="Picout" executeResult="success">  
           <@s.param name="name">${Session.userInfo['PHOTO_PATH']}</@s.param>  
    </@s.action>  
'/>


(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(83)

  • 個人分類:JAVA - Struts2
▲top
  • 12月 16 週二 201417:07
  • Interceptor 在 Struts 2 上的基本運用

繼 Struts 2 對於 Interceptor 攔截器的基本概念與實作 的瞭解後,我們現在來作一下 Interceptor 在 Struts 2 上的基本運用。
首先建立一個 class : com.test.interceptor.MyInterceptor 並且 implements Interceptor,這個 Interceptor 是個 Interface,所以需要實作三個 method:init()、destroy()、intercept(ActionInvocation invocation),其中只有 intercept(ActionInvocation invocation) 需要回傳一個 String 的值,可以利用  invocation.invoke(); 來讓系統自已跳到預設的下一個 Action method。
 
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(3,153)

  • 個人分類:JAVA - Struts2
▲top
  • 12月 10 週三 201408:57
  • Struts 2 加入validate()後,自定義的 action methods 無法運作

Struts 2 支援 POJO 的程式撰寫,所以可以指定 Action Method 來執行您在 struts.xml 中的設定。



<action name="userLogout" method="logout" class="com.gu.EipLogin">
     <result>eip_home.jsp</result>
</action>


(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(585)

  • 個人分類:JAVA - Struts2
▲top
  • 11月 24 週一 201411:00
  • Struts 2 對於 Interceptor 攔截器的基本概念與實作

Struts 2 在 struts2-core-2.x.x.jar 的 struts-default.xml 中也設定了許多的 Interceptor 攔截器,Interceptor 攔截器的基本概念大致整理如下:
1. 要有目標對象
2. 攔截器本身,在攔截器本身安插要執行的作業
3. 由 java.lang.reflect.InvocationHandler 來讓 目標對象 與 攔截器 產生關連
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(1) 人氣(746)

  • 個人分類:JAVA - Struts2
▲top
12»

Google Search 站內文章搜尋

熱門文章

  • (21,798)Certificate Authority(CA) 憑證簡介
  • (8,540)AppServ + OpenSSL Setup SSL(https) in Win32 憑證建立
  • (37,425)Apache - VirtualHost 架設虛擬網站
  • (3,116)Oracle External Table
  • (3,338)GnuPG (GPG) In Win32 免費檔案加解密軟體概念與實作
  • (25,442)Linux 檔案格式 ext2 ext3 ext4 比較
  • (171)Oracle EBS ORG_ID (ORGANIZATION ID) 是向 SEQUENCE HR.HR_ORGANIZATION_UNITS_S 取值
  • (2,656)Oracle EBS Profile 的參數
  • (7,764)MSSQL 2008 R2 MSSQLSERVER_701:資源集區 'internal' 中的系統記憶體不足,無法執行此查詢
  • (7,374)Oracle SQL Optimizer Hints Concept 優化概念與範例

bloggerads-header

BloggerADs

參觀人氣

  • 本日人氣:
  • 累積人氣:

文章分類

toggle PTC-Windchill (1)
  • System系統類 (1)
toggle Server (6)
  • OS (2)
  • VMware (3)
  • Tomcat (1)
  • JBoss (13)
  • Apache (2)
  • Weblogic (1)
toggle Java (5)
  • Java - Spring (2)
  • JAVA - BASIC (9)
  • JAVA - Struts2 (16)
  • Struts2 + Spring4 + Hibernate4 (10)
  • JAVA - ADF (3)
toggle Oracle EBS (4)
  • EBS - Interface (1)
  • EBS - INV (1)
  • EBS - BASIC (4)
  • EBS - OAF (3)
toggle PL/SQL (1)
  • PL/SQL - BASIC (1)
toggle DataBase (2)
  • DB - MSSQL (10)
  • DB - ORACLE (11)
toggle PHP (2)
  • Yii2 (1)
  • PHP - BASIC (6)
toggle HTML (2)
  • HTML - CSS (1)
  • HTML - SSL (6)
toggle JavaScript (1)
  • JS - BASIC (5)
toggle XOOPS (2)
  • 架站前的準備工作 (8)
  • XOOPS2 的安裝與使用 (1)
toggle Linux (1)
  • Linux - BASIC (7)
  • Python (1)
  • 未分類文章 (1)

個人資訊

MIS
暱稱:
MIS
分類:
圖文創作
好友:
累積中
地區:

誰來我家