Newland Tours Files

I have bought an used copy of this book: Macromedia®
Dreamweaver® 8 with ASP, Coldfusion® and PHP: Training
from the Source By Jeffrey Bardzell and the CD-ROM with the example
files is broken. Does anybody where can I download the files to
follow the tutorial "Newland Tours"?
Thanks a lot

quote:
Originally posted by:
Coach Bob
Stop the presses! The book is in revision by another author
(me). If you have problems with the book please post them or send
them to me in a private message and I'll see that they get
addressed. There will also be another site for the errata and I vow
to address the questions as they come in (as best I can).
Mobyme, can you tell me where you ran into problems in the
book. I'll make sure to take a look at them. I don't want readers
of the next version of the book to experience the same
frustrations. No promises, but I might be able to throw together an
errata section on my site for the current version of the book. I'll
ask both Jeff and the publisher to send me what they've received.
Vbox, I've asked the editor about a replacement CD. If they
give me the OK, I'll send you a note with a link where you can
download the files.
Don't give up on the book. It's not such a bad one. Hopefully
you'll like the changes to the new one. (And the changes to the
next version of DW!)
Bob
hi, did you ever get this book re-vised? i've got a copy of
this from 06, which i've just bought, and i reckon its full of php
mistakes. this is the 2nd book i've bought on the subject, and its
not a patch on the first.unless, someone can point me towards the
correctected php coding......

