You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Trasca Virgil <vi...@yahoo.com> on 2007/02/28 06:59:22 UTC

is not compiling on Websphere6

Hi all,

   I have this piece of struts html:logic code

<logic:iterate id="addlInfoLabel" name="registrationForm"
property="addlInfoLabels" indexId="i">
                               <tr>
                               <td class="small"><bean:write
name="addlInfoLabel"/></td>
                               <td>
                                       <html:text styleClass="textbox"
size="30" maxlength="50"
                                               property='<
%="addlInfoValues[" + i.intValue() + "]" %>'>
                                       </html:text>
                               </td>
                       </tr>
 </logic:iterate>

where
registrationForm is a struts form defined in struts-config.xml, and 2
array properties for my form
<form-property
       name="addlInfoLabels"
       type="java.lang.Object[]"/>
<form-property
       name="addlInfoValues"
       type="java.lang.Object[]"/>

When compiling on WS6 I get
<!--
D(["mb","<br />[wsJspC] JSPG0091E: An error occurred at line: 110 in the file: /<br />templates/selfreg/jsp/userRegi<wbr />stration.jsp<br /> &nbsp;[wsJspC] JSPG0093E: Generated servlet error from file: /templates/<br />selfreg/jsp/userRegistration<wbr />.jsp<br /> &nbsp;[wsJspC] D:/Partner_Portal_D1/bb<wbr />/prmonline/v75_0/distWebsphere<wbr />/<br />classes/jsp/templates/selfreg<wbr />/jsp/_userRegistration.java<wbr />:241:<br />addlInfoLabel is already defined in<br />_jspService(javax.servlet.http.HttpServlet<wbr />Request,javax.servlet.http.HttpServlet<wbr />Response)<br /> &nbsp;[wsJspC] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; java.lang.Object addlInfoLabel \u003d null;<br /> &nbsp;[wsJspC] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^<br /> &nbsp;[wsJspC] 1 error<br /> &nbsp;[wsJspC] ]<br /><br />Build and functionallity is working perfect on Weblogic. Please assist<br />me with this problem.<br /><br />Thank you,<br /></div>",1]
);
D(["mb","<div style\u003d\"direction:ltr\"><span class\u003dsg>Virgil<br /><br /></span></div>",0]
);
D(["ce"]);

//-->
[wsJspC] JSPG0091E: An error occurred at line: 110 in the file: /
templates/selfreg/jsp/userRegistration.jsp
  [wsJspC] JSPG0093E: Generated servlet error from file: /templates/
selfreg/jsp/userRegistration.jsp
  [wsJspC] D:/Partner_Portal_D1/bb/prmonline/v75_0/distWebsphere/
classes/jsp/templates/selfreg/jsp/_userRegistration.java:241:
addlInfoLabel is already defined in
_jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
  [wsJspC]                 java.lang.Object addlInfoLabel = null;
  [wsJspC]                                  ^
  [wsJspC] 1 error
  [wsJspC] ]

Build and functionallity is working perfect on Weblogic. Please assist
me with this problem.

Thank you,

Virgil


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org