× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Did you try looking at the individual elements of the array? Something like
this "value.getIusername()[0]".

_________________________________________
San Su
email: sansu@xxxxxxxxxx





                                                                           
             "Burke, Joel"                                                 
             <jburke@xxxxxxxxx                                             
             od.edu>                                                    To 
             Sent by:                  "'WDSCI-L@xxxxxxxxxxxx'"            
             wdsci-l-bounces@m         <WDSCI-L@xxxxxxxxxxxx>              
             idrange.com                                                cc 
                                                                           
                                                                   Subject 
             10/13/2006 11:40          [WDSCI-L] Web interaction tool and  
             AM                        the session bean                    
                                                                           
                                                                           
             Please respond to                                             
                 Websphere                                                 
                Development                                                
             Studio Client for                                             
                  iSeries                                                  
             <wdsci-l@midrange                                             
                   .com>                                                   
                                                                           
                                                                           




I am working on a web application that I have ceated using the web
interaction tool.  The basic structure looks like this:

a.jsp -> b.jsp -> c.jsp -> d.jsp

I have changed the struts config file (struts-config.xml) to make the scope
of the form beans the session.

My issue is that when I move from c.jsp to d.jsp, I want to access the bean
that was used to get from a.jsp to b.jsp.

This is the code I use in my servlet to try to access the session bean and
print the username to the log for testing:

HttpSession session = request.getSession(false);

GetApplicationInputForm value =
(GetApplicationInputForm)session.getAttribute("GetMarywoodApplicationInputFo

rm");

            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

Any ideas on how to the the value out of the session bean?



Joel Burke

Marywood University



--
This is the Websphere Development Studio Client for iSeries  (WDSCI-L)
mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.