|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi,
I am new to WML, and also java. I have created a wml login page with php, i am submitting this login page to another page, and get the details entered. now i have to pass this variable to a servlet for validation, is there a way to do this. please help, this is urgent. thanks |
|
#2
|
||||
|
||||
|
Hi, welcome to DS.
You may want to describe in more details what you actual problem is. To answer your question: Quote:
__________________
Cheers, Jamie # mdb4u | The mobile movie database | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
|||
|
|||
|
here goes the scenario
my first page is login.php Code:
<?php header('Content-type: text/vnd.wap.wml'); ?>
<?php echo '<?xml version="1.0"?'.'>'; ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "(URL address blocked: See forum rules)">
<wml>
<card id="card1" title="Login">
<p>
<b>Login</b><br/><br/>
Username<br/>
<input name="username" type="input"/><br/>
Password<br/>
<input name="password" type="password"/><br/><br/>
<anchor>
<go method="post" href="checkLogin.php">
<postfield name="username" value="$(username)"/>
<postfield name="password" value="$(password)"/>
</go>
Submit
</anchor>
</p>
</card>
</wml>
my checkLogin.php page Code:
<?php header('Content-type: text/vnd.wap.wml'); ?>
<?php echo '<?xml version="1.0"?'.'>'; ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "(URL address blocked: See forum rules)">
<wml>
<card id="card1">
<p>
Data received at the server:<br/>
Name: <?php echo $_POST["username"]; ?><br/>
password: <?php echo $_POST["password"]; ?><br/>
</p>
</card>
</wml>
the question is what should i do in this checkLogin.php to pass the username and password to a servlet which validates the username and password and returns back a string as status, and how would i get that and use it. and yes, i have that servlet done already, as its used for other applications. this is just the start, i need pass few more things to different servlet and get the response back. |
|
#4
|
||||
|
||||
|
Java is really beyond my knowledge base,
but here it depends on what your servlet actually does.... The following link shows some basic code that prints out HTML page, but might be adaptable for WML... http://www.java2s.com/Code/Java/Servlets/Validation.htm Sorry I can't be of more help than that. |
|
#5
|
|||
|
|||
|
to be true, i dont want to write java code, all the servlets are ready, i just want to use them i.e. pass request to them and get the response back. not necessary that i use php, it may be any thing, even if wml can do this, it would be fantastic.
thanks for your comments, and if you can help further it would be really wonderful |
|
#6
|
||||
|
||||
|
If you have the servlets already,
then I suggest digging around the java forums. They will probably be able to help you more there. TBH, WML is the same as any other mark up for the web. Only differences are limited tags and few differences in interaction (forms etc..) |
|
#7
|
|||
|
|||
|
ok, thanks
will try searching in java forum, and may be post there for help aswell. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > WML - Wap + Php + Tomcat |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|