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

« back to all changes in this revision

Viewing changes to legacy/api-1.1/org/apache/struts/actions/LookupDispatchAction.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 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
 
2
<!--NewPage-->
 
3
<HTML>
 
4
<HEAD>
 
5
<!-- Generated by javadoc on Fri Aug 22 03:44:09 EDT 2003 -->
 
6
<TITLE>
 
7
LookupDispatchAction (Apache Struts API Documentation)
 
8
</TITLE>
 
9
<META NAME="keywords" CONTENT="org.apache.struts.actions.LookupDispatchAction,LookupDispatchAction class">
 
10
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
 
11
</HEAD>
 
12
<SCRIPT>
 
13
function asd()
 
14
{
 
15
parent.document.title="LookupDispatchAction (Apache Struts API Documentation)";
 
16
}
 
17
</SCRIPT>
 
18
<BODY BGCOLOR="white" onload="asd();">
 
19
 
 
20
<!-- ========== START OF NAVBAR ========== -->
 
21
<A NAME="navbar_top"><!-- --></A>
 
22
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 
23
<TR>
 
24
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
25
<A NAME="navbar_top_firstrow"><!-- --></A>
 
26
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 
27
  <TR ALIGN="center" VALIGN="top">
 
28
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
29
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
30
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
31
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/LookupDispatchAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
32
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
33
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
34
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
35
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
36
  </TR>
 
37
</TABLE>
 
38
</TD>
 
39
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
40
</EM>
 
41
</TD>
 
42
</TR>
 
43
 
 
44
<TR>
 
45
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
46
&nbsp;<A HREF="../../../../org/apache/struts/actions/IncludeAction.html"><B>PREV CLASS</B></A>&nbsp;
 
47
&nbsp;<A HREF="../../../../org/apache/struts/actions/SwitchAction.html"><B>NEXT CLASS</B></A></FONT></TD>
 
48
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
49
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
 
50
&nbsp;<A HREF="LookupDispatchAction.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
 
51
&nbsp;
 
52
<SCRIPT>
 
53
  <!--
 
54
  if(window==top) {
 
55
    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
 
56
  }
 
57
  //-->
 
58
</SCRIPT>
 
59
<NOSCRIPT>
 
60
<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
 
61
</NOSCRIPT>
 
62
</FONT></TD>
 
63
</TR>
 
64
<TR>
 
65
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
66
  SUMMARY:&nbsp;NESTED&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>
 
67
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
68
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>
 
69
</TR>
 
70
</TABLE>
 
71
<!-- =========== END OF NAVBAR =========== -->
 
72
 
 
73
<HR>
 
74
<!-- ======== START OF CLASS DATA ======== -->
 
75
<H2>
 
76
<FONT SIZE="-1">
 
77
org.apache.struts.actions</FONT>
 
78
<BR>
 
79
Class LookupDispatchAction</H2>
 
80
<PRE>
 
81
java.lang.Object
 
82
  |
 
83
  +--<A HREF="../../../../org/apache/struts/action/Action.html">org.apache.struts.action.Action</A>
 
84
        |
 
85
        +--<A HREF="../../../../org/apache/struts/actions/DispatchAction.html">org.apache.struts.actions.DispatchAction</A>
 
86
              |
 
87
              +--<B>org.apache.struts.actions.LookupDispatchAction</B>
 
88
</PRE>
 
89
<HR>
 
90
<DL>
 
91
<DT>public abstract class <B>LookupDispatchAction</B><DT>extends <A HREF="../../../../org/apache/struts/actions/DispatchAction.html">DispatchAction</A></DL>
 
92
 
 
93
<P>
 
94
<p>
 
95
 
 
96
  An abstract <strong>Action</strong> that dispatches to the subclass mapped
 
97
  <code>execute</code> method. This is useful in
 
98
  cases where an HTML form has multiple submit buttons with the same name. The
 
99
  button name is specified by the <code>parameter</code> property of the
 
100
  corresponding ActionMapping. To configure the use of this action in your
 
101
  <code>struts-config.xml</code> file, create an entry like this:</p> <pre>
 
102
   &lt;action path="/test"
 
103
           type="org.example.MyAction"
 
