struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcello Savino" <Marcello.Sav...@aldebra.com>
Subject R: Issue: using logic:iterate to display rows and html:button to distinguish one of them
Date Thu, 26 Oct 2006 10:32:26 GMT
Give to the hyperlink a button appereance , don't know other way to do this


Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-----Messaggio originale-----
Da: Gallagher, Jim (RBoS ITD&S Dublin) [mailto:Jim.Gallagher@rbs.co.uk] 
Inviato: giovedì 26 ottobre 2006 12.27
A: 'Struts Users Mailing List'
Oggetto: RE: Issue: using logic:iterate to display rows and html:button to distinguish one
of them

Thanks for this - unfortunately I'm required to use a button, not a hyperlink. Is it possible?




                                 Regards,

                                         Jim

Jim Gallagher,
New BACS Team,
Domestic Payments,
Payments, Security & Fraud,
Royal Bank of Scotland,
Parkgate Business Park,
Parkgate Street,
Dublin 8.
RBS Depot Code: DUB

ITS: 			7-4171-7167
External:		+353-1-648 7167 
Internet mail: 	jim.gallagher@rbs.co.uk

-----Original Message-----
From: Marcello Savino [mailto:Marcello.Savino@aldebra.com]
Sent: 26 October 2006 11:21
To: Struts Users Mailing List
Subject: R: Issue: using logic:iterate to display rows and html:button to distinguish one
of them

*** WARNING : This message originates from the Internet ***

Sorry i forgot something in my code

<c:url value="/delete.do" var="urldel">
	<c:param name="idToDelete"><bean:write name="index" property="id"
/></c:param>
	<c:param name="page" value="thisPage.do?method=Open"></c:param>
</c:url>
<a href="<c:out value="${urldel}"/>">Delete</a>

HIH
Ciao, marcello



-----Messaggio originale-----
Da: Gallagher, Jim (RBoS ITD&S Dublin) [mailto:Jim.Gallagher@rbs.co.uk]
Inviato: giovedì 26 ottobre 2006 12.02
A: 'user@struts.apache.org'
Oggetto: Issue: using logic:iterate to display rows and html:button to distinguish one of
them

Hi
Apologies if this is a simple issue, but it's driving me insane. 

In my web app (using Struts 1.1 on Java 1.4 & Websphere) I have a jsp that is using logic:iterate
to display a sequence of records.

On each row I have a "Delete" button, which should cause the object that row represents to
be deleted. I have a form defined and the Delete button submits the form, currently with a
html:hidden tag providing the key of the row to be deleted (contactID). 

The full jsp code is: 

<html:form action="scDeleteOrder">
<logic:iterate id="outstandinglist" name="outstandingList" indexId="index"
property="arrayList" type="temptest.OrderDetail"> <bean:write name="outstandinglist"
property="contactID" /> <bean:write name="outstandinglist" property="contactFirstName"
/> lt;bean:write name="outstandinglist" property="contactLastName" /> <bean:write
name="outstandinglist" property="organisationName" /> <bean:write name="outstandinglist"
property="dateOrderSent" /> <bean:write name="outstandinglist" property="orderStatus"
/> <bean:write name="outstandinglist" property="errorCode" /> <bean:write name="outstandinglist"
property="serviceUserNo" /> <bean:write name="outstandinglist" property="billingSortCode"
/> <bean:write name="outstandinglist" property="billingAccountNo" /> <html:hidden
name="outstandinglist" property="contactID" /><html:submit value="Delete" /> </logic:iterate>
</html:form> 

My problem is that the contactID returned is always the first one displayed, not the one of
the row selected. I changed the hidden tag to a text one to see the value being written and
it was the correct contactID, but on pressing the button the contactID retrieved in the Action
is always the first row displayed. 

Could anybody suggest a) a solution to the above issue and/or b) a more elegant way to achieve
what I'm trying to do? 

Thanks in advance 

                                 Regards,

                                         Jim

Jim Gallagher



The Royal Bank of Scotland plc, Registered in Scotland No. 90312. Registered
Office: 36 St Andrew Square, Edinburgh EH2 2YB

Authorised and regulated by the Financial Services Authority.

This e-mail message is confidential and for use by the addressee only. If the message is received
by anyone other than the addressee, please return the message to the sender by replying to
it and then delete the message from your computer. Internet e-mails are not necessarily secure.
The Royal Bank of Scotland plc does not accept responsibility for changes made to this message
after it was sent.

Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the
responsibility of the recipient to ensure that the onward transmission, opening or use of
this message and any attachments will not adversely affect its systems or data. No responsibility
is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.


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


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


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



The Royal Bank of Scotland plc, Registered in Scotland No. 90312. Registered Office: 36 St
Andrew Square, Edinburgh EH2 2YB

Authorised and regulated by the Financial Services Authority.

This e-mail message is confidential and for use by the addressee only. If the message is received
by anyone other than the addressee, please return the message to the sender by replying to
it and then delete the message from your computer. Internet e-mails are not necessarily secure.
The Royal Bank of Scotland plc does not accept responsibility for changes made to this message
after it was sent.

Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the
responsibility of the recipient to ensure that the onward transmission, opening or use of
this message and any attachments will not adversely affect its systems or data. No responsibility
is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.


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


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


Mime
View raw message