Method and apparatus for generating Web content

Information

  • Patent Application
  • 20050010577
  • Publication Number
    20050010577
  • Date Filed
    July 11, 2003
    21 years ago
  • Date Published
    January 13, 2005
    19 years ago
Abstract
A process receives a request for a Web page. The process identifies an Active Server Page associated with the requested Web page. The identified Active Server Page includes a compiled user interface template. The Active Server Page is executed to generate the requested Web page. The requested Web page is then provided to a source of the request.
Description
TECHNICAL FIELD

The systems and methods described herein relate to Web servers and, more particularly, to generating Web content such as Web pages.


BACKGROUND

There are two approaches to Web application development. One approach, represented by Active Server Pages (ASPs), emphasizes rapid development over performance and is focused on HTML developers. Another approach, represented by Internet Service Application Programming Interface (ISAPI), is targeted to a more sophisticated application developer using system languages such as C and C++. ISAPI emphasizes performance, but development is typically slower. ASP is a Web server technology from Microsoft Corporation of Redmond, Washington. ISAPI is a programming interface on Internet Information Server (IIS), a Web server available from Microsoft Corporation.


The use of high performance application interfaces, such as ISAPI, to create applications typically require the use of the same interface to create associated user interfaces. Using a high performance application interface to create user interfaces is problematic because user interface developers are generally familiar with simpler declarative languages, such as HTML. Development of applications and/or user interface elements are more difficult using, for example, ISAPI. Since user interface elements are typically updated more frequently than the applications themselves, it is not desirable to use a high performance application interface to implement these frequent updates.


Accordingly, it is desirable to provide an architecture that separates development of applications from development of user interfaces.


SUMMARY

The systems and methods described herein are used to develop Web-based applications. In one embodiment, a process receives a request for a Web page and identifies an Active Server Page associated with the requested Web page. The Active Server Page includes a compiled user interface template. The Active Server Page is executed to generate the requested Web page. The requested Web page is then provided to a source of the request.




BRIEF DESCRIPTION OF THE DRAWINGS

Similar reference numbers are used throughout the figures to reference like components and/or features.



FIG. 1 illustrates an ASPH compiler that compiles an ASPL file into an ASPH file.



FIG. 2 is a block diagram of an example Web server.



FIG. 3 is a flow diagram illustrating an embodiment of a procedure for compiling a user interface template.



FIG. 4 is a flow diagram illustrating an embodiment of a procedure for processing an HTTP request.



FIG. 5 illustrates a general computer environment, which can be used to implement the techniques described herein.




DETAILED DESCRIPTION

The systems and methods discussed herein use a template system to separate the business logic (e.g., the applications) from the presentation (e.g., the user interface) for developing Web-based applications. The template system is also referred to as Active Server Pages for Hotmail (ASPH). A file format contains a language table, one file index per language and structures the files as multiple code sections. The code sections contain the instructions to display the user interface elements based on the ASPH instruction set. An ASPH compiler converts the user interface templates into an ASPH file. Developers use a language, such as ASPL (Active Server Page Language), to create user interface templates, which the ASPH compiler converts into ASPH files. These ASPH files are executed by the runtime system when the application calls the high performance user interface. Execution of an ASPH file generates an appropriate Web page in, for example, HTML, XML, or WML format. Thus, using the systems and methods discussed herein, the user interface developers can program using a declarative language while the system takes advantage of the more powerful interfaces available for application development.


Although particular examples discussed herein relate to Hotmail, the systems and methods described herein can be used with any email system or any other application, such as other Web-based applications. Additionally, specific examples described herein refer to the ISAPI interface. However, alternate embodiments may utilize any high performance application interface.


Certain examples discussed herein refer to Active Server Pages (ASPs). In one embodiment, an ASP is a Web page that contains HTML as well as embedded programming code. When a Web server receives a request for an ASP page, the Web server executes the embedded programming code. As used herein, a “Web page” may contain any amount of content or information. A “Web page” may be a portion of a larger page or larger collection of information.



FIG. 1 illustrates an ASPH compiler that compiles an ASPL file into an ASPH file. An ASPL file 102 defines a user interface template using the ASPL language. An ASPH compiler 104 receives an ASPL file and compiles the file into a byte code format and stores the byte code data in an ASPH file 106. The compiling of the ASPL file prior to execution improves the performance of a Web server (or other computing system) as compared to interpretive systems.


User interface templates defined by ASPL file 102 include, for example, an email inbox page, a personalized home page, a new message page, and an old message page.



