|
|
| WebLogic Server 6.1 Code Examples, BEA Systems, Inc. |
|
SUMMARY: INNER | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD |
examples.xml
Class Client
java.lang.Object
|
+--examples.xml.Client
- public class Client
- extends java.lang.Object
This client class works with the Sax, Dom, Attributes, GeneratedParser, and Entityresolution examples included in this package
to demonstrate how XML data can be passed and manipulated between
a client and a JSP.
This class reads the XML file and sends the data to a JSP using the HTTP
POST method. The JSP then parses the XML data that it received from the
Client and prints the content in the shell from which you started
the WebLogic server.
The various examples show how to use different parsers; for example, the
sax example shows how to use a SAX parser to parse the XML data,
the generatedParser example shows how to create and use a
customized parser, and so on.
- Author:
- Copyright (c) 2001 by BEA Systems, Inc. All Rights Reserved.
|
Method Summary |
static void |
main(java.lang.String[] args)
Runs this Client from the command line. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Client
public Client()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Runs this Client from the command line.
The Client expects two arguments: the URL of the JSP and the
name of the XML file to be parsed. The Client looks for the
XML file in the current directory.
To run the client, enter this command at the command line:
java examples.xml.Client URL_of_the_jsp Filename.xml
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.