PIXNET Logo登入

MISTECH 技術手抄本

跳到主文

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

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

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 2月 13 週五 201510:30
  • 刪除詢問視窗 bootstrap-dialog.js

beforeDel在撰寫程式時,對於刪除資料前應該是先詢問使用者,以往都是跳出一個詢問視窗,但現在的流覽器大都會阻隔,在導入 Bootstrap 的 framework 後,可以加入 bootstrap-dialog.js 的 plug-in 來強化程式的友善化。效果如下:




 



  • 查詢後的畫面


beforeDel



  • 按下刪除時的詢問視窗


askDel 





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

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

  • 個人分類:JS - BASIC
▲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,152)

  • 個人分類:JAVA - Struts2
▲top
  • 12月 16 週二 201413:13
  • XAMPP 的 sendmail 對 gmail 的設定

XAMPP 是一套整合 Apache、PHP、MySQL、Mercury Mail Transport System、FileZilla FTP Server、Tomcat...等的服務應用系統,讓您可以專心在系統程式開發上,若在開發的應用系統中有需要發信時而不想自行管理 Mail Server 時,可以利用內附的 sendmail 結合 gmail 來達成。
 
主要修改的地方有二個設定:
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(1) 人氣(5,553)

  • 個人分類:
▲top
  • 12月 15 週一 201416:56
  • smarty 搭配 Apache 的 rewrite.mod 時的配置

在 Apache 利用 mod_rewrite 做到網址轉換達成SEO優化 我們達成了 SEO 的優化,但當刷新頁面很多次時卻有時會出現空白的頁面,將 php 程式段的偵錯模式打開 error_reporting(E_ALL); 會出現下列的錯誤訊息。



Fatal error: Uncaught --> Smarty: unable to write file /xampp/htdocs/myweb/smarty/templates_c\8c6924ac7efe8f944a5a8a181c85433787f58f0c.file.home_index.html.cache.php <-- thrown in D:\xampp\htdocs\myweb\includes\smarty\libs\sysplugins\smarty_internal_write_file.php on line 74


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

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

  • 個人分類:PHP - BASIC
▲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) 人氣(745)

  • 個人分類:JAVA - Struts2
▲top
  • 11月 20 週四 201409:16
  • Struts 2 整合 Spring 配置實作

Struts 2 要與 Spring 結合並不難,因為 Struts 2 本身就已經預留介面,在 struts2-core-2.x.x.jar 裡的 org.apache.struts2.default.properties 有這一段設定



### if specified, the default object factory can be overridden here
### Note: short-hand notation is supported in some cases, such as "spring"
###       Alternatively, you can provide a com.opensymphony.xwork2.ObjectFactory subclass name here
# struts.objectFactory = spring
### specifies the autoWiring logic when using the SpringObjectFactory.
### valid values are: name, type, auto, and constructor (name is the default)
struts.objectFactory.spring.autoWire = name


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

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

  • 個人分類:JAVA - Struts2
▲top
  • 11月 12 週三 201417:30
  • Oracle DataBase JNDI 在 JBoss EAP 6.x 上的設定

JBoss EAP 6.x 上要建立 Oracle DataBase 的 Java Naming and Directory Interface (JNDI) 作法分三個步驟如下:
Step 01: 在 $JBOSS_HOME 目錄 modules 下建立 oracle 相關資訊





$ mkdir -p $JBOSS_HOME/modules/com/oracle/main/

$ touch $JBOSS_HOME/modules/com/oracle/main/module.xml





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

MIS 發表在 痞客邦 留言(0) 人氣(2,919)

  • 個人分類:JBoss
▲top
  • 10月 31 週五 201413:04
  • OAF ( Oracle Application Framework ) Deploy 佈署程序 Oracle EBS R11

OAF_R11_Hello_01環境:
EBS : R11.5.10
JDeveloper: p8751878_GENERIC.zip 解壓至 D:\OAF_R11i
(繼續閱讀...)
文章標籤

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

  • 個人分類:EBS - OAF
▲top
  • 10月 07 週二 201415:12
  • Struts2 如何利用 WildcardMappings 達成 SEO 優化

在這篇文章:Apache 利用 mod_rewrite 做到網址轉換達成SEO優化 說到使用此方法的好處,在 Struts2 中也可以利用 WildcardMappings 來達成 SEO 優化,舉下列例子來說明:
原來:http://localhost:8080/guEBS/guWeb/userChooseLang?lang=chinese
(繼續閱讀...)
文章標籤

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

  • 個人分類:JAVA - Struts2
▲top
«1...67815»

Google Search 站內文章搜尋

熱門文章

  • (21,798)Certificate Authority(CA) 憑證簡介
  • (8,533)AppServ + OpenSSL Setup SSL(https) in Win32 憑證建立
  • (37,424)Apache - VirtualHost 架設虛擬網站
  • (3,102)Oracle External Table
  • (11,461)Oracle SQL Loader
  • (25,442)Linux 檔案格式 ext2 ext3 ext4 比較
  • (171)Oracle EBS ORG_ID (ORGANIZATION ID) 是向 SEQUENCE HR.HR_ORGANIZATION_UNITS_S 取值
  • (2,612)Oracle EBS Profile 的參數
  • (7,735)MSSQL 2008 R2 MSSQLSERVER_701:資源集區 'internal' 中的系統記憶體不足,無法執行此查詢
  • (12,666)IP Address & CIDR 概念

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
分類:
圖文創作
好友:
累積中
地區:

誰來我家