guys any way i solved the problem of passing multiple paramters but still
wonder how come the getParameter didnt work with me

so used this technique
<bean:define id="loid1" name="jsptreeForm"
property='<%="arrLevel1oid["+index1+"]"%>'/>
<bean:define id="lname1" name="jsptreeForm"
property='<%="arrLevel1name["+index1+"]"%>'/>

          <html:link
page='<%="/jsp/tree/pdm_treeview.do?value=level1~"+index+"~"+loid1+"~"+lname
1%>' target="leftFrame">
test
</html:link>

this works fine and the out put is

http://192.168.10.63:8080/pdmDemo/jsp/tree/pdm_treeview.do?value=level1~0~15
3~Dewina Food

----- Original Message -----
From: Arron Bates <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 11:03 AM
Subject: Re: d't work: how do i pass multiple parameters


> Victor Hadianto wrote:
>
> >On Mon, 22 May 2000 15:17, you wrote:
> >
> >><jsp:useBean id="info" class="java.util.HashMap" scope="page"/>
> >>
> >><html:hidden name="jsptreeForm" property="strCatalogname" value="name"
/>
> >>
> >> <%
> >>        info.put("val1", request.getParameter("strCatalogname"));
> >>        info.put("val2","test");
> >>%>
> >>
> >> <html:link page="/jsp/tree/pdm_treeview.do" name="info">
> >>    <bean:write name="jsptreeForm" property='<%="arrCatname["+0+"]"%>'
/>
> >></html:link>
> >>
> >
> >You got it wrong. Create the Map as your FormBean property and access
that map from the <html:link> tag, *not* by using the <bean:write> tag.
> >
>
> Actually, the markup is fine. Specifying name only means that it will
> look for a separate reference too the map outside the bean, which is
> what Siraj is doing here. The <bean:write> is simply the content which
> the hyperlink is working off.
>
> Something's either URLEncoding the parameter where it shouldn't or the
> request handler is stuffing up the processing of the query string.
>
> Arron.
>
>
> --
> 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]>

Reply via email to