104
           name="MyForm"
 
105
          scope="request"
 
106
          input="/test.jsp"
 
107
      parameter="action"/&gt;
 
108
 </pre> <p>
 
109
 
 
110
  which will use the value of the request parameter named "action" to locate
 
111
  the corresponding key in ApplicationResources. For example, you might have
 
112
  the following ApplicationResources.properties:</p> <pre>
 
113
    button.add=Add Record
 
114
    button.delete=Delete Record
 
115
  </pre><p>
 
116
 
 
117
  And your JSP would have the following format for submit buttons:</p> <pre>
 
118
   &lt;html:form action="/test"&gt;
 
119
    &lt;html:submit property="action"&gt;
 
120
      &lt;bean:message key="button.add"/&gt;
 
121
    &lt;/html:submit&gt;
 
122
    &lt;html:submit property="action"&gt;
 
123
      &lt;bean:message key="button.delete"/&gt;
 
124
    &lt;/html:submit&gt;
 
125
  &lt;/html:form&gt;
 
126
  </pre> <p>
 
127
 
 
128
  Your subclass must implement both getKeyMethodMap and the
 
129
  methods defined in the map. An example of such implementations are:</p>
 
130
 <pre>
 
131
  protected Map getKeyMethodMap() {
 
132
      Map map = new HashMap();
 
133
      map.put("button.add", "add");
 
134
      map.put("button.delete", "delete");
 
135
      return map;
 
136
  }
 
137
 
 
138
  public ActionForward add(ActionMapping mapping,
 
139
          ActionForm form,
 
140
          HttpServletRequest request,
 
141
          HttpServletResponse response)
 
142
          throws IOException, ServletException {
 
143
      // do add
 
144
      return mapping.findForward("success");
 
145
  }
 
146
 
 
147
  public ActionForward delete(ActionMapping mapping,
 
148
          ActionForm form,
 
149
          HttpServletRequest request,
 
150
          HttpServletResponse response)
 
151
          throws IOException, ServletException {
 
152
      // do delete
 
153
      return mapping.findForward("success");
 
154
  }
 
155
  <p>
 
156
 
 
157
  <strong>Notes</strong> - If duplicate values exist for the keys returned by
 
158
  getKeys, only the first one found will be returned. If no corresponding key
 
159
  is found then an exception will be thrown.
 
160
<P>
 
161
 
 
162
<P>
 
163
<DL>
 
164
<DT><B>Author:</B></DT>
 
165
  <DD>Erik Hatcher, Scott Carlson, David Graham</DD>
 
166
</DL>
 
167
<HR>
 
168
 
 
169
<P>
 
170
<!-- ======== NESTED CLASS SUMMARY ======== -->
 
171
 
 
172
 
 
173
<!-- =========== FIELD SUMMARY =========== -->
 
174
 
 
175
<A NAME="field_summary"><!-- --></A>
 
176
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
177
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
178
<TD COLSPAN=2><FONT SIZE="+2">
 
179
<B>Field Summary</B></FONT></TD>
 
180
</TR>
 
181
<TR BGCOLOR="white" CLASS="TableRowColor">
 
182
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
183
<CODE>protected &nbsp;java.util.Map</CODE></FONT></TD>
 
184
<TD><CODE><B><A HREF="../../../../org/apache/struts/actions/LookupDispatchAction.html#keyMethodMap">keyMethodMap</A></B></CODE>
 
185
 
 
186
<BR>
 
187
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resource key to method name lookup.</TD>
 
188
</TR>
 
189
<TR BGCOLOR="white" CLASS="TableRowColor">
 
190
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
191
<CODE>protected &nbsp;java.util.Map</CODE></FONT></TD>
 
192
<TD><CODE><B><A HREF="../../../../org/apache/struts/actions/LookupDispatchAction.html#localeMap">localeMap</A></B></CODE>
 
193
 
 
194
<BR>
 
195
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reverse lookup map from resource value to resource key.</TD>
 
196
</TR>
 
197
</TABLE>
 
198
&nbsp;<A NAME="fields_inherited_from_class_org.apache.struts.actions.DispatchAction"><!-- --></A>
 
