|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
WMLscript and JSP
I was trying an application to embedded wmlscript in jsp. And I am calling this script from search.wml file. I just want to see that the parameters are being passed to validate function of reserve.jsp. I can see that control is passed to reserve.jsp, but I am getting compiler error after xml and DOCTYPE declarartion in jsp page. I cannot figure out what's wrong. Help!! please.
Code:
search.wml
<do type="reserve" label="reserve">
<go href="reserve.jsp#validate('Cctype', 'CcNum')"/>
</do>
reserve.jsp
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%
response.setContentType("text/vnd.wap.wmlscript");
%>
extern function validate(type, num)
{
DisplayMessage(type, num);
}
function DisplayMessage(type, num) {
Dialogs.alert(type);
return ;
}
|
|
#2
|
||||
|
||||
|
Don't know JSP at all, well very little anyway from a long time again, sorry. When you get the compiler error, that is a JSP error right? Not an error in the WML that it is spitting out?
You can do basic WML testing in Opera or Firefox web browsers - although there may be parse errors for example in your wml that would cause the page not to load in phone, you can still view the generated WML which can be helpful sometimes...
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ 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 > WAP Programming > WMLscript and JSP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|