This post is about how to call a Servlet from GWT client code. Here is Exness账户类型 simple HelloServlet class.1public class HelloServlet extends HttpServlet {2 public void doGet(HttpServletRequest request, HttpServletResponse response) {3 String name = request.getParameter("myParam");4 System.out.println("Hello " + name); 5 }6}7 To call the Servlet from the client first configure the web.xml (war/WEB-INF/web.xml) file to let [...]
Dialect Resolver In Hibernate
by Coffee on 18. Nov, 2011 in Hibernate, Hibernate Configuration Properties
In my last post I have written about Hibernate Exness 账户类型 Configuration Dialect Property.In that post I described about dialect property,different types of dialect supported by hibernate and how things works for hibernate through dialect property.In this post I will describe about things which is behind the scene in this whole dialect process and how things get [...]
Hibernate Configuration Dialect Property
by Coffee on 16. Nov, 2011 in Hibernate, Hibernate Configuration Properties
The dialect property tells Hibernate which SQL dialect to use for certain operations. Although not strictly required, it should be used to ensure Hibernate Query Language (HQL) statements are correctly converted into the proper SQL dialect for the underlying database. The dialect property tells the framework whether the given database supports identity columns, altering relational [...]
Client Side Session Time Out In GWT
by Coffee on 15. Nov, 2011 in GWT, GWT-Ext, GWTP
While working on an GWT application I am in need to https://e-markets.cn.com/exness-account-types specify some procedure through which client side session time out can be handled.Here client side session time out means If client side session timer value set to 30 mins.And logged in user is not active for 30 mins on screen then on any event [...]
Hibernate Configuration SQL Properties
by Coffee on 15. Nov, 2011 in Hibernate, Hibernate Configuration Properties
In this post I am going to describe about three properties of Hibernate configuration.All three properties related to sql which is generated by Hibernate while communicating with server.All three properties are optional.But use of them make it easy to developer to understand what hibernate is doing to database. 1.hibernate.show_sql property This used to print hibernate [...]
How To Add Java Script File To GWT Application?
by Coffee on 10. Nov, 2011 in GWT, GWTP, JavaScript
JavaScript is a scripting language of the Web.JavaScript is used in billions of Web pages to add functionality, validate forms, communicate with the server, and much more.In this post I am going to write about how to add a java script file in a GWT application. For this first of all one need to create [...]
GWTP History Management
by Coffee on 10. Nov, 2011 in GWT, GWTP
Few days back I posted an article related to history management in gwt application.Here is link for that post.In that post I wrote about how history can be managed in a GWT application.Also gave an example how ValueChangeHandler interface can be implemented. So that one can easily manage fired history token. In this post I [...]
Error:Loading Web Service DOM…
by Coffee on 08. Nov, 2011 in Eclipse
I am using eclipse 3.6 Helios version.I was working on it from last three months.But from last two days I am getting some error. When eclipse started it is giving an error in this format:An internal error occurred during: “Loading Web Service DOM…” .org.eclipse.emf.ecore.util.EcoreEMap$DelegateEObjectContainmentEList I am not getting how can suddenly error occurred. After this [...]
How To Use IN expression HQL (Hibernate Query Language) ?
by Coffee on 07. Nov, 2011 in Hibernate, Hibernate Query Language
The IN operator allows you to specify multiple values in a WHERE clause in HQL.One can use it when he knows the exact value you want to return for at least one of the columns Here below is an example how to IN expression Hibernate Query Language. Here is bean class of User.01public class User [...]
Display mysql table as html view.
by Coffee on 05. Nov, 2011 in Java, MySQL, Php
PHP | copy code |? 01<html><body>02<?php03$database = ‘databasename’;04$table = ‘tablename’;05 06if (!mysql_connect(host, username,))07 die("Can’t connect to database");08 09if (!mysql_select_db($database))10 die("Can’t select database");11 12$result = mysql_query("SELECT * FROM {$table}");13if (!$result) {14 die("Query to show fields from table failed");15}16$num = mysql_num_fields($result);17 18echo "<h1>Table: {$table}</h1>";19echo "<table border=’1′><tr>";20// display table headers21for($i=0; $i<$num; $i++)22{23 $field = mysql_fetch_field($result);24 echo "<td>{$field->name}</td>";25}26echo "</tr>\n";27// print table rows28while($row = mysql_fetch_row($result))29{30 echo "<tr>";31 // $row [...]
Categories
- Eclipse (3)
- GWT (13)
- Hibernate (4)
- Java (27)
-
Php (12)
- Ajax (1)
- JavaScript (2)
- MySQL (2)
- Php Fresher Interview Questions (1)
- Smarty (1)
- Wordpress (1)
- X-Cart (1)
- Programming Concept (2)
- Regular Expression (2)
- Servlet (1)