<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>ICT World9</title><description>Web Development, Computer Basic Knowledge,  Database, Religious Thoughts. Health &amp;amp; Beauty Tips</description><managingEditor>noreply@blogger.com (AlhasanJuwel)</managingEditor><pubDate>Sun, 20 Apr 2025 23:05:19 -0700</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">44</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://ictw9.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><copyright>All Rights Reserved by Md. Al Hasan Juwel, ICT World9</copyright><itunes:summary>Web Development, Computer Basic Knowledge, Database, Religious Thoughts. Health &amp;amp; Beauty Tips</itunes:summary><itunes:subtitle>Web Development, Computer Basic Knowledge, Database, Religious Thoughts. Health &amp;amp; Beauty Tips</itunes:subtitle><itunes:category text="Business"><itunes:category text="Business News"/></itunes:category><itunes:author>Md. Al Hasan Juwel</itunes:author><itunes:owner><itunes:email>noreply@blogger.com</itunes:email><itunes:name>Md. Al Hasan Juwel</itunes:name></itunes:owner><item><title>সাহাবী আনাস রাঃ থেকে বর্নীত অতি মূল্যবান একটি হাদিস</title><link>http://ictw9.blogspot.com/2017/04/blog-post_16.html</link><pubDate>Sun, 16 Apr 2017 09:03:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-2768744145405420404</guid><description>&lt;iframe allowfullscreen="" frameborder="0" height="270" src="https://www.youtube.com/embed/arM2O8tRs1c" width="480"&gt;&lt;/iframe&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/arM2O8tRs1c/default.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Java Servlet</title><link>http://ictw9.blogspot.com/2015/05/java-servlet.html</link><category>Web Dev Basic Knowledge</category><pubDate>Thu, 7 May 2015 09:49:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-3496177770460545103</guid><description>In the early days, web servers used to deliver&lt;br /&gt;
static contents that are indifferent to users' requests. But Now-a-days, Java servlets&lt;br /&gt;
are server-side programs (running inside a web server) that handle clients' requests and return a&lt;br /&gt;
customized or dynamic response for each request. The dynamic response could be based on user's input &amp;nbsp;(e.g., search, online shopping, online transaction) with data retrieved from databases or other applications, or time-sensitive data (such as news and stock prices).&lt;br /&gt;
Java servlets typically run on the HTTP protocol. HTTP is an&lt;br /&gt;
asymmetrical request-response protocol.The client sends a request message &amp;nbsp;to the server, and the server returns a response message &amp;nbsp;as illustrated.</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Servlet Interface</title><link>http://ictw9.blogspot.com/2015/05/servlet-interface.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:48:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-1578954773311697713</guid><description>The javax.servlet.Servlet is the base interface of Java Servlet API. Servlet interface declares the&lt;br /&gt;
life cycle methods of servlet. All the servlet classes are required to implement this interface. The methods declared in this interface are:&lt;br /&gt;
public abstract void init(ServletConfig paramServletConfig) throws ServletException – This&lt;br /&gt;
is the very important method that is invoked by servlet container to initialize the servlet and&lt;br /&gt;
unless ServletConfig parameters. The servlet is not ready to process client request until init()&lt;br /&gt;
method is finished executing. This method is called only once in servlet life cycle and make&lt;br /&gt;
Servlet class different from normal java objects. We can extend this method in our servlet classes&lt;br /&gt;
to initialize resources such as DB Connection, Socket c connection etc.&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
public abstract ServletConfig getServletConfig() – This method returns a servlet config object,&lt;br /&gt;
which contains any initialization parameters and startup configuration for this servlet. We can use&lt;br /&gt;
servlet this method to get the init parameters of servlet defines in deployment descriptor (web.xml) or&lt;br /&gt;
through annotation in Servlet 3. We will look into ServletConfig interface later on.&lt;br /&gt;
&lt;br /&gt;
public abstract void service(ServletRequest req, ServletResponse res) throws&lt;br /&gt;
ServletException, IOException – This method is responsible for processing the client request.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Whenever servlet container receives any request, it creates a new thread and execute the&lt;/div&gt;
&lt;div&gt;
service() method by passing request and response as argument. Servlets usually run in multi-&lt;/div&gt;
&lt;div&gt;
threaded environment, so it’s developer responsibility to keep shared resources thread-safe using&lt;/div&gt;
&lt;div&gt;
synchronization.&lt;/div&gt;
&lt;div&gt;
public abstract String getServletInfo() – This method returns string containing information&lt;/div&gt;
&lt;div&gt;
about the servlet, such as its author, version, and copyright. The string returned should be plain&lt;/div&gt;
&lt;div&gt;
text and can’t have markups.&lt;/div&gt;
&lt;div&gt;
public abstract void destroy() – This method can be called only once in servlet life cycle and&lt;/div&gt;
&lt;div&gt;
used to close any open resources. This is like finalize method of a java class.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Servlet Class</title><link>http://ictw9.blogspot.com/2015/05/servlet-class.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:43:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-1051636095920410477</guid><description>&lt;br /&gt;
Servlet is J2EE server driven technology to create web applications in java. The javax.servlet and&lt;br /&gt;
javax.servlet.http packages provide interfaces and classes for writing our own servlets.&lt;br /&gt;
javax.servlet.Servlet interface, which defines servlet lifecycle&lt;br /&gt;
All servlets must implement the javax.servlet.Servlet&lt;br /&gt;
methods. When implementing a generic service, we can extend the GenericServlet class provided&lt;br /&gt;
with the Java Servlet API. The HttpServlet class provides methods, such as doGet() and doPost(),&lt;br /&gt;
specific for handling HTTP-specific services.&lt;br /&gt;
Most of the times, web applications are accessed using HTTP protocol and thats why we mostly extend HttpServlet class.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Web Application Directory Structure</title><link>http://ictw9.blogspot.com/2015/05/web-application-directory-structure.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:41:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-3077164187851858306</guid><description>&lt;br /&gt;
Java Web Applications are packaged as Web Archive (WAR) and it has a defined structure. You can&lt;br /&gt;
hierarchy. export above dynamic web project as WAR file and unzip it to check the hierarchy. It will be something like below image.&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy5NMxFtas2s4jqenwO4GncRi0nYcWfpRKQa_1VsKrjoc0j82QtzFCkOrorjyP3EhUSGHwP38f9M3K9wQlZwThxO3mnhESLT0k-kj9KW1FumuyFOVEyvva0fNRqCmdzLlHXrfj7N6-X1Fr/s1600/web+directory.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Web Archive Root Directory" border="0" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy5NMxFtas2s4jqenwO4GncRi0nYcWfpRKQa_1VsKrjoc0j82QtzFCkOrorjyP3EhUSGHwP38f9M3K9wQlZwThxO3mnhESLT0k-kj9KW1FumuyFOVEyvva0fNRqCmdzLlHXrfj7N6-X1Fr/s320/web+directory.jpg" title="Web Archive Root Directory" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Web Archive Root Directory&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy5NMxFtas2s4jqenwO4GncRi0nYcWfpRKQa_1VsKrjoc0j82QtzFCkOrorjyP3EhUSGHwP38f9M3K9wQlZwThxO3mnhESLT0k-kj9KW1FumuyFOVEyvva0fNRqCmdzLlHXrfj7N6-X1Fr/s72-c/web+directory.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Important Work of Web Container</title><link>http://ictw9.blogspot.com/2015/05/important-work-of-web-container.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:35:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-6386232768487824616</guid><description>Some of the important work done by web container are:&lt;br /&gt;
Communication Support – Container provides easy way of communication between web server&lt;br /&gt;
and the servlets and JSPs. Because of container, we don’t need to build a server socket to listen&lt;br /&gt;
for any request from web server, parse the request and generate response. All these important and&lt;br /&gt;
complex tasks are done by container and all we need to focus is on our business logic for our&lt;br /&gt;
applications.&lt;br /&gt;
Lifecycle and Resource Management – Container takes care of managing the life cycle of&lt;br /&gt;
servlet. Container takes care of loading the servlets into memory, initializing servlets, invoking&lt;br /&gt;
servlet methods and destroying them. Container also provides utility like JNDI for resource&lt;br /&gt;
pooling and management.&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
Multithreading Support – Container creates new thread for every request to the servlet and&lt;br /&gt;
when it’s processed the thread dies. So servlets are not initialized for each request and saves time&lt;br /&gt;
and memory.&lt;br /&gt;
JSP Support – JSPs doesn’t look like normal java classes and web container provides support for&lt;br /&gt;
JSP. Every JSP in the application is compiled by container and converted to Servlet and then&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.810332 90.412518099999943</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.577844499999998 90.089794599999948 24.0428195 90.735241599999938</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Web Container</title><link>http://ictw9.blogspot.com/2015/05/web-container.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:30:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-996587644418305547</guid><description>&lt;br /&gt;
Tomcat is a web container, when a request is made from Client to web server, it passes the request to web container and it’s web container job to find the correct resource to handle the request (servlet or JSP) and then use the response from the resource to generate the response and provide it to web server. Then web server sends the response back to the client.&lt;br /&gt;
When web container gets the request and if it’s for servlet then container creates two Objects&lt;br /&gt;
HTTPServletRequest and HTTPServletResponse. Then it finds the correct servlet based on the URL and creates a thread for the request. Then it invokes the servlet service() method and based on the HTTP method service() method invokes doGet() or doPost() methods. Servlet methods generate the dynamic page and write it to response. Once servlet thread is complete, container converts the response to HTTP response and send it back to client.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Web.xml</title><link>http://ictw9.blogspot.com/2015/05/webxm.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:26:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-7153606341985412128</guid><description>It is called web application deployment descriptor. It provides the configuration&lt;br /&gt;
options for that particular web application, such as defining the the mapping between URL and&lt;br /&gt;
servlet class.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Form-Data Submission Methods: GET|POST</title><link>http://ictw9.blogspot.com/2015/05/form-data-submission-methods-getpost.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:17:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-1968877540846365668</guid><description>Two request methods, GET and POST, are available for submitting form data, to be specified in the&lt;br /&gt;
&amp;lt;form&amp;gt;'s attribute "method=GET|POST". GET and POST performs the same basic function. That is,&lt;br /&gt;
gather the name-value pairs of the selected input elements, URL-encode, and pack them into a query&lt;br /&gt;
string. However, in a GET request, the query string is appended behind the URL, separated by a '?'.&lt;br /&gt;
Whereas in a POST request, the query string is kept in the request body (and not shown in the URL). The length of query string in a GET request is limited by the maximum length of URL permitted, whereas it is unlimited in a POST request. I recommend POST request for production, as it does not show the strange looking query string in the URL, even if the amount of data is limited. In this tutorial, I use GET method, so that you can inspect the query string on the URL.&lt;br /&gt;
To try out the POST request, modify the "form_input.html":&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;form method="post" action="echo"&amp;gt;&lt;br /&gt;
......&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
Inside the servlet, GET request is processed by the method doGet(), while POST request is processed by&lt;br /&gt;
the method doPost(). Since they often perform identical operations, we re-direct doPost() to&lt;br /&gt;
doGet() (or vice versa), as follows:&lt;br /&gt;
public class MyServlet extends HttpServlet {&lt;br /&gt;
// doGet() handles GET request&lt;br /&gt;
@Override&lt;br /&gt;
public void doGet(HttpServletRequest request, HttpServletResponse response)&lt;br /&gt;
throws IOException, ServletException {&lt;br /&gt;
......&lt;br /&gt;
......&lt;br /&gt;
}&lt;br /&gt;
// doPost() handles POST request&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
@Override&lt;/div&gt;
&lt;div&gt;
public void doPost(HttpServletRequest request, HttpServletResponse response)&lt;/div&gt;
&lt;div&gt;
throws IOException, ServletException {&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Configure the Servlet URL Mapping </title><link>http://ictw9.blogspot.com/2015/05/configure-servlet-url-mapping.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:14:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-4835105096827822567</guid><description>Configure the Servlet URL mapping in "web.xml"&lt;br /&gt;
Our &amp;lt;form&amp;gt;'s action attribute refers to relative URL "echo", which has to be mapped to the&lt;br /&gt;
EchoServlet.class in the web application deployment descriptor file "WEB-INF\web.xml":&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;&lt;br /&gt;
&amp;lt;web-app version="3.0"&lt;br /&gt;
xmlns="http://java.sun.com/xml/ns/javaee"&lt;br /&gt;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&lt;br /&gt;
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee&lt;br /&gt;
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"&amp;gt;&lt;br /&gt;
&amp;lt;!-- To save as &amp;lt;CATALINA_HOME&amp;gt;\webapps\helloservlet\WEB-INF\web.xml --&amp;gt;&lt;br /&gt;
&amp;lt;servlet&amp;gt;&lt;br /&gt;
&amp;lt;servlet-name&amp;gt;HelloWorldServlet&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;
&amp;lt;servlet-class&amp;gt;mypkg.HelloServlet&amp;lt;/servlet-class&amp;gt;&lt;br /&gt;
&amp;lt;/servlet&amp;gt;&lt;br /&gt;
&amp;lt;servlet&amp;gt;&lt;br /&gt;
&amp;lt;servlet-name&amp;gt;EchoServletExample&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;
&amp;lt;servlet-class&amp;gt;mypkg.EchoServlet&amp;lt;/servlet-class&amp;gt;&lt;br /&gt;
&amp;lt;/servlet&amp;gt;&lt;br /&gt;
&amp;lt;!-- Note: All &amp;lt;servlet&amp;gt; elements MUST be grouped together and&lt;br /&gt;
placed IN FRONT of the &amp;lt;servlet-mapping&amp;gt; elements --&amp;gt;&lt;br /&gt;
&amp;lt;servlet-mapping&amp;gt;&lt;br /&gt;
&amp;lt;servlet-name&amp;gt;HelloWorldServlet&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;
&amp;lt;url-pattern&amp;gt;/sayhello&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;
&amp;lt;/servlet-mapping&amp;gt;&lt;br /&gt;
&amp;lt;servlet-mapping&amp;gt;&lt;br /&gt;
&amp;lt;servlet-name&amp;gt;EchoServletExample&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;
&amp;lt;url-pattern&amp;gt;/echo&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;
&amp;lt;/servlet-mapping&amp;gt;&lt;br /&gt;
&amp;lt;/web-app&amp;gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Cookies</title><link>http://ictw9.blogspot.com/2015/05/cookies.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:07:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-5547411239560817956</guid><description>&amp;nbsp;They are small piece of information that is sent by web server in response header&lt;br /&gt;
and gets stored in the browser cookies. When client make further request, it adds the cookie to the&lt;br /&gt;
request header and we can utilize it to keep track of the session. We can maintain a session with&lt;br /&gt;
cookies but if the client disables the cookies, then it won’t work.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>URL Rewriting </title><link>http://ictw9.blogspot.com/2015/05/url-rewriting.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:05:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-2931095406398589736</guid><description>&amp;nbsp;We can append a session identifier parameter with every request and response&lt;br /&gt;
to keep track of the session. This is very tedious because we need to keep track of this parameter&lt;br /&gt;
in every response and make sure it’s not clashing with other parameters.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>HTML Hidden Field </title><link>http://ictw9.blogspot.com/2015/05/html-hidden-field.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:03:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-8708811401070021634</guid><description>&amp;nbsp;We can create a unique hidden field in the HTML and when user starts&lt;br /&gt;
navigating, we can set its value unique to the user and keep track of the session. This method&lt;br /&gt;
can’t be used with links because it needs the form to be submitted every time request is made from client to server with the hidden field. Also it’s not secure because we can get the hidden&lt;br /&gt;
field value from the HTML source and use it to hack the session.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title> Session</title><link>http://ictw9.blogspot.com/2015/05/session.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 03:01:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-3305166585132722511</guid><description>&lt;br /&gt;
HTTP protocol and Web Servers are stateless, what it means is that for web server every request is a new request to process and they can’t identify if it’s coming from client that has been sending request&lt;br /&gt;
previously.&lt;br /&gt;
But sometimes in web applications, we should know who the client is and process the request&lt;br /&gt;
accordingly. For example, a shopping cart application should know who is sending the request to add an item and in which cart the item has to be added or who is sending checkout request so that it can charge the amount to correct client.&lt;br /&gt;
Session is a conversional state between client and server and it can consists of multiple request and&lt;br /&gt;
response between client and server. Since HTTP and Web Server both are stateless, the only way to&lt;br /&gt;
maintain a session is when some unique information about the session (session id) is passed between&lt;br /&gt;
server and client in every request and response.&lt;br /&gt;
There are several ways through which we can provide unique identifier in request and response.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Server-Side Technologies</title><link>http://ictw9.blogspot.com/2015/05/server-side-technologies.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:57:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-3656027057829260622</guid><description>&lt;br /&gt;
There are many (competing) server-side technologies available: Java-based (servlet, JSP, JSF, Struts,&lt;br /&gt;
Spring, Hibernate), ASP, PHP, CGI Script, and many others.&lt;br /&gt;
Java servlet is the foundation of the Java server-side technology, JSP (JavaServer Pages), JSF (JavaServer Faces), Struts, Spring, Hibernate, and others, are extensions of the servlet technology.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Importance of Servlet and JSPs</title><link>http://ictw9.blogspot.com/2015/05/importance-of-servlet-and-jsps.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:53:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-8032938611262201482</guid><description>Web servers are good for static contents HTML pages but they don’t know how to generate dynamic&lt;br /&gt;
content or how to save data into databases, so we need another tool that we can use to generate dynamic content. There are several programming languages for dynamic content like PHP, Python, Ruby on Rails, Java Servlets and JSPs.&lt;br /&gt;
Java Servlet and JSPs are server side technologies to extend the capability of web servers by providing support for dynamic response and data persistence.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Mime Type</title><link>http://ictw9.blogspot.com/2015/05/mime-type.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:50:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-783010297209675142</guid><description>If you see above sample HTTP response header, it contains tag “Content-Type”. It’s also called MIME type and server sends it to client to let them know the kind of data it’s sending. It helps client in rendering the data for user. Some of the mostly used mime types are text/html, text/xml, application/xml etc.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>HTTP Response</title><link>http://ictw9.blogspot.com/2015/05/http-response.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:47:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-5644464349300733535</guid><description>Some of the important parts of HTTP Response are:&lt;br /&gt;
Status Code – an integer to indicate whether the request was success or not. Some of the well&lt;br /&gt;
known status codes are 200 for success, 404 for Not Found and 403 for Access Forbidden.&lt;br /&gt;
Content Type – text, html, image, pdf etc. Also known as MIME type&lt;br /&gt;
Content – actual data that is rendered by client and shown to user.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>HTTP Request</title><link>http://ictw9.blogspot.com/2015/05/http-request.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:46:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-331306900166859204</guid><description>Some of the important parts of HTTP Request are:&lt;br /&gt;
HTTP Method – action to be performed, usually GET, POST, PUT etc.&lt;br /&gt;
URL – Page to access&lt;br /&gt;
Form Parameters – similar to arguments in a java method, for example user, password details&lt;br /&gt;
from login page.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>HTTP</title><link>http://ictw9.blogspot.com/2015/05/http.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:44:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-9165601578048073565</guid><description>Web server and client needs a common communication protocol, HTTP (HyperText Transfer Protocol) is the communication protocol between server and client. HTTP runs on top of TCP/IP communication protocol.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>HTML</title><link>http://ictw9.blogspot.com/2015/05/html.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:42:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-595457941163688088</guid><description>Web Server and Web Client are two separate softwares, so there should be some common language for communication. HTML is the common language between server and client and stands for HyperText Markup Language.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Web Client</title><link>http://ictw9.blogspot.com/2015/05/web-client.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:40:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-6131762525106153230</guid><description>A web client is a software that helps in communicating with the server. Some of the most widely used&lt;br /&gt;
web clients are Firefox, Google Chrome, Safari etc. When we request something from server (through URL), web client takes care of creating a request and sending it to server and then parsing the server response and present it to the user.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Web Server</title><link>http://ictw9.blogspot.com/2015/05/web-server.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:37:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-8863379028225623778</guid><description>Web Server is a software that can process the client request and send the response back to the client. For example, Apache is one of the most widely used web server. Web Server runs on some physical machine and listens to client request on specific port.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>Web Application</title><link>http://ictw9.blogspot.com/2015/05/web-application.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:35:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-1831285711899917331</guid><description>Web Applications are used to create dynamic websites. Java provides support for web application&lt;br /&gt;
through Servlets and JSPs. We can create a website with static HTML pages but when we want&lt;br /&gt;
information to be dynamic, we need web application.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item><item><title>New Webapp for the JSF Hello-world</title><link>http://ictw9.blogspot.com/2015/05/new-webapp-for-jsf-hello-world.html</link><category>Web Dev Basic Knowledge</category><pubDate>Mon, 4 May 2015 02:30:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8753403939733745481.post-6696352758868529028</guid><description>&lt;div class="MsoNormal"&gt;
Let's define a new web context (web application) called
"hellojsf" in Tomcat for our JSF Hello-world&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
application. First of all, we need to create the standard
directory structure for the web context (as shown&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
in the figure below). Create a directory called
"hellojsf", under the $CATALINA_HOME\webapps&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
directory (where $CATALINA_HOME is the Tomcat's installed
directory). Create a sub-directory "WEB-&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
INF" under "hellojsf". Create
sub-sub-directories: "classes", "lib" and "src"
under "WEB-INF".&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
Keep the files in the appropriate directories:&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
"$CATALINA_HOME\webapps\hellojsf":
This directory is known as context root, and keeps&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
the "jsp", "html" and resources
available to web users.&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
"$CATALINA_HOME\webapps\hellojsf\WEB-INF":
Keeps the webapp configuration files,&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
such as "web.xml", "faces-config.xml".&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
"$CATALINA_HOME\webapps\hellojsf\WEB-INF\src":
Keeps the java program source files&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
(optional).&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
Let's define a new web context (web application) called
"hellojsf" in Tomcat for our JSF Hello-world&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
application. First of all, we need to create the standard
directory structure for the web context (as shown&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
in the figure below). Create a directory called
"hellojsf", under the $CATALINA_HOME\webapps&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
directory (where $CATALINA_HOME is the Tomcat's installed
directory). Create a sub-directory "WEB-&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
INF" under "hellojsf". Create
sub-sub-directories: "classes", "lib" and "src"
under "WEB-INF".&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
Keep the files in the appropriate directories:&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
"$CATALINA_HOME\webapps\hellojsf":
This directory is known as context root, and keeps&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
the "jsp", "html" and resources
available to web users.&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
"$CATALINA_HOME\webapps\hellojsf\WEB-INF":
Keeps the webapp configuration files,&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
such as "web.xml", "faces-config.xml".&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
"$CATALINA_HOME\webapps\hellojsf\WEB-INF\src":
Keeps the java program source files&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="MsoNormal"&gt;
(optional).&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><georss:featurename xmlns:georss="http://www.georss.org/georss">Rampura, Dhaka, Bangladesh</georss:featurename><georss:point xmlns:georss="http://www.georss.org/georss">23.7612256 90.420765999999958</georss:point><georss:box xmlns:georss="http://www.georss.org/georss">23.746693099999998 90.400595999999965 23.7757581 90.440935999999951</georss:box><author>noreply@blogger.com (Md. Al Hasan Juwel)</author></item></channel></rss>