FIG. 2 is a block diagram of an example Web server 202. Web server 202 includes an interface that receives HTTP requests such as requests for Web pages received from various browser applications executing on client systems. Web server 202 also receives various ASPH files 204 that are used to generate requested Web pages. An execution engine 206 in Web server 202 executes the appropriate ASPH files in response to requests received by the Web server. Web server then uses the interface to provide the requested Web pages to the appropriate requesting browsers.



FIG. 3 is a flow diagram illustrating an embodiment of a procedure 300 for compiling a user interface template. Initially, an ASPL file is created or identified (block 302). For example, an ASPL file may be created as a user interface template by a programmer or developer. A compiler then compiles the ASPL page (or pages) into a byte code format (block 304). The compiler generates an ASPH file and stores the compiled byte code data in the ASPH file (block 306). The ASPH file is then provided to a Web server or made available to the Web server (block 308). At a later time, the Web server uses the ASPH file to generate an associated Web page requested by a client accessing the Web server.


The ASPH compiler translates the data in the ASPL files into ASPH byte codes and generates a single ASPH file (typically named “i.asph”). The compiler maintains symbol tables and file tables to maintain a mapping of names to indices and to finally put this information into the header and body of the ASPH file. During a setup phase, the compiler loads the file table and the symbol table with the variables which are known at compile time. A header file (typically defined using the C programming language) specifies the list of files in which the ISAPI code is interested. The compiler extracts the ASPL file names from this header file and loads the file information into the file table. Additionally, the compiler loads the ISAPI variable information.


During a compile phase, the compiler compiles ASPL files for each language supported. During a link phase, the compiler links together the component files and generates the i.asph file with the appropriate file headers. A few examples of the compilation of ASPL code into ASPH byte codes are discussed below to illustrate the compilation process.


Set: A set is translated into one or more Load instructions. If the value that the variable is being set to is text, then only one Load instruction is generated. However, if the value is a concatenation of text and other variables, then a series of Load instructions are generated with appropriate arguments indicating how to concatenate the parts and finally load the resulting value into the destination variable.


Text: A stream of text (e.g., just text or HTML code) is translated into a text instruction with appropriate arguments. The compiler buffers text until it sees something that is not text. At that point, the compiler generates the text instruction. Although the compiler typically processes the file line-by-line, the compiler generates a single text instruction for a stream of text.


If/Else: This is translated into a combination of Compare-Jump or Expression-Jump instructions, depending on the type of expression being tested in the if condition. If the expression is a simple expression (e.g., not involving logical operators AND and OR), it will be translated into Compare-Jump. The Compare instruction tests the expression and the jump will take care of jumping to the right location on the Boolean value of the expression. If the expression is a compound expression, then the compiler will generate an expression tree, which is a type of binary tree. The compiler then generates the Expression instruction (followed by the arguments), one of which is an array of nodes in the expression tree.


The structure of an example i.asph file is illustrated below in Table 1. In this example, each field is four bytes, unless otherwise stated. The offsets are from the beginning of the i.asph file, unless otherwise stated.

TABLE 1Timestamp“asph”Number of Internal VariablesNumber of Internal Built-In VariablesNumber of FilesNumber of FilesOffset of File Name TableNumber of WC EntriesOffset of WC Name TableNumber of SO EntriesOffset of SO Name TableNumber of ISAPI VariablesOffset of ISAPI Variables Name TableNumber of Internal VariablesOffset of Internal Variables Name TableNumber of LanguagesLanguage Code 1Offset of File Table 1. . .. . .Language Code nOffset of File Table nFile Index 1Length(2 bytes)Filename 1 (variable). . .. . .. . .File Index nLength(2 bytes)Filename n (variable)WC Variable Index 1Length(2 bytes)WC Variable 1 Name (variable). . .. . .. . .WC Variable Index nLength(2 bytes)WC Variable n Name(variable)SO Variable Index 1Length (2 bytes)SO Variable 1 Name (variable). . .. . .. . .SO Variable Index nLength(2 bytes)SO Variable n Name(variable)ISAPI Variable Index 1Length(2 bytes)ISAPI Variable 1 name (variable). . .. . .. . .ISAPI Variable Index nLength(2 bytes)ISAPI Variable n name (variable)Internal Variable Index 1Length(2 bytes)Internal Variable 1 name (variable). . .. . .. . .Internal Variable Index nLength(2 bytes)Internal Variable n name (variable)Language Code 1Offset of File 1. . .Offset of File nLanguage Code 1Code for File 1 (variable). . .Code for File n (variable)