199
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
200
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
201
<TD><B>Fields inherited from class org.apache.struts.actions.<A HREF="../../../../org/apache/struts/actions/DispatchAction.html">DispatchAction</A></B></TD>
 
202
</TR>
 
203
<TR BGCOLOR="white" CLASS="TableRowColor">
 
204
<TD><CODE><A HREF="../../../../org/apache/struts/actions/DispatchAction.html#clazz">clazz</A>, <A HREF="../../../../org/apache/struts/actions/DispatchAction.html#log">log</A>, <A HREF="../../../../org/apache/struts/actions/DispatchAction.html#messages">messages</A>, <A HREF="../../../../org/apache/struts/actions/DispatchAction.html#methods">methods</A>, <A HREF="../../../../org/apache/struts/actions/DispatchAction.html#types">types</A></CODE></TD>
 
205
</TR>
 
206
</TABLE>
 
207
&nbsp;<A NAME="fields_inherited_from_class_org.apache.struts.action.Action"><!-- --></A>
 
208
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
209
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
210
<TD><B>Fields inherited from class org.apache.struts.action.<A HREF="../../../../org/apache/struts/action/Action.html">Action</A></B></TD>
 
211
</TR>
 
212
<TR BGCOLOR="white" CLASS="TableRowColor">
 
213
<TD><CODE><A HREF="../../../../org/apache/struts/action/Action.html#ACTION_SERVLET_KEY">ACTION_SERVLET_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#APPLICATION_KEY">APPLICATION_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#DATA_SOURCE_KEY">DATA_SOURCE_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#defaultLocale">defaultLocale</A>, <A HREF="../../../../org/apache/struts/action/Action.html#ERROR_KEY">ERROR_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#EXCEPTION_KEY">EXCEPTION_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#FORM_BEANS_KEY">FORM_BEANS_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#FORWARDS_KEY">FORWARDS_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#LOCALE_KEY">LOCALE_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#MAPPING_KEY">MAPPING_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#MAPPINGS_KEY">MAPPINGS_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#MESSAGE_KEY">MESSAGE_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#MESSAGES_KEY">MESSAGES_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#MULTIPART_KEY">MULTIPART_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#PLUG_INS_KEY">PLUG_INS_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#REQUEST_PROCESSOR_KEY">REQUEST_PROCESSOR_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#servlet">servlet</A>, <A HREF="../../../../org/apache/struts/action/Action.html#SERVLET_KEY">SERVLET_KEY</A>, <A HREF="../../../../org/apache/struts/action/Action.html#TRANSACTION_TOKEN_KEY">TRANSACTION_TOKEN_KEY</A></CODE></TD>
 
214
</TR>
 
215
</TABLE>
 
216
&nbsp;
 
217
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 
218
 
 
219
<A NAME="constructor_summary"><!-- --></A>
 
220
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
221
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
222
<TD COLSPAN=2><FONT SIZE="+2">
 
223
<B>Constructor Summary</B></FONT></TD>
 
224
</TR>
 
225
<TR BGCOLOR="white" CLASS="TableRowColor">
 
226
<TD><CODE><B><A HREF="../../../../org/apache/struts/actions/LookupDispatchAction.html#LookupDispatchAction()">LookupDispatchAction</A></B>()</CODE>
 
227
 
 
228
<BR>
 
229
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
230
</TR>
 
231
</TABLE>
 
232
&nbsp;
 
233
<!-- ========== METHOD SUMMARY =========== -->
 
234
 
 
235
<A NAME="method_summary"><!-- --></A>
 
236
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
237
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
238
<TD COLSPAN=2><FONT SIZE="+2">
 
239
<B>Method Summary</B></FONT></TD>
 
240
</TR>
 
241
<TR BGCOLOR="white" CLASS="TableRowColor">
 
242
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
243
<CODE>&nbsp;<A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A></CODE></FONT></TD>
 
244
<TD><CODE><B><A HREF="../../../../org/apache/struts/actions/LookupDispatchAction.html#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">execute</A></B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,
 
245
        <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,
 
246
        javax.servlet.http.HttpServletRequest&nbsp;request,
 
247
        javax.servlet.http.HttpServletResponse&nbsp;response)</CODE>
 
248
 
 
249
<BR>
 
