Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) 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 mailing list archive is Copyright 1997-2026 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.