WC (WebCourier) and SO (Special Offer) are some special types of variables which need a reverse lookup (i.e., name to internal variable index) that are used at Hotmail. In particular embodiments, a certain amount of reverse lookup is needed, such as when an external party needs to input values for internal variables through HTTP. In other embodiments, it may not be necessary to provide this reverse lookup functionality.



FIG. 4 is a flow diagram illustrating an embodiment of a procedure 400 for processing an HTTP request. Initially, a Web server receives or obtains access to one or more ASPH files (block 402). The Web server receives one or more HTTP requests from one or more clients coupled to the Web server (block 404). An execution engine in the Web server executes appropriate ASPH files based on the received HTTP requests (block 406). Procedure 400 is repeated for each received HTTP request.


In one embodiment, user interface templates are created using ASPL (also referred to as ASPL pages). ASPL pages contain the HTML, XML, or WML code that renders the user interface along with the presentation logic. To generate dynamic Web pages, the ASPL pages contain ASPH code segments, which are executed at runtime to dynamically generate the resulting HTML code that is finally sent to the client requesting the Web page.


The HTML code is any valid HTML instructions—it is text from the ASPH compiler's perspective. The ASPH code is enclosed within the <% and %> delimiters. The constructs supported are similar the constructs in actual Microsoft ASPL code. The following is a list of some example constructs allowed in ASPH code.

  1. SET: This instruction allows an ASPH variable to set to a value.  <% set varname value %>  varname: name of the variable  value: value of the variable, which can be text or a concatenation ofone or more variables and text. Variables referred in the value portionshould be enclosed within ${ and }.  e.g. <% set TitleText MSN Hotmail %>   <% set titlelink ${server}/cgi-bin/quiklist?${usermagic} %>  2. INCLUDE: This instruction allows an ASPL file to includeanother ASPL file. This allows reuse of user interface componentsseparated into individual files and then used wherever needed.  <% include filename %>  filename: name of the file to be included  e.g. <% include topstuff.asp %>  3. IF/ELSE/ELSIF: This instruction allows the conditionalexecution of code.  <% if expression1 %>  ....  ....  <% elsif expression2 %>  ....  ....  <% elsif expression3 %>  ....  ....  <% endif %>  expression1, expression2 and expression3 are logical expressionscomposed of ASPL variables and relational operators ( ==, !=) and logicaloperators ( &&, ∥).  e.g. <% if Alpha == ${Beta} %>   <% set title SomeTextHere %>   <% elsif Alpha == ${Beta} && Alpha != ${Gamma} %>   <% set title SomeTextHere %>   <% elsif Alpha == alphatext && (Alpha == ${Theta} ∥ Beta ==  ${Gamma} ) %>   <% set title SomeTextHere %>   <% endif%>


ASPH uses indices instead of names so that each lookup is an array indexing. Since there are many classes of variables, the following types of indices are identified. The basic idea is that the ISAPI code can use these indices to set and get values for the specific variable. The ASPH compiler uses the indices table declared as enumerations in the C header files as data and derives the names out of them by removing the prefix. Thus, cAsphCabc is equivalent to the variable name “abc” to the ASPH compiler.


Where a particular variable is entirely internal to ASPL, there is no need for an explicit index that is exposed to the C code. These variables are assigned indices in the order in which they are encountered by the ASPH compiler. Where a given variable is used in the ASPL code before they are set, unless they are built-in or Site configuration variables (in which case they have a default value), the value is derived from the URL parameters.


The following table identifies various types of indices.

