Please write in English. This is an English speaking mailing list. Antonio
2008/4/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Sto facendo un motore di ricerca di news. > Inizialmente ho una pagina html che mostra le news piu aggiornate e fino > qui nessun problema. > Il fatto è che per ogni news mostrata ho un link del tipo "altre n news > simili" dove si accede alle notizie simili per quella particolare news. > > Visto che io ho già calcolato allo scatenarsi della action di "accesso" > tali cluster per ogni news vorrei che una volta che venga cliccato il link > si scateni un azione a cui passo il giusto oggetto di tipo lista. > Naturalmente non posso definire azioni con parametri in struts.xml perchè > i parametri li conosco solo a run time quindi vorrei un passaggio di > paramtri dinamico. > > Io ho provato a definire il link come segue: > > <s:url id="url" action="showSimilarNews"> > <s:param name="similarNews"><s:property value="similarNews"/></s:param> > </s:url> > <s:a href="%{url}">Altre: <s:property value="centralNews.numSimilarNews"/> > News simili</s:a> > > dove similarNews risulta essere una lista di news sia per il bean > sottostante alla news di accesso sia per la classe relativa alla action che > dovrà mostrare le news simili. > > Grazie mille > > > Daniele > > > > ---------- Initial Header ----------- > > From : "Antonio Petrelli" [EMAIL PROTECTED] > > To : "Struts Users Mailing List" user@struts.apache.org > Cc : > Date : Wed, 16 Apr 2008 16:43:40 +0200 > Subject : Re: dinamically parameters > > > > > > > > > > 2008/4/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > I have an Object List of objects News and when a user click on a link > of the interfece i have to pass this parameter to the correspondent action. > > > But this parameter is setted only at run time, so i have to pass it > dinamically. > > > > > > Can I pass an Object list to an other action??? > > > How I can do It??? > > > > How is this list rendered? > > > > Antonio > > > > > --------------------------------------------------------------------- > > 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] > >