... Portal, then you already know about widgets, which are called
Web Parts in SharePoint and ASP.NET 2.0.
Specifically, an Ajax-powered web portal is aweb portal that uses Ajax technologies
to create ... have already devel-
oped one or more web applications and have a good grip on JavaScript and ASP.NET
2.0. The reader is also expected to have basic understanding of ASP.NET AJAX. This
information ... Widget.
User
UserSetting
Pages
Widget
instances
Widget
Inherits
hashas
has
BuildingaWeb 2.0 Portal
with ASP.NET 3.5
Praise for BuildingaWeb 2.0 Portal with ASP.NET 3.5
“Omar and his collaborators have applied...
...
■
BUILDING A SAMPLE APPLICATION USING ASP.NET AJAX 239
828-8 CH10.qxd 10/11/07 10:47 AM Page 239
226 CHAPTER 10
■
BUILDING A SAMPLE APPLICATION USING ASP.NET AJAX
Figure 10-1. An ASP.NET AJAX-based ... you
looked at a real-world application and how you would implement it as an AJAX applica-
tion quickly, simply, and powerfully using ASP.NET AJAX.
CHAPTER 10
■
BUILDING A SAMPLE APPLICATION USING ASP.NET ... have added AJAX capabilities to this application, and
the page will not blink as it obtains data and renders the updates.
You can see that there is no explicit coding for a partial-page update...
... c:\jakarta-tomcat\classes;c:\jakarta-
tomcat\lib\ant.jar;c:\jakarta-tomcat\lib\jaxp.jar;c:\jakarta-
➥
tomcat\lib\servlet.jar;c:\jakarta-tomcat\lib\parser.jar;c:\jakarta-tomcat\lib\we
➥
bserver.jar;c:\jakarta-tomcat\lib\jasper.jar;c:\jakarta-
➥
tomcat\lib\xalanservlet.jar;c:\jakarta-tomcat\lib\xerces.jar;c:\jakarta-
➥
tomcat\lib\xalanj1compat.jar;c:\jakarta-tomcat\lib\aaxalan.jar;c:\jdk1.3\lib\too
➥
ls.jar
2001-05-23 ... c:\jakarta-tomcat\classes;c:\jakarta-
tomcat\lib\ant.jar;c:\jakarta-tomcat\lib\jaxp.jar;c:\jakarta-
➥
tomcat\lib\servlet.jar;c:\jakarta-tomcat\lib\parser.jar;c:\jakarta-tomcat\lib\we
➥
bserver.jar;c:\jakarta-tomcat\lib\jasper.jar;c:\jakarta-
➥
tomcat\lib\xalanservlet.jar;c:\jakarta-tomcat\lib\xerces.jar;c:\jakarta-
➥
tomcat\lib\xalanj1compat.jar;c:\jakarta-tomcat\lib\aaxalan.jar;c:\jdk1.3\lib\too
➥
ls.jar
2001-05-23 ... files, are meant to hold a set of class files that can be placed in the class-
path and double-clicked using a GUI to launch an application.
If you add aWebapplication to Tomcat “automatically”...
... discussed and heralded in particular as a great benefit in connecting
legacy applications to modern Web- based applications.
Within aWeb application, passing even one parameter that contains XML data ... environments.
5.4 XML Data Flows in Web Applications
We believe that passing XML data within aWebapplication will turn out to be as
important as passing XML data between systems and applications.The latter ... database management system
because handling chat data is an obvious job.We decided against that for several rea-
sons. One is that we did not want to assume that all our readers are familiar with...
...
bonForumXML
(a
ForestHashtable
) as a string.
Now we decided to make it the input XML stream for the Xalan XSLT processor as
part of our
TransformTag
class.
Displaying the available chats would mean ... for a bonForum user to become a host by starting a chat and
then re-enter the same chat as a guest.The problem is that that user then loses the
capability to again be a host of that chat. Having ... remove this watermark.
141
6.3 Displaying Chat Messages
database grows. Our plan is to iterate only the message pointers that exist within a
particular chat element in the XML data.We had to settle...
... logic, by
making one more variable available to each JSP-produced page of a bonForum
instance.
The incoming request parameters are validated and made available to the Web
application in whatever ... the applet parameters right on
the _robot page? Using the same target parameter as we did in the last section as an
example, that would mean doing this:
<jsp:param name=”target” value=”display”/>
The ... visitor_joins_chat_frame
5
chatTopic visitor_starts_chat_ready
5
chatModerated visitor_starts_chat_ready
7
chatSubject visitor_starts_chat_frame
10
chatMessagesPageSize guest_executes_command_controls
11
chatMessagesPageSize...
... this watermark.
279
8.2 The BonForumStore Class
object.That means that all the pathnames are available again but are sorted alphabeti-
cally.The code on a JSP document likes it that way.
The ... database (now a
ForestHashtable
)
n
Initializes the XML database for use as a chat Web app
n
Loads XML files into a database using its methods
n
Dumps the content of the database as XML in a string
n
Provides ... there are two such XSLT classes, one for Xalan-Java 1 and one for Xalan-
Java 2.
Simplifying greatly, here are the statements called by the
TransformTag
class to get
its XML database in a string:
private...
... will assume as it translates the tag that
these variables are available as page attributes. Later, when we look at the translated
Java code for a Tag Handler instance, you can see where the value ... bean from Tag Handler classes, and there are different ways to manage that.
A bean can even be made into a tag handler itself, simply by implementing the
Tag
interface.We make our bean available ...
TagExtraInfo
.That means that the JSP container will be capa-
ble of using this class at translation or compilation time to get information about vari-
ables that are used in the Web application. ...
... system_executes_command.jsp. Note that if you have
Xalan-Java-2
,
you can also set
xalanVersion
to
Xalan Java 1
, as long as the compatibility JAR file
is accessible, for example, as TOMCAT_HOME\lib\xalanj1compat.jar.
Let’s ... two
classes to encapsulate the steps required for either
Xalan-Java 1
or
Xalan-Java 2
.The
classes are called
Xalan1Transformer
and
Xalan2Transformer
. Each has one method
called
transform
, which ... // 4 is application scope
}
catch( java.lang.NullPointerException ex ) {
value = “Xalan-Java 1”;
}
}
if( value.equals( null ) ) {
value = “Xalan-Java 1”;
}
type = value;
}
/** Sets inXML attribute;...
... created by the following
statement from the file ForestHashtable.java:
public NodeNameHashtable nodeNameHashtable = new NodeNameHashtable();
Notice that a class called
NodeNameHashtable
has ... this watermark.
416
Chapter 11 XML Data Storage Class: ForestHashtable
attribute to a chat element.We will also try using it to allow a chat host to change the
rating of a guest in a chat.
Warning
The ... requirements with remote databases. Although our simple chat
application does not take full advantage of this design, an e-commerce application
based on the same architecture would certainly do so.
11...
... communication among
care staff and their patients and to connect with
everybody from therapists and pharmacists to
transportation personnel – essentially anybody
that can help streamline a patient’s ... horizontal pathway space, fire-stopping pathways, and overhead-head racks. That’s where ADC’s
TrueNet cable, with it’s smaller diameter, really came into play.
“The number of fire-stopping paths ...
the data center witha redundant link to the main
via a 10-gigabit Ethernet collapsed fiber backbone
to handle simultaneous traffic at full speed. Each
IDF is connected with 48 strands of ADC’s...
... Control to Access a Database
A DataGrid allows you to access rows in a database table. In the following sections,
you'll learn how to create an ASP.NET Webapplication that uses a DataGrid ... create a DataSet object. You use a DataSet object to store a local copy
of the information stored in the database. A DataSet object can represent database
structures such as tables, rows, and ... information about a user or the application. Finally,
you can of course always store information in static variables or objects.
You'll learn about the Session, Application, and Cache objects...