250
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process the specified HTTP request, and create the corresponding HTTP
 
251
  response (or forward to another web component that will create it).</TD>
 
252
</TR>
 
253
<TR BGCOLOR="white" CLASS="TableRowColor">
 
254
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
255
<CODE>protected abstract &nbsp;java.util.Map</CODE></FONT></TD>
 
256
<TD><CODE><B><A HREF="../../../../org/apache/struts/actions/LookupDispatchAction.html#getKeyMethodMap()">getKeyMethodMap</A></B>()</CODE>
 
257
 
 
258
<BR>
 
259
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides the mapping from resource key to method name.</TD>
 
260
</TR>
 
261
<TR BGCOLOR="white" CLASS="TableRowColor">
 
262
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
263
<CODE>private &nbsp;java.util.Map</CODE></FONT></TD>
 
264
<TD><CODE><B><A HREF="../../../../org/apache/struts/actions/LookupDispatchAction.html#initLookupMap(javax.servlet.http.HttpServletRequest, java.util.Locale)">initLookupMap</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,
 
265
              java.util.Locale&nbsp;userLocale)</CODE>
 
266
 
 
267
<BR>
 
268
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the first time this Locale is used so build the reverse lookup Map.</TD>
 
269
</TR>
 
270
</TABLE>
 
271
&nbsp;<A NAME="methods_inherited_from_class_org.apache.struts.actions.DispatchAction"><!-- --></A>
 
272
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
273
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
274
<TD><B>Methods inherited from class org.apache.struts.actions.<A HREF="../../../../org/apache/struts/actions/DispatchAction.html">DispatchAction</A></B></TD>
 
275
</TR>
 
276
<TR BGCOLOR="white" CLASS="TableRowColor">
 
277
<TD><CODE><A HREF="../../../../org/apache/struts/actions/DispatchAction.html#dispatchMethod(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)">dispatchMethod</A>, <A HREF="../../../../org/apache/struts/actions/DispatchAction.html#getMethod(java.lang.String)">getMethod</A>, <A HREF="../../../../org/apache/struts/actions/DispatchAction.html#unspecified(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">unspecified</A></CODE></TD>
 
278
</TR>
 
279
</TABLE>
 
280
&nbsp;<A NAME="methods_inherited_from_class_org.apache.struts.action.Action"><!-- --></A>
 
281
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
282
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
283
<TD><B>Methods inherited from class org.apache.struts.action.<A HREF="../../../../org/apache/struts/action/Action.html">Action</A></B></TD>
 
284
</TR>
 
285
<TR BGCOLOR="white" CLASS="TableRowColor">
 
286
<TD><CODE><A HREF="../../../../org/apache/struts/action/Action.html#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.ServletRequest, javax.servlet.ServletResponse)">execute</A>, <A HREF="../../../../org/apache/struts/action/Action.html#generateToken(javax.servlet.http.HttpServletRequest)">generateToken</A>, <A HREF="../../../../org/apache/struts/action/Action.html#getDataSource(javax.servlet.http.HttpServletRequest)">getDataSource</A>, <A HREF="../../../../org/apache/struts/action/Action.html#getDataSource(javax.servlet.http.HttpServletRequest, java.lang.String)">getDataSource</A>, <A HREF="../../../../org/apache/struts/action/Action.html#getLocale(javax.servlet.http.HttpServletRequest)">getLocale</A>, <A HREF="../../../../org/apache/struts/action/Action.html#getResources()">getResources</A>, <A HREF="../../../../org/apache/struts/action/Action.html#getResources(javax.servlet.http.HttpServletRequest)">getResources</A>, <A HREF="../../../../org/apache/struts/action/Action.html#getResources(javax.servlet.http.HttpServletRequest, java.lang.String)">getResources</A>, <A HREF="../../../../org/apache/struts/action/Action.html#getServlet()">getServlet</A>, <A HREF="../../../../org/apache/struts/action/Action.html#isCancelled(javax.servlet.http.HttpServletRequest)">isCancelled</A>, <A HREF="../../../../org/apache/struts/action/Action.html#isTokenValid(javax.servlet.http.HttpServletRequest)">isTokenValid</A>, <A HREF="../../../../org/apache/struts/action/Action.html#isTokenValid(javax.servlet.http.HttpServletRequest, boolean)">isTokenValid</A>, <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>, <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>, <A HREF="../../../../org/apache/struts/action/Action.html#resetToken(javax.servlet.http.HttpServletRequest)">resetToken</A>, <A HREF="../../../../org/apache/struts/action/Action.html#saveErrors(javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionErrors)">saveErrors</A>, <A HREF="../../../../org/apache/struts/action/Action.html#saveMessages(javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionMessages)">saveMessages</A>, <A HREF="../../../../org/apache/struts/action/Action.html#saveToken(javax.servlet.http.HttpServletRequest)">saveToken</A>, <A HREF="../../../../org/apache/struts/action/Action.html#setLocale(javax.servlet.http.HttpServletRequest, java.util.Locale)">setLocale</A>, <A HREF="../../../../org/apache/struts/action/Action.html#setServlet(org.apache.struts.action.ActionServlet)">setServlet</A>, <A HREF="../../../../org/apache/struts/action/Action.html#toHex(byte[])">toHex</A></CODE></TD>
 
