> Can you please tell me where I need to add parseUserAgent()? What are the > files I need to alter?
It is a private method that is already present in ClientCapabilityMap class (you do not need to add it). It is in the package org.apache.jetspeed.capability Just add the debug statement as the last line in that method. Scott > -----Original Message----- > From: Deep Narain Singh [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 6:46 AM > To: Jetspeed Users List > Subject: FW: How to access WML site? > > Hi > Thanks for your support. Though I have been able to access WAP site from > bluesunrise.com/jetspeed using the Nokia WAP browser, but here I would > like > to learn the technique how to add third party browser in the list. > Well here, I am a bit confused. I have noticed ClientCapabilityMap class > in > the API. > Though you have explained in a very detailed way how you have modified > arrays & before that how to find out the User Agent from the debug mode. > Can you please tell me where I need to add parseUserAgent()? What are the > files I need to alter? > I shall be highly obliged if you can give me basics steps to follow. > Regards > Deep > > > > -----Original Message----- > From: Paul Spencer [SMTP:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 10:19 AM > To: Jetspeed Users List > Subject: Re: How to access WML site? > > Scott, > I have added Klondike to ClientCapibilityMap. > Paul Spencer > Weaver, Scott wrote: > > I modified these 2 arrays in the ClientCapabilityMap by adding > "Klondike" > to them: > > > > private static final String[] WAP_DEVICES_STARTS = > > { > > "UP.", > > "Nokia", > > "Wapalizer", > > "WAP", > > "Erics", > > "SonyE", > > "Klondike" > > }; > > > > private static final String[] WAP_DEVICES_CONTAINS = > > { > > "UP.Browser", > > "WAP", > > "WML", > > "Wap", > > "wml", > > "Klondike" > > }; > > > > Before you can do this, you will need to figure out what the value of > the > User Agent string is. The way I did it was to add a debug statement to > the > > parseUserAgent() method in ClientCapabilityMap: > > > > private void parseUserAgent() { > > String useragent = getAgent(); > > StringTokenizer st = new StringTokenizer( useragent, "/; ()" ); > > Log.debug("Client Capabillity Map found user agent "+useragent+"\""); > > > > After you know what the user agent is, you can add it to the arrays. > > > > WAP_DEVICES_STARTS should be the first part of the user agent that is > unique. > > > > WAP_DEVICES_CONTAINS any unique string contained within the user agent > that can identify it. > > > > I think supplying either one will work. I did both just to be safe. > > > > hth, > > Scott > > > > > > > >>-----Original Message----- > >>From: DeepSangeet [mailto:[EMAIL PROTECTED]] > >>Sent: Thursday, July 11, 2002 5:20 AM > >>To: Jetspeed Users List > >>Subject: RE: How to access WML site? > >> > >> > >>Hi Scott > >> > >>I have been trying to view the jetspeed wap site through > >>http://www.canvasdreams.com/viewarticle.cfm?articleidC . > >>There I click "Click here to test drive one now." Then, WAP phone > emulator > >>popup and when I click any online site url viz. > >>http://www.bluesunrise.com/jetspeed/ it ask for Jetspeed User ID and > >>thereafter I get the error!!! Any Idea where I went wrong? > >> > >>Anyway, thereafter I tried through http://www.ayg.org/WapWanderer.po, > >>where > >>I get same error "Could not parse the document because there was not a > >>proper XML declaration"!!! > >> > >>Well you mentioned that you have modified "ClientCapabilityMap to > >>correctly > >>identify the Klondike WAP browser". I noticed there is a class called > >>"ClientCapabilityMap". > >> > >>Can you please tell me step by step how you have map Klondike WAP > browser? > >>Is it http://www.ayg.org/WapWanderer.po using Klondice WAP browser? Or > you > >>have installed this browser in local host and configure > >>"ClientCapabilityMap"? > >> > >>I shall be highly obliged for your kind response. > >>Regards > >>Deep > >> > >> > >> > >>-----Original Message----- > >>From: Weaver, Scott [mailto:[EMAIL PROTECTED]] > >>Sent: Wednesday, July 10, 2002 8:03 AM > >>To: 'Jetspeed Users List' > >>Subject: RE: How to access WML site? > >> > >> > >>Well, I had to modify ClientCapabilityMap to correctly identify the > >>Klondike > >>WAP browser. After that, everything worked fine. > >> > >>Thanks for all the help. > >> > >>Scott > >> > >> > >>>-----Original Message----- > >>>From: Weaver, Scott [mailto:[EMAIL PROTECTED]] > >>>Sent: Wednesday, July 10, 2002 7:42 AM > >>>To: 'Jetspeed Users List' > >>>Subject: RE: How to access WML site? > >>> > >>> > >>>>Try the online AnyWhereYouGo WAP Testing tool at > >>>>http://www.ayg.org/WapWanderer.po > >>>> > >>>The bluesunrise site and my site return the same error no matter what > >>>testing options I use. > >>> > >>>Result: > >>>Could not parse the document because there was not a proper XML > >>>declaration > >>> > >>>Suggestion: > >>>Make sure the very first thing sent in your page is an XML declaration. > >>>i.e. no blank lines or other characters. Also make sure you XML > >>>declaration is a valid one, i.e.: <?xml version="1.0"?> <!DOCTYPE wml > >>>PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" > >>>"http://www.wapforum.org/DTD/wml_1.1.xml"> > >>> > >>>Scott > >>> > >>> > >>> > >>>>-----Original Message----- > >>>>From: Glen Carl - CSC [mailto:[EMAIL PROTECTED]] > >>>>Sent: Tuesday, July 09, 2002 4:46 PM > >>>>To: Jetspeed Users List > >>>>Subject: Re: How to access WML site? > >>>> > >>>>Try the online AnyWhereYouGo WAP Testing tool at > >>>>http://www.ayg.org/WapWanderer.po > >>>> > >>>>Maybe this will give some additional > >>>> > >>>>I tryed the sample Bluesunrise site > >>>>http://www.bluesunrise.com/jetspeed/ > >>>>and this worked, so you may want to this too. > >>>> > >>>>Glen > >>>> > >>>>Weaver, Scott wrote: > >>>> > >>>>>>Try the > >>>>>>http://localhost/jetspeed/index.jsp#Login > >>>>>>or better yet, > >>>>>>http://localhost/jetspeed > >>>>>> > >>>>> > >>>>>No dice, same error. > >>>>> > >>>>> > >>>>> > >>>>>>You probably loaded up the html into the WAP browser instead of the > >>>>>> > >>>WML. > >>> > >>>>> > >>>>>Maybe I'm ignorant, but shouldn't Jetspeed send back WML if it is > >>>>> > >>>being > >>> > >>>>accessed via a WAP-device? Am I missing something simple here? > >>>> > >>>>>Scott > >>>>> > >>>>> > >>>>> > >>>>>>-----Original Message----- > >>>>>>From: Glen Carl - CSC [mailto:[EMAIL PROTECTED]] > >>>>>>Sent: Tuesday, July 09, 2002 4:10 PM > >>>>>>To: Jetspeed Users List > >>>>>>Subject: Re: How to access WML site? > >>>>>> > >>>>>>Try the > >>>>>>http://localhost/jetspeed/index.jsp#Login > >>>>>>or better yet, > >>>>>>http://localhost/jetspeed > >>>>>> > >>>>>>You probably loaded up the html into the WAP browser instead of the > >>>>>> > >>>WML. > >>> > >>>>>> Also, WAP has character limits, so too much data received is a > >>>>>> > >>>common > >>> > >>>>>>problem for WAP. More than likely when you loaded up the HTML you > >>>>>>exceeded the character limit. > >>>>>> > >>>>>> > >>>>>> > >>>>>>Weaver, Scott wrote: > >>>>>> > >>>>>> > >>>>>>>I just downloaded the Klondike WAP browser and I get an error when > >>>>>>> > >>>>>>visiting > >>>>>> > >>>>>> > >>>>>>>http://localhost:8080/jetspeed/index.jsp > >>>>>>> > >>>>>>>That says "There was too much data received" > >>>>>>> > >>>>>>>Any ideas? > >>>>>>> > >>>>>>>Scott > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>>-----Original Message----- > >>>>>>>>From: Wimmer, Matthias > [mailto:[EMAIL PROTECTED]] > >>>>>>>>Sent: Tuesday, July 09, 2002 1:14 PM > >>>>>>>>To: 'Jetspeed Users List' > >>>>>>>>Subject: RE: How to access WML site? > >>>>>>>> > >>>>>>>>Deep, > >>>>>>>> > >>>>>>>>I am using the Nokia Modile Internet Toolkit that you can download > >>>>>>>> > >>>>from > >>>> > >>>>>>>>their web site. I access Jetspeed by typing > >>>>>>>> > >>>>>>>> http://localhost/jetspeed > >>>>>>>> > >>>>>>>>which is forwarded to > >>>>>>>> > >>>>>>>> http://localhost/jetspeed/index.jsp#Login > >>>>>>>> > >>>>>>>>Hope this will help. > >>>>>>>> > >>>>>>>>Matthias Wimmer > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>>-----Original Message----- > >>>>>>>>>From: Deep Narain Singh [mailto:[EMAIL PROTECTED]] > >>>>>>>>>Sent: Tuesday, July 09, 2002 12:34 PM > >>>>>>>>>To: 'Jetspeed Users List' > >>>>>>>>>Subject: How to access WML site? > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>Hi > >>>>>>>>>I am trying to access the default WML site of Jetspeed using > >>>>>>>>>GPRS+WAP phone. > >>>>>>>>>I have hosted my site at static IP which can access through > >>>>>>>>>internet using URL ..../jetspeed/index.jsp. > >>>>>>>>> > >>>>>>>>>Can you please help me to know what URL should I type to > >>>>>>>>>accesss using WAP+GPRS? > >>>>>>>>>Should it be ......jetspeed/index.wml? And do I have to make > >>>>>>>>>new file name index.wml? > >>>>>>>>> > >>>>>>>>>If not, please tell me step by step procedure to access the > >>>>>>>>>site using WAP+GPRS? > >>>>>>>>>I believe the I need to add the content type WML. Please guide > >>>>>>>>> > >>me. > >> > >>>>>>>>>I shall be highly obliged for your kind information. > >>>>>>>>>Regards > >>>>>>>>>Deep > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>-- > >>>>>>>>>To unsubscribe, e-mail: > >>>>>>>>><mailto:[EMAIL PROTECTED]> > >>>>>>>>>For additional commands, e-mail: > >>>>>>>>><mailto:[EMAIL PROTECTED]> > >>>>>>>>> > >>>>>>>>-- > >>>>>>>>To unsubscribe, e-mail: <mailto:jetspeed-user- > >>>>>>>>[EMAIL PROTECTED]> > >>>>>>>>For additional commands, e-mail: <mailto:jetspeed-user- > >>>>>>>>[EMAIL PROTECTED]> > >>>>>>>> > >>>>>>> > >>>>>>-- > >>>>>>To unsubscribe, e-mail: <mailto:jetspeed-user- > >>>>>>[EMAIL PROTECTED]> > >>>>>>For additional commands, e-mail: <mailto:jetspeed-user- > >>>>>>[EMAIL PROTECTED]> > >>>>>> > >>>>> > >>>> > >>>>-- > >>>>Glen Carl > >>>>Computer Sciences Corporation (CSC) > >>>>(831)656-4543 > >>>>[EMAIL PROTECTED] > >>>> > >>>> > >>>>-- > >>>>To unsubscribe, e-mail: <mailto:jetspeed-user- > >>>>[EMAIL PROTECTED]> > >>>>For additional commands, e-mail: <mailto:jetspeed-user- > >>>>[EMAIL PROTECTED]> > >>>> > >> > >>-- > >>To unsubscribe, e-mail: <mailto:jetspeed-user- > >>[EMAIL PROTECTED]> > >>For additional commands, e-mail: <mailto:jetspeed-user- > >>[EMAIL PROTECTED]> > >> > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:jetspeed-user- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:jetspeed-user- > [EMAIL PROTECTED]>
