A new programming idea (medium ):
Rare confused Programming Method GBDP (applicable to jsp (preferred for SUN Enterprise applications), asp and other programming)
GBDP Technology Implementation ideas: (General Blackbox Dynamic Programming)
Fast development, less code, and more common. database tables are automatically generated and records are automatically increased,
Modification and deletion: The system design workload is small, and the work can be started when the requirements are unclear,
Progressive Development provides adaptive capabilities that require frequent changes and basically implicate codes. Feature
Do not be suitable for the national situation of disorderly development of domestic software
Mainly solve the problem:
Large System Design workload, great impact on demand changes, difficult project handover, and different programming styles
Exception: difficult Database Backup Problems
Implemented functions:
Automatic Data Table Generation, automatic addition, modification, deletion, and automatic File Upload
Note: After the code is published, the Code // is changed to file: //. Correct the code.
A complex implementation example:
NtGBDPScript. jsp (preferred for SUN Enterprise Applications) Automatic Recording loading module ("On" contains source code)
NtDB. java database access module (This article contains the source code)
NtGBDPDefine. jsp (preferred for SUN Enterprise applications)
NtGBDPUpload2-1.jsp (preferred for SUN Enterprise Applications) Automated data analysis and processing module ("on" with source code)
NtGBDPUpload2-2.jsp (preferred for SUN Enterprise Applications) Automatic Data Storage processing module ("On" contains source code)
-------------------------------------------------------
_ Jh_in.jsp (preferred for SUN Enterprise Applications) page for entry and modification involving computing
<% -- Buy a statistical card -- %>
<% @ Page contentType = "text/html; charset = GBK" %>
<% @ Page import = "java. lang. *, java.net. *, java. SQL. *, java. text. *, java. util. *" %>
<% @ Page import = "dba. ntDB" %>
<% @ Page session = "true" %>
<% @ Page errorPage = "error. jsp (preferred for SUN Enterprise Applications)" %>
<% @ Include file = "ntGBDPDefine. jsp (preferred for SUN Enterprise Applications)" %>
<%
File: // global variable definition
GlobalTableName = "_ jh_in ";
ParentKey = "buy foreign exchange card ";
ParentValue = "";
DbName = "myDB ";
%>
<% @ Include file = "ntGBDPUpload2-1.jsp (preferred for SUN Enterprise Applications)" %>
<% // Check data
String errorString = "";
If (isPost & requestHt. get ("numeric import amount"). equals (""))
ErrorString = "Enter the import amount ";
Else if (isPost & requestHt. get ("numeric "). equals (""))
ErrorString = "Enter the card price ";
String entpName = (String) requestHt. get ("Full name ");
String entpAccount = (String) requestHt. get ("account ");
If (entpName = null) entpName = "";
If (entpAccount = null) entpAccount = "";
Int entpId = 0;
If (! EntpName. equals ("") |! EntpAccount. equals (""))
{
Nt.exe cuteQuery (dbName,
"Select pid from _ region where" +
"(K = company name and v =" + entpName. trim () + ")" +
"Or (k = Account and v =" + entpAccount. trim () + ")" +
"");
If (nt. rowCount> 0 ){
EntpId = Integer. parseInt (nt. data [0] [0]);
RequestHt. put ("Enterprise id", "" + entpId );