struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ALAMI Ahmed - BOR <Ahmed.AL...@sema.fr>
Subject RE: html:link problem
Date Wed, 17 Oct 2001 14:26:36 GMT
Hello
	I want to save my form's attributes in a session without submiting
the form, do u think it's possible?
Thanks for help

Ahmed ALAMI
Stagiaire
 

8, rue Gustave Hertz - 33600 Pessac
* 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
* aalami@slb.com



-----Message d'origine-----
De : Alexander Jesse [mailto:alexander.jesse@csfs.com]
Envoyé : mercredi 17 octobre 2001 10:36
À : struts-user
Objet : RE: html:link problem


Hi,

this is my version of a similar problem:
     <logic:iterate id="lineItem" name="beanName">
     <bean:define id="pageNumber" name="lineItem" property="page"
toScope="page"/>
      <tr>
       <td>
        <html:link page="/do/datarepresentation"
                   paramId="PAGE"
                   paramName="pageNumber"
        >
         <bean:write name="lineItem" property="page"/>
        </html:link>
       </td>
       <td><bean:write name="lineItem" property="any_attribute"/></td>
      </tr>
     </logic:iterate>

it will result in link like <A
HREF="/context_name/do/datarepresentation?PAGE=123">123</A>
for each line.

Check out the html-taglib guide.

hope this helps
Alexander Jesse

-----Original Message-----
From: Ahmed.ALAMI@sema.fr [mailto:Ahmed.ALAMI@sema.fr]
Sent: Wednesday, October 17, 2001 10:13 AM
To: struts-user@jakarta.apache.org
Subject: html:link problem



Hello everybody

I want to dislplay a link automaticly when iterating over a list.
When i write such code, it doesn't work.

<% for( i=0 ; i < nombrePages ; i++)
{
%>
<bean:define id="numero" value="<%= new Integer(i).toString() %>" />
<html:link page="/recherche?PAGE=<%= numero %>">
</html:link>
<% } %>

it returns always the action /recherche?PAGE=<%= numero %>

Do u have a solution for this?


Ahmed ALAMI
Stagiaire
 

8, rue Gustave Hertz - 33600 Pessac
* 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
* aalami@slb.com

Mime
View raw message