~ubuntu-branches/ubuntu/trusty/libstruts1.2-java/trusty-proposed

« back to all changes in this revision

Viewing changes to legacy/api-1.0/org/apache/struts/action/Action.html

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2004-11-19 15:35:25 UTC
  • Revision ID: james.westby@ubuntu.com-20041119153525-mdu08a76z4zo67xt
Tags: upstream-1.2.4
Import upstream version 1.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
 
2
<!--NewPage-->
 
3
<HTML>
 
4
<HEAD>
 
5
<!-- Generated by javadoc on Fri Jun 15 16:53:35 PDT 2001 -->
 
6
<TITLE>
 
7
Apache Struts API Documentation: Class  Action
 
8
</TITLE>
 
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
 
10
</HEAD>
 
11
<BODY BGCOLOR="white">
 
12
 
 
13
<!-- ========== START OF NAVBAR ========== -->
 
14
<A NAME="navbar_top"><!-- --></A>
 
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 
16
<TR>
 
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
18
<A NAME="navbar_top_firstrow"><!-- --></A>
 
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 
20
  <TR ALIGN="center" VALIGN="top">
 
21
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
22
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
23
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
27
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
28
  </TR>
 
29
</TABLE>
 
30
</TD>
 
31
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
32
</EM>
 
33
</TD>
 
34
</TR>
 
35
 
 
36
<TR>
 
37
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
38
&nbsp;PREV CLASS&nbsp;
 
39
&nbsp;<A HREF="../../../../org/apache/struts/action/ActionBase.html"><B>NEXT CLASS</B></A></FONT></TD>
 
40
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
41
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
 
42
&nbsp;<A HREF="Action.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
 
43
</TR>
 
44
<TR>
 
45
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
46
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
47
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
48
DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
49
</TR>
 
50
</TABLE>
 
51
<!-- =========== END OF NAVBAR =========== -->
 
52
 
 
53
<HR>
 
54
<!-- ======== START OF CLASS DATA ======== -->
 
55
<H2>
 
56
<FONT SIZE="-1">
 
57
org.apache.struts.action</FONT>
 
58
<BR>
 
59
Class  Action</H2>
 
60
<PRE>
 
61
java.lang.Object
 
62
  |
 
63
  +--<B>org.apache.struts.action.Action</B>
 
64
</PRE>
 
65
<DL>
 
66
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/struts/action/ActionBase.html">ActionBase</A>, <A HREF="../../../../org/apache/struts/actions/AddFormBeanAction.html">AddFormBeanAction</A>, <A HREF="../../../../org/apache/struts/actions/AddForwardAction.html">AddForwardAction</A>, <A HREF="../../../../org/apache/struts/actions/AddMappingAction.html">AddMappingAction</A>, <A HREF="../../../../org/apache/struts/actions/DispatchAction.html">DispatchAction</A>, <A HREF="../../../../org/apache/struts/actions/ForwardAction.html">ForwardAction</A>, <A HREF="../../../../org/apache/struts/actions/IncludeAction.html">IncludeAction</A>, <A HREF="../../../../org/apache/struts/actions/ReloadAction.html">ReloadAction</A>, <A HREF="../../../../org/apache/struts/actions/RemoveFormBeanAction.html">RemoveFormBeanAction</A>, <A HREF="../../../../org/apache/struts/actions/RemoveForwardAction.html">RemoveForwardAction</A>, <A HREF="../../../../org/apache/struts/actions/RemoveMappingAction.html">RemoveMappingAction</A></DD>
 
67
</DL>
 
68
<HR>
 
69
<DL>
 
70
<DT>public class <B>Action</B><DT>extends java.lang.Object</DL>
 
71
 
 
72
<P>
 
73
An <strong>Action</strong> is an adapter between the contents of an incoming
 
74
 HTTP request and the corresponding business logic that should be executed to
 
75
 process this request.  The controller (ActionServlet) will select an
 
76
 appropriate Action for each request, create an instance (if necessary),
 
77
 and call the <code>perform</code> method.
 
78
 <p>
 
79
 Actions must be programmed in a thread-safe manner, because the controller
 
80
 will share the same instance for multiple simultaneous requests.  In
 
81
 this means you should design with the following items in mind:
 
82
 <ul>
 
83
 <li>Instance and static variables MUST NOT be used to store information
 
84
     related to the state of a particular request.  They MAY be used to
 
85
     share global resources across requests for the same action.</li>
 
86
 <li>Access to other resources (JavaBeans, session variables, etc.) MUST
 
