Java and XML for WAP

Book Title: XML How to Program (Deitel) by Laxxsuss
Chap 16: Server- side Java Programming
Case Study: A Wireless Online Bookstore
i have to tried but error, and the message is HTTP ERROR 404
i am following the step to setup
To setup your computer to build the wireless online bookstore
application, follow these steps:
1. Register the databases cart.mdb and catalog.mdb as ODBC data sources.The username is anonymous and the password is guest for both databases.
2. Download and install Java™ 2 SDK, Standard Edition Version 1.3.0 from www.java.sun.com.
3. Download Jakarta Tomcat from jakarta.apache.org/downloads/binindex.html and follow the installation instructions in the user’s guide. In this example, we assume Jakarta Tomcat is installed in C:\jakarta-tomcat.
4. Place the XSL files in the directory jakarta-tomcat\webapps\chapter16\ and the Java class files in the directory jakarta-tomcat\webapps\chapter16\WEB-INF\classes\cartXML\.
5. Download the Xalan XSLT processor from xml.apache.org/xalan/index.html.
Place xalan.jar and xerces.jar in jakarta-tomcat\webapps\chapter16\WEB-INF\lib\.
6. Download and install the UP.SDK from www.phone.com/products/upsdk.html.
This includes UP.Simulator, which simulates a wireless phone. We will use this to test the wireless online bookstore.
7. Add the following XML tag in the ContextManager element in \jakartatomcat\conf\server.xml:
<Context path = "/chapter16" docBase = "webapps/chapter16"
debug = "0" reloadable = "true"></Context>
8. Add the following XML in the web-app element in jakarta-tomcat\conf\web.xml:
<mime-mapping>
<extension>wml</extension>
<mime-type>text/vnd.wap.wml</mime-type>
</mime-mapping>
9. Run Jakarta Tomcat by executing \jakarta-tomcat\bin\startup.bat.
please help me, if any knows about this problem....
Thanx. GBU

1st, ) Raw Data e.g, journey time, journey distance
2nd, ) I would want the system to recognise the 'raw data' mentioned before and transform this into graphical image(s).
3rd ) a complete visualisation would look like,
modes of transport represented by pics or logos, showing the time to get to from A to B.
Showing various routes, eg, walking, and/or bus and/or tube

