|
My mistake. I thought the toString() method would convert the array to a
single string.
I use this method to convert the array :
public String arrayToString(String[] aString)
{
StringBuffer result = new StringBuffer();
for(int i=0; i<a.length; ++ i)
result.append(a[i]);
return result.toString();
}
I wouldn't use a string array either. The getIusername() method is created
by the wit. It's used to get the data from the form bean.
Joel
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On
Behalf Of Joe Pluta
Sent: Friday, October 13, 2006 7:54 PM
To: 'Websphere Development Studio Client for iSeries'
Subject: Re: [WDSCI-L] Web interaction tool and the session bean
I'm not sure why you have an array of Strings, but you would access it this
way:
String[] iUserName = (String []) value.getIusername;
Joe
From: Burke, Joel
I am working on a web application that I have ceated using the web
interaction tool.
System.out.println("Bean Value(username): " +
value.getIusername().toString());
The value coming back from the getIusername method is String[]
This is what is written to my server log:
[10/13/06 11:37:13:797 EDT] 00000033 SystemOut O Bean Value(username):
[Ljava.lang.String;@43a01c93
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.