Good day!
I'm new to struts and i need to help..my problem is:
<mytag:corsoSIter colors="#FFFFFF,#E5E9F5">
<TR bgcolor="<%=Color%>">
<TD align=left><%=CorsoSId%></TD>
<TD align=left><%=CorsoSName%></TD>
<TD align=left><%=CorsoSFacolta%></TD>
<TD align=left><%=CorsoSCrediti%></TD>
<TD align=left>
<%
String url = "corsiIA.do?IDFacolta="+request.getParameter("IDFacolta")
+"&CorsoSId="+CorsoSId;
%>
<html:link action="<%=url%>">Vis. Corsi Insegn.</html:link>
</TD>
</TR>
</mytag:corsoSIter>
where corsoSIter is an customtag that i create for iterato on DB.Now i need to
pass to action the CorsoSId and the IDFacolta(this is another parameter from
another controller).I tryed to pas an HashMap:
HashMap mappaOld=(HashMap)request.getAttribute("mappa");
<mytag:corsoSIter colors="#FFFFFF,#E5E9F5">
<TR bgcolor="<%=Color%>">
<TD align=left><%=CorsoSId%></TD>
<TD align=left><%=CorsoSName%></TD>
<TD align=left><%=CorsoSFacolta%></TD>
<TD align=left><%=CorsoSCrediti%></TD>
<TD align=left>
<%
HashMap mappa = new HashMap();
mappa.putAll(mappaOld);
mappa.put(CorsoSId);
pageContext.setAttribute(mappa);
%>
<html:link action="corsiIA.do" name="mappa">Vis. Corsi Insegn.</html:link>
</TD>
</TR>
</mytag:corsoSIter>
This is corectly,but i'd like using only one HashMap..it's very heavy using
more HashMap for each page in my WebApplication...
Sorry for my horrible english...
Plese help me..is very important.
Tanks Alessio.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>