BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 07-27-2005, 02:09 PM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Apr 2005
Model: 7230
Posts: 30
Post Thanks: 0
Thanked 0 Times in 0 Posts
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"?>
<meta http-equiv="cache-control" content="no-cache"/>
<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><a href="/logOut.jsp">Log Out</a></p>
<card id="brokerSearch" title="The mLounge: Brokers">
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>
<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"/>
<do type="reset" label="Reset">
<setvar name="brokerName" value=""/>
<setvar name="brokerCity" value=""/>
<setvar name="brokerState" value=""/>
<card id="borrowerLoanSearch" title="The mLounge: Borrower Search">
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><a href="#mainSearch">Home</a></p>
<do type="reset" label="Reset">
<setvar name="borrowerLastName" value=""/>
<setvar name="borrowerFirstName" value=""/>
<setvar name="loanNumber" value=""/>
<card id="brokerContactSearch" title="The mLounge: Brokers">
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><a href="#mainSearch">Home</a></p>
<do type="reset" label="Reset">
<setvar name="brokerCode" value=""/>
<setvar name="brokerName" value=""/>

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.
Old 11-01-2005, 01:55 PM   #2 (permalink)
New Member
Join Date: Nov 2005
Model: 7100g
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts

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:
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

10 - 12X15ASUS Intel LGA775 Micro ATX Mini Motherboard + I/O Plate P5G41-M LX2/GB TESTED
ASUS Intel LGA775 Micro ATX Mini Motherboard + I/O Plate P5G41-M LX2/GB TESTED pictureVintage Rare FIC VA-503+ Motherboard Socket 7 1.2A E-O037 - USED TESTED WORKING
Vintage Rare FIC VA-503+ Motherboard Socket 7 1.2A E-O037 - USED TESTED WORKING pictureASUS P4P800 SE Motherboard, USED
ASUS P4P800 SE Motherboard, USED picture1PC USED Eurotherm 590+ motherboard AH470372U002 Tested in good condition
1PC USED Eurotherm 590+ motherboard AH470372U002   Tested in good condition picture

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