× 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'm trying to reload my left frame nav bar if the user added a new 
customer that is not showing over there yet.
I've created the URL
"SaveCustomer?reloadStreet=false"
In my class SaveCustomer, I want to change that param reloadStreet to true 
if it needs to be reloaded.  However, when it goes back to the jsp page, 
it shows as being false, even though the java class set it to true.
Here's a snippet of code
url = ("schedule_middle.jsp?reloadStreet=false");
// code to go here to update the vector for the left pane and refresh it.
Vector vStreet = (Vector)sess.getAttribute("vStreet");
for (int i=0; i < vStreet.size(); i++){
        StreetInfo st = (StreetInfo)vStreet.get(i);
        if(st.getNumber() == customer.getStreetNo()){
                if(!(st.checkCivic(customer.getCivicNoInt()))){
                        st.addCivic(customer.getCivicNoInt());
                        url = ("schedule_middle.jsp?reloadStreet=true");
                }
        }
}
conn.close();
sess.setAttribute("customer", customer);
sess.setAttribute("disabled", "disabled");
sess.setAttribute("enabled", "enabled");
getServletConfig()
        .getServletContext()
        .getRequestDispatcher(url)
        .forward(req, resp);

I don't think I'm setting it correctly though.  I'm using post, and I 
think what I'm doing here is for doGet... Can someone help?  Thanks,


Ron Power
Programmer
Information Services
City Of St. John's, NL
P.O. Box 908
St. John's, NL
A1C 5M2
Tel: 709-576-8132
Email: rpower@xxxxxxxxxx
Website: http://www.stjohns.ca/
___________________________________________________________________________
Success is going from failure to failure without a loss of enthusiasm. - 
Sir Winston Churchill

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.