87
     be synchronized if those resources require protection.  (Generally,
 
88
     however, resource classes should be designed to provide their own
 
89
     protection where necessary.</li>
 
90
 </ul>
 
91
 <p>
 
92
 When an <code>Action</code> instance is first created, the controller
 
93
 servlet will call <code>setServlet()</code> with a non-null argument to
 
94
 identify the controller servlet instance to which this Action is attached.
 
95
 When the controller servlet is to be shut down (or restarted), the
 
96
 <code>setServlet()</code> method will be called with a <code>null</code>
 
97
 argument, which can be used to clean up any allocated resources in use
 
98
 by this Action.
 
99
<P>
 
100
<DL>
 
101
<DT><B>Version: </B><DD>$Revision: 1.1 $ $Date: 2001/09/17 20:03:01 $</DD>
 
102
<DT><B>Author: </B><DD>Craig R. McClanahan</DD>
 
103
</DL>
 
104
<HR>
 
105
 
 
106
<P>
 
107
<!-- ======== INNER CLASS SUMMARY ======== -->
 
108
 
 
109
 
 
110
<!-- =========== FIELD SUMMARY =========== -->
 
111
 
 
112
<A NAME="field_summary"><!-- --></A>
 
113
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
114
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
115
<TD COLSPAN=2><FONT SIZE="+2">
 
116
<B>Field Summary</B></FONT></TD>
 
117
</TR>
 
118
<TR BGCOLOR="white" CLASS="TableRowColor">
 
119
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
120
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
121
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#DATA_SOURCE_KEY">DATA_SOURCE_KEY</A></B></CODE>
 
122
 
 
123
<BR>
 
124
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The context attributes key under which our <strong>default</strong>
 
125
 configured data source (which must implement
 
126
 <code>javax.sql.DataSource</code>) is stored,
 
127
 if one is configured for this application.</TD>
 
128
</TR>
 
129
<TR BGCOLOR="white" CLASS="TableRowColor">
 
130
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
131
<CODE>protected static&nbsp;java.util.Locale</CODE></FONT></TD>
 
132
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#defaultLocale">defaultLocale</A></B></CODE>
 
133
 
 
134
<BR>
 
135
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The system default Locale.</TD>
 
136
</TR>
 
137
<TR BGCOLOR="white" CLASS="TableRowColor">
 
138
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
139
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
140
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#ERROR_KEY">ERROR_KEY</A></B></CODE>
 
141
 
 
142
<BR>
 
143
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The request attributes key under which your action should store an
 
144
 <code>org.apache.struts.action.ActionErrors</code> object, if you
 
145
 are using the corresponding custom tag library elements.</TD>
 
146
</TR>
 
147
<TR BGCOLOR="white" CLASS="TableRowColor">
 
148
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
149
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
150
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#EXCEPTION_KEY">EXCEPTION_KEY</A></B></CODE>
 
151
 
 
152
<BR>
 
153
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The request attributes key under which Struts custom tags might store a
 
154
 <code>Throwable</code> that caused them to report a JspException at
 
155
 runtime.</TD>
 
156
</TR>
 
157
<TR BGCOLOR="white" CLASS="TableRowColor">
 
158
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
159
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
160
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#FORM_BEANS_KEY">FORM_BEANS_KEY</A></B></CODE>
 
161
 
 
162
<BR>
 
163
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The context attributes key under which our
 
164
 <code>org.apache.struts.action.ActionFormBeans</code> collection
 
165
 is normally stored, unless overridden when initializing our
 
166
 ActionServlet.</TD>
 
167
</TR>
 
168
<TR BGCOLOR="white" CLASS="TableRowColor">
 
169
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
170
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
171
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#FORWARDS_KEY">FORWARDS_KEY</A></B></CODE>
 
172
 
 
173
<BR>
 
174
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The context attributes key under which our
 
175
 <code>org.apache.struts.action.ActionForwards</code> collection
 
176
 is normally stored, unless overridden when initializing our
 
177
 ActionServlet.</TD>
 
178
</TR>
 
179
<TR BGCOLOR="white" CLASS="TableRowColor">
 
180
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
181
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
182
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#LOCALE_KEY">LOCALE_KEY</A></B></CODE>
 
183
 
 
184
<BR>
 
185
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The session attributes key under which the user's selected
 
186
 <code>java.util.Locale</code> is stored, if any.</TD>
 
187
</TR>
 
188
<TR BGCOLOR="white" CLASS="TableRowColor">
 
189
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
190
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
191
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#MAPPING_KEY">MAPPING_KEY</A></B></CODE>
 
192
 
 
193
<BR>
 
194
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The request attributes key under which our
 
195
 <code>org.apache.struts.ActionMapping</code> instance
 
196
 is passed.</TD>
 
197
</TR>
 
198
<TR BGCOLOR="white" CLASS="TableRowColor">
 
199
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
200
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
201
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#MAPPINGS_KEY">MAPPINGS_KEY</A></B></CODE>
 
202
 
 
203
<BR>
 
204
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The context attributes key under which our
 
205
 <code>org.apache.struts.action.ActionMappings</code> collection
 
206
 is normally stored, unless overridden when initializing our
 
207
 ActionServlet.</TD>
 
208
</TR>
 
209
<TR BGCOLOR="white" CLASS="TableRowColor">
 
210
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
211
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
212
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#MESSAGES_KEY">MESSAGES_KEY</A></B></CODE>
 
213
 
 
214
<BR>
 
215
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The context attributes key under which our application resources are
 
216
 normally stored, unless overridden when initializing our ActionServlet.</TD>
 
217
</TR>
 
218
<TR BGCOLOR="white" CLASS="TableRowColor">
 
219
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
220
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
221
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#MULTIPART_KEY">MULTIPART_KEY</A></B></CODE>
 
222
 
 
223
<BR>
 
224
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The request attributes key under which our multipart class is stored.</TD>
 
225
</TR>
 
226
<TR BGCOLOR="white" CLASS="TableRowColor">
 
227
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
228
<CODE>protected &nbsp;<A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A></CODE></FONT></TD>
 
229
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#servlet">servlet</A></B></CODE>
 
230
 
 
231
<BR>
 
232
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The controller servlet to which we are attached.</TD>
 
233
</TR>
 
234
<TR BGCOLOR="white" CLASS="TableRowColor">
 
235
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
236
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
237
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#SERVLET_KEY">SERVLET_KEY</A></B></CODE>
 
238
 
 
239
<BR>
 
240
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The context attributes key under which we store the mapping defined
 
241
 for our controller serlet, which will be either a path-mapped pattern
 
242
 (<code>/action/*</code>) or an extension mapped pattern
 
243
 (<code>*.do</code>).</TD>
 
244
</TR>
 
245
<TR BGCOLOR="white" CLASS="TableRowColor">
 
246
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
247
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 
248
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#TRANSACTION_TOKEN_KEY">TRANSACTION_TOKEN_KEY</A></B></CODE>
 
249
 
 
250
<BR>
 
251
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The session attributes key under which our transaction token is
 
252
 stored, if it is used.</TD>
 
253
</TR>
 
254
</TABLE>
 
255
&nbsp;
 
256
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 
257
 
 
258
<A NAME="constructor_summary"><!-- --></A>
 
259
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
260
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
261
<TD COLSPAN=2><FONT SIZE="+2">
 
262
<B>Constructor Summary</B></FONT></TD>
 
263
</TR>
 
264
<TR BGCOLOR="white" CLASS="TableRowColor">
 
265
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#Action()">Action</A></B>()</CODE>
 
266
 
 
267
<BR>
 
268
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
269
</TR>
 
270
</TABLE>
 
271
&nbsp;
 
272
<!-- ========== METHOD SUMMARY =========== -->
 
273
 
 
274
<A NAME="method_summary"><!-- --></A>
 
275
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
276
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
277
<TD COLSPAN=2><FONT SIZE="+2">
 
278
<B>Method Summary</B></FONT></TD>
 
279
</TR>
 
280
<TR BGCOLOR="white" CLASS="TableRowColor">
 
281
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
282
<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
 
283
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#generateToken(javax.servlet.http.HttpServletRequest)">generateToken</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request)</CODE>
 
284
 
 
285
<BR>
 
286
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generate a new transaction token, to be used for enforcing a single
 
287
 request for a particular transaction.</TD>
 
288
</TR>
 
289
<TR BGCOLOR="white" CLASS="TableRowColor">
 
290
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
291
<CODE>protected &nbsp;java.util.Locale</CODE></FONT></TD>
 
292
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#getLocale(javax.servlet.http.HttpServletRequest)">getLocale</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request)</CODE>
 
293
 
 
294
<BR>
 
295
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the user's currently selected Locale.</TD>
 
296
</TR>
 
297
<TR BGCOLOR="white" CLASS="TableRowColor">
 
298
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
299
<CODE>protected &nbsp;<A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A></CODE></FONT></TD>
 
300
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#getResources()">getResources</A></B>()</CODE>
 
301
 
 
302
<BR>
 
303
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the message resources for this application.</TD>
 
304
</TR>
 
305
<TR BGCOLOR="white" CLASS="TableRowColor">
 
306
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
307
<CODE>&nbsp;<A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A></CODE></FONT></TD>
 
308
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#getServlet()">getServlet</A></B>()</CODE>
 
309
 
 
310
<BR>
 
311
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the controller servlet instance to which we are attached.</TD>
 
312
</TR>
 
313
<TR BGCOLOR="white" CLASS="TableRowColor">
 
314
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
315
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
 
316
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#isCancelled(javax.servlet.http.HttpServletRequest)">isCancelled</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request)</CODE>
 
317
 
 
318
<BR>
 
319
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if the current form's cancel button was
 
320
 pressed.</TD>
 
321
</TR>
 
322
<TR BGCOLOR="white" CLASS="TableRowColor">
 
323
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
324
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
 
325
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#isTokenValid(javax.servlet.http.HttpServletRequest)">isTokenValid</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request)</CODE>
 
326
 
 
327
<BR>
 
328
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return <code>true</code> if there is a transaction token stored in
 
329
 the user's current session, and the value submitted as a request
 
330
 parameter with this action matches it.</TD>
 
331
</TR>
 
332
<TR BGCOLOR="white" CLASS="TableRowColor">
 
333
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
334
<CODE>&nbsp;<A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A></CODE></FONT></TD>
 
335
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#perform(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">perform</A></B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,
 
336
        <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,
 
337
        javax.servlet.http.HttpServletRequest&nbsp;request,
 
338
        javax.servlet.http.HttpServletResponse&nbsp;response)</CODE>
 
339
 
 
340
<BR>
 
341
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process the specified HTTP request, and create the corresponding HTTP
 
342
 response (or forward to another web component that will create it).</TD>
 
343
</TR>
 
344
<TR BGCOLOR="white" CLASS="TableRowColor">
 
345
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
346
<CODE>&nbsp;<A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A></CODE></FONT></TD>
 
347
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#perform(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.ServletRequest, javax.servlet.ServletResponse)">perform</A></B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,
 
348
        <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,
 
349
        javax.servlet.ServletRequest&nbsp;request,
 
350
        javax.servlet.ServletResponse&nbsp;response)</CODE>
 
351
 
 
352
<BR>
 
353
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process the specified non-HTTP request, and create the corresponding
 
354
 non-HTTP response (or forward to another web component that will create
 
355
 it).</TD>
 
356
</TR>
 
357
<TR BGCOLOR="white" CLASS="TableRowColor">
 
358
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
359
<CODE>&nbsp;<A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A></CODE></FONT></TD>
 
360
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#perform(org.apache.struts.action.ActionServlet, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">perform</A></B>(<A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A>&nbsp;servlet,
 
361
        <A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,
 
362
        <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,
 
363
        javax.servlet.http.HttpServletRequest&nbsp;request,
 
364
        javax.servlet.http.HttpServletResponse&nbsp;response)</CODE>
 
365
 
 
366
<BR>
 
367
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use the new perform() method without a servlet argument</I></TD>
 
368
</TR>
 
369
<TR BGCOLOR="white" CLASS="TableRowColor">
 
370
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
371
<CODE>&nbsp;<A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A></CODE></FONT></TD>
 
372
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#perform(org.apache.struts.action.ActionServlet, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.ServletRequest, javax.servlet.ServletResponse)">perform</A></B>(<A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A>&nbsp;servlet,
 
373
        <A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,
 
374
        <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,
 
375
        javax.servlet.ServletRequest&nbsp;request,
 
376
        javax.servlet.ServletResponse&nbsp;response)</CODE>
 
377
 
 
378
<BR>
 
379
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use the new perform() method without a servlet argument</I></TD>
 
380
</TR>
 
381
<TR BGCOLOR="white" CLASS="TableRowColor">
 
382
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
383
<CODE>protected &nbsp;void</CODE></FONT></TD>
 
384
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#resetToken(javax.servlet.http.HttpServletRequest)">resetToken</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request)</CODE>
 
385
 
 
386
<BR>
 
387
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reset the saved transaction token in the user's session.</TD>
 
388
</TR>
 
389
<TR BGCOLOR="white" CLASS="TableRowColor">
 
390
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
391
<CODE>protected &nbsp;void</CODE></FONT></TD>
 
392
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#saveErrors(javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionErrors)">saveErrors</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,
 
393
           <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A>&nbsp;errors)</CODE>
 
394
 
 
395
<BR>
 
396
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Save the specified error messages keys into the appropriate request
 
397
 attribute for use by the &lt;struts:errors&gt; tag, if any messages
 
398
 are required.</TD>
 
399
</TR>
 
400
<TR BGCOLOR="white" CLASS="TableRowColor">
 
401
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
402
<CODE>protected &nbsp;void</CODE></FONT></TD>
 
403
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#saveToken(javax.servlet.http.HttpServletRequest)">saveToken</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request)</CODE>
 
404
 
 
405
<BR>
 
406
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Save a new transaction token in the user's current session, creating
 
407
 a new session if necessary.</TD>
 
408
</TR>
 
409
<TR BGCOLOR="white" CLASS="TableRowColor">
 
410
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
411
<CODE>protected &nbsp;void</CODE></FONT></TD>
 
412
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#setLocale(javax.servlet.http.HttpServletRequest, java.util.Locale)">setLocale</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,
 
413
          java.util.Locale&nbsp;locale)</CODE>
 
414
 
 
415
<BR>
 
416
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the user's currently selected Locale.</TD>
 
417
</TR>
 
418
<TR BGCOLOR="white" CLASS="TableRowColor">
 
419
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
420
<CODE>&nbsp;void</CODE></FONT></TD>
 
421
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#setServlet(org.apache.struts.action.ActionServlet)">setServlet</A></B>(<A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A>&nbsp;servlet)</CODE>
 
422
 
 
423
<BR>
 
424
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the controller servlet instance to which we are attached (if
 
425
 <code>servlet</code> is non-null), or release any allocated resources
 
426
 (if <code>servlet</code> is null).</TD>
 
427
</TR>
 
428
<TR BGCOLOR="white" CLASS="TableRowColor">
 
429
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
430
<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
 
431
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/Action.html#toHex(byte[])">toHex</A></B>(byte[]&nbsp;buffer)</CODE>
 
432
 
 
433
<BR>
 
434
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert a byte array to a String of hexadecimal digits and return it.</TD>
 
435
</TR>
 
436
</TABLE>
 
437
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 
438
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
439
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
440
<TD><B>Methods inherited from class java.lang.Object</B></TD>
 
441
</TR>
 
442
<TR BGCOLOR="white" CLASS="TableRowColor">
 
443
<TD><CODE><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait</CODE></TD>
 
444
</TR>
 
445
</TABLE>
 
446
&nbsp;
 
447
<P>
 
448
 
 
449
<!-- ============ FIELD DETAIL =========== -->
 
450
 
 
451
<A NAME="field_detail"><!-- --></A>
 
452
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
453
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
454
<TD COLSPAN=1><FONT SIZE="+2">
 
455
<B>Field Detail</B></FONT></TD>
 
456
</TR>
 
457
</TABLE>
 
458
 
 
459
<A NAME="DATA_SOURCE_KEY"><!-- --></A><H3>
 
460
DATA_SOURCE_KEY</H3>
 
461
<PRE>
 
462
public static final java.lang.String <B>DATA_SOURCE_KEY</B></PRE>
 
463
<DL>
 
464
<DD>The context attributes key under which our <strong>default</strong>
 
465
 configured data source (which must implement
 
466
 <code>javax.sql.DataSource</code>) is stored,
 
467
 if one is configured for this application.</DL>
 
468
<HR>
 
469
 
 
470
<A NAME="ERROR_KEY"><!-- --></A><H3>
 
471
ERROR_KEY</H3>
 
472
<PRE>
 
473
public static final java.lang.String <B>ERROR_KEY</B></PRE>
 
474
<DL>
 
475
<DD>The request attributes key under which your action should store an
 
476
 <code>org.apache.struts.action.ActionErrors</code> object, if you
 
477
 are using the corresponding custom tag library elements.</DL>
 
478
<HR>
 
479
 
 
480
<A NAME="EXCEPTION_KEY"><!-- --></A><H3>
 
481
EXCEPTION_KEY</H3>
 
482
<PRE>
 
483
public static final java.lang.String <B>EXCEPTION_KEY</B></PRE>
 
484
<DL>
 
485
<DD>The request attributes key under which Struts custom tags might store a
 
486
 <code>Throwable</code> that caused them to report a JspException at
 
487
 runtime.  This value can be used on an error page to provide more
 
488
 detailed information about what really went wrong.</DL>
 
489
<HR>
 
490
 
 
491
<A NAME="FORM_BEANS_KEY"><!-- --></A><H3>
 
492
FORM_BEANS_KEY</H3>
 
493
<PRE>
 
494
public static final java.lang.String <B>FORM_BEANS_KEY</B></PRE>
 
495
<DL>
 
496
<DD>The context attributes key under which our
 
497
 <code>org.apache.struts.action.ActionFormBeans</code> collection
 
498
 is normally stored, unless overridden when initializing our
 
499
 ActionServlet.</DL>
 
500
<HR>
 
501
 
 
502
<A NAME="FORWARDS_KEY"><!-- --></A><H3>
 
503
FORWARDS_KEY</H3>
 
504
<PRE>
 
505
public static final java.lang.String <B>FORWARDS_KEY</B></PRE>
 
506
<DL>
 
507
<DD>The context attributes key under which our
 
508
 <code>org.apache.struts.action.ActionForwards</code> collection
 
509
 is normally stored, unless overridden when initializing our
 
510
 ActionServlet.</DL>
 
511
<HR>
 
512
 
 
513
<A NAME="LOCALE_KEY"><!-- --></A><H3>
 
514
LOCALE_KEY</H3>
 
515
<PRE>
 
516
public static final java.lang.String <B>LOCALE_KEY</B></PRE>
 
517
<DL>
 
518
<DD>The session attributes key under which the user's selected
 
519
 <code>java.util.Locale</code> is stored, if any.  If no such
 
520
 attribute is found, the system default locale
 
521
 will be used when retrieving internationalized messages.  If used, this
 
522
 attribute is typically set during user login processing.</DL>
 
523
<HR>
 
524
 
 
525
<A NAME="MAPPING_KEY"><!-- --></A><H3>
 
526
MAPPING_KEY</H3>
 
527
<PRE>
 
528
public static final java.lang.String <B>MAPPING_KEY</B></PRE>
 
529
<DL>
 
530
<DD>The request attributes key under which our
 
531
 <code>org.apache.struts.ActionMapping</code> instance
 
532
 is passed.</DL>
 
533
<HR>
 
534
 
 
535
<A NAME="MAPPINGS_KEY"><!-- --></A><H3>
 
536
MAPPINGS_KEY</H3>
 
537
<PRE>
 
538
public static final java.lang.String <B>MAPPINGS_KEY</B></PRE>
 
539
<DL>
 
540
<DD>The context attributes key under which our
 
541
 <code>org.apache.struts.action.ActionMappings</code> collection
 
542
 is normally stored, unless overridden when initializing our
 
543
 ActionServlet.</DL>
 
544
<HR>
 
545
 
 
546
<A NAME="MESSAGES_KEY"><!-- --></A><H3>
 
547
MESSAGES_KEY</H3>
 
548
<PRE>
 
549
public static final java.lang.String <B>MESSAGES_KEY</B></PRE>
 
550
<DL>
 
551
<DD>The context attributes key under which our application resources are
 
552
 normally stored, unless overridden when initializing our ActionServlet.</DL>
 
553
<HR>
 
554
 
 
555
<A NAME="MULTIPART_KEY"><!-- --></A><H3>
 
556
MULTIPART_KEY</H3>
 
557
<PRE>
 
558
public static final java.lang.String <B>MULTIPART_KEY</B></PRE>
 
559
<DL>
 
560
<DD>The request attributes key under which our multipart class is stored.</DL>
 
561
<HR>
 
562
 
 
563
<A NAME="SERVLET_KEY"><!-- --></A><H3>
 
564
SERVLET_KEY</H3>
 
565
<PRE>
 
566
public static final java.lang.String <B>SERVLET_KEY</B></PRE>
 
567
<DL>
 
568
<DD>The context attributes key under which we store the mapping defined
 
569
 for our controller serlet, which will be either a path-mapped pattern
 
570
 (<code>/action/*</code>) or an extension mapped pattern
 
571
 (<code>*.do</code>).</DL>
 
572
<HR>
 
573
 
 
574
<A NAME="TRANSACTION_TOKEN_KEY"><!-- --></A><H3>
 
575
TRANSACTION_TOKEN_KEY</H3>
 
576
<PRE>
 
577
public static final java.lang.String <B>TRANSACTION_TOKEN_KEY</B></PRE>
 
578
<DL>
 
579
<DD>The session attributes key under which our transaction token is
 
580
 stored, if it is used.</DL>
 
581
<HR>
 
582
 
 
583
<A NAME="defaultLocale"><!-- --></A><H3>
 
584
defaultLocale</H3>
 
585
<PRE>
 
586
protected static java.util.Locale <B>defaultLocale</B></PRE>
 
587
<DL>
 
588
<DD>The system default Locale.</DL>
 
589
<HR>
 
590
 
 
591
<A NAME="servlet"><!-- --></A><H3>
 
592
servlet</H3>
 
593
<PRE>
 
594
protected <A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A> <B>servlet</B></PRE>
 
595
<DL>
 
596
<DD>The controller servlet to which we are attached.</DL>
 
597
 
 
598
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
599
 
 
600
<A NAME="constructor_detail"><!-- --></A>
 
601
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
602
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
603
<TD COLSPAN=1><FONT SIZE="+2">
 
604
<B>Constructor Detail</B></FONT></TD>
 
605
</TR>
 
606
</TABLE>
 
607
 
 
608
<A NAME="Action()"><!-- --></A><H3>
 
609
Action</H3>
 
610
<PRE>
 
611
public <B>Action</B>()</PRE>
 
612
<DL>
 
613
</DL>
 
614
 
 
615
<!-- ============ METHOD DETAIL ========== -->
 
616
 
 
617
<A NAME="method_detail"><!-- --></A>
 
618
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
619
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
620
<TD COLSPAN=1><FONT SIZE="+2">
 
621
<B>Method Detail</B></FONT></TD>
 
622
</TR>
 
623
</TABLE>
 
624
 
 
625
<A NAME="getServlet()"><!-- --></A><H3>
 
626
getServlet</H3>
 
627
<PRE>
 
628
public <A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A> <B>getServlet</B>()</PRE>
 
629
<DL>
 
630
<DD>Return the controller servlet instance to which we are attached.</DL>
 
631
<HR>
 
632
 
 
633
<A NAME="setServlet(org.apache.struts.action.ActionServlet)"><!-- --></A><H3>
 
634
setServlet</H3>
 
635
<PRE>
 
636
public void <B>setServlet</B>(<A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A>&nbsp;servlet)</PRE>
 
637
<DL>
 
638
<DD>Set the controller servlet instance to which we are attached (if
 
639
 <code>servlet</code> is non-null), or release any allocated resources
 
640
 (if <code>servlet</code> is null).<DD><DL>
 
641
<DT><B>Parameters:</B><DD><CODE>servlet</CODE> - The new controller servlet, if any</DL>
 
642
</DD>
 
643
</DL>
 
644
<HR>
 
645
 
 
646
<A NAME="perform(org.apache.struts.action.ActionServlet, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.ServletRequest, javax.servlet.ServletResponse)"><!-- --></A><H3>
 
647
perform</H3>
 
648
<PRE>
 
649
public <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>perform</B>(<A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A>&nbsp;servlet,
 
650
                             <A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,
 
651
                             <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,
 
652
                             javax.servlet.ServletRequest&nbsp;request,
 
653
                             javax.servlet.ServletResponse&nbsp;response)
 
654
                      throws java.io.IOException,
 
655
                             javax.servlet.ServletException</PRE>
 
656
<DL>
 
657
<DD><B>Deprecated.</B>&nbsp;<I>Use the new perform() method without a servlet argument</I>
 
658
<P>
 
659
<DD>Process the specified non-HTTP request, and create the corresponding
 
660
 non-HTTP response (or forward to another web component that will create
 
661
 it).  Return an <code>ActionForward</code> instance describing where
 
662
 and how control should be forwarded, or <code>null</code> if the
 
663
 response has already been completed.<DD><DL>
 
664
<DT><B>Parameters:</B><DD><CODE>servlet</CODE> - The ActionServlet instance owning this Action<DD><CODE>mapping</CODE> - The ActionMapping used to select this instance<DD><CODE>actionForm</CODE> - The optional ActionForm bean for this request (if any)<DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>response</CODE> - The servlet response we are processing<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input/output error occurs<DD><CODE>javax.servlet.ServletException</CODE> - if a servlet exception occurs</DL>
 
665
</DD>
 
666
</DL>
 
667
<HR>
 
668
 
 
669
<A NAME="perform(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.ServletRequest, javax.servlet.ServletResponse)"><!-- --></A><H3>
 
670
perform</H3>
 
671
<PRE>
 
672
public <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>perform</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,
 
673
                             <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,
 
674
                             javax.servlet.ServletRequest&nbsp;request,
 
675
                             javax.servlet.ServletResponse&nbsp;response)
 
676
                      throws java.io.IOException,
 
677
                             javax.servlet.ServletException</PRE>
 
678
<DL>
 
679
<DD>Process the specified non-HTTP request, and create the corresponding
 
680
 non-HTTP response (or forward to another web component that will create
 
681
 it).  Return an <code>ActionForward</code> instance describing where
 
682
 and how control should be forwarded, or <code>null</code> if the
 
683
 response has already been completed.
 
684
 <p>
 
685
 The default implementation attempts to forward to the HTTP version of
 
686
 this method.<DD><DL>
 
687
<DT><B>Parameters:</B><DD><CODE>mapping</CODE> - The ActionMapping used to select this instance<DD><CODE>actionForm</CODE> - The optional ActionForm bean for this request (if any)<DD><CODE>request</CODE> - The non-HTTP request we are processing<DD><CODE>response</CODE> - The non-HTTP response we are creating<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input/output error occurs<DD><CODE>javax.servlet.ServletException</CODE> - if a servlet exception occurs</DL>
 
688
</DD>
 
689
</DL>
 
690
<HR>
 
691
 
 
692
<A NAME="perform(org.apache.struts.action.ActionServlet, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
 
693
perform</H3>
 
694
<PRE>
 
695
public <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>perform</B>(<A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A>&nbsp;servlet,
 
696
                             <A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,
 
697
                             <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,
 
698
                             javax.servlet.http.HttpServletRequest&nbsp;request,
 
699
                             javax.servlet.http.HttpServletResponse&nbsp;response)
 
700
                      throws java.io.IOException,
 
701
                             javax.servlet.ServletException</PRE>
 
702
<DL>
 
703
<DD><B>Deprecated.</B>&nbsp;<I>Use the new perform() method without a servlet argument</I>
 
704
<P>
 
705
<DD>Process the specified HTTP request, and create the corresponding
 
706
 HTTP response (or forward to another web component that will create
 
707
 it).  Return an <code>ActionForward</code> instance describing where
 
708
 and how control should be forwarded, or <code>null</code> if the
 
709
 response has already been completed.<DD><DL>
 
710
<DT><B>Parameters:</B><DD><CODE>servlet</CODE> - The ActionServlet instance owning this Action<DD><CODE>mapping</CODE> - The ActionMapping used to select this instance<DD><CODE>actionForm</CODE> - The optional ActionForm bean for this request (if any)<DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>response</CODE> - The servlet response we are processing<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input/output error occurs<DD><CODE>javax.servlet.ServletException</CODE> - if a servlet exception occurs</DL>
 
711
</DD>
 
712
</DL>
 
713
<HR>
 
714
 
 
715
<A NAME="perform(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
 
716
perform</H3>
 
717
<PRE>
 
718
public <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>perform</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,
 
719
                             <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,
 
720
                             javax.servlet.http.HttpServletRequest&nbsp;request,
 
721
                             javax.servlet.http.HttpServletResponse&nbsp;response)
 
722
                      throws java.io.IOException,
 
723
                             javax.servlet.ServletException</PRE>
 
724
<DL>
 
725
<DD>Process the specified HTTP request, and create the corresponding HTTP
 
726
 response (or forward to another web component that will create it).
 
727
 Return an <code>ActionForward</code> instance describing where and how
 
728
 control should be forwarded, or <code>null</code> if the response has
 
729
 already been completed.<DD><DL>
 
730
<DT><B>Parameters:</B><DD><CODE>mapping</CODE> - The ActionMapping used to select this instance<DD><CODE>actionForm</CODE> - The optional ActionForm bean for this request (if any)<DD><CODE>request</CODE> - The HTTP request we are processing<DD><CODE>response</CODE> - The HTTP response we are creating<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input/output error occurs<DD><CODE>javax.servlet.ServletException</CODE> - if a servlet exception occurs</DL>
 
731
</DD>
 
732
</DL>
 
733
<HR>
 
734
 
 
735
<A NAME="generateToken(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
 
736
generateToken</H3>
 
737
<PRE>
 
738
protected java.lang.String <B>generateToken</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
 
739
<DL>
 
740
<DD>Generate a new transaction token, to be used for enforcing a single
 
741
 request for a particular transaction.<DD><DL>
 
742
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The request we are processing</DL>
 
743
</DD>
 
744
</DL>
 
745
<HR>
 
746
 
 
747
<A NAME="getLocale(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
 
748
getLocale</H3>
 
749
<PRE>
 
750
protected java.util.Locale <B>getLocale</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
 
751
<DL>
 
752
<DD>Return the user's currently selected Locale.<DD><DL>
 
753
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The request we are processing</DL>
 
754
</DD>
 
755
</DL>
 
756
<HR>
 
757
 
 
758
<A NAME="getResources()"><!-- --></A><H3>
 
759
getResources</H3>
 
760
<PRE>
 
761
protected <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>getResources</B>()</PRE>
 
762
<DL>
 
763
<DD>Return the message resources for this application.</DL>
 
764
<HR>
 
765
 
 
766
<A NAME="isCancelled(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
 
767
isCancelled</H3>
 
768
<PRE>
 
769
protected boolean <B>isCancelled</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
 
770
<DL>
 
771
<DD>Returns <code>true</code> if the current form's cancel button was
 
772
 pressed.  This method will check if the cancel button generated by
 
773
 <strong>CancelTag</strong> was pressed by the user in the
 
774
 current request.  If true, validation performed by an
 
775
 <strong>ActionForm</strong> validate() method will have been
 
776
 skipped by the controller servlet.<DD><DL>
 
777
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/struts/taglib/CancelTag.html"><CODE>CancelTag</CODE></A>, 
 
778
<A HREF="../../../../org/apache/struts/action/ValidatingActionForm.html"><CODE>ValidatingActionForm</CODE></A></DL>
 
779
</DD>
 
780
</DL>
 
781
<HR>
 
782
 
 
783
<A NAME="isTokenValid(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
 
784
isTokenValid</H3>
 
785
<PRE>
 
786
protected boolean <B>isTokenValid</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
 
787
<DL>
 
788
<DD>Return <code>true</code> if there is a transaction token stored in
 
789
 the user's current session, and the value submitted as a request
 
790
 parameter with this action matches it.  Returns <code>false</code>
 
791
 under any of the following circumstances:
 
792
 <ul>
 
793
 <li>No session associated with this request</li>
 
794
 <li>No transaction token saved in the session</li>
 
795
 <li>No transaction token included as a request parameter</li>
 
796
 <li>The included transaction token value does not match the
 
797
     transaction token in the user's session</li>
 
798
 </ul><DD><DL>
 
799
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing</DL>
 
800
</DD>
 
801
</DL>
 
802
<HR>
 
803
 
 
804
<A NAME="resetToken(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
 
805
resetToken</H3>
 
806
<PRE>
 
807
protected void <B>resetToken</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
 
808
<DL>
 
809
<DD>Reset the saved transaction token in the user's session.  This
 
810
 indicates that transactional token checking will not be needed
 
811
 on the next request that is submitted.<DD><DL>
 
812
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing</DL>
 
813
</DD>
 
814
</DL>
 
815
<HR>
 
816
 
 
817
<A NAME="saveErrors(javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionErrors)"><!-- --></A><H3>
 
818
saveErrors</H3>
 
819
<PRE>
 
820
protected void <B>saveErrors</B>(javax.servlet.http.HttpServletRequest&nbsp;request,
 
821
                          <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A>&nbsp;errors)</PRE>
 
822
<DL>
 
823
<DD>Save the specified error messages keys into the appropriate request
 
824
 attribute for use by the &lt;struts:errors&gt; tag, if any messages
 
825
 are required.  Otherwise, ensure that the request attribute is not
 
826
 created.<DD><DL>
 
827
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>errors</CODE> - Error messages object</DL>
 
828
</DD>
 
829
</DL>
 
830
<HR>
 
831
 
 
832
<A NAME="saveToken(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
 
833
saveToken</H3>
 
834
<PRE>
 
835
protected void <B>saveToken</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
 
836
<DL>
 
837
<DD>Save a new transaction token in the user's current session, creating
 
838
 a new session if necessary.<DD><DL>
 
839
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing</DL>
 
840
</DD>
 
841
</DL>
 
842
<HR>
 
843
 
 
844
<A NAME="setLocale(javax.servlet.http.HttpServletRequest, java.util.Locale)"><!-- --></A><H3>
 
845
setLocale</H3>
 
846
<PRE>
 
847
protected void <B>setLocale</B>(javax.servlet.http.HttpServletRequest&nbsp;request,
 
848
                         java.util.Locale&nbsp;locale)</PRE>
 
849
<DL>
 
850
<DD>Set the user's currently selected Locale.<DD><DL>
 
851
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The request we are processing<DD><CODE>locale</CODE> - The user's selected Locale to be set, or null
 
852
  to select the server's default Locale</DL>
 
853
</DD>
 
854
</DL>
 
855
<HR>
 
856
 
 
857
<A NAME="toHex(byte[])"><!-- --></A><H3>
 
858
toHex</H3>
 
859
<PRE>
 
860
protected java.lang.String <B>toHex</B>(byte[]&nbsp;buffer)</PRE>
 
861
<DL>
 
862
<DD>Convert a byte array to a String of hexadecimal digits and return it.<DD><DL>
 
863
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - The byte array to be converted</DL>
 
864
</DD>
 
865
</DL>
 
866
<!-- ========= END OF CLASS DATA ========= -->
 
867
<HR>
 
868
 
 
869
<!-- ========== START OF NAVBAR ========== -->
 
870
<A NAME="navbar_bottom"><!-- --></A>
 
871
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 
872
<TR>
 
873
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
874
<A NAME="navbar_bottom_firstrow"><!-- --></A>
 
875
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 
876
  <TR ALIGN="center" VALIGN="top">
 
877
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
878
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
879
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
880
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
881
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
882
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
883
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
884
  </TR>
 
885
</TABLE>
 
886
</TD>
 
887
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
888
</EM>
 
889
</TD>
 
890
</TR>
 
891
 
 
892
<TR>
 
893
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
894
&nbsp;PREV CLASS&nbsp;
 
895
&nbsp;<A HREF="../../../../org/apache/struts/action/ActionBase.html"><B>NEXT CLASS</B></A></FONT></TD>
 
896
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
897
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
 
898
&nbsp;<A HREF="Action.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
 
899
</TR>
 
900
<TR>
 
901
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
902
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
903
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
904
DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
905
</TR>
 
906
</TABLE>
 
907
<!-- =========== END OF NAVBAR =========== -->
 
908
 
 
909
<HR>
 
910
Copyright � 2000-2001 - Apache Software Foundation
 
911
</BODY>
 
912
</HTML>