6.EJB development tool Lomboz (not required)??
?? Download URL:?? http://www.objectlearn.com/
Copy each of the above 4 com.sysdeo.eclipse.tomcat_2.2.1 and the com.cross.easystruts.eclipse_0.6.4 in the above 5 to
eclipse/plugins/, and then make the following settings
1.Tomcat initialization settings: Start Eclipse, open the Settings window via menu windows->preferences
?? Select Tomcat and do the configuration
1.Easy? Initialization settings for struts: Start Eclipse, open the Settings window via menu windows->preferences
?? Select struts?1.1 and locate and add Struts.jar files in the library files required by struts?1.1
3. In the type library description required for struts?1.1, it is recommended that at least the three described documents mentioned above be added to:
?? Struts_html.tld, Struts_bean.tld, Struts_logic.tld, these three files are automatically copied to the project's Web-inf directory when the Struts application project is created.
4. Create a new Tomcat project, and then right-click Project->properties->libraries to add all the packages in struts?1.1 to/R
5. New add? Easy? Struts? Support
6. Copy all the packages in the struts?1.1 to project->web-inf/lib/
Connect SQL in Java? server?2000 Access to Data
1. Download jdbc? For? SQL Server? Driver:
Http://www.microsoft.com/downloads/details.aspx?FamilyID=4f8f2f01-1ed7-4c4d-8f7b-3d47969e66ae&DisplayLang=en#filelist
Click setup.exe Download Driver
2. Install after downloading, install with default setting, will be installed to:
??? C:/Program? Files/microsoft? Sql? server?2000? Driver?for? Jdbc
3. The C:/Program? Files/microsoft? Sql? server?2000? Driver?for? Jdbc/lib
?? The following Mssqlserver.jar,msbase.jar,msutil.jar three files are copied to your
??? JDK Home directory/jre/lib/ext below, JDBC driver is now configured
4. Compile and run the test program:
???????? String?drivername?=? " Com.microsoft.jdbc.sqlserver.SQLServerDriver ";
???????? String?connurl?=? " jdbc:microsoft:sqlserver://bluesky:1433; User=sa; Password=sa;databasename=sitedb ";
???????? try{
???????? Class.forName (drivername);
???????? Connection?conn?=? Drivermanager.getconnection (Connurl);
???????? Statement?stmt?=?conn.createstatement ();
???????? Stringbuffer?strsql?=?new? StringBuffer ();
???????? Strsql.append ("Select?*?from?") Usertable?where?username?= ' "+?username?+" "" ");
???????? Resultset?rs?=?stmt.executequery (Strsql.tostring ());
???????? if (!rs.next ()? | |! Password.equals (Nulltostring (rs.getstring ("password")). Trim ()) {
???????????? Dbmsg?=? " Sorry, the user you have entered does not exist or the user password is incorrect.
????????} else{
???????????? Username?=? Nulltostring (rs.getstring ("username"));
???????????? Selectright?=? Nulltostring (rs.getstring ("Selectright"));
???????????? Deleteright?=? Nulltostring (rs.getstring ("Deleteright"));
???????????? Updateright?=? Nulltostring (rs.getstring ("Updateright"));
????????}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.