BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-27-2005, 03: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"?>
<!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 (permalink)
New Member
 
Join Date: Nov 2005
Model: 7100g
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
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

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





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