WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 8th, 2004, 02:57 PM
c1aude c1aude is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 c1aude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Jsp + Wml

I m using tomcat 4.1 , nokia internet toolkit 4.0, eclipse 2.1 to do a project ..

the problem is i can't seem to view my .jsp page in the mirco-browser ... it keep just keep loading and never show anything..

Any sort of help is welcome ....

Thanx in advance ..

sample jsp file(Login.jsp)
--------------------------
<%@ page import=" Controller.* " %>
<%
response.setContentType("text/vnd.wap.wml");

String userid = request.getParameter("userid");
String password = request.getParameter("password");

Controller controller = new Controller();

boolean status = controller.validateLogin(userid , password);

if(status == true)
{

}
else
{
}


%>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<wml>

<!-- Possible <head> elements here. -->

<template>
<!-- Template implementation here. -->
<do type="prev"><prev/></do>
</template>

<card id="card1" title="Card #1">

<do type="unknown" label="Next">
<go href="#card2"/>
<postfield name="userid" value="$userid"/>
<postfield name="password" value="$password"/>
</do>
<!-- Additional <do> elements here. -->

<p align="center">
<!-- Card implementation here. -->
<big><b>First Card</b></big>
User ID : <input type="text" name="userid"/>
Password : <input type="text" name="password"/>
</p>

<!-- Additional <p> elements here. -->
</card>

<card id="card2" title="Card #2">
<p align="center">
<big><b>Second Card</b></big>
$(status)
</p>
</card>

</wml>

Reply With Quote
  #2  
Old October 21st, 2004, 01:58 AM
kanchanpaul kanchanpaul is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 2 kanchanpaul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up jsp + wap

Quote:
Originally Posted by c1aude
I m using tomcat 4.1 , nokia internet toolkit 4.0, eclipse 2.1 to do a project ..

the problem is i can't seem to view my .jsp page in the mirco-browser ... it keep just keep loading and never show anything..

Any sort of help is welcome ....

Thanx in advance ..

sample jsp file(Login.jsp)
--------------------------
<%@ page import=" Controller.* " %>
<%
response.setContentType("text/vnd.wap.wml");

String userid = request.getParameter("userid");
String password = request.getParameter("password");

Controller controller = new Controller();

boolean status = controller.validateLogin(userid , password);

if(status == true)
{

}
else
{
}


%>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<wml>

<!-- Possible <head> elements here. -->

<template>
<!-- Template implementation here. -->
<do type="prev"><prev/></do>
</template>

<card id="card1" title="Card #1">

<do type="unknown" label="Next">
<go href="#card2"/>
<postfield name="userid" value="$userid"/>
<postfield name="password" value="$password"/>
</do>
<!-- Additional <do> elements here. -->

<p align="center">
<!-- Card implementation here. -->
<big><b>First Card</b></big>
User ID : <input type="text" name="userid"/>
Password : <input type="text" name="password"/>
</p>

<!-- Additional <p> elements here. -->
</card>

<card id="card2" title="Card #2">
<p align="center">
<big><b>Second Card</b></big>
$(status)
</p>
</card>

</wml>



hi buddy,

Micro browser loads the whole deck , but shows only one card at a time. Here u r checking the usersid and password at the time of loading the jsp page. u will always get null value, u have to do the same thing in the next jsp page. when u go to the next card , it only shows the contents of that card rather then loading the whole deck again.
Hope it helps.

Cheers
Kanchan

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Jsp + Wml


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway