Gaute Rønningen
asked on
WAP & Oracle database
So here's the problem, I'm on a project where we're about to create a Java application which is going to use a Oracle database. We also want the database to be accessible through WAP.
We've been able to make ourselves a Login page.
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="Login">
<p>
Username: <input name="Username" size="15"/><br/>
Password: <input name="Password" size="15"/><br/>
</p>
</card>
</wml>
Now we want this is where the database comes in. Checking username and password up against previously added records.
How do we do that?
Any help appreciated,
eX.
We've been able to make ourselves a Login page.
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="Login">
<p>
Username: <input name="Username" size="15"/><br/>
Password: <input name="Password" size="15"/><br/>
</p>
</card>
</wml>
Now we want this is where the database comes in. Checking username and password up against previously added records.
How do we do that?
Any help appreciated,
eX.
Hi,
look at here..
http://doug.burns.tripod.com/wap.html
http://nds1.forum.nokia.com/nnds/ ForumDownloadServlet?id=40 16&name=Or acle_mobil e_WP_en.pd f
i hope it may help you//
R.K
look at here..
http://doug.burns.tripod.com/wap.html
http://nds1.forum.nokia.com/nnds/ ForumDownloadServlet?id=40
i hope it may help you//
R.K
> Did a little research. We gotta use WMLScript, but neither of us know the WMLScript language and how it operates.
Some WMLScript tutorials can be found at:
http://www.developershome.com/wap/wmlscript/
http://www.w3schools.com/wmlscript/default.asp
It should be noted that WMLScript is a client-side scripting language. To check the username and password against the records in a database, I think you need to send the data back to the server first (Have a look here http://www.developershome.com/wap/wml/wmlSendingData.asp). Then use a server-side language like JSP to retrieve the record in the database and compare it with the user data.
Some WMLScript tutorials can be found at:
http://www.developershome.com/wap/wmlscript/
http://www.w3schools.com/wmlscript/default.asp
It should be noted that WMLScript is a client-side scripting language. To check the username and password against the records in a database, I think you need to send the data back to the server first (Have a look here http://www.developershome.com/wap/wml/wmlSendingData.asp). Then use a server-side language like JSP to retrieve the record in the database and compare it with the user data.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Another example here using only the cellphone number to login (always using JSP and WAP):
<%
response.setContentType("t ext/vnd.wa p.wml");
response.setIntHeader("Exp ire",-1);
response.setHeader("Pragma ","no-cach e");
response.setHeader("CacheC ontrol","n o-cache, must-revalidate");
%>
<%String sUrl=(String)request.getAt tribute("w msUrl");%>
<?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 forua="true" http-equiv="Cache-Control" content="max-age=0"/>
</head>
<card id="PhoneLogin">
<do type="accept" label="Sgte.">
<go href="<%=sUrl%>" method="post">
<postfield name="event" value="makeloginphone"/>
<postfield name="phone" value="$(phone)"/>
</go>
</do>
<p align="left">
Telefono: <input type="text" name="phone" value="" format="N*" maxlength="15" emptyok="false"/>
</p>
</card>
</wml>
Hope it helps.
-tom
<%
response.setContentType("t
response.setIntHeader("Exp
response.setHeader("Pragma
response.setHeader("CacheC
%>
<%String sUrl=(String)request.getAt
<?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 forua="true" http-equiv="Cache-Control"
</head>
<card id="PhoneLogin">
<do type="accept" label="Sgte.">
<go href="<%=sUrl%>" method="post">
<postfield name="event" value="makeloginphone"/>
<postfield name="phone" value="$(phone)"/>
</go>
</do>
<p align="left">
Telefono: <input type="text" name="phone" value="" format="N*" maxlength="15" emptyok="false"/>
</p>
</card>
</wml>
Hope it helps.
-tom
Sorry a correction on my first answer...
When I said: WAP is like ordinary HTML
I mean: WML is like ordinary HTML
WAP is a protocol (wireless application protocol).
-tom
When I said: WAP is like ordinary HTML
I mean: WML is like ordinary HTML
WAP is a protocol (wireless application protocol).
-tom
Vernabili,
I do not think that all answers have the same value this time...
I don't see that a split as the correct closing method in this question.
My answers are more specific and to the point that the others.
That is my point of view,
-tom
I do not think that all answers have the same value this time...
I don't see that a split as the correct closing method in this question.
My answers are more specific and to the point that the others.
That is my point of view,
-tom
ASKER
Sorry, didn't check EE for awhile...
ASKER