TABLE 2TypeCommentBuilt-InVariables that are supported by the base ASPH Runtime. Thesewill always have a value, even though specific ISAPI code canset them to a different value than the default one supplied by theruntime.ExamplesImageServer, IsIE5C constantcAsphBImageServer,cAsphBIsIE5Declared InAsphSymbolTable.hSet InAsphBuiltIn.cppISAPIVariables that don't have any default value unless the specificISAPI that is printing the ASPL file sets one. If there is no value,the runtime may search in the URL parameters for a value anduse it.HasAttachements,ExamplesRichTextYesC constantcAsphCHasAttachments,cAsphCRichTextYesDeclared InAsphSymbolTable.hSet InVarious CGIsInternalVariables that are declared and consumed with ASPL files. Notethat the variable may be set in one ASPL file and used in anotherfile that may include the first file.KillNoRadioSelected,ExampleslameheliumworkaroundC constantNoneDeclared InNo whereSet InASPL filesHRS StaticStatic HRS (HRS is the Hotmail Resource System that is usedLanguage Basedfor localization) variables that are based on only language.ExamplesS01, S02C constantNoneDeclared InNo whereSet Ins.hrsHRS DynamicDynamic HRS variables that are based on only languageLanguage BasedExamplesD01, D02C constantNoneDeclared InNo whereSet Ind.hrsHRS Static LocaleStatic HRS variables that are based on both language andBasedcountry.ExamplesS11, S12C constantNoneDeclared InNo whereSet Ins.hrsHRS DynamicDynamic HRS variables that are based on both language andLocale Basedcountry.ExamplesS11, S12C constantNoneDeclared InNo whereSet Ind.hrsSite ConfigurationVariables that represent the site configuration values. Thesevariables cannot be set to any other value than the ones in thesite configuration, unlike ISAPI variables.SiteConfig::ABCSMigrationCompleted,ExamplesSiteConfig::EFormsLinkServerCcAsphSiteConfig——ABCSMigrationCompleted,constantcAsphSiteConfig——EFormsLinkServerDeclaredsettings_asph.hInSet Insettings_asph_inline.hFile NameVariables that represent File names. Used in include statementsand by ISAPI code to print specific files.ExamplesAttach.asp, hotmail.jsC constantcAsphFAttach,cAsphFHotmail_jsDeclared InAsphFileTable.h,casph.config (SeeWAIT:)Set InAutomaticInternal Built-InVariables set by such files that are part of the standard list thatare pre-included based on the request characteristics.SmallMSNLogoImage,ExamplesWebMasterAcctC constantNoneDeclared &ASPL files such asSet Inhotmail.asp


As discussed above, the execution engine, which is the ISAPI runtime code that deals with response page generation, executes a single ASPH file that contains, among other things, the byte code based instructions for the various ASPL files. The ASPL files are compiled by the ASPL compiler into byte codes, each of which is a byte long and is followed by zero or more arguments. The execution engine also offers several “registers.” For example, the program counter register tracks the offset of the next instruction. The file start register keeps track of the file start locations so that relative offsets can be used. A stack is used—the value from the program counter and file start are pushed into the stack and popped from the stack when files are included from other files. The CompareResult register stores the result of the most recent comparison operation. The definition of the flag bits are:

#define cComparResultEqual0x1//bit 1#define cComparResultNotEqual0x2//bit 2#define cComparResultEmpty0x4//bit 3#define cComparResultNotEmpty0x8//bit 4


The various byte codes and their meanings are discussed in the table below.

TABLE 3ArgumentsSizeWhat the execution engineCmdCodeName(bytes)What does it mean?doesTexttLength2The length of theReads in the 2 bytes of length.text to be printedThen it simply memory copiesoutthat many bites on to the output.TextVariableThe text to beContrast this against what ASPLprinted out as isdoes - it copies character bycharacter to the output, as it islooking for the angle brackets inbetween.PrintpInterpretation/1This argumentPrints the value of the variableTransformationspecifies how topointed to by the index byindex should belooking it up from the valueinterpreted. See thetable. This is the equivalent ofinterpretation/transformation<%=%> construct.tablebelow on details.Index4The index of thevariable whosevalue is to beprinted.coMparemIndex14The index of theCompares two variables andfirst variableupdates the CompareResultIndex24The index of theregister.second variableJumpjWhen1Gives the flags onIf any of the flags set is also setwhich to jumpin the CompareResult register,Offset4The relative addressthe execution jumps to the offsetin the compiled filein question and starts executingto jump to. Thethe instruction at that offset byoffset of the veryloading the program counter withfirst instruction in athe offset in question. If thecompiled file is“When” parameter is 0, this is anassumed to be zero.absolute jump. Otherwise, thecompiler treats the instruction asa “NO OP” and just continueswith the next instruction code.callbIteration4The index of theThis is for the for loopBackvariable that holdsimplementation as well.the iteration count.Key4The index of thevariable that holdsthe key.Index4The variable thatholds the pointer tothe call backfunction to invokeLength4The length of thestatements withwhich the call backneeds to beexecutedCodevariableThe instructioncode that needs tobe executed by thecall back endingwith a quitinstruction.Load1Index4The index of theIf no dereferencing is needed,variable into whichthis is equivalent to setting athe load is going tovariable to a literal string orbe performednumerical value. Otherwise thisInterpretation/1This argumentis equivalent to an assignmentTransformationspecifies how tostatement where one variableindex should bevalue is assigned to another.interpreted. See theNote that where the value is ainterpretation/transformationnumber, an index could betableloaded into another, evenbelow on details.though there is no explicitLength4Length of the valuestatement signifying it.that is going to beloaded.valueVariableThe valueExaminexIndex4The index to beThe value pointed to by theexamined.index is examined and the emptybit is set in the CompareResultregister if it is an empty stringEqualeIndex4The index of aTest the value of the variablevariablewith the given index against theLength4Length of the valueliteral value. If they are equal,to be tested against.set the cCompareResultEqualvalueVariableThe literal valuebit. Otherwise set thecCompareResultNotEqual bit inthe CompareResult register.AddaAmount4The amount to beThe value pointed to by theadded.index is converted into a number,Index4The index of thethe amount added and the valuevariable to add theis set to point to the stringamount to.representing the sum.CallcIndex4The index in theThe equivalent of include. Directfile table where theoffsets are not used to allow Justoffset of the startingIn Time(JIT) compilation for theinstructiondebug mode. The executioncorresponding to aengine pushes the offset of thegiven ASPL file isnext instruction into the stackstored.and jumps to the offset pointedto by the file table at thespecified index.Interpretation/1This specifies howIf 0, it directly indexes into fileTransformationthe index should betable, else it dereferences theinterpreted.index to get the file index andthen indexes into the file table.StartsHow11 if directlyFor diagnostic/reverse compilerinvoked and 0 ifpurposes.not. This onlydescribes how thecompiler firstencountered thefile. If 1, the fileends with a quitinstruction.Otherwise, return.Index4The file indexLength2The length of thefile.SwitchwIndex4The index of theFor dealing with internal built invariable whosevariables.value is switchedupon. This index isexpected to point toanother index.Length2Length of the offsetarray.OffsetArrayVariableThe list of indexvalue-offset valuepairs. If the value inthe switch index isequal to the indexvalue of the pair,the execution jumpsto the specifiedoffset.ReturnRThe stack is popped and theoffset stored there is loaded intothe program counter.QuitqStops interpreting any furtherinstructions.


The bits of each value are defined by the following table.

TABLE 4BitNameMeaning0DereferenceIf 0, the value is a literaland can be loaded directly.Otherwise, the valuecontains an index. Thevalue of the contained indexshould be operated on.1-3Transformation000 - none001 - URL encode002 - HTML encode4ConcatenateConcatenate to the value ofthe index being loaded into.Meaningful only for theload instruction. If 0, theload will assign this as thenew value. Otherwise, itwill do the interpretationand then concatenate theresultant value to theexisting index value.


There are many special situations that are encountered by the ASPH system. These situations are generally dealt with by using built-in callbacks. These callbacks are described in the following sections. In addition to the callbacks below, internal built-in variables are dealt with using the switch statement. In ASPL, AsplInclude files such as hotmail.asp were printed before any ASPL file was printed once per each ISAPI in the ASPL constructor, whether needed or not. Also, these files contain a large number of set statements, some of which are for variables that are used in one or two places and others that are unused. So, in ASPH, these variables are classified as internal built-in, meaning, these variables derive their built-in default value from one of the Asplinclude files. So, hotmail.asp is compiled with a switch statement at the beginning. Based on which variable is being used in the ASPL page, if the variable is an internal built-in variable, the runtime executes the appropriate AsplInclude file, such as hotmail.asp after loading the index of the variable being loaded into cAsphBInternalBuiltInVariableToSwitchOn. The switch statement switches on this variable and in each case takes to the offset where the load statement for the variable whose default value is being looked up resides. The ASPL compiler inserts a quit after every load statement so that the file execution of hotmail.asp ends after the loading of the default value into the internal built in variable. Note that once loaded, the file doesn't have to be executed again for the same variable, as the value is loaded into the internal variable tables of the ASPH runtime.


The following table identifies multiple callbacks that can be used by the systems and methods described herein.

