![]() |
|
|
Published: Monday, August 09, 1999 By Ian Stallings Using ASP you can do a lot of cool stuff. But when the page views go through the roof it's time to move your code over to a more robust and mature programming language like C++, VB or ..you guessed it, Java. So in this article I've decided to give a brief introduction on how to use Java and ASP. In my next article, I plan on showcasing the true power of using ASP with Java by grabbing info from another website. With Java's hardcore networking capabilities, it'll be a snap. And when we're done we'll grab live stock info right from Nasdaq's website!
First, Let's start with what you'll need: - Personal Web Server or IIS Grab the latest of these from http://microsoft.com/java. Using these we can write the code right in notepad and compile the classes right from the command line. No wussy WSYWIG here. Let's start coding! Open up notepad or any other text editor and dig in. Let's start with a "Hello Geek" example to get us started. Here's the Java:
Ok, so far pretty simple? Now save your code into the
same directory that
Note that the
In your bin directory now should be a file named
This wraps up the first part of the article. You'll see that writing a Java object and accessing it using ASP is really simple. And it's quick too! In the next article we'll really dig in and build a Java object that retrieves stock quotes right from the source! Pretty neat, eh? (Read the next article, Using Java & ASP to Grab Stock Quotes!)
Attachments: hello.java in text formathello.asp in text format
Related Links:
Ian Stallings is a 26 year old Software Engineer from the Washington DC area. He has experience in Internet/Intranet development using ASP, VB, Java, SQL Server, and IIS. Prior to devoting his career to application development he worked as a systems administrator at a small ISP. When not developing applications or tinkering with computers, he masquerades as a normal human being
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||