To take advantage of the capabilities of modern browsers that use web standards,such as XHTML and CSS, your web application is being converted from simple JSP pages to JSP Document format. However, one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in several web forms to create screen-specific validation functions and are included in these pages with the following statement:
使用程式碼
10. <head>
11. <script src='/scripts/screenFunctions.jsp'
12. language='javascript'
13. type='application/javascript'> </script>
PG Levin Li 發表在 痞客邦 留言(0) 人氣()
當你關tomcat後,
找出tomcat的 process id
以下指令查看process:
ps -ef|grep java
PG Levin Li 發表在 痞客邦 留言(0) 人氣()
三元判斷式 判斷式?成立程式區塊:不成立程式區塊
三元判斷式 ,
可以說是 if else 的簡寫版,
如果你的if else判斷是簡單的判斷,
可使用這三元判斷式,
多個if else if 判斷,
不建議使用三元判斷式,
PG Levin Li 發表在 痞客邦 留言(0) 人氣()
說明:
一、
if(true){
//true 條件成立 進入此程式區塊
}
二、
if(true){
PG Levin Li 發表在 痞客邦 留言(0) 人氣()
[Apache_JMeter]JMeter下載與安裝
JMeter簡介
Apache JMeter 是一個100%的純Java視窗應用程式,用於壓力測試和性能測量的工具。它最初被設計用於Web應用程式的測試,但後來擴展到其他測試領域。
目前JMeter可以執行Http、FTP、RDBMS(關聯式資料庫)、LDAP、SOAP與WebService等的負載以及效能測試,並且JMeter在原始設計上採開放式架構,因此也充許開發人員撰寫可執行的可插入式套件(Plug-Ins)與效能測量用的取樣器(Samplers)。
PG Levin Li 發表在 痞客邦 留言(0) 人氣()
相信有很多的程式設計師大都會遇到產生BarCode條碼的問題,這邊就利用itext-5.2.0.jar來幫各位解答一下,程式碼很簡單,等等看到就知道嚕
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.UnsupportedEncodingException;
import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Element;
import com.itextpdf.text.Image;
PG Levin Li 發表在 痞客邦 留言(0) 人氣()
package com.test;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
PG Levin Li 發表在 痞客邦 留言(0) 人氣()
[JAVA_Apache]使用commons compress套件,使用壓縮檔zip、解壓縮unZip
java.util.zip無法處理與中國,日本,Unicode字符的文件名稱
使用commons compress套件
可以解決使用java.util.zip套件作壓縮時,為什麼中文檔名都會變亂碼的問題。
是java 的bug
PG Levin Li 發表在 痞客邦 留言(0) 人氣()
最近作者比較有點空閒的時間,特別花了一點時間研究一下如何用java來寫入pdf,並用他來做一些基本的呈現,以及顯示中文
首先,先引入 itext-5.2.0.jar,如果你需要顯示中文化的話,需要引入itext-asian-5.2.0.jar
public class Emp {
private String empNo;
private String empName;
PG Levin Li 發表在 痞客邦 留言(0) 人氣()
[Linux]LAMP 安裝
安裝 LAMP
不是在 本機上安裝
而是透過 ssh 遠端連線 軟體: pietty0327
把檔案傳到 linux上 軟體 WinSCP
LAMP 就是 Linux Apache Mysql Php四種軟體的縮寫....
系統環境
PG Levin Li 發表在 痞客邦 留言(0) 人氣()