|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a servlet called Greeting.java which is simply meant to display hello world.
In a wap code I have : <do type="accept" label="Send Info"> <go href="/Greeting.java" method="get"> </go> </do> When I goto my phone emulator, it tries to download "something"!? instead of displaying my message. Can someone please enlighten me? How do I make my java code display hello world |
|
#2
|
||||
|
||||
|
Haven't played with Java for a while, but you would need to set the content type for the file:
Code:
res.setContentType( "text/vnd.wap.wml" ); Make sure that the file contains valid WML, otherwise nothing will display. HTH. Good luck. See the resources sticky in this forum. Although there is nothing specifically for Java, most of the points stand true.
__________________
Cheers, Jamie # mdb4u | 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. ![]() __________________ |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > How To Call A Servlet From A Wap Page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|