TABLE 5Call backParameterWhat it holdsCommentsISAPIIterationThe index of the variableWhen you have somethingCallbackrepresenting the iteration of thelike:FOR loop.<% for folder in folders %>KeyThe key string.<%=folder%>Call backcAsphCCallback<%endfor%>IndexThe index of the variableCodeThe statements included within“folder” goes into Iteration.Lengththe FOR loop.The string “folders” isCodeThe compiled byte codes for thepointed to by Key. The codestatements included within thelength is the length of theFOR loop.print statement to print thevalue of count, namely, 6.Note that the actual call backfor the loop has to be set bythe ISAPI code by theSetCallback() call. Also, oncecalled, the call back logicmay do whatever it deems itneeds to do.RangeIterationThe index of the variableWhen you have somethingCallbackrepresenting the iteration countlike: <% for count inof the FOR loop.Range:10;−1;1 %>KeyThe Range string of format:<%=count%>“Range:<%endfor%>Start; Increment/Decrement; End”The index of count goes intoCall backcAsphBRangeCallbackIteration. The stringIndex“Range:10;−1;1” is pointed toCodeThe statements included withinby Key. And the code lengthLengththe for loop.is the length of the printCodeThe compiled byte codes for thestatement to print the value ofstatements included within thecount, namely, 6.FOR loop.HRSIterationDon't care.Since HRS compound stringsRange SetKeyDon't care.may contain variable names,upCall backcAsphBHrsOrdinalSetupCallbackwhose indices cannot beCallback.Indexknown until the ASPL filesCodeThe length of the HRS ordinalare compiled, the compilerLengtharray.checks with HRS andCodeThe compiled byte codes for theconverts the variable namesstatements included within theto indices. Since the HRS fileFOR loop.cannot be changed at thatpoint, the compiler puts inthis call to load the variableindices (by order). The HRScompound strings refer tovariables by ordinal numbers(in the order they appear inthe English string).VariableIterationThe index of the variable thatMainly to facilitate xincludes,Filenamewill hold the resultant file indexthe compiler uses the variableCallbackKeyThe index of the variable thatfile name callback to get theholds the file name as a string.index of a name such asCall backcAsphBVariableFileNameCallbackwc_${_lang}${country}.asp.IndexAfter loading a variable withCode0the string representing theLengthpattern wc_followed by theCodeNoneuser's language and countryand ending with .asp, thecompiler inserts a call to lookup the file index for the nameand includes that index.AtoiIterationThe index of the variable thatThis is used to implement theCallbackwill hold the resultant value.<%=$var%> construct. In thisKeyThe index of the variable thatcase, var is loaded with theholds the index number as aindex of the variable itstring.contains in the string form,Call backcAsphBAtoiCallbacksuch as “33777743.” WhenIndexthe dereferencing needs toCode0happen, the compiler insertsLengthan atoi callback to get theCodeNoneinteger value of the string,and use it as a variable indexto lookup the value, which isset into variable representedby the iteration parameter.PipeIterationThe index of the variable thatThis is used to implement theCallbackwill hold the resultant value.<%=|var%> construct. In thisKeyThe index of the variable thatcase, var is loaded with theholds the list of pipe separatedindex of the variable itindex numbers as a string.contains in the string form,Call backcAsphBPipeCallbacksuch asIndex“33777743|33777748” WhenCode0the dereferencing needs toLengthhappen, the compiler insertsCodeNonean pipe callback to get theinteger value of the string,and use it as a variable indexto lookup the value, which isset into variable representedby the iteration parameter as alist of string values eachseperated by a new line.LookupIterationThe index of the variable thatThe variables wcid and soidVariablewill hold the resultant variableare used both ways, namelyNamevalue.as <%=wcid%> andCallbackKeyThe index of the variable that<%=$wcid%>. Therefore, theholds the name of the variableatoi callback cannot be usedto lookup.to deference <%=$wcid%>.Call backcAsphBLookupVarNameCallbackSo, this callback wasIndexinvented. Here, the systemCode4looks up the index of theLengthname contained in wcidCodeThe index type to lookup,(usually a wc contentcurrently cAsphCwcid andprovider name) and sets thecAsphCsoid supported.value of that variable nameinto the iteration parameter,which the compiler candisplay with additional code.



FIG. 5 illustrates a general computer environment 500, which can be used to implement the techniques described herein. The computer environment 500 is only one example of a computing environment and is not intended to suggest any limitation as to the scope of use or functionality of the computer and network architectures. Neither should the computer environment 500 be interpreted as having any dependency or requirement relating to any one or combination of components illustrated in the example computer environment 500.


Computer environment 500 includes a general-purpose computing device in the form of a computer 502. The components of computer 502 can include, but are not limited to, one or more processors or processing units 504, a system memory 506, and a system bus 508 that couples various system components including the processor 504 to the system memory 506.


The system bus 508 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures can include an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnects (PCI) bus also known as a Mezzanine bus.


Computer 502 typically includes a variety of computer readable media. Such media can be any available media that is accessible by computer 502 and includes both volatile and non-volatile media, removable and non-removable media.


