BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-27-2005, 02:09 PM   #1
sacramentojoe
Knows Where the Search Button Is
 
Join Date: Apr 2005
Model: 7230
Posts: 30
Default WML Error

Please Login to Remove!

I have this code below that works fine in the simulator but when I try to access it on the device it fails and says WML is invalid. I can use the Micro$oft Validator and it validates it just fine.

Here is my wap / wml code. Any Ideas?

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv="cache-control" content="no-cache"/>
</head>
<card id="mainSearch" title="The mLounge: Search">
<p>Welcome <br/><br/>
<a href="#brokerSearch">Broker Search</a><br/><br/>
<a href="#borrowerLoanSearch">Borrower / Loan Search</a><br/><br/>
<a href="#brokerContactSearch">Broker Contact Search</a><br/><br/>
</p>
<p><a href="/logOut.jsp">Log Out</a></p>
</card>
<card id="brokerSearch" title="The mLounge: Brokers">
<p><br/>
Broker Name:
<input name="brokerName"/><br/>
Broker City:
<input name="brokerCity"/><br/>
Broker State:
<select name="brokerState">
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AR">Arizona</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="DC">Washington DC</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
<br/>
</p>
<p><a href="#mainSearch">Home</a></p>
<do type="accept" label="Search">
<go href="/mLounge/brokerLookupSearchResults.jsp">
<postfield name="brokerName" value="$(brokerName)"/>
<postfield name="brokerCity" value="$(brokerCity)"/>
<postfield name="brokerState" value="$(brokerState)"/>
<postfield name="method" value="post"/>
</go>
</do>
<do type="reset" label="Reset">
<refresh>
<setvar name="brokerName" value=""/>
<setvar name="brokerCity" value=""/>
<setvar name="brokerState" value=""/>
</refresh>
</do>
</card>
<card id="borrowerLoanSearch" title="The mLounge: Borrower Search">
<p><br/>
Borrower:<br/>
Last Name:
<input name="borrowerLastName" emptyok="false"/><br/>
First Name:
<input name="borrowerFirstName" format=""/><br/>
<a href="mLounge.wmls#checkLastName()">Search</a><br/>
Loan No:
<input name="loanNumber" format="*N"/><br/>
<a href="mLounge.wmls#checkLoanNumber()">Search</a><br/>
</p>
<p><a href="#mainSearch">Home</a></p>
<do type="reset" label="Reset">
<refresh>
<setvar name="borrowerLastName" value=""/>
<setvar name="borrowerFirstName" value=""/>
<setvar name="loanNumber" value=""/>
</refresh>
</do>
</card>
<card id="brokerContactSearch" title="The mLounge: Brokers">
<p>
Broker Code:
<input name="brokerCode" format="*N" /><br/>
<a href="brokerContactSearchResults.jsp?brokerCode=$( brokerCode)">Search</a& gt;<br/>
Broker Name:
<input name="brokerName" /><br/>
<a href="brokerContactSearchResults.jsp?brokerName=$( brokerName)">Search</a& gt;
</p>
<p><a href="#mainSearch">Home</a></p>
<do type="reset" label="Reset">
<refresh>
<setvar name="brokerCode" value=""/>
<setvar name="brokerName" value=""/>
</refresh>
</do>
</card>
</wml>

oh yeah, the code belongs to mainSearch.jsp

I have this before any of the code.
<%@ page language="java" import="java.util.*" contentType="text/vnd.wap.wml" extends="com.ncen.server.jsp.MobileJspPage" errorPage="/mLounge/errorPage.jsp" %>

The inital page loads fine. THe errors occur when I try to access the borrowerLoanSearch card and the brokerContactSearch card.

I can access the brokerSearch card no problem.
Offline  
Old 11-01-2005, 01:55 PM   #2
lmflores
New Member
 
Join Date: Nov 2005
Model: 7100g
Posts: 3
Default

I don't know if it is but i looked something missing

<a href="brokerContactSearchResults.jsp?brokerCode=$( broker Code)">Search</a& gt;<br/>
Broker Name:
<input name="brokerName" /><br/>
<a href="brokerContactSearchResults.jsp?brokerName=$( broker Name)">Search</a& gt;

It should be:
</a>
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


LOT OF 10 EACH IBM PPC750GLECR2H33V-G PowerPC 32-Bit 800 MHz RISC Processor  picture

LOT OF 10 EACH IBM PPC750GLECR2H33V-G PowerPC 32-Bit 800 MHz RISC Processor

$29.99



Dent-X 810 Transport Rack for Basic, XL, Plus, and 9000 Film Processor Developer picture

Dent-X 810 Transport Rack for Basic, XL, Plus, and 9000 Film Processor Developer

$299.00



Air Techniques A/T 2000XR Dental Film Processor Fixer Rack picture

Air Techniques A/T 2000XR Dental Film Processor Fixer Rack

$175.00



DENT -X FILM PROCESSOR MOTOR picture

DENT -X FILM PROCESSOR MOTOR

$475.00



Intel AMD CPU Clam Shell Blister Pack with Anti Static Foam Pad - Qty 40 - New picture

Intel AMD CPU Clam Shell Blister Pack with Anti Static Foam Pad - Qty 40 - New

$47.88



New NI cRIO-9045 1.3Ghz Dual Core 2GB DRAM KINTEX-7 FPGA 8 Slot Controller  picture

New NI cRIO-9045 1.3Ghz Dual Core 2GB DRAM KINTEX-7 FPGA 8 Slot Controller

$12888.00







Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.