<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5272761813291126226</id><updated>2024-09-08T17:51:25.721+05:30</updated><category term="Java"/><category term="Eclipse"/><category term="Interceptor"/><category term="Struts2"/><category term="Google App Engine"/><category term="Internet"/><category term="Modem"/><category term="Motorola"/><category term="Nokia"/><category term="Tomact"/><category term="Twitter"/><category term="Ubuntu"/><category term="jtwitter"/><title type='text'>Live with Pranay</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://livewithpranay.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://livewithpranay.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Pranay Karmakar</name><uri>http://www.blogger.com/profile/17395719837851149980</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRWtRnGVwKI5iVrLdeVM475ibpbLhjsQxDHXHsGn99oiOYImtG22aFqjF5PZnECw9Iz4O5PuUpMY-hLhSOg6M-887swqvluKnnuWS9-HS7yg6LgxaMp2tX9mxKcyrz17g/s220/pranay.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5272761813291126226.post-2660983569323611053</id><published>2010-07-07T22:39:00.012+05:30</published><updated>2010-07-09T10:36:48.024+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Interceptor"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Struts2"/><title type='text'>Struts2 : Token Session Interceptor</title><content type='html'>&lt;div&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;In case of multiple request using &lt;/span&gt;&lt;strong style=&quot;font-family: arial;&quot;&gt;same session,&lt;/strong&gt;&lt;span style=&quot;font-family: arial;&quot;&gt; this interceptor is capable to block all the subsequesnt requests, while the first request is being processed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Here is the sample code:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong style=&quot;font-family: arial;&quot;&gt;index.jsp&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=ISO-8859-1&quot;&lt;br /&gt;pageEncoding=&quot;ISO-8859-1&quot;%&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ taglib prefix=&quot;s&quot; uri=&quot;/struts-tags&quot; %&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Insert title here&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;s:form action=&quot;execActionAction&quot; method=&quot;POST&quot;&amp;gt;&lt;br /&gt;&amp;lt;s:textfield name=&quot;somestring&quot;/&amp;gt;&lt;br /&gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;s:submit value=&quot;Enter&quot;/&amp;gt;&lt;br /&gt;&amp;lt;s:token /&amp;gt;&lt;br /&gt;&amp;lt;/s:form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;strong style=&quot;font-family: arial;&quot;&gt;result.jsp&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=ISO-8859-1&quot;&lt;br /&gt;pageEncoding=&quot;ISO-8859-1&quot;%&amp;gt;&lt;br /&gt;&amp;lt;%@ taglib prefix=&quot;s&quot; uri=&quot;/struts-tags&quot; %&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Result&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;s:property value=&quot;somestring&quot; /&amp;gt;&lt;br /&gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;strong style=&quot;font-family: arial;&quot;&gt;Test.java&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;package com.Test;&lt;br /&gt;&lt;br /&gt;import com.opensymphony.xwork2.ActionSupport;&lt;br /&gt;&lt;br /&gt;public class Test extends ActionSupport{&lt;br /&gt;&lt;br /&gt;private String somestring;&lt;br /&gt;&lt;br /&gt;public String getSomestring() {&lt;br /&gt;return somestring;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void setSomestring(String somestring) {&lt;br /&gt;this.somestring = somestring;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public String execute() throws Exception{&lt;br /&gt;&lt;br /&gt;System.out.println(&quot;Printing Token-Session&quot;);&lt;br /&gt;&lt;br /&gt;return SUCCESS;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;strong style=&quot;font-family: arial;&quot;&gt;struts.xml&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE struts PUBLIC&lt;br /&gt;&quot;-//Apache Software Foundation//DTD Struts Configuration 2.0//EN&quot;&lt;br /&gt;&quot;http://struts.apache.org/dtds/struts-2.0.dtd &quot;&amp;gt;&lt;br /&gt;&amp;lt;struts&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;include file=&quot;struts-default.xml&quot; /&amp;gt;&lt;br /&gt;&amp;lt;package name=&quot;mypkgTest&quot; extends=&quot;struts-default&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;action name=&quot;execActionAction&quot; class=&quot;com.Test.Test&quot;&amp;gt;&lt;br /&gt;&amp;lt;interceptor-ref name=&quot;basicStack&quot; /&amp;gt;&lt;br /&gt;&amp;lt;interceptor-ref name=&quot;tokenSession&quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;result name=&quot;success&quot;&amp;gt;/result.jsp&amp;lt;/result&amp;gt;&lt;br /&gt;&amp;lt;result name=&quot;invalid.token&quot;&amp;gt;/index.jsp&amp;lt;/result&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/action&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/package&amp;gt;&lt;br /&gt;&amp;lt;/struts&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;strong style=&quot;font-family: arial;&quot;&gt;web.xml&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br /&gt;&amp;lt;web-app xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; xmlns:web=&quot;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot; id=&quot;WebApp_ID&quot; version=&quot;2.5&quot;&amp;gt;&lt;br /&gt;&amp;lt;display-name&amp;gt;myBlankProject&amp;lt;/display-name&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;filter&amp;gt;&lt;br /&gt;&amp;lt;filter-name&amp;gt;struts2&amp;lt;/filter-name&amp;gt;&lt;br /&gt;&amp;lt;filter-class&amp;gt;org.apache.struts2.dispatcher.FilterDispatcher&amp;lt;/filter-class&amp;gt;&lt;br /&gt;&amp;lt;/filter&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;filter-mapping&amp;gt;&lt;br /&gt;&amp;lt;filter-name&amp;gt;struts2&amp;lt;/filter-name&amp;gt;&lt;br /&gt;&amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;&amp;lt;/filter-mapping&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;welcome-file-list&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;index.html&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;index.htm&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;index.jsp&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;default.html&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;default.htm&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;default.jsp&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;/welcome-file-list&amp;gt;&lt;br /&gt;&amp;lt;/web-app&amp;gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;The below form I&#39;ve filled out with some text and pressed submit.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHwidWyJV5eo9gO2saud13paQADcaxPuI8cMCNgtd6r5AT9_DYp894FgV3LfGT-GoXoGxhwgxPDxgdF5S0CG_yj5Oh8dZ7aU3Cx_rcPO1HSVxtJgFk0hQAPvmRuIBEDDO3bbFpimfsNPI/s1600/1.jpg&quot;&gt;&lt;img style=&quot;margin: 0px 10px 10px 0px; width: 176px; float: left; height: 97px;&quot; id=&quot;BLOGGER_PHOTO_ID_5491584497144888098&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHwidWyJV5eo9gO2saud13paQADcaxPuI8cMCNgtd6r5AT9_DYp894FgV3LfGT-GoXoGxhwgxPDxgdF5S0CG_yj5Oh8dZ7aU3Cx_rcPO1HSVxtJgFk0hQAPvmRuIBEDDO3bbFpimfsNPI/s320/1.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;The result page displayed the string correctly.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK93xwHMVO0GNHGEUvzRY17HzrLzsC6zctAPaGbkCvK2l-5EZvThfidkmGxD28d-oVDPFxqaX_Tg9pAxQKi_bTsxCSg8gxdeszH59ose9ac9ndVIzsfyzydM-bAa1UcglrRd83JIsWodg/s1600/1a.jpg&quot;&gt;&lt;img style=&quot;margin: 0px 10px 10px 0px; width: 176px; float: left; height: 97px;&quot; id=&quot;BLOGGER_PHOTO_ID_5491584783105947202&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK93xwHMVO0GNHGEUvzRY17HzrLzsC6zctAPaGbkCvK2l-5EZvThfidkmGxD28d-oVDPFxqaX_Tg9pAxQKi_bTsxCSg8gxdeszH59ose9ac9ndVIzsfyzydM-bAa1UcglrRd83JIsWodg/s320/1a.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;In my Model (POJO) I&#39;ve print another string on the console which is &quot;Printing Token-Session&quot;. It is already there in the console as you can verify in the below screen shot.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-wFvkiwHqV9-Gadouz8pH1dx-HvyhaYQwI5H5Dl7F4UTvTfR2VpFENIRF1SdmiSiTR81lltVTtoZOOHR5OP10SbAMTvSme0XQWN_8u4PnALbjyDMYI13oQb2CCUb2i7XQmBT-i1SgtoY/s1600/2.jpg&quot;&gt;&lt;img style=&quot;margin: 0px 10px 10px 0px; width: 568px; float: left; height: 130px;&quot; id=&quot;BLOGGER_PHOTO_ID_5491585202791602978&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-wFvkiwHqV9-Gadouz8pH1dx-HvyhaYQwI5H5Dl7F4UTvTfR2VpFENIRF1SdmiSiTR81lltVTtoZOOHR5OP10SbAMTvSme0XQWN_8u4PnALbjyDMYI13oQb2CCUb2i7XQmBT-i1SgtoY/s320/2.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;br /&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Now, I&#39;ve resubmit the form by pressing &quot;Refresh&quot; button on the browser. Now you can see that there is only one occurrence of the string &quot;Printing Token Session&quot; on the console even I&#39;ve resubmitted the form &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial; font-size: 85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;and there will be an  Warning stating that&quot;Form token &lt;session&gt; does not match the session token null.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFTTBExLjqk6pKu8-88zz9QrXL3M4TFnztcxVBXJ05-VwcHCPzbjUeyRbV6QtZRCuT5Us4jGrG_b4xD0xV959-PXlIFbgnwpQauvDKZs7YO9AMv_uWIaJSiUEqxPn9ngh6monIUkhduHU/s1600/3.jpg&quot;&gt;&lt;img style=&quot;margin: 0px 10px 10px 0px; width: 565px; float: left; height: 139px;&quot; id=&quot;BLOGGER_PHOTO_ID_5491585530711889170&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFTTBExLjqk6pKu8-88zz9QrXL3M4TFnztcxVBXJ05-VwcHCPzbjUeyRbV6QtZRCuT5Us4jGrG_b4xD0xV959-PXlIFbgnwpQauvDKZs7YO9AMv_uWIaJSiUEqxPn9ngh6monIUkhduHU/s320/3.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;So, this is the  advantage of Token Session Interceptor, by which you can stop resubmitting of  the form by the user. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://livewithpranay.blogspot.com/feeds/2660983569323611053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://livewithpranay.blogspot.com/2010/07/struts2-token-session-interceptor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/2660983569323611053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/2660983569323611053'/><link rel='alternate' type='text/html' href='http://livewithpranay.blogspot.com/2010/07/struts2-token-session-interceptor.html' title='Struts2 : Token Session Interceptor'/><author><name>Pranay Karmakar</name><uri>http://www.blogger.com/profile/17395719837851149980</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRWtRnGVwKI5iVrLdeVM475ibpbLhjsQxDHXHsGn99oiOYImtG22aFqjF5PZnECw9Iz4O5PuUpMY-hLhSOg6M-887swqvluKnnuWS9-HS7yg6LgxaMp2tX9mxKcyrz17g/s220/pranay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHwidWyJV5eo9gO2saud13paQADcaxPuI8cMCNgtd6r5AT9_DYp894FgV3LfGT-GoXoGxhwgxPDxgdF5S0CG_yj5Oh8dZ7aU3Cx_rcPO1HSVxtJgFk0hQAPvmRuIBEDDO3bbFpimfsNPI/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5272761813291126226.post-8480741136342440953</id><published>2010-07-06T16:34:00.029+05:30</published><updated>2010-07-07T22:41:33.909+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Interceptor"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Struts2"/><title type='text'>Struts2 : Token Interceptor</title><content type='html'>&lt;span style=&quot;color: rgb(0, 0, 0); font-family: arial;font-family:verdana;font-size:85%;&quot;  &gt;It may happen that user &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: arial;font-family:verdana;font-size:85%;&quot;  &gt;double clicked on the submit button or back button, which may cause some side effects on the execution of the action class. &lt;/span&gt;&lt;span style=&quot;font-family: arial;font-size:85%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;This interceptor can make sure that back buttons and double clicks don&#39;t cause un-intended side affects. For example, you can use this to prevent careless users who might double click on a &quot;checkout&quot; button at an online store. This interceptor uses a  fairly primitive technique for when an invalid token is found: it returns the result &lt;/span&gt;&lt;b style=&quot;color: rgb(0, 0, 0);&quot;&gt;invalid.token&lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;,  which can be mapped in your action configuration. A more complex implementation, TokenSessionStoreInterceptor, can provide  much better logic for when invalid tokens are found.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: arial;font-family:verdana;font-size:85%;&quot;  &gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Example:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;index.jsp&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;font-weight: bold;&quot;&gt;Note:&lt;/b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; To set a token in your form, you should use the &lt;/span&gt;&lt;b style=&quot;font-weight: bold;&quot;&gt;token  tag&lt;/b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;. This tag is required and must be used in the forms that submit to actions protected by this interceptor. Any  request that does not provide a token (using the token tag) will be processed as a request with an invalid token.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial;font-family:verdana;font-size:85%;&quot;  &gt;&lt;meta equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; border: 1px dashed rgb(153, 153, 153); line-height: 14px; padding: 5px; overflow: auto; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=UTF-8&quot;&lt;br /&gt;pageEncoding=&quot;UTF-8&quot;%&amp;gt;&lt;br /&gt;&amp;lt;%@ taglib prefix=&quot;s&quot; uri=&quot;/struts-tags&quot; %&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&lt;br /&gt;&quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Insert title here&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;s:form action=&quot;AddEntry&quot;&amp;gt;&lt;br /&gt;&amp;lt;s:textfield label=&quot;Name&quot; name=&quot;name&quot;/&amp;gt;&lt;br /&gt;&amp;lt;s:textfield label=&quot;Address&quot; name=&quot;address&quot;/&amp;gt;&lt;br /&gt;&amp;lt;s:textfield label=&quot;Phone Number&quot; name=&quot;phoneNumber&quot;/&amp;gt;&lt;br /&gt;&amp;lt;s:submit value=&quot;ADD&quot;/&amp;gt;&lt;br /&gt;&amp;lt;s:token name=&quot;clientToken&quot;&amp;gt;&amp;lt;/s:token&amp;gt;&lt;br /&gt;&amp;lt;/s:form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;;font-family:verdana;font-size:85%;&quot;  &gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;&lt;br /&gt;&lt;br /&gt;success.jsp&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; border: 1px dashed rgb(153, 153, 153); line-height: 14px; padding: 5px; overflow: auto; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=UTF-8&quot;&lt;br /&gt;pageEncoding=&quot;UTF-8&quot;%&amp;gt;&lt;br /&gt;&amp;lt;%@ taglib prefix=&quot;s&quot; uri=&quot;/struts-tags&quot; %&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&lt;br /&gt;&quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Insert title here&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;Name: &amp;lt;s:property value=&quot;name&quot; /&amp;gt;&lt;br /&gt;&amp;lt;br&amp;gt;&lt;br /&gt;Address: &amp;lt;s:property value=&quot;address&quot; /&amp;gt;&lt;br /&gt;&amp;lt;br&amp;gt;&lt;br /&gt;Phone: &amp;lt;s:property value=&quot;phoneNumber&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:verdana;font-size:85%;&quot;  &gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;&lt;br /&gt;&lt;br /&gt;AddEntry.java&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; border: 1px dashed rgb(153, 153, 153); line-height: 14px; padding: 5px; overflow: auto; width: 100%;&quot;&gt;&lt;code&gt;package phoneBook;&lt;br /&gt;import com.opensymphony.xwork2.ActionSupport;&lt;br /&gt;&lt;br /&gt;public class AddEntry extends ActionSupport{&lt;br /&gt;&lt;br /&gt;private static final long serialVersionUID = 1L;&lt;br /&gt;private String name = null;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private String address = null;&lt;br /&gt;private String phoneNumber = null;&lt;br /&gt;&lt;br /&gt;public String getName() {&lt;br /&gt;return name;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void setName(String name) {&lt;br /&gt;this.name = name;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;public String getAddress() {&lt;br /&gt;return address;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;public void setAddress(String address) {&lt;br /&gt;this.address = address;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;public String getPhoneNumber() {&lt;br /&gt;return phoneNumber;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;public void setPhoneNumber(String phoneNumber) {&lt;br /&gt;this.phoneNumber = phoneNumber;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public String execute() throws Exception{&lt;br /&gt;System.out.println(&quot;Name\t\t:&quot; +name);&lt;br /&gt;&lt;br /&gt;System.out.println(&quot;Address\t\t:&quot; +address);&lt;br /&gt;System.out.println(&quot;Phone Number\t:&quot; +phoneNumber);&lt;br /&gt;&lt;br /&gt;return SUCCESS;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:verdana;font-size:85%;&quot;  &gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;struts.xml&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; border: 1px dashed rgb(153, 153, 153); line-height: 14px; padding: 5px; overflow: auto; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE struts PUBLIC&lt;br /&gt;&quot;-//Apache Software Foundation//DTD Struts Configuration 2.0//EN&quot;&lt;br /&gt;&quot;http://struts.apache.org/dtds/struts-2.0.dtd&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;struts&amp;gt;&lt;br /&gt;&amp;lt;package name=&quot;default&quot; extends=&quot;struts-default&quot;&amp;gt;&lt;br /&gt;&amp;lt;action name=&quot;AddEntry&quot; class=&quot;phoneBook.AddEntry&quot;&amp;gt;&lt;br /&gt;  &amp;lt;interceptor-ref name=&quot;token&quot; /&amp;gt;&lt;br /&gt;  &amp;lt;interceptor-ref name=&quot;basicStack&quot; /&amp;gt;&lt;br /&gt;    &amp;lt;result name=&quot;success&quot;&amp;gt;/success.jsp&amp;lt;/result&amp;gt;&lt;br /&gt;    &amp;lt;result name=&quot;invalid.token&quot;&amp;gt;/index.jsp&amp;lt;/result&amp;gt;&lt;br /&gt;&amp;lt;/action&amp;gt;&lt;br /&gt;&amp;lt;/package&amp;gt;&lt;br /&gt;&amp;lt;/struts&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:verdana;font-size:85%;&quot;  &gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;&lt;br /&gt;&lt;br /&gt;web.xml&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; border: 1px dashed rgb(153, 153, 153); line-height: 14px; padding: 5px; overflow: auto; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br /&gt;&amp;lt;web-app xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; xmlns:web=&quot;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot; id=&quot;WebApp_ID&quot; version=&quot;2.5&quot;&amp;gt;&lt;br /&gt;&amp;lt;display-name&amp;gt;MyBlankProj&amp;lt;/display-name&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;filter&amp;gt;&lt;br /&gt;&amp;lt;filter-name&amp;gt;struts2&amp;lt;/filter-name&amp;gt;&lt;br /&gt;&amp;lt;filter-class&amp;gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&amp;lt;/filter-class&amp;gt;&lt;br /&gt;&amp;lt;/filter&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;filter-mapping&amp;gt;&lt;br /&gt;&amp;lt;filter-name&amp;gt;struts2&amp;lt;/filter-name&amp;gt;&lt;br /&gt;&amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;&amp;lt;/filter-mapping&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;welcome-file-list&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;index.html&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;index.htm&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;index.jsp&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;default.html&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;default.htm&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;default.jsp&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;/welcome-file-list&amp;gt;&lt;br /&gt;&amp;lt;/web-app&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;ok, the coding is over, now its time for test.......&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Lets start our application by typing the url or by eclipse. The below page (index.jsp) would be displayed. I&#39;ve filled-out the form as below. and pressed submit.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRKdFgBANRQwJaVAjkFl7s02zcI66liwCo-QB6XmHwOGmUDoiuTBlCs6y81pPKMVkpdM530FwOwu7i279WOi__J4vnTG-FQc17j7ezkZ-8y8X1GnRJVsRdLgltTxExSFiwHD4iZvKZBvc/s1600/1.JPG&quot;&gt;&lt;img style=&quot;float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 320px; height: 240px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRKdFgBANRQwJaVAjkFl7s02zcI66liwCo-QB6XmHwOGmUDoiuTBlCs6y81pPKMVkpdM530FwOwu7i279WOi__J4vnTG-FQc17j7ezkZ-8y8X1GnRJVsRdLgltTxExSFiwHD4iZvKZBvc/s320/1.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5491027845417180450&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;font-family:verdana;font-size:85%;&quot;  &gt;&lt;span&gt;&lt;span&gt;The result page would appear (success.jsp). The thing here to notice is I&#39;ve written code to print in the console also. In eclipse you can see the result appeared in the console just like below.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;a style=&quot;font-family: arial;&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhfKq19f-Jm_c45NGoQ3VQLOSZREGCWNQnHFbzgzU5Tc_ktdKJs1MSiT-b24-ztmyE0qC-scv2rs6lH3RWiGL0kvMJLyjX97piVqyRB1KqlUfItvbM6igF1eTOaSH_q3pLqw7IrlszCUA/s1600/3.JPG&quot;&gt;&lt;img style=&quot;float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 320px; height: 99px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhfKq19f-Jm_c45NGoQ3VQLOSZREGCWNQnHFbzgzU5Tc_ktdKJs1MSiT-b24-ztmyE0qC-scv2rs6lH3RWiGL0kvMJLyjX97piVqyRB1KqlUfItvbM6igF1eTOaSH_q3pLqw7IrlszCUA/s320/3.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5491041139789323650&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial;font-family:verdana;font-size:85%;&quot;  &gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial;font-family:verdana;font-size:85%;&quot;  &gt;&lt;span&gt;&lt;span&gt;It means it will again appear if I refresh the &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;page (i.e., resubmit the page). Lets do it....&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial;font-size:85%;&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;font-size:85%;&quot; &gt;No, it will never happen, it will go to the index.jsp page without resubmitting the page. You can check the console after refreshing the page and there you will find that only one occurrence of the result is showing and there will be an Warning stating that &quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial;font-size:85%;&quot; &gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;WARNING: Form token JVP8Z7FXG8UYSN0QMT6WZ3SOYT63QD5G does not match the session token null.&lt;/span&gt;&quot;. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxJiX8nWSp0kkDD9adMARSdjntqqoN1AutKw2o9KDUorgWWgyliI3xrDUA9wIQbQ3XbUAtqEW6frG7N8Qt7dWzLHQc4NezYXi4bkrR1rNDTFHMCF-QJCMNaR4VNFj6xXn1h5NqCnOLcSw/s1600/5.JPG&quot;&gt;&lt;img style=&quot;float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 320px; height: 74px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxJiX8nWSp0kkDD9adMARSdjntqqoN1AutKw2o9KDUorgWWgyliI3xrDUA9wIQbQ3XbUAtqEW6frG7N8Qt7dWzLHQc4NezYXi4bkrR1rNDTFHMCF-QJCMNaR4VNFj6xXn1h5NqCnOLcSw/s320/5.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5491042655198410114&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;font-size:85%;&quot; &gt;So, this is the advantage of Token Interceptor, by which you can stop resubmitting of the form by the user.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhfKq19f-Jm_c45NGoQ3VQLOSZREGCWNQnHFbzgzU5Tc_ktdKJs1MSiT-b24-ztmyE0qC-scv2rs6lH3RWiGL0kvMJLyjX97piVqyRB1KqlUfItvbM6igF1eTOaSH_q3pLqw7IrlszCUA/s1600/3.JPG&quot;&gt;&lt;br /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://livewithpranay.blogspot.com/feeds/8480741136342440953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://livewithpranay.blogspot.com/2010/07/struts-2-token-interceptor_06.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/8480741136342440953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/8480741136342440953'/><link rel='alternate' type='text/html' href='http://livewithpranay.blogspot.com/2010/07/struts-2-token-interceptor_06.html' title='Struts2 : Token Interceptor'/><author><name>Pranay Karmakar</name><uri>http://www.blogger.com/profile/17395719837851149980</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRWtRnGVwKI5iVrLdeVM475ibpbLhjsQxDHXHsGn99oiOYImtG22aFqjF5PZnECw9Iz4O5PuUpMY-hLhSOg6M-887swqvluKnnuWS9-HS7yg6LgxaMp2tX9mxKcyrz17g/s220/pranay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRKdFgBANRQwJaVAjkFl7s02zcI66liwCo-QB6XmHwOGmUDoiuTBlCs6y81pPKMVkpdM530FwOwu7i279WOi__J4vnTG-FQc17j7ezkZ-8y8X1GnRJVsRdLgltTxExSFiwHD4iZvKZBvc/s72-c/1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5272761813291126226.post-7118204894104530733</id><published>2009-11-14T10:09:00.002+05:30</published><updated>2009-11-14T10:16:03.688+05:30</updated><title type='text'>Ubuntu bug # 204133 - SOLVED</title><content type='html'>&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;A week before, I upgraded my Ubuntu 9.04 to Ubuntu 9.10 (&lt;/span&gt;&lt;em&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana;mso-bidi-font-family:Arial; mso-bidi-font-weight:bold;font-style:normal&quot;&gt;Karmic Koala&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;). It was an amazing experience with it. The faster boot up speed, new login window and most importantly the new &lt;/span&gt;&lt;st1:place st=&quot;on&quot;&gt;&lt;st1:placename st=&quot;on&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana;   mso-bidi-font-family:Arial;color:#3C3940&quot;&gt;Software&lt;/span&gt;&lt;/span&gt;&lt;/st1:placename&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana;  mso-bidi-font-family:Arial;color:#3C3940&quot;&gt; &lt;st1:placetype st=&quot;on&quot;&gt;Center&lt;/st1:placetype&gt;&lt;/span&gt;&lt;/span&gt;&lt;/st1:place&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;. Now the real problem started when I first shut down the PC. It freezes at a certain point in the process of Shut Down. The message was like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt;* Stopping MySQL database server mysqld&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:36.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;… done.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt;* Shutting down ALSA…&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt;* Asking all remaining      processes to terminate…&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt;* Deconfiguring network      interfaces…&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt;* Deactivating swap &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:36.0pt&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Verdana; &quot;&gt;buffer i/o error on device loop0&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;I didn’t bother at all as it was for the first time. When it occurred regularly, then I thought it may be due to my HD, but when I googled, I saw it is a BUG!! There are many people with WUBI facing this problem but no definite fix on this.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;From last night that problem is gone with a handy fix, which I want to share with you.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0mm&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;mso-list:l1 level1 lfo2;tab-stops:list 36.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;Go to /etc/rc6.d/ directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;mso-list:l1 level1 lfo2;tab-stops:list 36.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;You can find a file named “S40umountfs”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;mso-list:l1 level1 lfo2;tab-stops:list 36.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;If you are not “root” change      the permission for writing over it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;mso-list:l1 level1 lfo2;tab-stops:list 36.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;Open the “S40umountfs” file      in a text editor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;mso-list:l1 level1 lfo2;tab-stops:list 36.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;Now you have to replace two      lines with a two new lines.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;mso-list:l1 level1 lfo2;tab-stops:list 36.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:Verdana&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;a) Replace this line:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;&lt;o:p&gt; fstab-decode umount -f -r -d $WEAK_MTPTS&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;&lt;o:p&gt; with&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;&lt;o:p&gt; fstab-decode umount -r -d $WEAK_MTPTS&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;&lt;o:p&gt; b) Replace this line:&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;&lt;o:p&gt; fstab-decode umount -f -v -r -d $WEAK_MTPTS&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;&lt;o:p&gt; with&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;&lt;o:p&gt; fstab-decode umount -v -r -d $WEAK_MTPTS&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;&lt;o:p&gt;  &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:18.0pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:Verdana&quot;&gt;7. Reboot the system and it should work.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://livewithpranay.blogspot.com/feeds/7118204894104530733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://livewithpranay.blogspot.com/2009/11/ubuntu-bug-204133-solved.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/7118204894104530733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/7118204894104530733'/><link rel='alternate' type='text/html' href='http://livewithpranay.blogspot.com/2009/11/ubuntu-bug-204133-solved.html' title='Ubuntu bug # 204133 - SOLVED'/><author><name>Pranay Karmakar</name><uri>http://www.blogger.com/profile/17395719837851149980</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRWtRnGVwKI5iVrLdeVM475ibpbLhjsQxDHXHsGn99oiOYImtG22aFqjF5PZnECw9Iz4O5PuUpMY-hLhSOg6M-887swqvluKnnuWS9-HS7yg6LgxaMp2tX9mxKcyrz17g/s220/pranay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5272761813291126226.post-8234910326638413677</id><published>2009-08-11T23:23:00.000+05:30</published><updated>2009-08-12T17:54:15.506+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Google App Engine"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="jtwitter"/><category scheme="http://www.blogger.com/atom/ns#" term="Twitter"/><title type='text'>GAE with jtwitter</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;Considerations: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;A. You have active Google App Engine Account.&lt;br /&gt;B. You have already created an application for this project in your Google App Engine Account.&lt;br /&gt;C. You have already downloaded the &quot;jtwitter.jar&quot; from&lt;br /&gt;&lt;a href=&quot;http://www.winterwell.com/software/jtwitter.php&quot;&gt;http://www.winterwell.com/software/jtwitter.php&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;First add the plug in of GAE in your Eclipse. For that follow the below steps:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A. Open the Eclipse (mine was Eclipse Ganymede).&lt;br /&gt;&lt;br /&gt;B. Go to Help -&gt; Software Updates...&lt;br /&gt;&lt;br /&gt;C. After opening the &quot;Software Updates and Add-ons&quot; window click on the button &quot;Add Site...&quot;.&lt;br /&gt;&lt;br /&gt;D. Put the address as per your flavor of Eclipse.&lt;br /&gt;&lt;br /&gt;a) Eclipse 3.3 (Europa): &lt;span style=&quot;font-style: italic;&quot;&gt;http://dl.google.com/eclipse/plugin/3.3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;b) Eclipse, for Eclipse 3.4 (Ganymede): &lt;span style=&quot;font-style: italic;&quot;&gt;http://dl.google.com/eclipse/plugin/3.4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;c) Eclipse, for Eclipse 3.5 (Galileo): &lt;span style=&quot;font-style: italic;&quot;&gt;http://dl.google.com/eclipse/plugin/3.5&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;E. After clicking &quot;OK&quot; you can see the &quot;Google Plugin for Eclipse&quot; is on the list of &quot;Available Software&quot;. Check on the Checkbox and click on the &quot;Install&quot; button.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;It will install the plug in in the Eclipse now follow the below steps:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Open the Eclipse (mine was Eclipse Ganymede). Then go to File. Under the &quot;File&quot; click on the &quot;New&quot; then click on to the &quot;Web Application Project&quot;.&lt;br /&gt;&lt;br /&gt;This window will appear:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeNmKnVmDud9kgQUguOwTp3XKsXSdoFfaxHmWiNKEmUCj4iswNpSIrGtNOD19Aet3EmSPkoemZ2mX9ycDpKtWZRYZtwRywzfvP9W1KSF5-mP6k_eaDqa9UMciDenzODFWXYH6WE8M62noG/s1600-h/gae1.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 300px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeNmKnVmDud9kgQUguOwTp3XKsXSdoFfaxHmWiNKEmUCj4iswNpSIrGtNOD19Aet3EmSPkoemZ2mX9ycDpKtWZRYZtwRywzfvP9W1KSF5-mP6k_eaDqa9UMciDenzODFWXYH6WE8M62noG/s320/gae1.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368766388152851938&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Fill up the form as per below screen-shot.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0DBsN7pV0Z2DuyXLu_7jFDHoCxVqryCXcQ_ZIMFqYYS3n9XoJ74rQ9OdVaUg3lwIpE_LUrTz9ypWoYuaeb3fNlanglq73TURqw7Kr6ne7a3koj_NtQg10x8b3yx9PBA45Eo8_NeBoNktH/s1600-h/gae2.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 300px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0DBsN7pV0Z2DuyXLu_7jFDHoCxVqryCXcQ_ZIMFqYYS3n9XoJ74rQ9OdVaUg3lwIpE_LUrTz9ypWoYuaeb3fNlanglq73TURqw7Kr6ne7a3koj_NtQg10x8b3yx9PBA45Eo8_NeBoNktH/s320/gae2.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368933141961077746&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The Project Name is : &quot;GAEproj&quot; and Package is &quot;packTwitt&quot;. We are not going to build this project with Google Web Toolkit, so please uncheck the &quot;Use Google Web Toolkit&quot;. Also make sure your default SDK for this project is &quot;App Engine&quot;. Now click on &quot;Finish&quot;.&lt;br /&gt;&lt;br /&gt;3. You can see the &quot;GAEproj&quot; is on your Package Explorer of Eclipse.&lt;br /&gt;&lt;br /&gt;4. Right now we want to test this project at our local server.&lt;br /&gt;&lt;br /&gt;5. Select the Project. Click on the &quot;Build Project&quot; under &quot;Project Menu&quot;. It will build your project. Now go to &quot;Run&quot; Menu and choose &quot;Run as&quot;, then select &quot;Web Application&quot;.&lt;br /&gt;&lt;br /&gt;6. Look into the console you can see the message &quot;The server is running at http://localhost:8080&quot;. (Address may change according to your setting).&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMaOS1yL-zWI-QrRBgZjFu0vkhzDjRgXbhFIS7B7dzjQJwvOiy6977Mb6yJZGnFokNdI5LMmAlW64OxhFZR-FErVbMlE8eEIMK6K_TrgwfjB4iG8Hxc2TI8OuFDo_3h9anNadWR9Pq4faL/s1600-h/gae4.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 238px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMaOS1yL-zWI-QrRBgZjFu0vkhzDjRgXbhFIS7B7dzjQJwvOiy6977Mb6yJZGnFokNdI5LMmAlW64OxhFZR-FErVbMlE8eEIMK6K_TrgwfjB4iG8Hxc2TI8OuFDo_3h9anNadWR9Pq4faL/s320/gae4.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368936002133696946&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;7. Open your browser and type the address mentioned on the console and you can see the below page.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS07qBSt0m0RP8lYsZmaff9JTUWuwQJCdwyIMdTKRjUvWC2dBb4U-ycysk_QPwRxm2YpKU6ti9dg29luJcyUTUPyqeSXg0MqwcjffiEfvBOpH6WYKSjW3LfbNEg__mOW3r45jAlRXL4eRU/s1600-h/gae5.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 256px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS07qBSt0m0RP8lYsZmaff9JTUWuwQJCdwyIMdTKRjUvWC2dBb4U-ycysk_QPwRxm2YpKU6ti9dg29luJcyUTUPyqeSXg0MqwcjffiEfvBOpH6WYKSjW3LfbNEg__mOW3r45jAlRXL4eRU/s320/gae5.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368936571252610754&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is the &quot;index.html&quot; file under the /war/WEB-INF/ folder.&lt;br /&gt;&lt;br /&gt;8. Now click on the link &quot;GAEproj&quot;. You will be navigated to this page which is the servlet &quot;GAEprojServlet.java&quot; under the package &quot;packTwitt&quot;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQYc_UGYgxqrtSibelNAHjp1i63J55JIX8Zzm4HeJx81tniWe-G5UqU4kqIGFxV7nXUTZtmtu2fHM62sygKDRq_-9uieZTj2VK1t8Be4chYqgZsRqLRImcbrEBP7izwJXNqV1rWmp6mo6C/s1600-h/gae6.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 256px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQYc_UGYgxqrtSibelNAHjp1i63J55JIX8Zzm4HeJx81tniWe-G5UqU4kqIGFxV7nXUTZtmtu2fHM62sygKDRq_-9uieZTj2VK1t8Be4chYqgZsRqLRImcbrEBP7izwJXNqV1rWmp6mo6C/s320/gae6.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368937467273490466&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;9. You have already downloaded the &quot;jtwitter.jar&quot; from the address &lt;a href=&quot;http://www.winterwell.com/software/jtwitter.php&quot;&gt;http://www.winterwell.com/software/jtwitter.php&lt;/a&gt;. We have to add this .jar in our project. For that, select the project &quot;GAEproj&quot;, right click on it and click to the &quot;Properties&quot;. Select the &quot;Java Build Path&quot; in the left hand side navigation bar. Now click on the &quot;Libraries&quot; tab. Here you can find the button &quot;Add External JARs...&quot;. Click on that and select the &quot;jtwitter.jar&quot; from your disk. Now click on &quot;OK&quot;. The &quot;jtwitter.jar&quot; file is now included into our project.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitzdb9k1bHH-FEU8ZE1bgOTseNxbmgMFwyY9a5c0sjkNejNt7FXe8kYvG1S1pDZv0CR5TR347QocoT-lOW6qXQRzDNxbW_gPl-3eWMevLMm43KP0dyh8U8rkwFAkeR5gKHP9FBmTri55vD/s1600-h/gae7.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 256px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitzdb9k1bHH-FEU8ZE1bgOTseNxbmgMFwyY9a5c0sjkNejNt7FXe8kYvG1S1pDZv0CR5TR347QocoT-lOW6qXQRzDNxbW_gPl-3eWMevLMm43KP0dyh8U8rkwFAkeR5gKHP9FBmTri55vD/s320/gae7.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368939293864373378&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;10. ok, the project configuration has been done. Now we will move on to the coding section. Open the &quot;index.html&quot; file and modify the code like the below one.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUg3S4fM7wh0witLNl-JNLQ-uDuMPInjGBXCyIZf4hQPfIgGLhzHJgXWozGqf96ph5CHC46kucFG0Zq3tCRlqDn-FEAJZuhP_SlcDs_Tvb7LHP0v1Dt8RlUl9PQRSPKH8T4CUgNPsRMGH4/s1600-h/html.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 184px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUg3S4fM7wh0witLNl-JNLQ-uDuMPInjGBXCyIZf4hQPfIgGLhzHJgXWozGqf96ph5CHC46kucFG0Zq3tCRlqDn-FEAJZuhP_SlcDs_Tvb7LHP0v1Dt8RlUl9PQRSPKH8T4CUgNPsRMGH4/s320/html.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368964552341936562&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here, I have introduced a html form with the following properties:&lt;br /&gt;name=&quot;ff&quot; (don&#39;t ask why), method=&quot;POST&quot;, action=&quot;/gaeproj&quot;&lt;br /&gt;&lt;br /&gt;created two text fields one for UserID and another for Password, and finally a Submit button.&lt;br /&gt;&lt;br /&gt;11. Open the &quot;GAEprojServlet.java&quot; file and modify the code like the below one.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNWWNsqdwj633ZDHL-IlBCxIEj06BZ9y5PW3q0k4VHbDzQsgSUIWmxrDjqh6W6G6_lR5_gFN11YJpb2WhEOCrmDiOhJWQWzMKuxkO5ZaET5pmC-jYOo3go7qiwBtY2alDOotJ5kokgaR53/s1600-h/servlet.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 186px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNWWNsqdwj633ZDHL-IlBCxIEj06BZ9y5PW3q0k4VHbDzQsgSUIWmxrDjqh6W6G6_lR5_gFN11YJpb2WhEOCrmDiOhJWQWzMKuxkO5ZaET5pmC-jYOo3go7qiwBtY2alDOotJ5kokgaR53/s320/servlet.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368965888081200738&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Here, first and most important thing is I have changed the &quot;doGet&quot; method to &quot;doPost&quot; method because I have made the form method = &quot;POST&quot; in my &quot;index.html&quot; file. Now import  &quot;winterwell.jtwitter.*&quot;.&lt;br /&gt;&lt;br /&gt;I&#39;ve made an object &#39;t&#39; like this and pass the userid and password to the constructor.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Twitter t = new Twitter(req.getParameter(&quot;u_id&quot;),req.getParameter(&quot;u_pass&quot;));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;By the  method &lt;span style=&quot;font-style: italic;&quot;&gt;getStatus(String)&lt;/span&gt; I&#39;ve print my last update on Twitter:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;resp.getWriter().println(t.getStatus(req.getParameter(&quot;u_id&quot;)));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;12. Build the project and Run. Enter your Twitter UserID and Password and click on &quot;Submit&quot;.&lt;br /&gt;You can see the last update in your Twitter account.&lt;br /&gt;&lt;br /&gt;NB1: Make sure before login that your profile in Twitter is &lt;span style=&quot;font-weight: bold;&quot;&gt;not&lt;/span&gt; Locked.&lt;br /&gt;&lt;br /&gt;NB2: Refer the Twitter.class or jTwitter javaDoc for more exiting functions.&lt;br /&gt;&lt;br /&gt;13. Its time for deploying the application in your GAE account. For that click on the &quot;Deploy App Engine Project&quot; in Eclipse (Right most icon in the below screen-shot).&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuC6TJFdIPhRlC37UoRa9NCowY_RgQOnMMuNiA_taDNT0u3dSBCZZ9jOxmZNLtS0u_bY99vrT96cOdM9Y_QGFCZeTM-qFNNQBZ1c0G8wkHaMsD2ULT24jqUIakcYn5DE-EYgdY2tyaWmxb/s1600-h/icon.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 105px; height: 33px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuC6TJFdIPhRlC37UoRa9NCowY_RgQOnMMuNiA_taDNT0u3dSBCZZ9jOxmZNLtS0u_bY99vrT96cOdM9Y_QGFCZeTM-qFNNQBZ1c0G8wkHaMsD2ULT24jqUIakcYn5DE-EYgdY2tyaWmxb/s320/icon.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5368973405658565138&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;An window will appear. Project Name is already there in our case it is &quot;GAEproj&quot;. Now type your gmail address and password by which you have created an application in the GAE site.&lt;br /&gt;&lt;br /&gt;Click on the &quot;App Engine project settings...&quot;. Give the application ID as your application name in GAE site. As it is first time for you Revision should be 1. Click on &quot;OK&quot; and click on &quot;Deploy&quot;. It will deploy your application to your GAE account.&lt;br /&gt;&lt;br /&gt;Bang!!! Now you can show your own Twitter tricks to the whole world ....</content><link rel='replies' type='application/atom+xml' href='http://livewithpranay.blogspot.com/feeds/8234910326638413677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://livewithpranay.blogspot.com/2009/08/gae-with-jtwitter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/8234910326638413677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/8234910326638413677'/><link rel='alternate' type='text/html' href='http://livewithpranay.blogspot.com/2009/08/gae-with-jtwitter.html' title='GAE with jtwitter'/><author><name>Pranay Karmakar</name><uri>http://www.blogger.com/profile/17395719837851149980</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRWtRnGVwKI5iVrLdeVM475ibpbLhjsQxDHXHsGn99oiOYImtG22aFqjF5PZnECw9Iz4O5PuUpMY-hLhSOg6M-887swqvluKnnuWS9-HS7yg6LgxaMp2tX9mxKcyrz17g/s220/pranay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeNmKnVmDud9kgQUguOwTp3XKsXSdoFfaxHmWiNKEmUCj4iswNpSIrGtNOD19Aet3EmSPkoemZ2mX9ycDpKtWZRYZtwRywzfvP9W1KSF5-mP6k_eaDqa9UMciDenzODFWXYH6WE8M62noG/s72-c/gae1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5272761813291126226.post-2659282861871104576</id><published>2009-08-09T13:25:00.001+05:30</published><updated>2009-10-05T22:47:38.283+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Tomact"/><title type='text'>HOWTO : Setup Java Development Environment on Ubuntu</title><content type='html'>Packages to be installed: JDK 6, JRE 6, Eclipse (Ganymede – 3.4.2), Tomcat 6&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;A. Install JDK and JRE:&lt;span style=&quot;font-style:italic;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Open the terminal&lt;br /&gt;2. Type &lt;span style=&quot;font-weight:bold;&quot;&gt;sudo apt-get install sun-java6-jdk sun-java6-jre&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;It will install the JDK and JRE on your system.&lt;br /&gt;Now you can check the version by typing &lt;span style=&quot;font-weight:bold;&quot;&gt;javac -version&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Set the $JAVA_HOME&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;export JAVA_HOME=&quot;/usr/lib/jvm/java-6-sun-1.6.0.10&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;B. Install Eclipse:&lt;span style=&quot;font-style:italic;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Download the latest release of the Eclipse (In my case that was Eclipse Ganymede 3.4.2) from eclipse website. &lt;a href=&quot;http://www.eclipse.org/downloads/packages/release/ganymede/sr2&quot;&gt;http://www.eclipse.org/downloads/packages/release/ganymede/sr2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Now extract the .tar.gz in your home directory&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;tar -xzvf eclipse-jee-ganymede-SR2-linux-gtk.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. To check the Eclipse is opening or not go to the /eclipse directory&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;cd eclipse&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Now type the command &lt;span style=&quot;font-weight:bold;&quot;&gt;./eclipse&lt;/span&gt;&lt;br /&gt;The eclipse will open. Now close the eclipse for the time being.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;C. Time for Tomcat 6&lt;span style=&quot;font-style:italic;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. download the copy of Tomcat 6 from apache website &lt;a href=&quot;http://tomcat.apache.org/download-60.cgi&quot;&gt;http://tomcat.apache.org/download-60.cgi&lt;/a&gt;  .... it should be a .tar.gz under Core (in my case that was apache-tomcat-6.0.20.tar.gz)&lt;br /&gt;&lt;br /&gt;2. Extract the .tar.gz in your home directory&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;tar -xzvf apache-tomcat-6.0.20.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Now we have to move it to the /usr/local/tomcat directory. Type this command to do that:&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;sudo mv apache-tomcat-6.0.20 /usr/local/tomcat&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Setup Tomcat to Boot on Startup&lt;br /&gt;a) &lt;span style=&quot;font-weight:bold;&quot;&gt;sudo nano /etc/init.d/tomcat&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;b) Copy and paste this script, making sure to either configure or remove CATALINA_BASE and CATALINA_OPTS:&lt;br /&gt;&lt;br /&gt;------------------------------------------------------&lt;br /&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;export JAVA_HOME=/usr/lib/jvm/java-6-sun&lt;br /&gt;export CATALINA_BASE=/path/to/catalina/base&lt;br /&gt;export CATALINA_OPTS=&quot;-server -Xmx512m&quot;&lt;br /&gt;case $1 in&lt;br /&gt;start)&lt;br /&gt;sh /usr/local/tomcat/bin/startup.sh&lt;br /&gt;;;&lt;br /&gt;stop)&lt;br /&gt;sh /usr/local/tomcat/bin/shutdown.sh&lt;br /&gt;;;&lt;br /&gt;restart)&lt;br /&gt;sh /usr/local/tomcat/bin/shutdown.sh&lt;br /&gt;sh /usr/local/tomcat/bin/startup.sh&lt;br /&gt;;;&lt;br /&gt;esac&lt;br /&gt;exit 0&lt;/span&gt;&lt;br /&gt;------------------------------------------------------&lt;br /&gt;&lt;br /&gt;c) Press Ctrl+X to exit, and answer Yes to save.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Now make the above script executable, and install it as a startup script:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;sudo chmod 755 /etc/init.d/tomcat&lt;br /&gt;sudo update-rc.d tomcat defaults&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Type &lt;span style=&quot;font-weight:bold;&quot;&gt;sudo /etc/init.d/tomcat start&lt;/span&gt; and your tomcat will be up.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, your Java Environment is ready to rock with your code!!!!!</content><link rel='replies' type='application/atom+xml' href='http://livewithpranay.blogspot.com/feeds/2659282861871104576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://livewithpranay.blogspot.com/2009/08/howto-setup-java-development.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/2659282861871104576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/2659282861871104576'/><link rel='alternate' type='text/html' href='http://livewithpranay.blogspot.com/2009/08/howto-setup-java-development.html' title='HOWTO : Setup Java Development Environment on Ubuntu'/><author><name>Pranay Karmakar</name><uri>http://www.blogger.com/profile/17395719837851149980</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRWtRnGVwKI5iVrLdeVM475ibpbLhjsQxDHXHsGn99oiOYImtG22aFqjF5PZnECw9Iz4O5PuUpMY-hLhSOg6M-887swqvluKnnuWS9-HS7yg6LgxaMp2tX9mxKcyrz17g/s220/pranay.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5272761813291126226.post-4409118084185517813</id><published>2009-08-07T20:15:00.001+05:30</published><updated>2009-08-15T14:02:23.009+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Internet"/><category scheme="http://www.blogger.com/atom/ns#" term="Modem"/><category scheme="http://www.blogger.com/atom/ns#" term="Motorola"/><category scheme="http://www.blogger.com/atom/ns#" term="Nokia"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Nokia Phone Modem Internet connection in ubuntu</title><content type='html'>&lt;div&gt;There are two ways to do that:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153);&quot;&gt;&lt;b&gt;&lt;i&gt;For newbies:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;1. Connect      your phone to the PC via USB.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;2. Select “PC Suite” in phone.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;3. Ubuntu      will detect your phone&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;4. Click      on the Configure button and a window will appear, click on “Forward” then      you can see names of Mobile Connection Provider. If you can see your Mobile      Connection Provider is on the list, select that one. If your Mobile      Connection Provider is not on the list (like in my case - AirCel) then select  any one of them (I choose AirTel).&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 18pt;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;NB: If your Mobile Connection Provider is not on the list then please follow the steps from 6 to 10.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 18pt;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;5. Click on Finish&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;6. Go      to the Network icon and right click on that and then click on “Configure/Edit Connection”.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;7. It      will leads you to a window. Go to the &quot;Mobile Broadband&quot; tab and select the Connection name (in my case it was &quot;Airtel&quot;) and then Click on &quot;Edit&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJNif8udFE3pFmBMe9JmK2JiCpQVNRCSMHVEBWNbu2iLuM_pwF2E1-bR8p1nVBHT9psYCFdFho3p5YGJBHlEaoGugBxzfcdI_zRFMkI5eKk7z1IuLG8kvqSd6lr770D_qPqklhyq0Kk7C3/s1600-h/Edit+MB.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 260px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJNif8udFE3pFmBMe9JmK2JiCpQVNRCSMHVEBWNbu2iLuM_pwF2E1-bR8p1nVBHT9psYCFdFho3p5YGJBHlEaoGugBxzfcdI_zRFMkI5eKk7z1IuLG8kvqSd6lr770D_qPqklhyq0Kk7C3/s320/Edit+MB.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367236665169087250&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/a&gt;&lt;span&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;8. Then      the below screen will appear:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;9. Now      you have to customize these properties as your Connection Provider. (In my      case I &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;changed the APN only).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;10. Change      the Connection Name as you like. Press “OK”.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;11.Now      click on the network icon and select the connection name what you have gave.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;12. That’s it……. connected!!!&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;  &lt;div  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153); font-style: italic; font-weight: bold;&quot;&gt;For Terminal Lovers:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153);font-size:100%;&quot; &gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;1. Connect your phone to the PC via USB.&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;2. Select “PC Suite” in phone.&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;3. Go to Terminal&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;4. type &quot;lsusb&quot;&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;You will get like this:&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;Bus 001 Device 004: ID 0421:00e9 Nokia Mobile Phones&lt;br /&gt;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;br /&gt;Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;5. sudo /sbin/modprobe usbserial vendor=0x0421 product=0x00e9&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;The Vendor ID and Product ID must match with the result of &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;&quot;lsusb&quot;&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;4. sudo wvdialconf /etc/wvdial.conf&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:100%;&quot;&gt;5.you may find this:&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;   	&lt;meta equiv=&quot;CONTENT-TYPE&quot; content=&quot;text/html; charset=utf-8&quot;&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name=&quot;GENERATOR&quot; content=&quot;OpenOffice.org 2.4  (Linux)&quot;&gt; 	&lt;style type=&quot;text/css&quot;&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyS0&lt;*1&gt;: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyS0&lt;*1&gt;: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyS0&lt;*1&gt;: ATQ0 V1 E1 -- and failed too at 115200, giving up.  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Modem Port Scan&lt;*1&gt;: S1   S2   S3    &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;WvModem&lt;*1&gt;: Cannot get information for serial port.  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: ATQ0 V1 E1 -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: ATQ0 V1 E1 Z -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: ATQ0 V1 E1 S0=0 -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;amp;C1 -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0 -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: Modem Identifier: ATI -- Nokia  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: Speed 4800: AT -- OK &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: Speed 9600: AT -- OK &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: Speed 19200: AT -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: Speed 38400: AT -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: Speed 57600: AT -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: Speed 115200: AT -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: Speed 230400: AT -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: Speed 460800: AT -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: Max speed is 460800; that should be safe.  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0 -- OK  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Found an USB modem on /dev/ttyACM0.  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Modem configuration written to /etc/wvdial.conf.  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ttyACM0&lt;info&gt;: Speed 460800; init &quot;ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0&quot;  &lt;/info&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;6. To see the conf file type &quot;cat /etc/wvdial.conf&quot; and you may find this:&lt;/span&gt; &lt;style type=&quot;text/css&quot;&gt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	-&lt;/style&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;   	&lt;meta equiv=&quot;CONTENT-TYPE&quot; content=&quot;text/html; charset=utf-8&quot;&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name=&quot;GENERATOR&quot; content=&quot;OpenOffice.org 2.4  (Linux)&quot;&gt; 	&lt;style type=&quot;text/css&quot;&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;[Dialer Defaults]  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Init1 = ATZ  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Init2 = ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Modem Type = USB Modem  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;; Phone = &lt;target&gt;  &lt;/target&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;ISDN = 0  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;; Password = &lt;your&gt;  &lt;/your&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;New PPPD = yes  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;; Username = &lt;your&gt;  &lt;/your&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Modem = /dev/ttyACM0  &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Baud = 460800  &lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;7. Now we have to edit this wvdial.conf file according to our Service Provider. I&#39;ve edited my file just like this:&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt; a) uncomment    	the below line and put target phone no in it like *99#&lt;/span&gt;&lt;meta equiv=&quot;CONTENT-TYPE&quot; content=&quot;text/html; charset=utf-8&quot;&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name=&quot;GENERATOR&quot; content=&quot;OpenOffice.org 2.4  (Linux)&quot;&gt; 	&lt;style type=&quot;text/css&quot;&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;; Phone = &lt;target&gt;  &lt;/target&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Phone = *99#&lt;/span&gt;&lt;/li&gt;&lt;li  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;b) uncomment    	the below line and don&#39;t keep it blank, put anything like:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li face=&quot;verdana&quot;&gt;   	&lt;meta equiv=&quot;CONTENT-TYPE&quot; content=&quot;text/html; charset=utf-8&quot;&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name=&quot;GENERATOR&quot; content=&quot;OpenOffice.org 2.4  (Linux)&quot;&gt; 	&lt;style type=&quot;text/css&quot;&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;; Password = &lt;your&gt;  &lt;/your&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li face=&quot;verdana&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Password = A  &lt;/span&gt;&lt;/li&gt;&lt;li face=&quot;verdana&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;c) uncomment    	the below line and don&#39;t keep it blank, put anything like:&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;font-family: verdana;&quot;&gt;   	&lt;meta equiv=&quot;CONTENT-TYPE&quot; content=&quot;text/html; charset=utf-8&quot;&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name=&quot;GENERATOR&quot; content=&quot;OpenOffice.org 2.4  (Linux)&quot;&gt; 	&lt;style type=&quot;text/css&quot;&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;; Username = &lt;your&gt;  &lt;/your&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Username = B&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;d) Add the below line:&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Stupid Mode = 1&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;8. Type &quot;sudo wvdial&quot; and get connected!!!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livewithpranay.blogspot.com/feeds/4409118084185517813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://livewithpranay.blogspot.com/2009/08/nokia-phone-modem-internet-connection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/4409118084185517813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5272761813291126226/posts/default/4409118084185517813'/><link rel='alternate' type='text/html' href='http://livewithpranay.blogspot.com/2009/08/nokia-phone-modem-internet-connection.html' title='Nokia Phone Modem Internet connection in ubuntu'/><author><name>Pranay Karmakar</name><uri>http://www.blogger.com/profile/17395719837851149980</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRWtRnGVwKI5iVrLdeVM475ibpbLhjsQxDHXHsGn99oiOYImtG22aFqjF5PZnECw9Iz4O5PuUpMY-hLhSOg6M-887swqvluKnnuWS9-HS7yg6LgxaMp2tX9mxKcyrz17g/s220/pranay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJNif8udFE3pFmBMe9JmK2JiCpQVNRCSMHVEBWNbu2iLuM_pwF2E1-bR8p1nVBHT9psYCFdFho3p5YGJBHlEaoGugBxzfcdI_zRFMkI5eKk7z1IuLG8kvqSd6lr770D_qPqklhyq0Kk7C3/s72-c/Edit+MB.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>