Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003

    problem with wap server

    We are a group of students making our major examproject we've got a problem about receiving data who are send from the wap-browser and was supposed to send it to the database, but somewhere on the line the data disappears :o(

    We've got a WAP browser (Nokia 6210(wap protokol 1.1)) and have made a wml file application. We have set all the mime-types for wap in web.xml

    We're trying to input data in a database via the wap-telephone.

    Those input fields where data is written and the link who forwards it futher on into the system is as shown:

    <card id="input" title="Insert i DB"> <p>

    Car nr :<input name="carid" type="text" size="15" format="*N"/><br/>
    Car type:<input name="cartype" type="text" size="15" format="*M"/><br/>
    Color:<input name="color" type="text" size="15" format="*M"/>
    Year :<input name="year" type="text" size="15" at="*N"/><br/>
    Km:<input name="km" type="text" size="15" format="*N"/><br/>
    Gear:<input name="gear" type="text" size="15" format="*N"/>
    Price:<input name="price" type="text" size="15" format="*N"/><br/>
    Quamtum:<input name="quantum" type="text" size="15" format="*N"/>
    <anchor>Previous Page<prev/></anchor></p>
    <p><a title="ASA-TES" href="#ASA-TES">Tilbage</a><br/></p>

    //forwards data
    <p><a href="http://localhost:8080/ASA-TES/WML_File/input.jsp?carid=$(carid)&amp;cartype=$(cartype)&amp;

    The problem is that the jsp file or wml file doesn't receive data. We are unsure whether it is the configuration of our Jakarta/Tomcat 4.1.12 server, the jsp, or wml files.

    Code receiving data:
    <%@ page import="java.io.*,java.util.*" %>
    <% request.setContentType("text/vnd.wap.wml");%>
    <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    <wml><card id=”Input”>
    <jsp:useBean id="info" class="JAVA_File.Beans.CarInfo" scope="session"/>
    <%int carid = Integer.parseInt( request.getParameter("carid") );
    String cartype = request.getParameter("cartype");
    String color = request.getParameter("color");
    int year = Integer.parseInt( request.getParameter("year") );
    int km = Integer.parseInt( request.getParameter("km") );
    int gear = Integer.parseInt( request.getParameter("gear") );
    int price = Integer.parseInt( request.getParameter("price") );
    int quantum = Integer.parseInt( request.getParameter("quantum") );
    int newcar = info.setCar(carid,cartype,color,year,km,gear,price,quantum);

    I hope someone is able to help us
    Thanks in advance
    Annette Andersen

  2. #2
    Registered User
    Join Date
    Mar 2003
    Dear da11002,

    I jsut encountered the same problem with you.
    Did you find out any solutions?
    Plz share with us if u don't mind ^_^.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts