The key you put in your map is used to lookup the corresponding entry from your resource properties file. So if you add a line 'initialize=initialize' in your properties file, then it should work, I guess.
Robert > -----Ursprüngliche Nachricht----- > Von: Norman Klein [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 3. Oktober 2002 18:07 > An: '[EMAIL PROTECTED]' > Betreff: Using a default entry with LookupDispatchAction ??? > > > > I am currently using LookupDispatchAction to handle all of the various > submit buttons on my form. But when this particular webpage is first > invoked, I would like to first pre-populate it with values. > So I want to use > the same Action (Form bean) to handle pre-populating the > webpage and then > handling > the later user modifications (after they have pressed any one of the > "submit" buttons). > > I am thinking that I will probably need to use an HTML link > to invoke it. > > I was experimenting with something along these lines: > > <html:link page="/overview.do?action=initialize">Overview</html:link> > > where this method would simply be included in the "getKeyMethodMap". > > protected Map getKeyMethodMap() { > Map map = new HashMap(); > map.put("button.save.borrower1", "saveBorrower1"); > map.put("button.save.borrower2", "saveBorrower2"); > map.put("initialize", "initialize"); > return map; > } > > > But have not gotten this to work yet. Any help would be appreciated > > thanks, Norman > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>