287
</TR>
 
288
</TABLE>
 
289
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 
290
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
291
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
292
<TD><B>Methods inherited from class java.lang.Object</B></TD>
 
293
</TR>
 
294
<TR BGCOLOR="white" CLASS="TableRowColor">
 
295
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
 
296
</TR>
 
297
</TABLE>
 
298
&nbsp;
 
299
<P>
 
300
 
 
301
<!-- ============ FIELD DETAIL =========== -->
 
302
 
 
303
<A NAME="field_detail"><!-- --></A>
 
304
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
305
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
306
<TD COLSPAN=1><FONT SIZE="+2">
 
307
<B>Field Detail</B></FONT></TD>
 
308
</TR>
 
309
</TABLE>
 
310
 
 
311
<A NAME="localeMap"><!-- --></A><H3>
 
312
localeMap</H3>
 
313
<PRE>
 
314
protected java.util.Map <B>localeMap</B></PRE>
 
315
<DL>
 
316
<DD>Reverse lookup map from resource value to resource key.
 
317
<P>
 
318
<DL>
 
319
</DL>
 
320
</DL>
 
321
<HR>
 
322
 
 
323
<A NAME="keyMethodMap"><!-- --></A><H3>
 
324
keyMethodMap</H3>
 
325
<PRE>
 
326
protected java.util.Map <B>keyMethodMap</B></PRE>
 
327
<DL>
 
328
<DD>Resource key to method name lookup.
 
329
<P>
 
330
<DL>
 
331
</DL>
 
332
</DL>
 
333
 
 
334
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
335
 
 
336
<A NAME="constructor_detail"><!-- --></A>
 
337
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
338
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
339
<TD COLSPAN=1><FONT SIZE="+2">
 
340
<B>Constructor Detail</B></FONT></TD>
 
341
</TR>
 
342
</TABLE>
 
343
 
 
344
<A NAME="LookupDispatchAction()"><!-- --></A><H3>
 
345
LookupDispatchAction</H3>
 
346
<PRE>
 
347
public <B>LookupDispatchAction</B>()</PRE>
 
348
<DL>
 
349
</DL>
 
350
 
 
351
<!-- ============ METHOD DETAIL ========== -->
 
352
 
 
353
<A NAME="method_detail"><!-- --></A>
 
354
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
355
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
356
<TD COLSPAN=1><FONT SIZE="+2">
 
357
<B>Method Detail</B></FONT></TD>
 
358
</TR>
 
359
</TABLE>
 
360
 
 
361
<A NAME="execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
 
362
execute</H3>
 
363
<PRE>
 
364
public <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>execute</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,
 
365
                             <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,
 
366
                             javax.servlet.http.HttpServletRequest&nbsp;request,
 
367
                             javax.servlet.http.HttpServletResponse&nbsp;response)
 
368
                      throws java.lang.Exception</PRE>
 
369
<DL>
 
370
<DD>Process the specified HTTP request, and create the corresponding HTTP
 
371
  response (or forward to another web component that will create it).
 
372
  Return an <code>ActionForward</code> instance describing where and how
 
