RE: Problem encountered

It sounds as if you have to set up your web-server-mime-type for WML. just
as .html docs have mime-type text/html .wml files has to be text/vnd.wap.wml
otherwise the web-server will set a default content-type for .wml files,
which the wml client wont understand.

Hope that helps.

Regards

Tomas Majak

-----Original Message-----
From: nitin gupta [mailto:nits77@lycos.com]
Sent: den 11 oktober 2001 07:34
To: www-mobile@w3.org
Subject: Problem encountered


hi , 
  I have got stuck with a few problems . I would be highly grateful if
anyone could suggest me a way out of it .
 

THe problem is as follows :-
 I have a WAP application where I am taking user name and password and
passing it to my servlet . My servlets tries to do the authenication using
JDBC and then returns back to my aaplication for futhur processing . I am
using BEA (weblogic) server , where my servlets are posted . But I am
encountering a problem in calling my wml file back from the servlets . I
mean after doing the aunthentication I define a wml card called status.wml
which inturns  call a predefined WML card called menu.wml . I am able to
reach till status.wml because that is defined in my servlet itself , but it
does not open menu.wml which was defined orginally itself . 
Here is my code :-

resp.setContentType("text/vnd.wap.wml");		
PrintWriter out = new PrintWriter(resp.getOutputStream());
out.println("<?xml version=\"1.0\"?>");
.......... authentication using JDBC
out.println("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\"> ");	
out.println("<wml>");
out.println("<card id=\"status\" title=\"status\">");
out.println("<p align=\"center\" >");
out.println("Welcome ");
out.println("<a href=\"menu.wml\">");			
out.println("Proceed");		
out.println("</a>");                  		
out.println("</p>");
out.println("</card>");
out.println("</wml>");
out.flush();     
out.close();

While opening menu.wml it gives a error :-
              
                 "MimeType is NULL!"

Could you please suggest me as to where is the problem ..


Thanks for your time and your help,
nitin




Make a difference, help support the relief efforts in the U.S.
http://clubs.lycos.com/live/events/september11.asp

Received on Thursday, 11 October 2001 03:50:08 UTC