Another quick question.  How would I be able to initialize the hashMap.  the 
problem Im facing is that when I use a forward the submit is not called so 
the values are not initialized in my bean.


>From: "Martin, Margaret" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: dynamic forwards
>Date: Wed, 26 Sep 2001 13:03:15 -0500
>
>Lisa,
>I haven't tried it myself, but according to the doc for the html:link tag,
>you can specify a bean that returns a map which specifies all of the
>parameters... the contents of that bean clearly could change between
>invocations, thus giving you dynamic parameters...
>
>Hope this helps -
>Margaret
>
>-----Original Message-----
>From: lisa ward [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, September 26, 2001 12:52 PM
>To: [EMAIL PROTECTED]
>Subject: dynamic forwards
>
>
>
>
>Hi all,
>
>I am having the exact same problem as Chiji, so I have just copied and
>pasted a bulk of his email (Sorry Chiji) .  Im literally pulling my hair 
>out
>
>over this one.  Chiji, if you have solved the problem let me know or point
>me in the right direction.
>
>Thanks
>
>Chiji's email reads:
>
>---------------------- start of Chiji's email----------------------
>Hi,
>
>Im in a bit of dilema, I don't understand is what I should do if the
>parameters which are used by the html:link (forward) tag are generated on
>the fly.  I can't hard code all the forwards in my config file because I
>don't know how may parameters there will be in advance.  Since I don't know
>the amount parameters in advance I can't specify which form bean each of 
>the
>
>actions with, appended parameter values, should use.
>
>This is what my problem looks like:
>
>in config file:
>
><forward name="search"  path="/do/search" />
>
><action path="/search"
>        name="searchForm"
>        input="/seach.jsp"
>        scope="request" />
>
>in jsp file:
>
><logic:iterate id="pageNumber" name="pageList" offset="0">
><html:link forward="search" paramName="pageNumber" paramId="pageNumber>
>      <bean:write name="pageNumber" />
></html:link>
></logic:iterate>
><html:hidden property="pageNumber" />
>
>when I use:
>
><html:link forward="search" >
>
>it works fine and think this is because of the mapping in the config file.
>
>I would want the forward to 'search' (/do/search) as well as the forward to
>'search' and it parameters (/do/search?pageNumber=1) to use the same form
>bean.
>
>I hope this makes sense.
>
>---------------------- end of Chiji's email----------------------
>
>Thanks
>Lisa
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to