Page 63 - DCAP512_WAP_AND_WML
P. 63

Unit 5: Understanding WAP in WML




                                                                                                Notes

              Task  Analyze the importance of deck in WML.

          Figure 5.1 is a pictorial representation of decks and cards.
                                             Figure  5.1

                            DECK 1                          DECK 2



                            Card 1

                                                           Card
                            Card 2                          DECK 3

                                                          Card

                            Card 3

                                                          Card



          Deck syntax
                 <wml>
                         <card id=”1">

                                ********************
                                ********************
                         </card>
                                (More cards as required)

                 </wml>
          Once the deck is loaded, there is no requirement to load additional data. A deck is a self-contained
          set of elements or user functions. The user function presumes that the cards, which are read, are
          related to the deck in memory. This is beneficial where there are suspend and resume modes.
          WML decks are helpful in the following ways.

              Showing content
              Providing  selections
              Local area checking
              Easy scripting tasks

              Routing to other decks and Servlets



              Task   How are WML decks helpful?




                                           LOVELY PROFESSIONAL UNIVERSITY                                   57
   58   59   60   61   62   63   64   65   66   67   68