You are here

J2EE

Integrate J2ME Mobile Clients into Web Service 1 -- Install Web Service

Blog Terms: 

In this post I will build one Web Service with Axis2, and write one J2ME application as one Web Service client. We will know how Web Service works with mobile client.

javax.servlet.ServletException: Unknown initial character set index '48' received from server. Initial client character set can

Blog Terms: 

This week I reinstalled my system, and I found one J2EE Servlet project can not be run after I reinstalled all of the programming softwares and eclipse, this project does connect MySQL database(This project had no problem before). I got this Exception: javax.servlet.ServletException: Unknown initial character set index
'48' received from server. Initial client character set can be forced
via the 'characterEncoding' property.

 Strange, I went to ask my Google friend and I found those information:

MyEclipse+Hibernate 4--Connect to Oracle Database

Blog Terms: 

The connection with Oracle Database has the same step when you connect with MySQL database. The difference lies on the selection of Driver JARs.

In DB Browse, click new icon to create a new connection.

Click Configure database driver:

Add new drivers:

MyEclipse+Hibernate 3--Operatation with database, update records

Blog Terms: 

If you get the data from the same one Session and want to update it right now, just use setXXX() and call session.flush(), and the new data will be inputted into the session. We have used this method in chapter before.

If you has opened one session to get he data from it and then closed the session after finished. How to update the data? Another new seesion should be opened, and call update() to update the database. For example, the first record name is "1", it will be replaced with "lee":


package test;
import java.util.Iterator;
import java.util.List;

MyEclipse+Hibernate 2--Operatation with database, query and list records

Blog Terms: 

Let's go over the project we have done. Open Package Explorer, the class and file structue is like this:

Open User.hbm.xml, this file  is the database mapping file of project, open it.

MyEclipse+Hibernate 1--Get start and add record

Blog Terms: 
First of all, I strongly recommand you to use MyEclispe 5.0.1GA and Eclipse 3.2M2, because Hibernate seems do not like the old version of MyEclipse(4.0 or 4.1) and Eclispe 3.1, many boring and stupid exceptions were thrown during the database operation test, such as "cannot connect to database","primery-key error". After 2 days of suffering this, I begin to use the new version, this makes Hibernate very very happy, and it works very fine till now.

Requirement:
1. Eclipse 3.2M2     free for downloading
2. MyEclispe 5.0.1 GA  free to test

使用myeclipse集成struts,hibernate,spring的一个示例程序(转)

Blog Terms: 
作者: eclipsetolearn 
http://key.blog.ccidnet.com/blog/ccid/do_showone/tid_94398.html

Struts+Spring+Hibernate组装web应用(转)

Blog Terms: 
Struts+Spring+Hibernate组装web应用

摘要:

Debugging von JSP und Java Anwendungen(T)

Blog Terms: 

Debugging von JSP und Java Anwendungen

Dieses Tutorial gibt einen Überblick wie man das integrierte Debugging Feature von Eclipse zum debuggen von Web-Projekten und anderen Projekten nutzt.

Allgemeines

Autor:

Sascha Wolski

Sebastian Hennebrüder

http://www.laliluna.de/tutorial.html – Tutorials für Struts, EJB, xdoclet und eclipse.

Datum:

Pages

Subscribe to RSS - J2EE