Netscape DevEdge News, Vol. 2 No.2, Jan. 22, 1997

devinfo@netscape.com
Fri, 24 Jan 1997 09:49:36 +0900

Email replies to intranet must include:
In-Reply-To: <3.0.32.19970124095623.00d034d4@ns.kisco.co.kr>
Subject: ...change this to be about your reply.

Netscape DevEdge News
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A bi-weekly newsletter serving the Netscape developer community
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Vol. 2, No. 2 -- January 22, 1997

In this message:

PRODUCT AND TECHNOLOGY NEWS
* Collabra Server Beta Available
* TechVision this Week: The Web -- Worldwide
* Netscape to Support Apple’s Next-Generation Operating System
* IFC Supported by Asymetrix

NEW RESOURCES
* New Layers Demo for Communicator, Plus Source Code
* Explore Netscape’s Virtual Intranet
* User Services for DevEdge Members

NEW TO VIEW SOURCE
* Server Side JavaScript and LiveWire

EVENTS
* World Movers VRML 2.0 Developers' Conference Jan. 30-31

CODERS CORNER
* Implementing Hot Keys for Windows Plug-ins
* File Uploading Using Server-Side Java

HOW TO SUBSCRIBE/FEEDBACK

- Products and Technologies -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* COLABRA SERVER 3.0 BETA RELEASED
Netscape has just released the first beta version of Netscape Collabra
Server 3.0, a high-performance, open discussion server with integrated
security features to make collaboration and knowledge-sharing easier
and more productive among teams of people on the Internet and
Intranet. Based on the Collabra Share groupware technology acquired by
Netscape last year, Netscape Collabra Server is newly architected for
the Internet using the Network News Transfer Protocol (NNTP) standard.
The Windows NT and Solaris betas can be downloaded from the Netscape
site today.

For more information:
http://home.netscape.com/comprod/announce/dss_coll.html

To Download the beta:
http://home.netscape.com/comprod/mirror/server_download.html

* TECHVISION THIS WEEK: THE WEB -- WORLDWIDE
Widespread support for the international Unicode standard will be a
significant step toward addressing the global communication challenge.
In the latest TechVision column, Marc Andreessen, Netscape senior
vice-president of technology, discusses how Unicode provides platform-
and language-independent building blocks that can be used to create
content and applications in a variety of languages. Marc discusses the
new standard and its potential for the Web.
http://home.netscape.com/comprod/columns/techvision/international.html

* NETSCAPE TO SUPPORT APPLE’S NEXT-GENERATION OPERATING SYSTEM
Netscape announced that it plans to make a version of the upcoming
Netscape Communicator for Apple’s next generation operating system,
code-named Rhapsody, when Rhapsody comes available. In addition,
Netscape and Apple are working together to continue to integrate Apple
technologies such as Cyberdog and the Meta Content Format (MCF) with
Netscape's software products.

* IFC SUPPORTED BY ASYMETRIX
The Netscape Internet Foundation Classes (IFC) is now supported by
Asymetrix's SuperCede - Java Edition, now shipping. SuperCede, coupled
with IFC, offers developers the ability to create enterprise
applications in Java quickly and easily. The IFC Central page of
DevEdge Online includes more IFC news and what other developers are
creating with the Internet Foundation Classes. This page has just been
updated and includes news on products from JWAVE, Netmosphere, and
Sarrus Software.
As a reminder, as of the first prerelease version of Communicator, IFC
class libraries are now included with Netscape’s client
http://developer.netscape.com/library/ifc/index.html

- New Resources -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* NEW COMMUNICATOR LAYERS DEMO WITH SOURCE CODE
A newly posted demonstration of the layers tag is a real eye-opener on
what's possible with Communicator’s Navigator component. This demo
originates from the What's Hot section of the Communicator site -- a
page developers will want to visit often for demonstrations of
Navigator features as they're introduced in future Communicator
prereleases. Preview Release 1 can be downloaded today and is needed
to view this layers demo. A special link for developers has just been
added to give you a look at the HTML source for this demo.
http://home/comprod/products/communicator/beta_features.html

* EXPLORE THE VIRTUAL INTRANET
Netscape has combined SuiteSpot servers and many of the developer
applications from AppFoundry to create a virtual intranet you can view
online. Take a tour of this intranet as an employee of the fictional
company Airius Airlines. The "About the Site" area includes
information about the site's architecture using SuiteSpot servers.
All of the applications used for the Arius Airline site can
be downloaded free from Netscape’s AppFoundry.
http://home.netscape.com/comprod/at_work/vip/index.html

To join the growing list of AppFoundry developers receiving qualified
leads through the program, go to:
http://developer.netscape.com/appfoundry/index.html

* USER SERVICES FOR DEVEDGE MEMBERS
Many of you have inquired about renewing your DevEdge
memberships or correcting our contact information about you. Turn to
User Services on the DevEdge Online site to either renew your membership
or make changes to our database information.
User Services can be found at:
http://developer.netscape.com/support/services/index.html

If you are interested in upgrading your existing membership to DevEdge
Gold, give the Netscape Developer Hotline a call at 415/937-6977.

