Hello Group,
I have a jsp page as follows


<html:form action="accept">
<table >
<% String clientArr[]=(String[])request.getAttribute("clientArr");
   String returnId[]=(String[])request.getAttribute("returnId");
   
   for(int ctr=0;ctr<clientArr.length;ctr++)
   {
%>
        <tr>
                <td>
                        <%= clientArr[ctr]%>
                </td>
                <td>
                        <%= returnId[ctr]%>
                </td>
        </tr>
        
<%
   }
   
%>
</html:submit>
</table>
</html:form>

Now when i click the submit button,the action class is called which uses a DAO and 
does some database insert and then 
calls the same page again.

Now, when the page gets called again the clientArr.length in the for loop gives "null 
pointer exception" as the page will not get
the request object clientArr.

Therefore i want to populate either the values dispalyed in the table in an Action 
form OR i would like to  populate the 
arrays clientArr[] and returnId[] in the ActionForm.

How can i acheive the the above scenario.


Thanx & Regards,
Prashant S.


MphasiS India 
IInd Floor, Leela Business Park,
Opp. 'The Leela'
Andheri Kurla Road,
Andheri (E), Mumbai. 
INDIA. 

www.mphasis.com <http://www.mphasis.com>
Architecting Value
SEI Level 5 ISO 9001 

Information transmitted by this e-mail is proprietary to MphasiS and/ or its Customers 
and is intended for use only by the individual or entity to which it is addressed, and 
may contain information that is privileged, confidential or exempt from disclosure 
under applicable law. If you are not the intended recipient or it appears that this 
mail has been forwarded to you without proper authority, you are notified that any use 
or dissemination of this information in any manner is strictly prohibited. In such 
cases, please notify us immediately at [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
and delete this mail from your records.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to