Anyway if I understood the problem, if "weblogic struts" which I assume is struts 1.0 doesn't support indexed="true" (as struts 1.0 doesn't) then you have to put the index in youself
<logic:iterate id="item" name="basketForm" property="items" indexId="index">
<%
java.lang.String item = "item["+ java.lang.Integer.toString(index) +"]";
pageScope.setAttribute("item",item);
%>
<html:text name="<%= item %>" property="price" />
</logic:iterate>
Again, perhaps I didn't understand the question, or perhaps things look more like this.
<logic:iterate id="item" name="basketForm" property="items" indexId="index">
<%
java.lang.String price = "price["+ java.lang.Integer.toString(index) +"]";
pageScope.setAttribute("price", price);
%>
<html:text property="<%= price %>" />
</logic:iterate>
I assume this is how matey boy fixed his "weblogic struts" problem.
On 20 Mar 2004, at 06:06, Prakasan OK wrote:
Hi,
I am also facing the same problem.. Can u explain how you have solved it?
On Thu, 18 Mar 2004 sougata wrote :No it is not like that since I am using weblogic's struts .Anyway I solved
that.Thanks for your reply
Sougata
-----Original Message----- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 1:36 PM To: Struts Users Mailing List Subject: Re: Pls help on shopping cart App
Do your <html:text have the indexed="true" attribute?
On 18 Mar 2004, at 07:07, sougata wrote:
Hi All,
I have a shopping cart apps.When the user is buying items it is coming
to
"mycart" .In "my mycart" page I am showing all the products and the
beside
that I have a update button by which I can update the quantity of my
each
item which is in a textbox.I am follwing struts for that.My text box
name is
same in every row(say quantity).if its name is quantity in servlet I am
getting a String array of quantity.But when I am coming to the same
page its
showing
value="[Ljava.lang.String;@1765ae" which is the reference of my string
array.How to get the original value
Pls let me know ASAP.
Thanks
Sougata
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]