Similar Messages

  • Newland Tours

    I'm reading Dreamweaver 8 with ASP, ColdFusion, and PHP:
    Training from the Source
    Lesson 11: Building Search Interfaces
    I'm having trouble with diplaying multiple recordsets. I did
    everything that the book told me to do, but it just doesn't work. I
    just got done with the tours.asp and it works fine. Now I'm working
    on the index.asp. rs_journal comes up fine, but when I add the
    rs_worldregions, the page won't come up. I even uploaded the
    finished sample of index.asp that came with the book and that
    didn't work.
    Has anyone read this book and had the same troubles?
    The only difference I used is that I didn't use a DSN. I used
    a custom connection string.
    I went to the APPLICATION panel. Then to the DATABASES tab.
    Then to the + CUSTOM CONNECTION STRING. On the Custom Connection
    String box I entered:
    Connection name: conn_newland
    Connection string: "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=D:\mywebsite\newland\database\newland_tours.mdb;"
    Dreamweaver should connect: Using driver on testing server
    I'm able to connect to the database. But the only problem is
    that I can't display multiple recordsets.

    Can you post the code from your page? Or send it and I'll be
    glad to try it
    after my morning meeting (back in about 2-1/2 hours).
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner''s
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "cstarr" <[email protected]> wrote in
    message
    news:epac42$6a7$[email protected]..
    > I'm reading Dreamweaver 8 with ASP, ColdFusion, and PHP:
    Training from
    > the
    > Source
    > Lesson 11: Building Search Interfaces
    >
    > I'm having trouble with diplaying multiple recordsets. I
    did everything
    > that
    > the book told me to do, but it just doesn't work. I just
    got done with the
    > tours.asp and it works fine. Now I'm working on the
    index.asp. rs_journal
    > comes
    > up fine, but when I add the rs_worldregions, the page
    won't come up. I
    > even
    > uploaded the finished sample of index.asp that came with
    the book and that
    > didn't work.
    >
    > Has anyone read this book and had the same troubles?
    >
    > The only difference I used is that I didn't use a DSN. I
    used a custom
    > connection string.
    >
    > I went to the APPLICATION panel. Then to the DATABASES
    tab. Then to the
    > +
    > CUSTOM CONNECTION STRING. On the Custom Connection
    String box I entered:
    >
    > Connection name: conn_newland
    > Connection string:
    "Provider=Microsoft.Jet.OLEDB.4.0;Data
    > Source=D:\mywebsite\newland\database\newland_tours.mdb;"
    > Dreamweaver should connect: Using driver on testing
    server
    >
    > I'm able to connect to the database. But the only
    problem is that I can't
    > display multiple recordsets.
    >

  • How to read a PDF file from server

    Hi All,
    I am strucked while creating new file instance .
    Here i know the URL.
    How to create the File instance by using this URL.
    I tried the following way:
    URI uri = url.toURI();
    File f = new File(uri);
    Here i got the following exception :
    <code>
    Exception in thread "main" java.lang.IllegalArgumentException: URI scheme is not "file"
    </code>
    Can any one help me?
    Thanks in advance......

    Can any one help me how can i down load a file
    from server by using URL?RTFAPI. Url.openStream().

  • Posting VIRTUAL TOUR in DVD menu

    I'm creating a recruitment DVD for a seminary, and they've asked me to add some of their virtual tour files in a sub-menu on the DVD. I know these virtual tour files require a plug-in to play them from the internet, is there anyway for them to play from a DVD?
    Any help would be greatly appreciated!
    Thanks,
    kt

    Crossposting is generally unnecessary. This is a DVDSP-specific topic.
    If you convert them to movies, yes, but they're no longer interactive.
    You need to know what application these tours are running in. It's probably designed for a plugin that runs in a web browser. A DVD player plays DVDs, the application may or may not support links to other applications and provide access to those files.
    You can easily store the files on the DVD as additional data content and you might be able to use DVD@ccess to trigger a local web session but the results are never what you expect and the application is spotty or completely useless on a PC. You will want to experiment and create many coasters.
    There are probably more recent developments in this arena but your research may take you to other authoring systems besides DVDSP.
    bogiesan

  • URL to a File.

    I'm trying to save a website in a HTML file with Java.
    I tried this:
    url = new URL("http://www.google.com");
    URI uri = url.toURI();
    File f = new File(uri);
    f.createNewFile();
    But it doesn't work. It says: URI scheme is not "file"
    Is there a way to convert a website (example: http://www.google.com) to a HTML file.
    Or is there a way to convert the HTML code of a website in a variable in Java? I know it's possible to do a new BufferedReader(new FileReader("file.html")), but is it possible directly from a website?

    I'm trying to save a website in a HTML file with
    Java.
    I tried this:
    url = new URL("http://www.google.com");
    URI uri = url.toURI();
    File f = new File(uri);
    f.createNewFile();That's not the same thing as what you said you wanted to do.
    The URL you created pointed to Google's home page. When you create a File object based on that URL, it's like trying to overwrite their home page. It doesn't copy the results of the URL to the file.
    Read the API docs for details.
    But it doesn't work. It says: URI scheme is not
    "file"Yeah, apparently that method only lets you write to local files. it won't let you, for example, write a file on www.google.com.
    Is there a way to convert a website (example:
    http://www.google.com) to a HTML file.
    Do you want to create a website or a web page? Presumably the latter.
    Or is there a way to convert the HTML code of a
    website in a variable in Java? I know it's possible
    to do a new BufferedReader(new
    FileReader("file.html")), but is it possible directly
    from a website?Yeah, from the URL, get the content with, if I recall correctly, "getContent". Then write that result to a file.
    It's late at night, I have insomnia, let's try it out....
    import java.net.*;
    import java.io.*;
    public class TestGoogle {
      public static void main(String[] argv) {
        try {
          URL u = new URL(argv[0]);
          InputStream content = (InputStream) u.getContent();
          BufferedReader in = new BufferedReader(new InputStreamReader(content));
          String line;
          PrintWriter out = new PrintWriter(new FileWriter("TestGoogle.txt"));
          while((line = in.readLine()) != null) {
         out.println(line);
          out.close();
        } catch (IOException e) {
          e.printStackTrace();
    }That works for the Google home page, although when I pass a search it returns 403. This may be a deliberate decision on Google's part to restrict serving content to bots, which would be ironic. Or maybe I just missed something. Anyway it demonstrates how to use a URL to get content and write it to a file.

  • Adding VIRTUAL TOUR to DVD sub-menu

    I'm creating a recruitment DVD for a seminary, and they've asked me to add some of their virtual tour files in a sub-menu on the DVD. I know these virtual tour files require a plug-in to play them from the internet, is there anyway for them to play from a DVD?
    Any help would be greatly appreciated!
    Thanks,
    kt

    The plug-in woulld have to be installed on the users computer (won't work on a DVD Player) then they can open the tour up. You can try linking to it from the DVD, but sometimes things are not relaible.
    The easiest way would be to include the plug-in on the DVD (if permissable) as part of a DVD-ROM folder then put a menu saying something along the lines of if you want to see the virtual tour, go to the folder called "xxxx," install the plug-in called "xxxx" from the folder and click on the item called "xxxx"

  • Decompressing an audio book file

    This is grandma63, so you know at this age, I have a lot to learn. I downloaded an audio book file that has an extension of .odm. I cannot unzip it or move it anywhere to put it on my I-touch. Can anyone help me with this. Be very descriptive. I'm not real smart. Thank you

    itsnir about smarts as much as experience.
    You're really in the wrong discussion area. You'd be better off in the iTouch or iPhone group.
    But try this:
    tour file is apparently an Overdrive Media file. Go to the link below and see if it helps you.
    Good luck
    http://www.overdrive.com/software/omc/

  • Error testing locally; works fine on remote server

    I was about to post that I'd hit an error when trying to
    create a
    conditional region in DW 8 with ASP, CF & PHP: Training
    from the Source.
    Rather than paste the non-PHP code, I uploaded the page to my
    remote server.
    When I browsed to the link, the error wasn't there.
    I inserted the code for the conditional region just before
    the opening
    <form> tag, as the book instructed (Lesson 6).
    <?
    if ($_GET['error'] == "notnumeric")
    echo "<p>*** Error! One or more fields was left blank
    or contained a
    non-numeric character.</p>";
    ?>
    When I preview locally, the page appears correctly, but with
    the following
    message before the form:
    Notice: Undefined index: error in C:\Program Files\Apache
    Group\Apache2\htdocs\newland\Lesson06\Start\newland-php\tourprice.php
    on
    line 27
    Line 27 is where the "if" statement starts.
    On my remote server, everything works as it should:
    http://www.feathertheweb.com/newland/Lesson06/Start/newland-php/tourprice.php
    Any help is appreciated.
    Thanks,
    Heather

    So, I changed the code you had provided and that worked. Now,
    I've tested
    the form and when I click "submit," I get this:
    Notice: Undefined index: nmChildren in C:\Program
    Files\Apache
    Group\Apache2\htdocs\newland\Lesson06\Start\newland-php\tourprice_processor.php
    on line 2
    Warning: Cannot modify header information - headers already
    sent by (output
    started at C:\Program Files\Apache
    Group\Apache2\htdocs\newland\Lesson06\Start\newland-php\tourprice_processor.php:2)
    in C:\Program Files\Apache
    Group\Apache2\htdocs\newland\Lesson06\Start\newland-php\tourprice_processor.php
    on line 4
    I'm guessing it's related to the change I made in
    tourprice.php. I tried to
    figure out what needed to be changed in
    tourprice_processor.php based on
    that change, but I'm still pretty new at this and really
    wasn't sure.
    Below is the code from tourprice_processor.php:
    <?php
    if (is_numeric($_POST['numAdults']) == false or
    is_numeric($_POST['nmChildren']) == false)
    header("Location: tourprice.php?error=notnumeric");
    exit;
    ?>
    <?php
    $numAdult = $_POST['numAdults'];
    $numChild = $_POST['numChildren'];
    $basePrice = $_POST['tourName'];
    $tourPrice = ($numAdult * $basePrice) + ($numChild *
    $basePrice);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <title>Newland Tours: Tour Price
    Calculator</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <link href="css/newland.css" rel="stylesheet"
    type="text/css" /></head>
    <body>
    <a href="#top"><img src="images/spacer.gif"
    alt="Skip to main page content"
    width="1" height="1" border="0" align="left" /></a>
    <table width="750" border="0" cellpadding="3"
    cellspacing="0">
    <tr>
    <td><img src="images/banner_left.gif" width="451"
    height="68" alt="Newland
    Tours Banner, Left." /></td>
    <td width="280"><img src="images/banner_right.jpg"
    width="276" height="68"
    alt="Newland Tour Banner, Right." /></td>
    </tr>
    <tr>
    <td><img src="images/navbar.gif" name="navbar"
    width="450" height="20"
    border="0" usemap="#navbarMap" alt="Navigation Bar."
    /></td>
    <td><img name="copyright_bar"
    src="images/copyright_bar.gif" width="272"
    height="20" border="0" alt="Copyright 2006 Newland Tours."
    /></td>
    </tr>
    <tr>
    <td colspan="2">
    <h1><br />
    <a name="top" id="top"></a>Tour Price
    Calculator</h1>
    <p>The estimated cost of your tour is
    <strong><?php echo
    '$'.number_format($tourPrice, 2);
    ?></strong>.</p>
    <p>Prices include hotel, accommodation, and travel
    expenses during the
    tour. They
    do not include airfare to the starting
    destination.</p>
    <p><a href="tourprice.php">Calculate</a>
    another tour.</p>
    <p><a href="contact.php">Contact</a> one
    of our qualified agents.</p>
    </td>
    </tr>
    </table>
    <br />
    <map name="navbarMap" id="navbarMap">
    <area shape="rect" coords="1,0,62,20" href="index.php"
    alt="Home" />
    <area shape="rect" coords="71,0,117,20" href="about.php"
    alt="About" />
    <area shape="rect" coords="129,0,196,20" href="tours.php"
    alt="Find Tours"
    />
    <area shape="rect" coords="209,0,311,20"
    href="profiles.php" alt="Country
    Profiles" />
    <area shape="rect" coords="327,0,434,20"
    href="contact.php" alt="Contact An
    Agent" />
    </map>
    </body>
    </html>
    Heather
    "David Powers" <[email protected]> wrote in message
    news:[email protected]...
    > Heather wrote:
    >> I inserted the code for the conditional region just
    before the opening
    >> <form> tag, as the book instructed (Lesson 6).
    >>
    >> <?
    >> if ($_GET['error'] == "notnumeric")
    >>
    >> When I preview locally, the page appears correctly,
    but with the
    >> following message before the form:
    >>
    >> Notice: Undefined index: error in C:\Program
    Files\Apache
    >
    > It's badly written code. It should be
    >
    > if (isset($_GET['error']) && $_GET['error'] ==
    "notnumeric")
    >
    >> On my remote server, everything works as it should:
    >
    > That's because your remote server has been configured to
    suppress PHP
    > notices.
    >
    > PHP notices alert you to non-fatal mistakes in coding. A
    lot of people
    > just ignore them, but it's a sloppy habit to get into,
    because it can lay
    > your scripts open to attack. Before testing the value of
    a variable, you
    > should always use isset() to check that the variable has
    been defined in
    > the first place.
    >
    >
    http://www.php.net/manual/en/function.isset.php
    >
    > --
    > David Powers
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "Foundation PHP 5 for Flash" (friends of ED)
    >
    http://foundationphp.com/

  • CSS changes not implemented

    I'm working through Lesson "Adobe Dreamweaver CS3 with ASP,
    ColdFusion, and PHP: Training from the Source" by Bob Flynn. The
    lesson is about CSS. I edit the CSS file as instructed, the changes
    to Headings, text size and colour are reflected in the design view
    of DW. However they are not being recognised by the browsers Safari
    and Firefox.

    Dooza I tried emptying the cache in Safari with no success.
    As for the code, it's pre-caned from the CD accompanying the
    book:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Newland Tours: Home</title>
    <link href="css/main.css" rel="stylesheet" type="text/css"
    />
    </head>
    <body class="thrColFixHdr">
    <div id="container">
    <div id="header"> <img src="images/banner_left.gif"
    alt="Newlands Logo" width="451" height="68" align="left"
    /><img src="images/banner_right.jpg" width="276" height="68"
    id="bannerRight" alt="Newland Tours Banner, Right/">
    <!-- end #header -->
    </div>
    <div id="sidebar1">
    <p class="navhead">Explore the Site</p>
    <p> <a href="about.html">About Newland
    Tours</a><br />
    <a href="tours.html">Find Tours</a><br />
      <a
    href="tours.html#africa">Africa</a><br />
      <a
    href="tours.html#europe">Europe</a><br />
      <a href="tours.html#asiaeast">East
    Asia</a><br />
      <a
    href="tours.html#asiacentral">Central Asia</a><br />
      <a href="tours.html#asiawest">West
    Asia</a><br />
      <a
    href="tours.html#americacentral">Central America</a><br
    />
      <a
    href="tours.html#americanorth">North America</a><br
    />
      <a
    href="tours.html#americasouth">South America</a><br
    />
    <a href="profiles.html">Country
    Profiles</a><br />
    <a href="contact.html">Contact an
    Agent</a></p>
    </div>
    <div id="sidebar2">
    <p><img src="images/title_travelers_journal.gif"
    width="276" height="25" alt="Traveler's Journal" /></p>
    <h3><img src="images/icon_tj.gif" alt="Traveler's
    Journal Logo" width="81" height="81" align="right" />Teens
    Discover the Mayans</h3>
    <p class="author">By Ellen Olenska</p>
    <p>Newland Tours recently took two dozen students of
    Bart Township High School to Chichen Itza, Mexico. While on the
    tour, students saw ancient Mayan ruins and artifacts. They learned
    the latest on the &quot;mystery of the
    Mayans.&quot;</p>
    <p>The Mayans were one of the world's most advanced
    civilizations when they mysteriously disappeared centuries ago.
    While archaeologists don't know exactly what happened to the
    Mayans, evidence points to war as one possible explanation. Bart
    Township High School students are using the experience as the basis
    for a series of reports that teams of participants are putting
    together.</p>
    <!-- end #sidebar2 -->
    </div>
    <div id="mainContent">
    <p>Operating since 1968, Newland Tours offers an array
    of travel tours. Whether you love hiking in exotic locations or
    want to get the most out of your retirement, Newland Tours has a
    package for you.</p>
    <p><img src="images/title_featured_vacation.gif"
    alt="Featured Vacations" width="276" height="25" /></p>
    <p><img src="images/temple_small.jpg" alt="Japanese
    temple" width="72" height="90" align="left"
    /><strong>Highlights of Japan</strong></p>
    <p class="caption"> Image: Heian Jingu Shrine, Kyoto
    Prefecture</p>
    <p>Get a taste for Japan's diversity, from the
    serenity of its shrines to the chaos of urban life. Meet
    &quot;Fuji-san,&quot; Japan's highest mountain at 12,387
    feet, visit temples, walk through gardens, and browse in Japan's
    most elegant shopping districts.</p>
    <p> Only $1,199/adult and $899/child USD.</p>
    <!-- end #mainContent -->
    </div>
    <!-- This clearing element should immediately follow the
    #mainContent div in order to force the #container div to contain
    all child floats -->
    <br class="clearfloat" />
    <div id="footer">
    <p>&copy; 2007 Newland Tours</p>
    <!-- end #footer -->
    </div>
    <!-- end #container -->
    </div>
    </body>
    </html>

  • Dreamweaver 8 with ASP, ColdFusion, and PHP

    I'm having trouble with diplaying multiple recordsets. I did
    everything that the book told me to do, but it doesn't work. I just
    got done with the tours.asp and it works fine. Now I'm working on
    the index.asp. rs_journal comes up fine, but when I add the
    rs_worldregions, the page won't come up. I even uploaded the
    finished sample of index.asp that came with the book and that
    didn't work.
    Has anyone read this book and have the same troubles?

    This is what the code looks like.
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/conn_newland.asp" -->
    <%
    Dim rs_journal
    Dim rs_journal_numRows
    Set rs_journal = Server.CreateObject("ADODB.Recordset")
    rs_journal.ActiveConnection = MM_conn_newland_STRING
    rs_journal.Source = "SELECT journalID, journal_entry FROM
    tbl_journal ORDER BY journalID DESC"
    rs_journal.CursorType = 0
    rs_journal.CursorLocation = 2
    rs_journal.LockType = 1
    rs_journal.Open()
    rs_journal_numRows = 0
    %>
    <%
    Dim rs_worldregions
    Dim rs_worldregions_numRows
    Set rs_worldregions = Server.CreateObject("ADODB.Recordset")
    rs_worldregions.ActiveConnection = MM_conn_newland_STRING
    rs_worldregions.Source = "SELECT * FROM tbl_region ORDER BY
    regionName ASC"
    rs_worldregions.CursorType = 0
    rs_worldregions.CursorLocation = 2
    rs_worldregions.LockType = 1
    rs_worldregions.Open()
    rs_worldregions_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = -1
    Repeat1__index = 0
    rs_worldregions_numRows = rs_worldregions_numRows +
    Repeat1__numRows
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <title>Newland Tours</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <link href="css/newland.css" rel="stylesheet"
    type="text/css" /></head>
    <body>
    <table width="750" border="0" cellpadding="3"
    cellspacing="0">
    <tr>
    <td colspan="2" width="470"><img
    src="images/banner_left.gif" width="451" height="68" alt="Newland
    Tours Banner, Left." /></td>
    <td width="280"><img src="images/banner_right.jpg"
    width="276" height="68" alt="Newland Tour Banner, Right."
    /></td>
    </tr>
    <tr valign="top">
    <td width="180"> </td>
    <td width="290"> </td>
    <td width="280"> </td>
    </tr>
    <tr valign="top">
    <td width="180" bgcolor="#DCDFD9">
    <p class="navhead">Explore the Site</p>
    <p>
    <a href="about.asp">About Newland
    Tours</a><br />
    <a href="tours.asp">Find Tours</a><br />
    <%
    While ((Repeat1__numRows <> 0) AND (NOT
    rs_worldregions.EOF))
    %>
      <a
    href="tours_detail.asp?regionID=<%=(rs_worldregions.Fields.Item("regionID").Value)%>"><%= (rs_worldregions.Fields.Item("regionName").Value)%></a><br
    />
    <%
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    rs_worldregions.MoveNext()
    Wend
    %>
    <a href="profiles.asp">Country
    Profiles</a><br />
    <a href="contact.asp">Contact an
    Agent</a></p>
    <p><br />
    &copy; 2003 Newland Tours</p>
    </td>
    <td width="290">
    <p>Operating since 1968, Newland Tours offers an array
    of travel tours. Whether you love hiking in exotic locations or
    want to get the most out of your retirement, Newland Tours has a
    package for you.</p>
    <p><img src="images/title_featured_vacation.gif"
    width="276" height="25" alt="Featured Vacation." /></p>
    <p><img src="images/temple_small.jpg" width="72"
    height="90" align="left" alt="Heian Jingu Shrine, Kyoto
    Prefecture." /><strong>Highlights of
    Japan</strong></p>
    <p class="caption"> Image: Heian Jingu Shrine, Kyoto
    Prefecture</p>
    <p>Get a taste for Japan's diversity, from the
    serenity of its shrines to the chaos of urban life. Meet
    &quot;Fuji-san,&quot; Japan's highest mountain at 12,387
    feet, visit temples, walk through gardens, and browse in Japan's
    most elegant shopping districts.</p>
    <p>
    Only $1,199/adult and $899/child USD.
    </p>
    </td>
    <td width="280"><p><img
    src="images/title_travelers_journal.gif" width="276" height="25"
    alt="Traveler's Journal." /></p>
    <img src="images/icon_tj.gif" width="81" height="81"
    align="right" "Traveler's Journal logo."
    /><%=(rs_journal.Fields.Item("journal_entry").Value)%></td>
    </tr>
    </table>
    <br />
    <br />
    </body>
    </html>
    <%
    rs_journal.Close()
    Set rs_journal = Nothing
    %>
    <%
    rs_worldregions.Close()
    Set rs_worldregions = Nothing
    %>

  • Re: help: can not regist application in HP-UX 11.0

    Hi,
    this the test.xml and ias-test.xml:
    test.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
    2.2//EN' 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd'>
    <web-app>
    <distributable></distributable>
    <servlet>
    <servlet-name>testjsp</servlet-name>
    <jsp-file>testjsp.jsp</jsp-file>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>testjsp</servlet-name>
    <url-pattern>/testjsp</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>1800</session-timeout>
    </session-config>
    <login-config>
    <realm-name></realm-name>
    <form-login-config>
    <form-login-page></form-login-page>
    <form-error-page></form-error-page>
    </form-login-config>
    </login-config>
    </web-app>
    ias-test.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ias-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD iAS Web
    Application 1.0//EN'
    'http://developer.iplanet.com/appserver/dtds/IASWebApp_1_0.dtd'>
    <ias-web-app>
    <servlet>
    <servlet-name>testjsp</servlet-name>
    <guid>{722828a9-b9f6-4c55-8ec3-a315ebc2d551}</guid>
    <validation-required>false</validation-required>
    <servlet-info>
    <sticky>false</sticky>
    <encrypt>false</encrypt>
    <number-of-singles>10</number-of-singles>
    <disable-reload>false</disable-reload>
    </servlet-info>
    </servlet>
    </ias-web-app>
    thanks
    Lu yanqiang
    "Raj" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    The problem I anticipate is Windows 2000 has app server SP3 and youare
    trying to deploy the same app logic to HP Unix which is having app serverSP1.
    So this could be problem, that's precisely the reason why I would like tolook
    into the coding.
    Regards
    Raj
    lu yanqiang wrote:
    Hi, thanks for you help:
    I'm sure that my application and the xml file is right,because I runit
    in
    Windows OK, but when I wang to register it in HP-UX 11.0, I use the
    command "webappreg test.xml" to regist my application, this commandresponse
    me these error messages:
    HotSpot VM warning: Setting of property "java.compiler" is ignored
    creating engine class space...
    loading jx2util...
    loading jx2util...done
    Connected to LDAP server on websvr.sh-catcher.com port 389
    com.kivasoft.engine.EngineClassLoaderNonVersionable: EngineClassLoader
    constructer called
    com.kivasoft.engine.EngineClassLoaderNonVersionable: ! NVCL CREATED at:
    com.kivasoft.engine.EngineClassLoaderNonVersionable@1fbe93
    ECS initializing engine class loader instance.
    com.kivasoft.engine.EngineClassLoader: EngineClassLoader constructercalled
    initGDSKey: GDSKey_Base
    initGDSKey- just put : com.kivasoft.IGDSKey_Base
    key=com.kivasoft.gds.GDSKey@41cd1f
    initGDSKey: GDSKey_Root
    initGDSKey- just put : com.kivasoft.IGDSKey_Root
    key=com.kivasoft.gds.GDSKey@31f71a
    initGDSKey: GDSKey_Current
    initGDSKey- just put : com.kivasoft.IGDSKey_Current
    key=com.kivasoft.gds.GDSKey@5601ea
    initGDSKey: GDSKey_CurrentEngine
    initGDSKey- just put : com.kivasoft.IGDSKey_CurrentEngine
    key=com.kivasoft.gds.GDSKey@17d257
    context= com.kivasoft.context.Context@6ee36c
    resolve property: GX.path.class GX_CLASSPATH SYSTEM_JAVA null
    resolve value: /opt/iplanet/ias6/ias/APPS
    resolve property: GX.path.class.core GX_CLASSPATH_CORE SYSTEM_JAVA
    java.;com.kivasoft.;gx.
    resolve value:
    java.;com.kivasoft.;gx.;com.netscape.;javax.;netscape.ldap.;netscape.tooluti
    l.
    resolve property: GX.versionable GX_VERSIONABLE SYSTEM_JAVA
    com.kivasoft.engine.IVersionable
    property not in GDS
    resolve value: com.kivasoft.engine.IVersionable
    resolve property: GX.all.versionable GX_ALL_VERSIONABLE SYSTEM_JAVA 0
    property not in GDS
    resolve value: 0
    resolve property: GX.taskmanager.period GX_TASKMANAGER_PERIODSYSTEM_JAVA 10
    property not in GDS
    resolve value: 10
    resolve property: GX.versionable.if.extends GX_VERSIONABLE_IF_EXTENDS
    SYSTEM_JAVA javax.servlet.GenericServlet;javax.servlet.http.HttpServlet
    property not in GDS
    resolve value:javax.servlet.GenericServlet;javax.servlet.http.HttpServlet
    resolve property: GX.versionable.if.implementsGX_VERSIONABLE_IF_IMPLEMENTS
    SYSTEM_JAVA javax.servlet.Servlet
    property not in GDS
    resolve value: javax.servlet.Servlet
    class_dir 4 AppPath: /opt/iplanet/ias6/ias/APPS/compiled_jsp
    loading component...{7ee76a00-a999-11d1-a16f-006097594151}
    getting threadLocal obj
    loading component...{91f29740-16e1-11cf-96c8-0020afed9a65}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.thread.ModuleThread
    com.kivasoft.engine.EngineClassLoader: Class
    com.kivasoft.thread.ModuleThread appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.thread.ModuleThread
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class
    com.kivasoft.thread.ModuleThread loaded by primordial CL
    registered module... com.kivasoft.IModuleThread
    loading component...{91f29620-16e1-11cf-96c8-0020afed9a65}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderJ
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.bind.BinderJ
    appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.bind.BinderJ
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.bind.BinderJ
    loaded by primordial CL
    loading component...{ed049d80-b936-1548-e481-080020721767}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.eb.EJBBinder
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.eb.EJBBinder
    appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.eb.EJBBinder
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.eb.EJBBinder
    loaded by primordial CL
    EJBBinder: binder is GOOD..
    EJBBinder: context set obj for IID_IGXEBBinder
    loading component...{a84f0507-a912-11cf-aa6c-524153480000}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.gds.GDSModule
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.gds.GDSModule
    appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.gds.GDSModule
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.gds.GDSModule
    loaded by primordial CL
    registered module... com.kivasoft.IGDSModule
    loading component...{c70f2c00-abeb-11d0-b4e5-00a024e006be}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Classcom.kivasoft.bind.BinderBase
    appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Classcom.kivasoft.bind.BinderBase
    loaded by primordial CL
    loading component...{c70f2d00-abeb-11d0-b4e5-00a024e006be}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Got com.kivasoft.bind.BinderBasefrom
    PCL cache
    loading component...{c70f1a00-abeb-11d0-b4e5-00a024e006be}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.principal.PrincipalModule
    com.kivasoft.engine.EngineClassLoader: Class
    com.kivasoft.principal.PrincipalModule appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.principal.PrincipalModule
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class
    com.kivasoft.principal.PrincipalModule loaded by primordial CL
    registered module... com.kivasoft.IPrincipalModule
    loading component...{35069f7a-0a09-1406-8f1a-0800208055c0}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Got com.kivasoft.bind.BinderBasefrom
    PCL cache
    loading component...{e7d37500-23bf-11d1-b6c2-0060082beecf}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Got com.kivasoft.bind.BinderBasefrom
    PCL cache
    loading component...{e7d37540-23bf-11d1-b6c2-0060082beecf}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Got com.kivasoft.bind.BinderBasefrom
    PCL cache
    loading component...{be5cfde0-cd9e-11d1-94aa-0060083a5082}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.eb.EBModule
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.eb.EBModule
    appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.eb.EBModule
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.eb.EBModuleloaded
    by primordial CL
    registered module... com.kivasoft.IEBModule
    The current input file= testdb.xml
    About to start xml -> descriptor conversion process
    xmlToDescriptor- file name=testdb.xml
    Set PubId= -//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/application_1_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD J2EE Application Client1.2//EN to
    uri=file://localhost/opt/iplanet/ias6/ias/APPS/application-client_1_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/web-app_2_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/web-jsptaglibrary_1_1.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//ENto
    uri= file://localhost/opt/iplanet/ias6/ias/APPS/ejb-jar_1_1.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS J2EE Application Client
    1.0//EN to uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASjava_client_jar_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Web Application 1.0//EN to
    uri= file://localhost/opt/iplanet/ias6/ias/APPS/IASWebApp_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Enterprise JavaBeans1.0//EN
    to uri= file://localhost/opt/iplanet/ias6/ias/APPS/IASEjb_jar_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Persistence Manager1.0//EN to
    uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASPersistence_manager_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Datasource 1.0//EN to uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASDatasource_1_0.dtd
    servlet name = testdb
    !!! parseWebAppFromDOM() just put in setServlet name = testdb
    Set PubId= -//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/application_1_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD J2EE Application Client1.2//EN to
    uri=file://localhost/opt/iplanet/ias6/ias/APPS/application-client_1_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/web-app_2_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/web-jsptaglibrary_1_1.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//ENto
    uri= file://localhost/opt/iplanet/ias6/ias/APPS/ejb-jar_1_1.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS J2EE Application Client
    1.0//EN to uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASjava_client_jar_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Web Application 1.0//EN to
    uri= file://localhost/opt/iplanet/ias6/ias/APPS/IASWebApp_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Enterprise JavaBeans1.0//EN
    to uri= file://localhost/opt/iplanet/ias6/ias/APPS/IASEjb_jar_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Persistence Manager1.0//EN to
    uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASPersistence_manager_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Datasource 1.0//EN to uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASDatasource_1_0.dtd
    !!! handleIASServlet(): Get servlet name= testdb
    AppComponentDescriptor: com.netscape.server.deployment.WebAppDescriptor
    All EnvEntries name:
    All Ejb-refs:
    All Resource-refs:
    WebApp package name = testdb
    Enter setupPluginInfoInGDS()
    creating ServletPatternTrans entry, url= /testdb
    webapp ContextRoot= null
    Enter getAllServlets,registeredServletNames.size= 0
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    Enter getAllServlets,registeredServletNames.size= 0
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    Enter getAllServlets,registeredServletNames.size= 0
    [01/Nov/2001 16:00:04:5] info: GDS-007: finished a registry load
    --- now put Web-app component descrptor into GDS
    webAppName = testdb
    Enter getAllServlets,registeredServletNames.size= 0
    Enter getAllServlets,registeredServletNames.size= 0
    getClassDefGDSKeyByGuid: name to match=
    {eea893d3-d646-4f8e-8c6d-6f92a8563c46}
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    getServletGDSKeyByGuid: return key: com.kivasoft.gds.GDSKey@540408
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    getClassImpGDSKeyByGuid: name to match=
    {eea893d3-d646-4f8e-8c6d-6f92a8563c46}
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    Now do some verification step and regenrate the web-app.xml.out filefrom
    GDS data
    getWebAppGDSKeyByPackageName: name to match= testdb
    got key to webapp= testdb
    enter WebAppCompGDSUtil.getDescriptorFromGDSByKey()
    About to process the <servlet-mapping> element
    GDSvalue name= /System/StaticServlet
    GDSvalue val= StaticServlet
    GDSvalue name= /System/JSPRunnerSticky
    GDSvalue val= JSPRunnerSticky
    GDSvalue name= /System/JSPRunner
    GDSvalue val= JSPRunner
    GDSvalue name= /System/FormAuthServlet
    GDSvalue val= FormAuthServlet
    GDSvalue name= /System/BasicAuthServlet
    GDSvalue val= BasicAuthServlet
    GDSvalue name= /System/CertAuthServlet
    GDSvalue val= CertAuthServlet
    GDSvalue name= /System/SessionInvalidator
    GDSvalue val= SessionInvalidator
    GDSvalue name= /fortune/fortune
    GDSvalue val= FortuneServlet
    GDSvalue name= /web/StaticServlet
    GDSvalue val= StaticServlet
    GDSvalue name= /web/JSPRunnerSticky
    GDSvalue val= JSPRunnerSticky
    GDSvalue name= /web/JSPRunner
    GDSvalue val= JSPRunner
    GDSvalue name= /web/FormAuthServlet
    GDSvalue val= FormAuthServlet
    GDSvalue name= /web/BasicAuthServlet
    GDSvalue val= BasicAuthServlet
    GDSvalue name= /web/CertAuthServlet
    GDSvalue val= CertAuthServlet
    GDSvalue name= /web/SessionInvalidator
    GDSvalue val= SessionInvalidator
    GDSvalue name= /web/AdderAlias
    GDSvalue val= AdderServlet
    GDSvalue name= /testdb/testdb
    GDSvalue val= testdb
    getServletMappingFromGDS: url= /testdb, servlet= testdb
    About to process the context-param
    [01/Nov/2001 16:00:06:7] info: GDS-007: finished a registry load
    About to process the mime-mapping
    About to process the servlets
    GDSvalue name= testdb
    GDSvalue val= {eea893d3-d646-4f8e-8c6d-6f92a8563c46}
    GDSvalue name= testdb.jsp
    GDSvalue val= {eea893d3-d646-4f8e-8c6d-6f92a8563c46}
    The returned hashtable for servlets have: 2 entries
    About to process the servlet name= testdb.jsp
    About to process the servlet name= testdb
    About to process the tld
    The returned vector for taglib have: 0 entries
    Finished getting a wd from gd s!!!
    Now ready to write out WebApp xml file
    descriptorToXml: about to get all servlets
    Enter getAllServlets,registeredServletNames.size= 2
    DescriptorManager.getServletByGuidStr, ctx=
    com.kivasoft.context.Context@6ee36c
    Enter getServletFromGDS
    getClassDefGDSKeyByGuid: name to match=
    {eea893d3-d646-4f8e-8c6d-6f92a8563c46}
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    getServletGDSKeyByGuid: return key: com.kivasoft.gds.GDSKey@76c74b
    load-on-startup value from GDS= 0
    number-of-singles value from GDS= 10
    DescriptorManager.getServletByGuidStr, ctx=
    com.kivasoft.context.Context@6ee36c
    write Xml to output file: web.xml.out
    Finished writing out j2ee xml file
    Enter getAllServlets,registeredServletNames.size= 2
    write Xml to output file: ias-web.xml.out
    Finished writing out IAS xml file
    Extracting JSPs from testdb.xml to /opt/iplanet/ias6/ias/APPS/
    Processing input WAR 1
    Processing input WARi 21 testdb.xml
    Encountered exception java.util.zip.ZipException processing input file
    testdb.xml
    <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    At what stage did this error shoot up ? Is it possible for you to
    send
    the
    application for me to check ?
    Regards
    Raj
    lu yanqiang wrote:
    Hi,
    I use the iAS 6.0SP1 in HP-UX and I use command to regist
    application,
    this error message is response by "webappreg", i use webappreg to
    regist
    my
    application,and i registed it success in windows.
    thanks
    Lu yanqiang
    "Raj" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    What is the version of app server on HP UX ? How did you
    deploy on
    the
    app
    server in HP UX using command line deployment or GUI tool ? Where
    are
    these
    errors shooting from, are these coming at the time of deployment
    or
    thrown
    at
    runtime ? What is the application type that you are trying to
    deploy
    ?, if
    possible send me the kxs and kjs log files please.
    Regards
    Raj
    lu yanqiang wrote:
    My application work fine in iAS SP3 for Win2000, but when I
    deployed
    it
    to
    HP-UX 11.0, It can not regist the application in HP-UX.
    can any onr help me, thanks
    Lu yanqiang

    Hi,
    this the test.xml and ias-test.xml:
    test.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
    2.2//EN' 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd'>
    <web-app>
    <distributable></distributable>
    <servlet>
    <servlet-name>testjsp</servlet-name>
    <jsp-file>testjsp.jsp</jsp-file>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>testjsp</servlet-name>
    <url-pattern>/testjsp</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>1800</session-timeout>
    </session-config>
    <login-config>
    <realm-name></realm-name>
    <form-login-config>
    <form-login-page></form-login-page>
    <form-error-page></form-error-page>
    </form-login-config>
    </login-config>
    </web-app>
    ias-test.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ias-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD iAS Web
    Application 1.0//EN'
    'http://developer.iplanet.com/appserver/dtds/IASWebApp_1_0.dtd'>
    <ias-web-app>
    <servlet>
    <servlet-name>testjsp</servlet-name>
    <guid>{722828a9-b9f6-4c55-8ec3-a315ebc2d551}</guid>
    <validation-required>false</validation-required>
    <servlet-info>
    <sticky>false</sticky>
    <encrypt>false</encrypt>
    <number-of-singles>10</number-of-singles>
    <disable-reload>false</disable-reload>
    </servlet-info>
    </servlet>
    </ias-web-app>
    thanks
    Lu yanqiang
    "Raj" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    The problem I anticipate is Windows 2000 has app server SP3 and youare
    trying to deploy the same app logic to HP Unix which is having app serverSP1.
    So this could be problem, that's precisely the reason why I would like tolook
    into the coding.
    Regards
    Raj
    lu yanqiang wrote:
    Hi, thanks for you help:
    I'm sure that my application and the xml file is right,because I runit
    in
    Windows OK, but when I wang to register it in HP-UX 11.0, I use the
    command "webappreg test.xml" to regist my application, this commandresponse
    me these error messages:
    HotSpot VM warning: Setting of property "java.compiler" is ignored
    creating engine class space...
    loading jx2util...
    loading jx2util...done
    Connected to LDAP server on websvr.sh-catcher.com port 389
    com.kivasoft.engine.EngineClassLoaderNonVersionable: EngineClassLoader
    constructer called
    com.kivasoft.engine.EngineClassLoaderNonVersionable: ! NVCL CREATED at:
    com.kivasoft.engine.EngineClassLoaderNonVersionable@1fbe93
    ECS initializing engine class loader instance.
    com.kivasoft.engine.EngineClassLoader: EngineClassLoader constructercalled
    initGDSKey: GDSKey_Base
    initGDSKey- just put : com.kivasoft.IGDSKey_Base
    key=com.kivasoft.gds.GDSKey@41cd1f
    initGDSKey: GDSKey_Root
    initGDSKey- just put : com.kivasoft.IGDSKey_Root
    key=com.kivasoft.gds.GDSKey@31f71a
    initGDSKey: GDSKey_Current
    initGDSKey- just put : com.kivasoft.IGDSKey_Current
    key=com.kivasoft.gds.GDSKey@5601ea
    initGDSKey: GDSKey_CurrentEngine
    initGDSKey- just put : com.kivasoft.IGDSKey_CurrentEngine
    key=com.kivasoft.gds.GDSKey@17d257
    context= com.kivasoft.context.Context@6ee36c
    resolve property: GX.path.class GX_CLASSPATH SYSTEM_JAVA null
    resolve value: /opt/iplanet/ias6/ias/APPS
    resolve property: GX.path.class.core GX_CLASSPATH_CORE SYSTEM_JAVA
    java.;com.kivasoft.;gx.
    resolve value:
    java.;com.kivasoft.;gx.;com.netscape.;javax.;netscape.ldap.;netscape.tooluti
    l.
    resolve property: GX.versionable GX_VERSIONABLE SYSTEM_JAVA
    com.kivasoft.engine.IVersionable
    property not in GDS
    resolve value: com.kivasoft.engine.IVersionable
    resolve property: GX.all.versionable GX_ALL_VERSIONABLE SYSTEM_JAVA 0
    property not in GDS
    resolve value: 0
    resolve property: GX.taskmanager.period GX_TASKMANAGER_PERIODSYSTEM_JAVA 10
    property not in GDS
    resolve value: 10
    resolve property: GX.versionable.if.extends GX_VERSIONABLE_IF_EXTENDS
    SYSTEM_JAVA javax.servlet.GenericServlet;javax.servlet.http.HttpServlet
    property not in GDS
    resolve value:javax.servlet.GenericServlet;javax.servlet.http.HttpServlet
    resolve property: GX.versionable.if.implementsGX_VERSIONABLE_IF_IMPLEMENTS
    SYSTEM_JAVA javax.servlet.Servlet
    property not in GDS
    resolve value: javax.servlet.Servlet
    class_dir 4 AppPath: /opt/iplanet/ias6/ias/APPS/compiled_jsp
    loading component...{7ee76a00-a999-11d1-a16f-006097594151}
    getting threadLocal obj
    loading component...{91f29740-16e1-11cf-96c8-0020afed9a65}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.thread.ModuleThread
    com.kivasoft.engine.EngineClassLoader: Class
    com.kivasoft.thread.ModuleThread appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.thread.ModuleThread
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class
    com.kivasoft.thread.ModuleThread loaded by primordial CL
    registered module... com.kivasoft.IModuleThread
    loading component...{91f29620-16e1-11cf-96c8-0020afed9a65}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderJ
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.bind.BinderJ
    appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.bind.BinderJ
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.bind.BinderJ
    loaded by primordial CL
    loading component...{ed049d80-b936-1548-e481-080020721767}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.eb.EJBBinder
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.eb.EJBBinder
    appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.eb.EJBBinder
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.eb.EJBBinder
    loaded by primordial CL
    EJBBinder: binder is GOOD..
    EJBBinder: context set obj for IID_IGXEBBinder
    loading component...{a84f0507-a912-11cf-aa6c-524153480000}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.gds.GDSModule
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.gds.GDSModule
    appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.gds.GDSModule
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.gds.GDSModule
    loaded by primordial CL
    registered module... com.kivasoft.IGDSModule
    loading component...{c70f2c00-abeb-11d0-b4e5-00a024e006be}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Classcom.kivasoft.bind.BinderBase
    appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Classcom.kivasoft.bind.BinderBase
    loaded by primordial CL
    loading component...{c70f2d00-abeb-11d0-b4e5-00a024e006be}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Got com.kivasoft.bind.BinderBasefrom
    PCL cache
    loading component...{c70f1a00-abeb-11d0-b4e5-00a024e006be}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.principal.PrincipalModule
    com.kivasoft.engine.EngineClassLoader: Class
    com.kivasoft.principal.PrincipalModule appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.principal.PrincipalModule
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class
    com.kivasoft.principal.PrincipalModule loaded by primordial CL
    registered module... com.kivasoft.IPrincipalModule
    loading component...{35069f7a-0a09-1406-8f1a-0800208055c0}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Got com.kivasoft.bind.BinderBasefrom
    PCL cache
    loading component...{e7d37500-23bf-11d1-b6c2-0060082beecf}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Got com.kivasoft.bind.BinderBasefrom
    PCL cache
    loading component...{e7d37540-23bf-11d1-b6c2-0060082beecf}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.bind.BinderBase
    com.kivasoft.engine.EngineClassLoader: Got com.kivasoft.bind.BinderBasefrom
    PCL cache
    loading component...{be5cfde0-cd9e-11d1-94aa-0060083a5082}
    getting threadLocal obj
    com.kivasoft.engine.EngineClassLoader: Enter ECL loadClass:
    com.kivasoft.eb.EBModule
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.eb.EBModule
    appears to be a core class
    com.kivasoft.engine.EngineClassLoader: Using primordial classloader toload
    com.kivasoft.eb.EBModule
    com.kivasoft.engine.EngineClassLoader: Entering
    loadClass_primordial(className)
    com.kivasoft.engine.EngineClassLoader: Class com.kivasoft.eb.EBModuleloaded
    by primordial CL
    registered module... com.kivasoft.IEBModule
    The current input file= testdb.xml
    About to start xml -> descriptor conversion process
    xmlToDescriptor- file name=testdb.xml
    Set PubId= -//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/application_1_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD J2EE Application Client1.2//EN to
    uri=file://localhost/opt/iplanet/ias6/ias/APPS/application-client_1_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/web-app_2_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/web-jsptaglibrary_1_1.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//ENto
    uri= file://localhost/opt/iplanet/ias6/ias/APPS/ejb-jar_1_1.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS J2EE Application Client
    1.0//EN to uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASjava_client_jar_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Web Application 1.0//EN to
    uri= file://localhost/opt/iplanet/ias6/ias/APPS/IASWebApp_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Enterprise JavaBeans1.0//EN
    to uri= file://localhost/opt/iplanet/ias6/ias/APPS/IASEjb_jar_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Persistence Manager1.0//EN to
    uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASPersistence_manager_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Datasource 1.0//EN to uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASDatasource_1_0.dtd
    servlet name = testdb
    !!! parseWebAppFromDOM() just put in setServlet name = testdb
    Set PubId= -//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/application_1_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD J2EE Application Client1.2//EN to
    uri=file://localhost/opt/iplanet/ias6/ias/APPS/application-client_1_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/web-app_2_2.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN touri=
    file://localhost/opt/iplanet/ias6/ias/APPS/web-jsptaglibrary_1_1.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//ENto
    uri= file://localhost/opt/iplanet/ias6/ias/APPS/ejb-jar_1_1.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS J2EE Application Client
    1.0//EN to uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASjava_client_jar_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Web Application 1.0//EN to
    uri= file://localhost/opt/iplanet/ias6/ias/APPS/IASWebApp_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Enterprise JavaBeans1.0//EN
    to uri= file://localhost/opt/iplanet/ias6/ias/APPS/IASEjb_jar_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Persistence Manager1.0//EN to
    uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASPersistence_manager_1_0.dtd
    Set PubId= -//Sun Microsystems, Inc.//DTD iAS Datasource 1.0//EN to uri=
    file://localhost/opt/iplanet/ias6/ias/APPS/IASDatasource_1_0.dtd
    !!! handleIASServlet(): Get servlet name= testdb
    AppComponentDescriptor: com.netscape.server.deployment.WebAppDescriptor
    All EnvEntries name:
    All Ejb-refs:
    All Resource-refs:
    WebApp package name = testdb
    Enter setupPluginInfoInGDS()
    creating ServletPatternTrans entry, url= /testdb
    webapp ContextRoot= null
    Enter getAllServlets,registeredServletNames.size= 0
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    Enter getAllServlets,registeredServletNames.size= 0
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    Enter getAllServlets,registeredServletNames.size= 0
    [01/Nov/2001 16:00:04:5] info: GDS-007: finished a registry load
    --- now put Web-app component descrptor into GDS
    webAppName = testdb
    Enter getAllServlets,registeredServletNames.size= 0
    Enter getAllServlets,registeredServletNames.size= 0
    getClassDefGDSKeyByGuid: name to match=
    {eea893d3-d646-4f8e-8c6d-6f92a8563c46}
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    getServletGDSKeyByGuid: return key: com.kivasoft.gds.GDSKey@540408
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    getClassImpGDSKeyByGuid: name to match=
    {eea893d3-d646-4f8e-8c6d-6f92a8563c46}
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    Now do some verification step and regenrate the web-app.xml.out filefrom
    GDS data
    getWebAppGDSKeyByPackageName: name to match= testdb
    got key to webapp= testdb
    enter WebAppCompGDSUtil.getDescriptorFromGDSByKey()
    About to process the <servlet-mapping> element
    GDSvalue name= /System/StaticServlet
    GDSvalue val= StaticServlet
    GDSvalue name= /System/JSPRunnerSticky
    GDSvalue val= JSPRunnerSticky
    GDSvalue name= /System/JSPRunner
    GDSvalue val= JSPRunner
    GDSvalue name= /System/FormAuthServlet
    GDSvalue val= FormAuthServlet
    GDSvalue name= /System/BasicAuthServlet
    GDSvalue val= BasicAuthServlet
    GDSvalue name= /System/CertAuthServlet
    GDSvalue val= CertAuthServlet
    GDSvalue name= /System/SessionInvalidator
    GDSvalue val= SessionInvalidator
    GDSvalue name= /fortune/fortune
    GDSvalue val= FortuneServlet
    GDSvalue name= /web/StaticServlet
    GDSvalue val= StaticServlet
    GDSvalue name= /web/JSPRunnerSticky
    GDSvalue val= JSPRunnerSticky
    GDSvalue name= /web/JSPRunner
    GDSvalue val= JSPRunner
    GDSvalue name= /web/FormAuthServlet
    GDSvalue val= FormAuthServlet
    GDSvalue name= /web/BasicAuthServlet
    GDSvalue val= BasicAuthServlet
    GDSvalue name= /web/CertAuthServlet
    GDSvalue val= CertAuthServlet
    GDSvalue name= /web/SessionInvalidator
    GDSvalue val= SessionInvalidator
    GDSvalue name= /web/AdderAlias
    GDSvalue val= AdderServlet
    GDSvalue name= /testdb/testdb
    GDSvalue val= testdb
    getServletMappingFromGDS: url= /testdb, servlet= testdb
    About to process the context-param
    [01/Nov/2001 16:00:06:7] info: GDS-007: finished a registry load
    About to process the mime-mapping
    About to process the servlets
    GDSvalue name= testdb
    GDSvalue val= {eea893d3-d646-4f8e-8c6d-6f92a8563c46}
    GDSvalue name= testdb.jsp
    GDSvalue val= {eea893d3-d646-4f8e-8c6d-6f92a8563c46}
    The returned hashtable for servlets have: 2 entries
    About to process the servlet name= testdb.jsp
    About to process the servlet name= testdb
    About to process the tld
    The returned vector for taglib have: 0 entries
    Finished getting a wd from gd s!!!
    Now ready to write out WebApp xml file
    descriptorToXml: about to get all servlets
    Enter getAllServlets,registeredServletNames.size= 2
    DescriptorManager.getServletByGuidStr, ctx=
    com.kivasoft.context.Context@6ee36c
    Enter getServletFromGDS
    getClassDefGDSKeyByGuid: name to match=
    {eea893d3-d646-4f8e-8c6d-6f92a8563c46}
    BaseKey= com.kivasoft.gds.GDSKey@41cd1f
    getServletGDSKeyByGuid: return key: com.kivasoft.gds.GDSKey@76c74b
    load-on-startup value from GDS= 0
    number-of-singles value from GDS= 10
    DescriptorManager.getServletByGuidStr, ctx=
    com.kivasoft.context.Context@6ee36c
    write Xml to output file: web.xml.out
    Finished writing out j2ee xml file
    Enter getAllServlets,registeredServletNames.size= 2
    write Xml to output file: ias-web.xml.out
    Finished writing out IAS xml file
    Extracting JSPs from testdb.xml to /opt/iplanet/ias6/ias/APPS/
    Processing input WAR 1
    Processing input WARi 21 testdb.xml
    Encountered exception java.util.zip.ZipException processing input file
    testdb.xml
    <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    At what stage did this error shoot up ? Is it possible for you to
    send
    the
    application for me to check ?
    Regards
    Raj
    lu yanqiang wrote:
    Hi,
    I use the iAS 6.0SP1 in HP-UX and I use command to regist
    application,
    this error message is response by "webappreg", i use webappreg to
    regist
    my
    application,and i registed it success in windows.
    thanks
    Lu yanqiang
    "Raj" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    What is the version of app server on HP UX ? How did you
    deploy on
    the
    app
    server in HP UX using command line deployment or GUI tool ? Where
    are
    these
    errors shooting from, are these coming at the time of deployment
    or
    thrown
    at
    runtime ? What is the application type that you are trying to
    deploy
    ?, if
    possible send me the kxs and kjs log files please.
    Regards
    Raj
    lu yanqiang wrote:
    My application work fine in iAS SP3 for Win2000, but when I
    deployed
    it
    to
    HP-UX 11.0, It can not regist the application in HP-UX.
    can any onr help me, thanks
    Lu yanqiang

  • How do I delete a trail ver of iWork completly

    I recently downloaded a trail version of iWork and then bought a dvd of it of it on ebay and it will not open without a serial number. I tried deleting all iWork files and reloading it. Still does not work. Where does the trail version hide on this computer so I can delete it correctly and fully. Thanks for the help

    This list was compiled by Barry (another Level 4):
    HD > Applications > iWork '09
    Delete the iWork '09 folder.
    HD > Library > Application Support > iWork
    contains only the iWork Tour file
    HD > Library > Preferences
    com.apple.iWork09.Installer.plist
    com.apple.iWork09.plist
    username > Library > Application Support > iWork
    move the iWork folder to the Desktop or the Trash.
    (mine contained folders for Numbers (contained a Templates folder with the one template I've created) and Pages (empty).
    username > Library > Preferences > ByHost
    com.apple.iWork.0014510f5686.plist
    com.apple.iWork.Keynote.0014510f5686.plist
    com.apple.iWork.Numbers.0014510f5686.plist
    com.apple.iWork.Pages.0014510f5686.plist
    username > Library > Preferences
    com.apple.iWork.Keynote.plist
    com.apple.iWork.Numbers.plist
    com.apple.iWork.Pages.plist
    Note: The 6 digit numbers in the "ByHost" folder will vary for each machine

  • LOGIN HELP!!!

    can anyone help with session variable problem?? I cannot seem
    to get my pages to take over the session variable, and am now
    getting 80040e14 errors....

    lol .. I'm sorry .. you didn't say what server model .. I
    thought you were
    talking about PHP (for some reason).
    In ASP, you will create the session variable like this (this
    example sets a
    session equal to a recordset variable)
    Session("YourID")
    =(rsyourrecordsetname.Fields.Item("YourID").Value)
    From there it's easy. You can create a data binding object
    that will allow
    you to drop the session variable whereever you wish. Go to
    the Data
    Bindings window in the Application panel and click the +
    sign. Then select
    Session Variable and fill in YourID in the window (or
    whatever you are
    calling it).
    Now an object will show in the Data Bindings window and you
    can drop it
    anywhere you wish on your pages. You can also carry the value
    from page to
    page using the Request Object to request it from a form
    variable or a
    previous page.
    Code looks like this:
    <%= Session("YourID") %>
    You would request the page with the user's details like this:
    <a href="page.asp?Member=<%= Session("YourID")
    %>">
    Does that make sense?
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "peteneal" <[email protected]> wrote in
    message
    news:e25jga$qpo$[email protected]..
    >I wasn't aware i needed session start in ASP with VB??
    >
    > is this what i need??
    >
    > there's no definitive description for the use of Session
    Variable's - all
    > i am
    > trying to do is authenticate someone the simplest way
    possible (have
    > followed
    > Newlands Tour's login) and from there to end on a user's
    company details
    > page...via the session variable
    >

  • Question about Tour3D(the source of the Andrew Davison 's book)

    In Tour3D'Obstacles class,i want to use BoundingBox instead of BoundingSphere.But it doesn't work.
    Here is source:
    // Obstacles.java
    // Andrew Davison, April 2005, [email protected]
    /* Obstacles stores a 2D boolean array (obs) representing the
       XZ plane. The row index is the z-axis, the column index
       is the x-axis. obs[0][0] is the back left hand corner of
       the plane, which is the (x,z) point (0-FLOOR_LEN/2, 0-FLOOR_LEN/2).
       Obstacles can only be positioned at integer positions due
       to the use of array subscripts to mark the obstacle positions.
    import java.util.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import com.sun.j3d.utils.geometry.*;
    public class Obstacles
      private final static float RADIUS = 0.1f;   // radius of obstacle
      private final static float HEIGHT = 1.0f;   // height of obstacle
      private final static int FLOOR_LEN = 50; 
          // should be the same as the floor size in CheckerFloor, and be even
      // colours for obs material
      private final static Color3f black = new Color3f(0.0f, 0.0f, 0.0f);
      private final static Color3f specular = new Color3f(1.0f, 1.0f, 1.0f);
      private final static Color3f red = new Color3f(0.9f, 0.1f, 0.2f);
      private boolean obs[][];    // whether a (x,z) has an obstacle
      //private BoundingSphere obsBounds[][];   // the bounding sphere for obs
      private BoundingBox obsBounds[][];   // the bounding sphere for obs
      private Group obsGroup;     // group of 3d obstacles shown in world
      public Obstacles()
        obs = new boolean[FLOOR_LEN+1][FLOOR_LEN+1];    // larger than FLOOR_LEN*FLOOR_LEN
        //obsBounds = new BoundingSphere[FLOOR_LEN+1][FLOOR_LEN+1];
        obsBounds = new BoundingBox[FLOOR_LEN+1][FLOOR_LEN+1];
        for (int z=0; z <= FLOOR_LEN; z++)
          for(int x=0; x <= FLOOR_LEN; x++) {
            obs[z][x] = false;
            obsBounds[z][x] = null;
           // obsBounds2[z][x] = null;
        obsGroup = new Group();
      }  // end of Obstacles()
      public void store(String line)
      /* The line will have the format:
            (x1,z1) (x2,z2) ...
        int x=0, z=0;
        String coordStr;
        StringTokenizer points;
        StringTokenizer coords = new StringTokenizer(line);
        while (coords.hasMoreTokens()) {
          coordStr = coords.nextToken();    // should be a single (x,z)
          points = new StringTokenizer(coordStr, "(,)");
          try {
            x = Integer.parseInt(points.nextToken());
            z = Integer.parseInt(points.nextToken());
          catch (NumberFormatException ex){
            System.out.println("Incorrect format for obstacle data in tours file");
            break;
          markObstacle(x,z);
      }  // end of store()
      public void store2(String line)
      /* The line will have the format:
            (x1,z1) (x2,z2) ...
        int x=0, z=0;
        String coordStr;
        StringTokenizer points;
        StringTokenizer coords = new StringTokenizer(line);
        while (coords.hasMoreTokens()) {
          coordStr = coords.nextToken();    // should be a single (x,z)
          points = new StringTokenizer(coordStr, "(,)");
          try {
            x = Integer.parseInt(points.nextToken());
            z = Integer.parseInt(points.nextToken());
          catch (NumberFormatException ex){
            System.out.println("Incorrect format for obstacle data in tours file");
            break;
          markObstacle2(x,z);
      }  // end of store()
      private void markObstacle(int x, int z)
        if ((x < -FLOOR_LEN/2) || (x > FLOOR_LEN/2)) {
          System.out.println("Obstacle x point out of bounds: " + x);
          x = 0;
        if ((z < -FLOOR_LEN/2) || (z > FLOOR_LEN/2)) {
          System.out.println("Obstacle z point out of bounds: " + z);
          z = 0;
        obs[z+(FLOOR_LEN/2)][x+(FLOOR_LEN/2)] = true;
        obsBounds[z+(FLOOR_LEN/2)][x+(FLOOR_LEN/2)] =
                   new BoundingBox( new Point3d(x-0.5, 0.0, z+0.5), new Point3d(x+0.5, 1.0, z-0.5));
       obsGroup.addChild( makeObs(x, z));
      }  // end of markObstacle()
      private void markObstacle2(int x, int z)
        if ((x < -FLOOR_LEN/2) || (x > FLOOR_LEN/2)) {
          System.out.println("Obstacle x point out of bounds: " + x);
          x = 0;
        if ((z < -FLOOR_LEN/2) || (z > FLOOR_LEN/2)) {
          System.out.println("Obstacle z point out of bounds: " + z);
          z = 0;
        obs[z+(FLOOR_LEN/2)][x+(FLOOR_LEN/2)] = true;
        /*obsBounds[z+(FLOOR_LEN/2)][x+(FLOOR_LEN/2)] =
                   new BoundingSphere( new Point3d(x, 0.0, z), RADIUS);*/
        obsBounds[z+(FLOOR_LEN/2)][x+(FLOOR_LEN/2)] =
              new BoundingBox( new Point3d(x-0.5, 0.0, z+0.5), new Point3d(x+0.5, 2.0, z-0.5));
       obsGroup.addChild( makeObs2(x, z));
      }  // end of markObstacle()
      public void print()
        // header - markers for each 5 units, and a line
        for(int x=(-FLOOR_LEN/2); x <= (FLOOR_LEN/2); x++) {
          if (x == 0)
            System.out.print("0");
          else if (x%5 == 0)
            System.out.print("*");
          else
            System.out.print(" ");
        System.out.println("");
        for(int x=(-FLOOR_LEN/2); x <= (FLOOR_LEN/2); x++)
          System.out.print("-");
        System.out.println("");
        // body of table: O's and a z-axis at the end of each line
        for (int z=0; z <= FLOOR_LEN; z++) {
          for(int x=0; x <= FLOOR_LEN; x++) {
            if (obs[z][x])
              System.out.print("O");
            else
              System.out.print(" ");
          if ((z-FLOOR_LEN/2)%5 == 0)
            System.out.println("| " + (z-FLOOR_LEN/2));
          else
            System.out.println("|");
        // footer: a line
        for(int x=(-FLOOR_LEN/2); x <= (FLOOR_LEN/2); x++)
          System.out.print("-");
        System.out.println("");
      }  // end of print()
      public boolean nearObstacle(Point3d pos, double radius)
      /* posn is not allowed to be outside the floor area.
         Also, every obstacle's bounding sphere is checked against pos
        if ((pos.x < -FLOOR_LEN/2) || (pos.x > FLOOR_LEN/2) ||
            (pos.z < -FLOOR_LEN/2) || (pos.z > FLOOR_LEN/2))     // off the floor
          return true;
        // check if near any obstacles
        BoundingBox bs = new BoundingBox( new Point3d(pos.x-0.5,pos.y,pos.z+0.5), new Point3d(pos.x+0.5,pos.y+1,pos.z-0.5));
        for (int z=0; z <= FLOOR_LEN; z++)
          for(int x=0; x <= FLOOR_LEN; x++)
            if (obs[z][x]) {
              if (obsBounds[z][x].intersect(bs))
                return true;
         return false;
       }  // end of nearObstacle()
      private TransformGroup makeObs(int x, int z)
      // a red cylinder whose base is on (x,z)
        // create obstacle node
        Appearance obsApp = new Appearance();
        Material mat = new Material(black, black, red, specular, 100.f);
        mat.setLightingEnable(true);
        obsApp.setMaterial( mat );
        Cylinder obs = new Cylinder( RADIUS, HEIGHT,
                                  Cylinder.GENERATE_NORMALS, obsApp);
        // fix obs's position
        TransformGroup posnTG = new TransformGroup();
        Transform3D trans = new Transform3D();
        trans.setTranslation( new Vector3d(x, HEIGHT/2, z) );
        posnTG.setTransform(trans);
        posnTG.addChild(obs);
        return posnTG;
      }  // end of makeObs()
      private TransformGroup makeObs2(int x, int z)
      // a red cylinder whose base is on (x,z)
        // create obstacle node
        Appearance obsApp = new Appearance();
        Material mat = new Material(black, black, red, specular, 100.f);
        mat.setLightingEnable(true);
        obsApp.setMaterial( mat );
        Box obs = new Box((float)0.2, (float)1.0,(float)1.0,obsApp);
        // fix obs's position
        TransformGroup posnTG = new TransformGroup();
        Transform3D trans = new Transform3D();
        trans.setTranslation( new Vector3d(x, HEIGHT/2, z) );
        posnTG.setTransform(trans);
        posnTG.addChild(obs);
        return posnTG;
      }  // end of makeObs()
      public Group getObsGroup()
      {  return obsGroup;  }
    }  // end of Obstacles class

    Is it from paper book you bought or you used the papers available on his web pages? If it's a first case and you're 120% sure, then write him an e-mail with errata.

  • ASP Error

    Could anyone tell me what this means and how to fix it please:
    Error Type:
    Microsoft VBScript runtime (0x800A01A8)
    Object required: ''
    /newland/message_sent.asp, line 7
    Browser Type:
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.3; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)   
    Page:
    GET /newland/message_sent.asp
    This is the full page code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%
    theSchema="http://schemas.microsoft.com/cdo/configuration/"
    Set cdoConfig=server.CreateObject("CDO.Configuration")
    cdoConfig.Fields.Item(theSchema & "sendusing")=2
    cdoConfig.Fields.Item(theSchema & "smtpserver")="mail.myserver.co.uk"
    cdoCongig.Fields.Update
    set cdoMessage=Server.CreateObject("CDO.Message")
    cdoMessage.Configuration=cdoConfig
    cdoMessage.From="[email protected]"
    cdoMessage.To="[email protected]"
    cdoMessage.Subject="This is the message subject"
    cdoMessage.TextBody="This is the message body"
    cdoMessage.Send
    Set cdoMessage=Nothing
    Set cdoConfig=Nothing
    %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Newland Tours: About</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="css/newland.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <a href="#top"><img src="images/spacer.gif" alt="Skip to main page content." width="1" height="1" border="0" align="left" /></a>
    <table width="750" border="0" cellpadding="3" cellspacing="0">
    <tr>
      <td><img src="images/banner_left.gif" width="451" height="68"  alt="Newland Tours Banner, Left" /></td>
      <td width="280"><img src="images/banner_right.jpg" width="276" height="68" alt="Newland Tours Banner, Right" /></td>
    </tr>
    <tr>
      <td><img src="images/navbar.gif" name="navbar" width="450" height="20" border="0" usemap="#navbarMap" alt="Navigation Bar" /></td>
      <td><img name="copyright_bar" src="images/copyright_bar.gif" width="272" height="20" border="0" alt="Copyright 2004 Newland Tours" /></td>
    </tr>
    <tr>
      <td colspan="2">
    <h1><br />
       <a name="top" id="top"></a>Message Sent </h1>
       <p>Your message has been sent. You should expect to here from us within 3 business days.</p>
       <p>Return to <a href="index.asp">Home</a> page</p></td>
    </tr>
    </table>
    <br />
    <br />
    <map name="navbarMap" id="navbarMap">
    <area shape="rect" coords="1,0,62,20" href="index.asp" alt="Home" />
    <area shape="rect" coords="71,0,117,20" href="about.asp" alt="About" />
    <area shape="rect" coords="129,0,196,20" href="tours.asp" alt="Find Tours" />
    <area shape="rect" coords="209,0,311,20" href="profiles.asp" alt="Country Profiles" />
    <area shape="rect" coords="327,0,434,20" href="contact.asp" alt="Contact An Agent" />
    </map>
    </body>
    </html>

    You have a typo on that line.
    cdoCongig.Fields.Update
    It should be:
    cdoConfig.Fields.Update
    Jim

Maybe you are looking for