home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
sybase
/
starbuck
/
template.z
/
iisjava.wxc
< prev
next >
Wrap
Text File
|
1996-12-04
|
3KB
|
162 lines
Save Format v1.3
@begin ClassFile "iisjava"
Exported 0;
Abstract 0;
Interface 0;
PackageName "";
Language "Java";
@begin UserFunction "iisjava()"
Compiler 1;
GencodeSrcLine 11;
FunctionName "iisjava::iisjava()";
@end;
@begin UserFunction "main(String args[])"
Compiler 1;
GencodeFunction 1;
GencodeSrcLine 15;
FunctionName "iisjava::main(String args[])";
@end;
@begin UserFunction "CreateMainForm()"
Compiler 1;
GencodeFunction 1;
GencodeSrcLine 22;
FunctionName "iisjava::CreateMainForm()";
@end;
@begin UserFunction "StartApp(String args[])"
Compiler 1;
GencodeSrcLine 25;
FunctionName "iisjava::StartApp(String args[])";
@end;
@begin UserFunction "RunApp(String args[])"
Compiler 1;
GencodeSrcLine 33;
FunctionName "iisjava::RunApp(String args[])";
@end;
@begin UserFunction "EndApp(String args[])"
Compiler 1;
GencodeSrcLine 54;
FunctionName "iisjava::EndApp(String args[])";
@end;
@begin HPPPrefixBlock
@begin-code HPPPrefix
// add your custom import statements here
import java.io.*;
@end-code;
GencodeSrcLine 6;
@end;
@begin CPPPrefixBlock
@begin-code CPPPrefix
@end-code;
GencodeSrcLine -1;
@end;
@begin ClassContentsBlock
@begin-code ClassContents
// add your data members here
WebConnection server;
@end-code;
GencodeSrcLine 57;
@end;
@begin-code BaseClassList
extends Object
@end-code;
@begin-code GeneratedClassContents
@end-code;
@begin-code Code "iisjava::iisjava()"
public @CLASSNAME@()
{
super();
}
@end-code;
@begin-code Code "iisjava::main(String args[])"
public static void main(String args[])
{
@@CLASSNAME@ app = new @CLASSNAME@();
app.StartApp(args);
app.RunApp(args);
app.EndApp(args);
}
@end-code;
@begin-code Code "iisjava::CreateMainForm()"
public void CreateMainForm()
{
}
@end-code;
@begin-code Code "iisjava::StartApp(String args[])"
public void StartApp(String args[])
{
server = new WebConnection(args);
if (! server.getConnected() ) {
System.err.println("Connection to Server failed");
System.exit(2);
}
}
@end-code;
@begin-code Code "iisjava::RunApp(String args[])"
public void RunApp(String args[])
{
//CreateMainForm();
try {
server.writeln("<P>Hello from a Java servlet");
PrintStream output = server.getStream();
output.println("<P>Hello down output stream");
String classname;
if( server.getIsPostMethod() ) {
classname = server.getFormVariable( "class" );
} else {
classname = server.getQueryVariable( "class" );
}
output.println("<P>Class: " + classname);
} catch( WebServiceException e ) {
}
}
@end-code;
@begin-code Code "iisjava::EndApp(String args[])"
public void EndApp(String args[])
{
}
@end-code;
@end;