You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hajratwala, Nayan (N.)" <nh...@ford.com> on 2003/10/27 18:27:00 UTC

RE: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilatio n errors

I actually had this identical problem when upgrading to WL 8.  I was already using jdk 1.4, so it must be a WS thing.  You should get the WL patch as well.

I switched my scriptlet to do the following, which worked fine.

	params.put("airportCode", ((Airport)airportObj).getAirportCode() );

---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-----Original Message-----
From: Ruta Thakkar [mailto:rutat@hexaware.com] 
Sent: Monday, October 27, 2003 10:39 AM
To: struts-user@jakarta.apache.org
Subject: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors



Dear All,

I have been using Struts 1.1(stable release) with weblogic 6.1,jdk1.3..now we are upgrading to weblogic 8.1/jdk1.4

Here is the code that i was using earlier to pass multiple parameters in html:link:

<logic:iterate id="airportObj" name="airportList">
<bean:define id="airportCode" name="airportObj" property="airportCode" />

<tr >
<%
			java.util.HashMap params = new java.util.HashMap();
			params.put("method", "getAirportDetails");
			params.put("airportCode", airportCode );
			pageContext.setAttribute("paramsName", params);
%>

<td width="17%"><bean:write name="airportValObj" property="airportCode" />
</td>
<td >
<html:link action="/groundservices"  name="paramsName" scope="page" >
	<bean:write name="airportObj" property="airportName" />
</html:link>
</td>
</tr>
</logic:iterate>
this works fine with Weblogic 6.1 and jdk 1.3, But when i upgraded to jdk 1.4 /weblogic 8.1,
it gives me an error:
cannot resolve symbol airportCode at line : params.put("airportCode", airportCode );


I know that jdk1.4 is stricter when it comes to compilation, but does this imply that the bean:define tag is not compiant with jdk1.4??

Pls guide me on how to proceed forward....


Regds
Ruta


DISCLAIMER:

Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies Limited and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at mailadmin@hexaware.com 

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

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