|
|
<html:base/>
</head>
<body>
<p align=”center”><font size=”5"
color=”#800000">Welcome to the Simple
Struts Application</font></p>
<div align=”center”>
<center>
<table border=”1" cellspacing=”1"
width=”400">
<li>
<html:link page=”/pages/
MappingDispatchAction.jsp”>Demo of a
Simple Struts Application</html:link>
</li>
</table>
</center>
</div>
</body>
</html:html>
struts-config.xml
<?xml version=”1.0" encoding=”ISO-8859-1"
?>
<!DOCTYPE struts-config PUBLIC “-//Apache
Software Foundation//DTD Struts
Configuration 1.2//EN””http://
jakarta.apache.org/struts/dtds/strutsconfig_
1_2.dtd”>
<struts-config>
<action-mappings>
<action path=”/LookupDispatchAction”
type=”roseindia.net.LookupDispatch_Action”
parameter=”parameter”
input=”/pages/LookupDispatchAction.jsp”
scope=”request”
validate=”false”>
<forward name=”add” path=”/pages/
LookupDispatchActionAdd.jsp” /> <forward
name=”edit” path=”/pages/
LookupDispatchActionEdit.jsp” />
<forward name=”search” path=”/pages/
LookupDispatchActionSearch.jsp”/>
<forward name=”save” path=”/pages/
LookupDispatchActionSave.jsp” />
</action>
<action
path=”/MappingDispatchAction”
type=”roseindia.net.MappingDispatch_Action”
parameter=”add”
|
|
input=”/pages/MappingDispatchAction.jsp”
scope=”request”
validate=”false”>
<forward name=”add” path=”/pages/
MappingDispatchActionAdd.jsp” />
</action>
<action
path=”/MappingDispatchAction”
type=”roseindia.net.MappingDispatch_Action”
parameter=”edit”
input=”/pages/
MappingDispatchAction.jsp”
scope=”request”
validate=”false”>
<forward name=”edit” path=”/pages/
MappingDispatchActionEdit.jsp” />
</action>
<action
path=”/MappingDispatchAction”
type=”roseindia.net.MappingDispatch_Action”
parameter=”search”
input=”/pages/
MappingDispatchAction.jsp”
scope=”request”
validate=”false”>
<forward name=”search” path=”/
pages/MappingDispatchActionSearch.jsp”/>
</action>
<action
path=”/MappingDispatchAction”
type=”roseindia.net.MappingDispatch_Action”
parameter=”save”
input=”/pages/
MappingDispatchAction.jsp”
scope=”request”
validate=”false”>
<forward name=”save” path=”/pages/
MappingDispatchActionSave.jsp” />
</action>
</action-mappings>
</struts-config>
web.xml
<?xml version=”1.0" encoding=”ISO-8859-
1"?>
<!DOCTYPE web-app PUBLIC “-//Sun
Microsystems, Inc.//DTD Web Application 2.2/
/EN” “http://java.sun.com/j2ee/dtds/webapp_
2_2.dtd”>
<web-app> |
|
|
|
|
Mar
2008 | Java Jazz Up |27 |
|
|
|
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,
Download PDF |
|
|
|
|
|
|
|
|
|