× 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.



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

 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.