cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oro smith <orosm...@sify.com>
Subject Re: Cocoon and WAP problems
Date Mon, 21 Jun 2004 14:47:41 GMT
the content type is text/html for all the pages after login page. but this is probably because
i tested the pages without logging in.
there is no session and the server is returning a text response which shows something like
"cannot get store connect null".


Quoting  m_rolappe@web.de:

> 
> 
> Oro smith schrieb:
> 
> > On comparing the http headers,
> > 
> > The content type of the response header seems to be text/vnd.wap.wml
> for the login page.
> > 
> > However for all the pages after that the content type is text/html,
> even though it is a wml page.
> > 
> > is this right? 
> > 
> > Smith.
> 
> well, I guess that's the problem. I don't know your sitemap so I can't
> 
> tell you exactly how to correct the problem. make sure that the wml 
> pages are serialized correctly (i.e. using a serializer setting the 
> correct mime type).
> 
> example serializer snippet:
> 
> ...
>              <map:serializer name="wml" mime-type="text/vnd.wap.wml"
>              	logger="sitemap.serializer.wml"
>              	src="org.apache.cocoon.serialization.XMLSerializer">
>                  <doctype-public>-//WAPFORUM//DTD WML 
> 1.1//EN</doctype-public>
>  
> <doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-system>
>                  <encoding>ISO-8859-1</encoding>
>              </map:serializer>
> 
> ...
> 
> 
> > 
> > 
> > Quoting  m_rolappe@web.de:
> > 
> > 
> >>
> >>Oro smith schrieb:
> >>
> >>>Quoting  Conal.Tuohy@vuw.ac.nz:
> >>>
> >>>
> >>>
> >>>>Hey Oro, maybe the problem is your WAP client doesn't like query
> >>
> >>strings
> >>
> >>>>in the URL? I know it sounds weird, but it could be.
> >>>>
> >>>>You have a matcher for "test.wml" - try accessing it with some
> >>
> >>(dummy)
> >>
> >>>>parameters, e.g. "test.wml?foo=bar"
> >>>>
> >>>>If that IS your problem then instead of URLs like:
> >>>>mail/mail/mail.wml?cmd=cat-message-by-id&id=3
> >>>>... you could change your sitemap to handle URLs like:
> >>>>mail/mail/cmd/cat-message-by-id/3/mail.wml
> >>>
> >>>
> >>>There is a link which goes to 
> >>>mail/mail/mail(2).wml 
> >>>
> >>>It is the link that goes to the next page of the inbox. This page
> is
> >>
> >>also not displayed. The url does not have a query string though. 
> >>
> >>try to change the url pattern so that it doesn't contain parentheses,
> 
> >>e.g.: mail/mail/mail_2_.wml
> >>
> >>some gateways don't like certain characters in URLs, e.g. commas.
> >>
> >>and as already mentioned check/compare HTTP headers.
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >>For additional commands, e-mail: users-help@cocoon.apache.org
> >>
> >>
> > 
> > 
> > -------------------------------------------------
> > Still single? Click here to find the perfect match.
> >                                                                       
>          
> > http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

-------------------------------------------------
Still single? Click here to find the perfect match.
                                                                                
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message