- •Table of Contents
- •1) Technical Support Specialist – Level 2
- •Qualification Requirements
- •2 ) Exceptions
- •3) Tier 2 Tools a) Solutions.24hourwebhostingsupport.Com
- •C) Linux Shell Commands
- •D) ipconfig
- •4) Absolute and Relative Paths a) Absolute Path
- •B) Relative Path
- •5) Possible Causes for Broken Sites
- •6) Installed Software:
- •7) Unix Services on the Hostopia Platform
- •A) cgi (Common Gateway Interface) faq
- •I.E. /services/webpages/h/o/hosting.Bluegenesis.Com/chat/chat.Log
- •B) Server Side Includes (ssi) faq
- •Can I use server-parsed image maps?
- •C) perl faq
- •How do I install and use Perl modules?
- •What is cpan?
- •What is supported by the jsp service?
- •What is a jsp file?
- •Where should my end users upload their jar files?
- •How do I Connect to an ms sql Database Source with .Jsp?
- •Upload appropriate libraries to your /public/web-inf/lib location
- •How do I Create a test .Jsp file?
- •Are there any potential issues ?
- •8) Windows® Services on the Hostopia Platform
- •A) Differences between Windows only Hosting and the Hybrid System
- •B) Functional Components
- •C) Non Functional Components
- •9) Asp 3.0 iis 6 (Active Server Pages)
- •A) asp Third Party Components
- •B) Server.MapPath()
- •C) The #include Directive
- •D) asp Coding Examples
- •1. Asp dsn connection for ms access
- •2. Asp dsn connection for MySql
- •3. Asp dsNless Connection for ms access
- •4. Asp dsnLess Connection To a MySql Database
- •5. Asp dsNless connection for ms sql
- •6. Defining Paths
- •7. AspMail Sample Code for Components
- •8. AspUpload Sample Code for Components
- •9. Cdonts Sample Code for Components
- •11. Sa Fileup Sample Code for Components
- •A) Features in asp.Net 2.0
- •B) asp.Net codebehind and Precompiled dll
- •C) Coding Considerations:
- •D) asp.Net codebehind and dll File Explanation
- •D) asp.Net ajax
- •E) Supported asp.Net File Extensions
- •F) Unsupported asp.Net file extensions:
- •G) Retrieving asp.Net Error Messages
- •H) asp.Net Coding Examples
- •11) ColdFusion 5 a) About ColdFusion 5
- •B) ColdFusion Applications
- •C) ColdFusion Tags
- •D) Supported ColdFusion Tags
- •E) Unsupported ColdFusion Tags
- •F) ColdFusion Error Messages
- •G) Custom ColdFusion Tags
- •H) ColdFusion Coding Examples
- •12) ColdFusion mx 7
- •13) Payment Gateways
- •13) Ssl (Secure Socket Layer)
- •A) Security Certificates
- •B) Common Issues with Installing a Custom ssl Certificate.
- •C) Creating Symbolic Links aka Symlink
- •Cd name_of_symlink
- •Rm name_of_link
- •Cd name_of_symlink
- •14) Databases a) ms access (Microsoft Access)
- •B) ms sql (Microsoft sql)
- •C) MySql
- •Import the dump.Sql file into a database:
- •15) Common Issues for Tier 2 a) Email
- •I. How to read Email Headers; Check for delays and Time Zone Discrepancies
- •II. How to Convert to utc (gmt)
- •1) Find the Time and Convert to utc!
- •2) Find the delay!
- •III. Bigfoot Mail System
- •IV. How to Test if the inbox is Corrupt
- •B) Formmail
- •2) Create a Test Form.
- •3) Copy and Paste Code into Form Non Secure Site
- •4) Verify that there is a cgi-bin.
- •6) Test the form. C) Sub Domains
- •D) Common Ports
- •E) Permissions
- •E) RealServer
- •F) EasySiteWizard 7
- •G) htaccess directives
- •H) Serrahost ProStores
- •I) FaxWire
- •J) Bell dns Remaps
How do I Connect to an ms sql Database Source with .Jsp?
The following steps will allow you to make a simple connection to an MS SQL database using .jsp: Obtain the JDBC libraries for MS SQL
Microsoft has made standard libraries according to the JDBC specification published by Sun Microsystems. You can download the latest library directly from Microsoft (note that you must login with a Microsoft Passport, or create one): http://www.microsoft.com/sql/downloads/jdbcregister.asp
There is a .tar and a setup.exe file – you only require the setup.exe file if you wish to have all the libraries installed on a Windows system. The .tar file contains everything you require otherwise. It will expand into an msjdbc.tar file, which contains the appropriate libraries.
Upload appropriate libraries to your /public/web-inf/lib location
There are several files that come with the /Microsoft JDBC libraries, however you only need three. The files should be in the /lib folder of the archive and are named:
msbase.jar
MSSQLserver.jar
msutil.jar
Upload these files to the /public/WEB-INF/lib/ directory. You must wait up to 24 hours for the addition of the new Java libraries to be loaded by the JSP server.
How do I Create a test .Jsp file?
There are THREE important options that must be configured to ensure that you are setup correctly:
a) DB_NAME should be changed to your database name b) USERNAME should be changed to your username c) PASSWORD should be changed to your password
The DB_NAME and USERNAME are available from your Web Service Provider.Upload this file into your /public/ web directory. You should be able to test this by going to your website: http://www.yourdomainname.tld/MS SQLtest.jsp
Copy and paste the following text into an MSSQLtest.jsp file:
<%@ page import="java.sql.*" %> <% try { Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); Connection Conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://MSSQL.megasqlservers.com;DatabaseName=“DB_NAME","USERNAME","PASSWORD""); out.println("Connected!"); } catch(ClassNotFoundException e) { out.println("Driver not found."); out.println(e.toString()); //throw new UnavailableException(this, "Class not found."); } catch(SQLException e) { out.println("You have an error: "); out.println(e.toString()); //throw new UnavailableException(this, "Cannot connect with the specified database."); } %>
Are there any potential issues ?
You get an error message that starts with “Driver not found”
Ensure that you have uploaded the JAR file specified in step 2 into the appropriate directory and have waited up to 24 hours for the changes to take effect. You get an error message that starts with “You have an error: java.sql.SQL Exception” Please read the contents of the error carefully. This means that you have supplied incorrect information.