Similar Messages

  • Java and XML or XHTML Journey Planner Project

    Hello chaps,
    I need some help with a project I am doing.
    This project will be focusing on the area of information visualisation and the phenomena surrounding how data can be optimised in a confined space. Expanding on this, confined space can be a mobile phone screen, and personal organisers where information is shown in a limited area.
    I plan to use Java and XML. (or XHTML)
    I want to have a running application where raw data is transformed into a combination of graphics and information. To achieve this, I will be looking at route planning for mobile phones and how route instructions can be represented in a visual but a sophisticated way.
    My focus will be on the London transport.
    Here is a link to the London transport journey planner
    http://www.tfl.gov.uk/journeyplanner
    Using WAP, I surfed the website on my phone and there seems to be a lot of writing and there is a lot to process before understanding what is going on. I want to transform words into pictures e.g., the word underground or bus into a logo of a red bus or underground logo or Instead of ?walk?, a picture of a walking pedestrian. Picture are good connotations as we can easily recognise rather than processing words. I would also like to represent the time taken in a graph format, again, to easily visualise.
    The application can be on a phone or on Windows simulating a mobile phone.
    Can anyone help me with this mammoth task or at least point me out in the correct direction?
    Looking forward to your reply.

    1st, ) Raw Data e.g, journey time, journey distance
    2nd, ) I would want the system to recognise the 'raw data' mentioned before and transform this into graphical image(s).
    3rd ) a complete visualisation would look like,
    modes of transport represented by pics or logos, showing the time to get to from A to B.
    Showing various routes, eg, walking, and/or bus and/or tube

  • Can somebody explain to me how java and xml are related?

    Hi guys
    im new to java and xml.Been reading a lot regarding java and don't seem to have a problem with it...
    the problem is the xml part...im doing a simple GUI project using swing(online store) and i have to convert it to xml
    I have absolutely NO IDEA why i must convert my java to xml and have no idea how to do that.I been reading on the net that xml is a exten~ markup language and it is better and useful.
    Can somebody explain to me in layman terms
    1)how is java and xml related in?
    2)why do ppl want to convert java to xml when they can just stick to java
    3)what is actually xml...
    4)Do i need a program to create xml like i need jcreater to create java application
    5)How do we actually convert?is there any links that you guys could tell me?
    thank you
    tomleo

    im new to java and xml.Been reading a lot regarding
    java and don't seem to have a problem with it...Okay.
    the problem is the xml part...im doing a simple GUI
    project using swing(online store) and i have to
    o convert it to xmlYou have to? So presumably somebody in a position of authority told you that?
    I have absolutely NO IDEA why i must convert my java
    to xml and have no idea how to do that.I been reading
    on the net that xml is a exten~ markup language and
    it is better and useful.I have no idea either (besides which, it doesn't make sense). But why ask us? Somebody told you to do that, ask them why.
    Sure, XML is useful. But it isn't a programming language so it can't be used as a substitute for Java.
    Can somebody explain to me in layman terms
    1)how is java and xml related in?They aren't related, except perhaps in that they are both used in computers.
    2)why do ppl want to convert java to xml when they
    can just stick to javaThey don't.
    3)what is actually xml...Start here for numerous definitions:
    http://www.google.ca/search?hl=en&lr=&oi=defmore&q=define:XML
    4)Do i need a program to create xml like i need
    jcreater to create java applicationNo, XML is just text. But then Java code is just text too.
    5)How do we actually convert?is there any links that
    you guys could tell me?You don't convert Java to XML. My guess is that because you don't know much about Java or XML, you have misinterpreted something that somebody told you.

  • Java and xml option necessary?

    Hi,
    first when i build the repository database, i choose java and xml option, is this necessary or i waste my time.
    When i read Building a Help Desk Connector, i'm not sure, do i need the Diagnostic Pack.
    Best regards
    Thomas
    (Narri, Narro)

    This is the defacto site for xpath stuff for java
    http://xml.apache.org/xalan-j/

  • Java and XML Doc

    I am new to Java and XML, I want to know the steps i should follow to work with XML document using XPATH. also the APIs and Technologies i shoud work. If possible guide me any examples or tutorials for that.

    This is the defacto site for xpath stuff for java
    http://xml.apache.org/xalan-j/

  • Any difference between webdynpro for java and webdynpro for abap ?

    Hi all:
       I would like to build one small system in EP.
       I can choose to use webdynpro for java and webdynpro for abap.
       I would like to ask any major difference between webdynpro for abap and webdynpro for java ?
       Is fpm supported in webdynpro for abap ?

    Hi,
    see this thread,
    ABAP Vs JAVA WebDynpro
    Regads,
    J.Joe

  • Getting started with Java and XML

    Hi,
    Although I am pretty familiar with Java, I am a total newbie with using it to parse XML. I have been reading quite a few tutorials so am getting a good understanding of it and am thinking of using the DOM model for my purposes.
    What I haven't been able to find, however, is how I can actually get started with this. I have tried compiling a few examples and have been getting errors such as:
    xmltest.java package javax.xml.parsers does not exist
    xmltest.java package org.w3c.dom does not existetc etc...
    It looks like these packages don't come with J2SE. Can anyone confirm this? Do I need to download and install the Java Web Services Developer Pack to solve this problem?
    Finally, I know I will need an XML parser but have read that JDK 1.4 has it's own parser (Crimson). Is this adequate for parsing XML files or will I also need a parser such as Xerces?
    Thanks so much for any help!

    Hi DrClap,
    Thanks for the reply. I have JDK 1.4.1_02 installed on my server but the following error keeps coming up when I try to run my example:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/NodeAre there any further packages I need to download in order to run Java with XML? I have read some people install JAXP and XERCES... are these necessary for parsing an XML document or should J2SE 1.4.1 be sufficient?
    Thanks for your help!
    Jill

  • SWF and XML for Command line compiling for iOS

    I need to compile an application for iOS using command line ADT. I need to pass the SWF and XML to the ADT command. But which ones do I need to pass as the ones available are in the debug folder and I don't think they are well optimized for mobile publishing. Also the XML has debug with id in it.

    Hi,
    Yes, Flash Builder, by default, doesn’t save release swfs. A simpler way to get them however be to go to Project->Properties->Flex Compiler and set
    ‘-debug=false’ in compiler arguments.
    Now the swf generated in bin-debug will be a release swf.
    Please let us know in case you face any issues.
    Thanks,
    Amish.

  • Java and XML How to

    Ok im am Fairly new to Java and want to know how to use XML with my Java Applecation can some one help me out withi this ?

    I have seen that can someone give me a project or some place that explains it Better ?

  • Challenging issue for Java and XML Gurus.Please advise

    An extremely tricky and challenging code.
    I have been able to add 2 XML documents together
    using importNode().
    xmlDoc1
    <?xml version="1.0" encoding="UTF-8"?>
    <i:Interest xmlns:i="common">
    <i:Details xsi.type="i:vanilla.details.stock">
      <i:Strategy xsi.type="strategies:call">
         <strategies.Expiry>2009-12-01</strategies.Expiry>
      </i:Strategy>
    <i:Ref/>
    </i:Details>
    </i:Interest>
    xmlDoc2
    <?xml version="1.0" encoding="UTF-8"?>
    <i:Underlying value="KGF">
    <common:Currency>GBP</common:Currency>
    </i:Underlying>
    My Java Code to append them together
    NodeList list = xmlDoc2.getChildNodes();
    for (int i=0; i< list .getLength(); i++) {
         Element element = (Element)list.item(i);
         Node dup = xmlDoc1.importNode(element, true);
         xmlDoc1.getDocumentElement().appendChild(dup);
    Output:
    <?xml version="1.0" encoding="UTF-8"?>
    <i:Interest xmlns:i="common">
    <i:Details xsi.type="i:vanilla.details.stock">
         <strategies.Description>Call</strategies.Description>
         <strategies.Expiry>2009-12-01</strategies.Expiry>
       </i:Strategy>
    <i:Ref/>
    </i:Details>
    <i:Underlying value="KGF">
    <common:Currency>GBP</common:Currency>
    </i:Underlying>
    </i:Interest>     Query:
    I would like to add the 2nd XML Document after element <i:Ref> . How to do this? I dont want the 2nd XML doc after <i:details> but before it.
    Please help.

    Well. You say you want to insert a node as a child of another node, and it needs to be inserted before a certain other child node.
    There's an insertBefore() method in the Node interface. Use that.
    And if you thought that was a challenging issue then you might as well give up writing DOM code right now.

  • Question about  Java and XML  rendering for Word 97 upwards.

    Without using the apache POI library, and by sticking to non-pay products,
    is it possible to use java or XSLT/XML to turn
    an xml formatted file into a
    Microsoft Word/Excell/PDF file within one framework?

    Look into Apache FOP. But be warned: it will most likely use POI to do any excel conversions. That's how (sane) software development works: you don't reinvent the wheel, you effectively reuse what is already there.

  • Query resultset to xml using java and XML schema

    Hi,
    I query data using JDBC and I want to store it to an XML file which has a well defined XML schema. I searched a lot in the forum but did not find an answer. Please guide me to create this program.
    I have managed to use JDBC to get result set but I do not know how to export is to XML using XSD and Java.
    Please help.
    Regards,
    Ravi

    I have managed to use JDBC to get result set but I do
    not know how to export is to XML using XSD and Java.Export using XSD? Schemas are for validation.
    Iterate through the result set, and build up the XML stream by creating an entry for each row.
    Another way to do it is to load the ResultSet into a Java object and serialize that to XML using something like XStream.
    %

  • Java and XML :: Unlocking, editing and locking an XML file using JAVA

    I need to develop a form with Address field , When i enter address information and submit the form it needs to generate an
    XML file for furthur processing.
    Now my problem is :
    When i want to edit the address....after submitting the form by entering the address information, it should unlock
    the XML and edit the XML and then lock it.
    How can i achive programatically, unlocking an XML file, editing the file, and locking it?.
    Thanks,
    Maruthi.

    There's a FileLock class, you know, in the java.nio.channels package. However before you start using it you should read its API documentation carefully including statements like " Whether or not a lock actually prevents another program from accessing the content of the locked region is system-dependent and therefore unspecified".
    Personally I would say that if you need to synchronize access to this XML file, you should consider changing your design to use something that supports locking a bit better, like a database. Or by writing a server that encapsulates the XML file and accepts requests to read it and update it, serializing those requests appropriately.

  • Guided research with Java and XML

    Hi all,
    I'm a last year student and now I have to choose a topic for my Guided Research Project.
    My interest in XML and databases pushes me in this direction. However, I still cannot come up with an interesting proposal for the project. At first I considered implementing a "XML <-> databaseSchema" converter, but then I found out that many similar tools already exist. I have background in Java, PHP and mysql which could be useful.
    I was wondering if you could give me an idea about a possible topic.
    Thank you very much!
    Regards,
    J

    For parsing you can use SAX Parser and for document generation you can use DOM Parser.

  • Java and XML Query

    Hi,No offence meant please for this query as this related to XML
    I am using a Java object to retreive an xml attribute
    The arttribute to retrieve is called scheme and is in an xml file with namespace
    <PaymentType scheme="UNCONFIRMED_TERMINATION_FEE" /> The Java code addresses this as:
    String xPathPaymentFee = EnvelopeCreator.GLOBAL_XML_NS_FOR_XPATH
              + "$this//cal:PaymentTypeI tried using the @ to extract the attribute value of scheme,but it doesnt work
    String xPathPaymentFee = EnvelopeCreator.GLOBAL_XML_NS_FOR_XPATH
              + "$this//cal:PaymentType@scheme;Any ideas how to extract the scheme value as cal is a namespace?
    Again no offence meant please

    Need more information about what "doesn't work" means.

Maybe you are looking for

  • Has anyone run into the I/O error 52 when trying to load something from a relative path in extend script?

    I'm having issues when loading something in a relative path through a script, on my computer I have no issues, but on 2 other devices at work, it's not working. Even at home on a PC and mac I haven't run into problems, anyone have insight on this? He

  • How to run RFC code in webservice.

    Hello Experts, I am new to webservices but I have done lot of work in Java Webdynpro with RFC. I have created a model using webservice and I am trying to use this application. I have written following code in wdInit() of my application - <b>Request_Z

  • Latest update crashing my cart

    Since the most recent iTunes software update I can't access my iTunes cart. I get an "unknown error 502" dialog box. I can still download music if I do it without using the cart, but I prefer being able to use it. Is anyone else having this problem?

  • Upgraded LR4.3 to LR4.4, how to see photos only on external drive?

    I just upgraded from LR4.3 to 4.4 and now there are no photos in the library.  My photos are on an external hard drive.  How do I get LR4.4 to see my photos, without having to re-import them?

  • [Solved] Vboxdrv Setup Issue

    I've reinstalled kernel26, as well as kernel26-headers. I've tried using Virtualbox-bin and Virtualbox-ose, both of which result in the errors here: Linux hosaka 2.6.36-ARCH #1 SMP PREEMPT Fri Dec 10 20:01:53 UTC 2010 i686 AMD Phenom(tm) 9850 Quad-Co