portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cabio, Michelle (Michelle)" <ca...@avaya.com>
Subject RE: WML problems...
Date Tue, 04 Jun 2002 13:30:29 GMT


I dont get the wml msg appearing in the OpenWave DOS window...
I only get the Cache Miss and Net Request msgs .....

I have the portlet in my xreg configured for WML....
and there seems to be a bug in the Nokia simulator...so for now,
I'm doing away with testing with that...

How do I return a wml card to the portlet??


-----Original Message-----
From: Chris Kimpton [mailto:kimptoc_mail@yahoo.com]
Sent: Monday, June 03, 2002 7:48 PM
To: Jetspeed Developers List
Subject: Re: WML problems...


--- "Cabio, Michelle (Michelle)" <cabio@avaya.com> wrote:
> I'm trying to simply print out a txt msg to a WAP device on the
> Open wave simulator...
> My portlet looks like this....and it gives the following error
> after login...
> No translator for content-type: text/html
> sometimes it gives 
> Translation failed for content-type: text/vnd.wap.wml
> Any pointers on how to fix this problem??

>                 String text = new StringBuffer()
>                .append("<?xml version='1.0'?>")
>                .append("<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML
> 1.1//EN' 'http://www.wapforum.org/DTD/wml_1.1.xml'>")
>                .append("<wml>")

Are you using the default jetspeed config of controllers/controls?

I believe they wrap the portlet output in the <wml> elements - so you
only need to return a card in your portlet.

You should be able to see the wml returned by jetspeed in the
OpenWave DOS window - does that look correct to you?  

I also tried the nokia simulator - its shows more info on the wml
returned (although it seemed buggy to me), that might help.

I assume you have the basics like the anon psml returning your
portlet and your portlet is configured in an xreg file with support
for media-type wml...

>                .append("<card id='card1' title='Card 1'>")
>                .append("<p>HELLO! CAN U SEE ME?</p>")
>                .append("</card>")
>                .append("</wml>")
>                .toString()
>                .trim();


http://www.soccer2002.org.uk - The Game is On!

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>

To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>

View raw message