The system memory 506 includes computer readable media in the form of volatile memory, such as random access memory (RAM) 510, and/or non-volatile memory, such as read only memory (ROM) 512. A basic input/output system (BIOS) 514, containing the basic routines that help to transfer information between elements within computer 502, such as during start-up, is stored in ROM 512. RAM 510 typically contains data and/or program modules that are immediately accessible to and/or presently operated on by the processing unit 504.


Computer 502 may also include other removable/non-removable, volatile/non-volatile computer storage media. By way of example, FIG. 5 illustrates a hard disk drive 516 for reading from and writing to a non-removable, non-volatile magnetic media (not shown), a magnetic disk drive 518 for reading from and writing to a removable, non-volatile magnetic disk 520 (e.g., a “floppy disk”), and an optical disk drive 522 for reading from and/or writing to a removable, non-volatile optical disk 524 such as a CD-ROM, DVD-ROM, or other optical media. The hard disk drive 516, magnetic disk drive 518, and optical disk drive 522 are each connected to the system bus 508 by one or more data media interfaces 526. Alternatively, the hard disk drive 516, magnetic disk drive 518, and optical disk drive 522 can be connected to the system bus 508 by one or more interfaces (not shown).


The disk drives and their associated computer-readable media provide non-volatile storage of computer readable instructions, data structures, program modules, and other data for computer 502. Although the example illustrates a hard disk 516, a removable magnetic disk 520, and a removable optical disk 524, it is to be appreciated that other types of computer readable media which can store data that is accessible by a computer, such as magnetic cassettes or other magnetic storage devices, flash memory cards, CD-ROM, digital versatile disks (DVD) or other optical storage, random access memories (RAM), read only memories (ROM), electrically erasable programmable read-only memory (EEPROM), and the like, can also be utilized to implement the example computing system and environment.


Any number of program modules can be stored on the hard disk 516, magnetic disk 520, optical disk 524, ROM 512, and/or RAM 510, including by way of example, an operating system 526, one or more application programs 528, other program modules 530, and program data 532. Each of such operating system 526, one or more application programs 528, other program modules 530, and program data 532 (or some combination thereof) may implement all or part of the resident components that support the distributed file system.


A user can enter commands and information into computer 502 via input devices such as a keyboard 534 and a pointing device 536 (e.g., a “mouse”). Other input devices 538 (not shown specifically) may include a microphone, joystick, game pad, satellite dish, serial port, scanner, and/or the like. These and other input devices are connected to the processing unit 504 via input/output interfaces 540 that are coupled to the system bus 508, but may be connected by other interface and bus structures, such as a parallel port, game port, or a universal serial bus (USB).


A monitor 542 or other type of display device can also be connected to the system bus 508 via an interface, such as a video adapter 544. In addition to the monitor 542, other output peripheral devices can include components such as speakers (not shown) and a printer 546 which can be connected to computer 502 via the input/output interfaces 540.


Computer 502 can operate in a networked environment using logical connections to one or more remote computers, such as a remote computing device 548. By way of example, the remote computing device 548 can be a personal computer, portable computer, a server, a router, a network computer, a peer device or other common network node, game console, and the like. The remote computing device 548 is illustrated as a portable computer that can include many or all of the elements and features described herein relative to computer 502.


Logical connections between computer 502 and the remote computer 548 are depicted as a local area network (LAN) 550 and a general wide area network (WAN) 552. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets, and the Internet.


When implemented in a LAN networking environment, the computer 502 is connected to a local network 550 via a network interface or adapter 554. When implemented in a WAN networking environment, the computer 502 typically includes a modem 556 or other means for establishing communications over the wide network 552. The modem 556, which can be internal or external to computer 502, can be connected to the system bus 508 via the input/output interfaces 540 or other appropriate mechanisms. It is to be appreciated that the illustrated network connections are exemplary and that other means of establishing communication link(s) between the computers 502 and 548 can be employed.


In a networked environment, such as that illustrated with computing environment 500, program modules depicted relative to the computer 502, or portions thereof, may be stored in a remote memory storage device. By way of example, remote application programs 558 reside on a memory device of remote computer 548. For purposes of illustration, application programs and other executable program components such as the operating system are illustrated herein as discrete blocks, although it is recognized that such programs and components reside at various times in different storage components of the computing device 502, and are executed by the data processor(s) of the computer.


Various modules and techniques may be described herein in the general context of computer-executable instructions, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Typically, the functionality of the program modules may be combined or distributed as desired in various embodiments.


An implementation of these modules and techniques may be stored on or transmitted across some form of computer readable media. Computer readable media can be any available media that can be accessed by a computer. By way of example, and not limitation, computer readable media may comprise “computer storage media” and “communications media.”


