but this was working fine in weblogic with sp1. The problem came only when i ported it weblogic SP4.
Naveen -----Original Message----- From: adam.l.levine [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 4:35 AM To: struts-user Cc: adam.l.levine Subject: RE: Struts 1.0 problem the only time a getXXX() should accept a parameter is when dealing with indexed properties. If you're needing to retrieve <n> characters, or other such retrieval forms, you could code an access tag that posts your results to a scripting variable, which can then be further manipulated with other tags. or, add a returnLength property (setReturnLength(int nin)/getReturnLength), assign the length you want (53) to that property, and then let getName()'s internal logic use that value in its return. From: [EMAIL PROTECTED] Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: Struts 1.0 problem Date: Mon, 8 Sep 2003 18:34:36 -0400 In my case "name" is not an array... 53 is an int passed to the method getName(int size) from my JSP through <bean:write> tag. Input exactly means that i want 53 chars of the String. -----Original Message----- From: Slattery.Tim [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 2:13 PM To: struts-user Subject: RE: Struts 1.0 problem > We recently ported the weblogic server from SP1 to SP4 and > came accross the following problem while displaying the JSP > pages. This was working fine on SP1. Can anyone tell me the > possible reason. > The line of code in the jsp is : > <bean:write name="<%=formBean%>" property="name[53]" scope="request"/> > where 53 is an input parameter of getName(int size) method of FormBean. And that's the problem. The syntax above says that "name" is an array, and that you want element number 53 of that array. That's exactly what the error message is saying (Property 'name' is not indexed). You could get around this with some more Java code : <% String name = formBean.name(53); %> <c:out value="${name}" /> --------------------------------------------------------------------- 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] _________________________________________________________________ Fast, faster, fastest: Upgrade to Cable or DSL today! https://broadband.msn.com --------------------------------------------------------------------- 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]