- New to View Source -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* SERVER-SIDE JAVASCRIPT
Need to understand a simple, robust way of programming a Web server?
Read the latest edition of View Source. A Technical Perspective column
by View Source Editor Paul Dreyfus discusses server-side JavaScript
for providing database access from within a Web page and adding state
maintenance features to your server. The latest View Source Reliable
Sources column includes news of a recently released Web site
management tool from WebManage Technoligies Inc.
http://developer.netscape.com/news/viewsource/index.html

Have View Source comments, ideas for articles, submissions to Reliable
Sources? Send them to pdreyfus@netscape.com.

- Events -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* VRML 2.0 CONFERENCE: REGISTER BY JAN 24 and SAVE $200
The World Movers VRML 2.0 conference is Jan. 30-31. If you plan to
attend, register today. Early registration is $895 until Jan 24 when
the regular price of $1095 goes in effect. This conference is hosted
by Silicon Graphics. Netscape is a co-sponsor.
For more information or to register, go to:
http://www.worldmovers.org/

- Coder Corner -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* IMPLEMENTING HOT KEYS FOR WINDOWS PLUG-INS
Plug-in developers may can capture keystrokes to implement
hot keys within their plug-in. Use the CWnd::SetFocus() if using MFC,
or use SetFocus() if you are using Windows SDK.

Do the following in your Windows plug-in (Windows SDK way)
1.Call SetFocus((HWND)window->window) in your NPP_SetWindow().
2.Handle WM_KEYDOWN in your plug-in procedure.

(An extract from MFC documentation)
SetFocus() function sets the keyboard focus to the specified window.
The window, if any, that previously had the keyboard focus loses it.

* FILE UPLOADING USING SERVER-SIDE JAVA
Uploading files to a server is possible with CGI, NSAPI and server-
side Java. The example below demonstrates how to do this in Java.
The applet demonstrates two things:
1. Uploading a FILE from the Client's hard drive to the server using
FILE object.
2. Server-side java programming (using the java classes provided by
Netscape in its Enterprise and Fast Track servers) which will read the
contents of the uploaded file, and write the file on the Server Hard
Disk in the temp directory.

Assumption :
Developer should be familiar with using Netscape server-side Java
classes.

Expandability :
You can change the Java program to save the file contents to a client
specified directory on the server hard drive. The Java code is the
implementation of the Server Side Java Applet. This can be done on
both Enterprise and Fast Track servers.

// FormApplet.java code

import netscape.server.applet.HttpApplet;
import netscape.server.applet.ServerApplet;>
import java.io.*;
import java.net.Socket;
import java.net.InetAddress;
import java.lang.IndexOutOfBoundsException;
import java.util.Hashtable;
import java.util.Enumeration;

class FormApplet extends HttpApplet
{
public void run() throws Exception
{
Hashtable formdata;
int x;
PrintStream out = getOutputStream();
byte[] buffer;
FileOutputStream destination =null;
InputStream is = getInputStream();
DataInputStream di = new DataInputStream(is);

if (returnNormalResponse("text/html"))
{
out.print(header);
buffer = new byte[1024];
File f = new File("/tmp/client_file");
destination = new FileOutputStream(f);
// read the data from the input Stream
di.readFully(buffer,0,1024);
destination.write(buffer,0,1024);
destination.close();
out.print(header);
out.print("File has been successfully upload to the
server\n");
out.print(trailer);
}

}

private static final String header = "<h1>Form
results</h1>\n<ul>\n
> ";
private static final String trailer = "</ul>\n";
}

// HTML FIle calling the Java Applet

// This is the HTML file calling the server side applet
// What this HTML file does is allows a user to select a file which
// can be uploaded to the server
<HTML>
<HEAD>
<TITLE>
File Upload Form
</TITLE>
</HEAD>
<BODY>
<FORM ENCTYPE="multipart/form-data"
ACTION="http://graphite/server-java/FormApplet/" METHOD=POST>
<TABLE BORDER=2 CELLPADDING=1>
<TR>
<TD> File Name </TD>
<TD COLSPAN=3><INPUT TYPE=FILE NAME="uploadfile"></TD>
</TR>
</TABLE>
<CENTER>
<INPUT TYPE="submit" VALUE="Submit"> <INPUT TYPE="reset"
VALUE="Clear
Entries">
</CENTER>
</FORM>
</BODY>
</HTML>

- How To Subscribe/Feedback -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOW TO SUBSCRIBE
To become a Netscape DevEdge ONE News Subscriber, register in just
30 seconds at:
http://developer.netscape.com/subscription_reg.html

Your email address will not be distributed or sold to any company
or organization. Developers at the Netscape DevEdge Gold or Community
level are automatic subscribers. For information on Netscape DevEdge
Gold or Community member benefits go to:
http://developer.netscape.com/program/index.html

FEEDBACK
Send us your comments, suggestions and ideas on how Netscape can make
your life as a developer easier. Email comments to devinfo@netscape.com
or phone the Netscape Developer Hotline at 415/937-2986.