373
  control should be forwarded, or <code>null</code> if the response has
 
374
  already been completed.
 
375
<P>
 
376
<DD><DL>
 
377
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/struts/actions/DispatchAction.html#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">execute</A></CODE> in class <CODE><A HREF="../../../../org/apache/struts/actions/DispatchAction.html">DispatchAction</A></CODE></DL>
 
378
</DD>
 
379
<DD><DL>
 
380
<DT><B>Parameters:</B><DD><CODE>mapping</CODE> - The ActionMapping used to select this instance<DD><CODE>request</CODE> - The HTTP request we are processing<DD><CODE>response</CODE> - The HTTP response we are creating<DD><CODE>form</CODE> - The optional ActionForm bean for this request (if any)
 
381
<DT><B>Returns:</B><DD>Describes where and how control should be forwarded.
 
382
<DT><B>Throws:</B>
 
383
<DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL>
 
384
</DD>
 
385
</DL>
 
386
<HR>
 
387
 
 
388
<A NAME="initLookupMap(javax.servlet.http.HttpServletRequest, java.util.Locale)"><!-- --></A><H3>
 
389
initLookupMap</H3>
 
390
<PRE>
 
391
private java.util.Map <B>initLookupMap</B>(javax.servlet.http.HttpServletRequest&nbsp;request,
 
392
                                    java.util.Locale&nbsp;userLocale)</PRE>
 
393
<DL>
 
394
<DD>This is the first time this Locale is used so build the reverse lookup Map.
 
395
 Search for message keys in all configured MessageResources for
 
396
 the current module.
 
397
<P>
 
398
<DD><DL>
 
399
</DL>
 
400
</DD>
 
401
</DL>
 
402
<HR>
 
403
 
 
404
<A NAME="getKeyMethodMap()"><!-- --></A><H3>
 
405
getKeyMethodMap</H3>
 
406
<PRE>
 
407
protected abstract java.util.Map <B>getKeyMethodMap</B>()</PRE>
 
408
<DL>
 
409
<DD>Provides the mapping from resource key to method name.
 
410
<P>
 
411
<DD><DL>
 
412
 
 
413
<DT><B>Returns:</B><DD>Resource key / method name map.</DL>
 
414
</DD>
 
415
</DL>
 
416
<!-- ========= END OF CLASS DATA ========= -->
 
417
<HR>
 
418
 
 
419
<!-- ========== START OF NAVBAR ========== -->
 
420
<A NAME="navbar_bottom"><!-- --></A>
 
421
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 
422
<TR>
 
423
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
424
<A NAME="navbar_bottom_firstrow"><!-- --></A>
 
425
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 
426
  <TR ALIGN="center" VALIGN="top">
 
427
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
428
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
429
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
430
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/LookupDispatchAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
431
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
432
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
433
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
434
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
435
  </TR>
 
436
</TABLE>
 
437
</TD>
 
438
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
439
</EM>
 
440
</TD>
 
441
</TR>
 
442
 
 
443
<TR>
 
444
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
445
&nbsp;<A HREF="../../../../org/apache/struts/actions/IncludeAction.html"><B>PREV CLASS</B></A>&nbsp;
 
446
&nbsp;<A HREF="../../../../org/apache/struts/actions/SwitchAction.html"><B>NEXT CLASS</B></A></FONT></TD>
 
447
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
448
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
 
449
&nbsp;<A HREF="LookupDispatchAction.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
 
450
&nbsp;
 
451
<SCRIPT>
 
452
  <!--
 
453
  if(window==top) {
 
454
    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
 
455
  }
 
456
  //-->
 
457
</SCRIPT>
 
458
<NOSCRIPT>
 
459
<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
 
460
</NOSCRIPT>
 
461
</FONT></TD>
 
462
</TR>
 
463
<TR>
 
464
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
465
  SUMMARY:&nbsp;NESTED&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>
 
466
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
467
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>
 
468
</TR>
 
469
</TABLE>
 
470
<!-- =========== END OF NAVBAR =========== -->
 
471
 
 
472
<HR>
 
473
Copyright � 2000-2003 - Apache Software Foundation
 
474
</BODY>
 
475
</HTML>