Hi,
In my banking application, the ShowPayees.jsp displays all the payees for a user. Then each payee has an edit/delete link next to it. If the user clicks on the edit link next to a payee, that payee will be selected for editing. My question is how to I pass the selected payees' account number from the
jsp page (that I have copied below) to an action page?
Since hidden fields are not secure I don't want to pass the account number as a hidden field.
Can I put the account number of the payee as a session attribute? How do I do it in
struts? Or is there any other way to pass secure parameters?
Thanks a lot in advance!
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html>
<head>
<title>Show Payees</title>
</head>
<body>
<logic:present name="showPayeesForm" property="listOfPayees">
<bean:size id="numberOfPayees" name="showPayeesForm" property="listOfPayees"/>
<logic:equal name="numberOfPayees" value="0"> No Payees found </logic:equal>
<logic:greaterThan name="numberOfPayees" value="0">
<logic:iterate id="payee" name="showPayeesForm" property="listOfPayees">
<bean:write name="payee" property="name"/>
<bean:write name="payee" property="accountNumber"/>
<bean:write name="payee" property="addressLine1"/>
<bean:write name="payee" property="addressLine2"/>
<bean:write name="payee" property="city"/>
<bean:write name="payee" property="state"/>
<bean:write name="payee" property="zip"/>
<bean:write name="payee" property="phone"/>
<html:link forward="edit">Edit</html:link>/
<html:link forward="delete">Delete</html:link>
</logic:iterate>
</logic:greaterThan>
</logic:present>