“Computer storage media” includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.


“Communication media” typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as carrier wave or other transport mechanism. Communication media also includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared, and other wireless media. Combinations of any of the above are also included within the scope of computer readable media.


Although the description above uses language that is specific to structural features and/or methodological acts, it is to be understood that the invention defined in the appended claims is not limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the invention.

Claims
  • 1. A method comprising: receiving a request for a Web page; identifying an Active Server Page associated with the requested Web page, wherein the Active Server Page includes a compiled user interface template; executing the Active Server Page to generate the requested Web page; and providing the requested Web page to a source of the request.
  • 2. A method as recited in claim 1 wherein the user interface template has been compiled into a byte code format and the Active Server Page contains the byte codes.
  • 3. A method as recited in claim 1 wherein the user interface template contains HTML code.
  • 4. A method as recited in claim 1 wherein the user interface template contains logic related to displaying information.
  • 5. A method as recited in claim 1 wherein the Active Server Page includes a plurality of compiled user interface templates.
  • 6. One or more computer-readable memories containing a computer program that is executable by a processor to perform the method recited in claim 1.
  • 7. A method comprising: identifying a plurality of user interface templates associated with a Web-based application; compiling each of the plurality of user interface templates into a single file containing a plurality of byte codes, wherein the byte codes are capable of being executed by an execution engine; and executing the plurality of byte codes when the Web-based application is executed.
  • 8. A method as recited in claim 7 wherein the plurality of byte codes include callback codes that call into the Web-based application code.
  • 9. A method as recited in claim 7 wherein the plurality of byte codes are executed by an execution engine in a Web server.
  • 10. A method as recited in claim 7 wherein the plurality of byte codes are contained in an Active Server Page.
  • 11. A method as recited in claim 7 wherein the byte codes include logic related to displaying information.
  • 12. One or more computer-readable memories containing a computer program that is executable by a processor to perform the method recited in claim 7.
  • 13. A method comprising: creating a plurality of user interface templates associated with a Web-based application, wherein the plurality of user interface templates are created using an Active Server Page Language; compiling the plurality of user interface templates into a plurality of byte codes; and storing the plurality of byte codes associated with the plurality of user interface templates in a single file, wherein the byte codes are capable of being executed by an execution engine in a Web server.
  • 14. A method as recited in claim 13 further comprising executing the plurality of byte codes when the Web-based application is executed.
  • 15. A method as recited in claim 13 wherein the plurality of byte codes include callback codes that call into the Web-based application code.
  • 16. A method as recited in claim 13 further comprising executing a portion of the plurality of byte codes when the Web-based application is executed.
  • 17. One or more computer-readable memories containing a computer program that is executable by a processor to perform the method recited in claim 13.
  • 18. An apparatus comprising: an interface to receive requests for Web pages and to send responses to the received requests; and an execution engine coupled to the interface, wherein the execution engine is configured to identify an Active Server Page associated with a request for a Web page and to identify user interface template information contained in the Active Server Page, wherein the execution engine is further configured to execute the Active Server Page to generate the requested Web page and to provide the requested Web page to a source of the request.
  • 19. An apparatus as recited in claim 18 wherein the Active Server Page contains a plurality of byte codes associated with a plurality of user interface templates.
  • 20. An apparatus as recited in claim 19 wherein the execution engine executes the byte codes associated with the request.
  • 21. An apparatus comprising: means for identifying a plurality of user interface templates associated with a Web-based application; means for compiling each of the plurality of user interface templates into a single file containing a plurality of byte codes, wherein the plurality of byte codes are capable of being executed by an execution engine; and means for executing at least a portion of the plurality of byte codes when the Web-based application is executed.
  • 22. An apparatus as recited in claim 21 wherein the byte codes are contained in an Active Server Page.
  • 23. An apparatus as recited in claim 21 wherein the byte codes include logic related to displaying information.
  • 24. One or more computer-readable media having stored thereon a computer program that, when executed by one or more processors, causes the one or more processors to: create a plurality of user interface templates associated with a Web-based application, wherein the plurality of user interface templates are created using an Active Server Page Language; compile the plurality of user interface templates into a plurality of byte codes; and store the plurality of byte codes in a single file, wherein the byte codes are capable of being executed by a Web server.
  • 25. One or more computer-readable media as recited in claim 24 wherein the one or more processors further execute at least a portion of the byte codes when the Web-based application is executed.
  • 26. One or more computer-readable media as recited in claim 24 wherein the plurality of byte codes include at least one callback code that calls into the Web-based application code.