- From: nitin gupta <nits77@lycos.com>
- Date: Thu, 11 Oct 2001 11:04:10 +0530
- To: www-mobile@w3.org
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 01:34:48 UTC