|
“總-分”結構
To do sth requests:
?? 1. .......
???2. .......
Do one of the following:
???? On Windows: .....
???? On Linux: ....
This section provides background information on ..... and describes how to?.......
The following topics are covered:
???? 1....
?????2...
The only circumstances under which you should need to change SGA and PGA Aggregate sizes are the following:
?? 1...
?? 2...
描述命令行
Enter the following command at the operating system prompt to start SQL Command Line:?
???.........
At the SQL Command Line prompt, enter the following command:?
???select * from table1;
If the command is successful, the following message is displayed:
?? .........
確保
Ensure that sth is started.
Be certain that .....
請參見
Set environment variables according to the instructions in "Setting E... V... on the Linux Platform"
See "......." for instructions.
See?"......" for more information.
See"...." for a discussion of .....
See Also: ...
>sqlplus /nolog????????????? Just startup SQL*PLUS but haven't connected to DB
>sqlplus / as sysdba????? Use os authentication
>sqlplus user/pwd???????? Use db authentication
SQL>startup????????????????? Startup Oracle service (should startup TNSListener at first)
SQL>shutdown
SQL>connect user/pwd??????????????????????? Local connection
SQL>connect
user/pwd@host:1521?? ?Remote connection *1* *2* *3*
SQL>connect system/pwd?????????????????? The pwd is the SYSTEM
password that you set upon installation?of Oracle Database XE.
>lsnrctl status?????????????? View listener status
>lsnrctl start
>lsnrctl stop
>lsnrctl reload
>lsnrctl services
>emctl start dbconsole??
>emctl start agent?????? start up the EM Grid Control facility
>isqlplusctl start???????? start up the iSQL*Plus server
Note
*1* Logging in to the Oracle Database XE host computer with an ssh (or telnet ) session and then starting SQL Command Line (or other Oracle command-line utility) is considered a local connection, even though you start the ssh (or telnet ) application on a remote computer.
*2* The remote computer must have Oracle client software installed.
*3* Only Oracle Database XE Client supports the notion of a default database service. If you connect remotely from any Oracle client software other than Oracle Database XE Client, you must include the XE service name.
?
POJO principle
1. The class can not be final
2. Must implement Serializable
3. Must contain a non-argument constructor
4. The getter and setter must be public
==must be installed==
RegexPlugin
http://www.intellij.org/twiki/bin/view/Main/RegexPlugin
unitTest: better (and also bigger) than JunitGenerator
CVS bar: VCS bar is too old
SpellCheckPlugin
http://www.intellij.org/twiki/bin/view/Main/SpellCheck
DBHelper: more powerful than? SQL Query Plugin. Maybe the latter will be removed after I am familiar with DBHelper.
http://ca.geocities.com/davidhuo2003/dbhelper.html
Rearranger: use it in canonical class, such as bean??
http://www.intellij.org/twiki/bin/view/Main/RearrangerPlugin
simpleUML??
http://www.intellij.org/twiki/bin/view/Main/SimpleUML
Key promoter: Shows to user how easy he can make same action using only keyboard
==good for using==
IdeaMouseGestures: IdeaMouseGestures plugin provides easy way to assign Idea's menu items to mouse gestures.
http://www.smardec.com/products/idea.html
KonaWorks PowerPack: A new code action to easily insert an expression inside a string literal
http://www.konaworks.org/
DragNDrop: This plugin will allow a user to drag and drop files into the main pane of IntelliJ
Workspaces
http://www.intellij.org/twiki/bin/view/Main/WorkspacesPlugin
RemoteTail: The plugin allows the user to view the content of a file which could be on a different computer.
Jump to Usage: Simple plugin to make navigation to element usages easier than using Alt+F7.
http://sourceforge.net/projects/jumptousage
Library Finder: helps to find library files (.jar/.zip) for a "fully qualified" class/resource name.
http://code.google.com/p/libraryfinder/
IntelliLang: IntelliLang is a combination of three basic kinds of functionality that are meant to support the developer in dealing with certain tasks that relate to (custom) languages in IntelliJ IDEA.
http://www.jetbrains.net/confluence/display/CONTEST/IntelliLang
XPathView + XSLT-Support: required by IntelliLang
http://www.intellij.org/twiki/bin/view/Main/XPathViewPlugin
Tabifier:?The tabifier plugin retabs Java code so that syntactic elements are aligned vertically.?
http://www.intellij.org/twiki/bin/view/Main/TabifierPlugin
Struts Assistant: it will conflict with Struts Plugin, so Struts Assistant is enough.
http://www.intellij.org/twiki/bin/view/Main/StrutsAssistant
IdeaSpring: Helpful?to edit?applicationContext.xml.?But it is even a commercial one! So it has to be re-download every 15 days.
XFile: defaul Changes is good enough, so maybe it will be removed later.
http://www.echologic.com/plugins/xfiles.html
UpperLowerCapitalize: just use the capticalize, since there is default upper/lower in IDEA
http://www.intellij.org/twiki/bin/view/Main/UpperLowerCapitalize
IdeaJad: a popular decompiler
http://www.tagtraum.com/ideajad.html
SyncEdit: Remove the default shortcut "Tab" (for "Next SyncEditable Word"), since I need "Tab" work normally.
World of Java
http://www.worldofjava.org/
Scratch Pad: Additional editor tool window to hold pieces of code temporarily. No syntax colouring, intentions or error highlighting.
http://www.intellij.org/twiki/bin/view/Main/ScratchPadPlugin
HTML Preview: Provides preview for html files using Mozilla browser
==learning==
TabSwitch: Open files/tabs switcher
CVS Report for IntelliJ IDEA:?CVS Report for IntelliJ IDEA is a free open source plugin for IntelliJ IDEA to generate statistical reports from your CVS repository.
http://vcsreport.sourceforge.net/
RssPlugin: RSS Plugin for viewing RSS feeds within IntelliJ.
http://www.intellij.org/twiki/bin/view/Main/RssPlugin
Hibernate Tools: better than hibero which is even?a commercial one!
Smart Introduce:?how to use it?
http://www.intellij.org/twiki/bin/view/Main/SmartIntroducePlugin
GroovyJ: hoping it can become more powerful
http://groovy.codehaus.org/IntelliJ+IDEA+Plugin
==not very useful, so can be ignore==
Code Outline: Have not found anything useful? (dosen't work?in IDEA 6.0)
OpenContainingForder: Plugin for Viewing folders with Windows Explorer, but cannot?open a folder.?So?"Alt+Shift+E" is better?
LineMover: default "Ctrl+Shift+Up/Down" is enough.
SQL Query Plugin: DBHelper is good enough
SQL script editor: DBHelper is good enough
JavaDoc Browser: the window can't be big enough, so acutal browser (such as fire fox) is better.
BTW: if you have any good recommendation,?welcome to share with us.?
1. Tomcat config file, where you can change Tomcat's port number: <CATALINA_HOME>/conf/server.xml
?
note1: whether auto-reload the web application, when .class file is changed
????????????? 1) during developing, set reloadable=true
????????????? 2) after deployment, set reloadable=false
2. Some libs
/server/lib?
|
just for Tomcat
|
/shared/lib
|
for all web apps
|
/common/lib
|
both Tomcat and all web apps
|
/webapps/jcat/WEB-INF/lib
|
just present web app
|
3. Immobile Directory Structure (the names are also immobile, include uppercase/lowercase)?
???/jcat
???/jcat/WEB-INF
???/jcat/WEB-INF/web.xml
???/jcat/WEB-INF/classes
???/jcat/WEB-INF/lib
?????
Note: WEB-INF/classes
is loaded by tomcat before
WEB-INF/lib
, so classes has priority than lib
4.?Scopes
??????Application:在整個web應用程序內有效。對應于servelet中的ServletContext對象,Action中的獲?。篻etServlet().getServletContext()
??????Session:在一個用戶與服務器建立連接的整個過程中有效。Action中的獲?。篽ttpServletRequest.getSession()
??????Request:在一個請求周期內有效。就是從你點擊頁面上的一個按鈕開始到服務器返回響應頁面為止(包括響應頁面)。
??????Page:僅在一個jsp頁面內有效。
*1*
?
Request in Struts: PageFrom (request.setAttribute by using Form)-->Action(request.getAttribute&setAttribute)-->PageTo (request.getAttribute by using EL)?
*2*?:
Parameter vs Attribute in request
???Parameter
是
URL
帶過來的參數,只能是個
String
,如
www.verican.com/test?para1=1¶2=ttt
???在
Action
中的調用:
request.getParameter("para1");?
???在響應頁面中的調用:
${param.para1}
(
param
是
EL
的隱藏對象)?
???Attribute
一般是
Form
帶過來的屬性,可以是任何對象
???
在
Action
中的調用:一般已經存在于
Form
對象中;
???在響應頁面中的調用:
${attributeName.xxx}?
(
EL
會自動調用
getXxx
方法,所以該
attribute
必須實現
getXxx
方法)
5. Web server跟蹤客戶狀態的四種方法(HTTP是無狀態的協議)
??? 1)建立含有跟蹤數據的隱藏表格字段
??? 2)重寫包含額外參數的URL
??? 3)使用持續的Cookie
??? 4)使用Servlet API中的Session機制
6. JavaBean的標準
???1) should be a public class
???2) should have a non-argument constructor
???3) fields should be privated, and using get & set to access them
???4) also can have some other functions as a common class