|
Integrating Struts and Hibernate |
|
id: Unique key for the table.
shortdesc: This fields stores the short
description of the tutorial.
longdesc: This field stores the full
description about the tutorial.
pageurl: This field is stores the url of the
tutorial.
Run the following query to populate table with
tutorials data:
INSERT INTO ‘tutorials‘ VALUES (1, ‘JSP
Tutorials, Hibernate and struts Tutorials’,
‘This site contains many quality Java, JSP
Tutorials, Hibernate Tutorials, Struts
Tutorials, JSF Tutorials, RMI, MySQL Tutorials,
Spring Tutorials, source codes and links to
other java resources. We have large number
of links to the tutorials on java’, ‘http://
roseindia.net/’);
INSERT INTO ‘tutorials‘ VALUES (2, ‘JSP
Tutorial’, ‘Java Server Pages or JSP for short
is Sun”s solution for developing dynamic web
sites. JSP provide excellent server side
scripting support for creating database driven
web applications.’, ‘http://www.roseindia.net/
jsp/jsp.shtml’);
INSERT INTO ‘tutorials‘ VALUES (3, ‘Struts
Tutorials - Jakarta Struts Tutorial’, ‘This
complete reference of Jakarta Struts shows
you how to develop Struts applications using
ant and deploy on the JBoss Application
Server. Ant script is provided with the
example code. Many advance topics like Tiles,
Struts Validation Framework, Ja’, ‘http://www.roseindia.net/struts/index.shtml’);
INSERT INTO ‘tutorials‘ VALUES (4, ‘The
Complete Spring Tutorial’, ‘Spring is grate
framework for development of Enterprise
grade applications. Spring is a light-weight
framework for the development of enterpriseready
applications. Spring can be used to
configure declarative transaction
management, remote access to’, ‘http://
www.roseindia.net/spring/index.shtml’);
|
|
Faces (JSF) Tutorial’, ‘JavaServer Faces
or JSF is grate technology for the
development of user interfaces for web
applications. The Java Server Faces
specification is defined by JSR 127 of the Java
Community Process.’, ‘http://
www.roseindia.net/jsf/’);
INSERT INTO ‘tutorials‘ VALUES (6, ‘Jboss
3.0 Tutorial’, ‘ This lesson shows you how to
build you web application and install on the
Jboss 3.0 application server. After the
completion of this lesson you will be able to
compile, assemble and deploy your J2EE
application on Jboss 3.0 application server.’,
‘http://www.roseindia.net/jboss/
index.shtml’);
In the above steps we have setup our
database. In the next section we will write
java stuffs to integrate struts and hibernate.
2. Downloading Struts & Hibernate
In this explains downloading Struts &
Hibernate and setting up the development
environment.
Downloading Hibernate
Hibernate is free open source software it can
be download from http://www.hibernate.org/.
Visit http://www.hibernate.org/ and then click
on the Download link to go to the download
page. From the download page download the
current latest release of Hibernate Core. For
this article, we have downloaded Hibernate
hibernate-3.1.1.zip.
Download Struts
The latest release of Struts can be
downloaded from http://struts.apache.org/
download.cgi. For this article we have
downloaded struts-1.2.9-bin.zip. Save
downloaded file into your hard disk.
Downloading Ant
Ant is a free tool under GNU License and is
freely available at http://jakarta.apache.org/
ant/. Ant allows the developer to automate
the repeated process involved in the
development of J2EE application. Developers
can easily write the script to automate the build process like compilation, archiving and
deployment. For this article we are using
apache-ant-1.6.5.
|
|
Dec
2007 | Java Jazz Up | 52 |
|
|
View All Topics |
All Pages of this Issue |
Pages:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53 ,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63 ,
64,
65 ,
66 ,
67 ,
68 ,
69 ,
70 ,
71 ,
72 ,
73 ,
74 ,
75 ,
76 ,
77 ,
78 ,
79 ,
80 ,
81 ,
82 , Download PDF |
|
|
|
|
|
|
|
|
|