You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anjali Jain <An...@NIIT.com> on 2002/06/18 14:54:12 UTC

using

Hi All,

I have 
*	a list of Customers on ListCustomers.jsp
*	associated ActionForm class ListCustomersForm.java
*	associated Action class ListAction.java


ListCustomer.jsp
<%@page import="java.util.*"%>
<%@page import="org.apache.struts.action.ActionError"%>
<%@page import="org.apache.struts.action.ActionErrors"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<HTML>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<TITLE></TITLE>
</HEAD>
<BODY>
	
</script>
	
	<table border=1>
	<tr>
		<td>Name</td>
		<td>Age</td>
		<td>Address</td>
	</tr>
	
	<logic:iterate id="abs" name="listUserForm" type="UserDetails"
property="userArray" scope="request">
	<tr>		
		<td><html:link page="/CustomerDetails.do"
paramName="customerDetailsForm" paramProperty="userName" scope="request">
		<bean:write name="abs" property="userName"
/></html:link></td>
		<td><bean:write name="abs" property="userAge" /></td>
		<td><bean:write name="abs" property="userAddress" /></td>

	</tr>
	</logic:iterate>

	</table>
	
	
</BODY>
</HTML>
</html:html>


In the code above, customerDetailsForm is not populated with values of
userName, etc.....


I click on the customer name, I should be taken to CustomerDetails.jsp
showing the details of that customer. How do I retrieve the id/name of the
customer in CustomerDetailsAction.java, so that details of the clicked
customer is shown on CustomerDetails.jsp .....????
Properties of a customer are declared in CustomerDetailsForm.java.


Any way-outs....


thanx,
--------anjali


Power your enterprise with custom solutions in eLearning and Knowledge
Management from NIIT - Knowledge Solutions. For details visit our website
http://www.ksb.niit.com 

___________________NOTICE____________________________ 
This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of NIIT shall be
understood to be neither given nor endorsed by NIIT When addressed to NIIT
clients, any information contained in this e-mail is subject to the terms
and conditions in the governing client contract.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>