Hi,
    I have a Servlet "ViewSurvey.do", it access the Spring Context from wicket 
Application.
MyApplication app = (MyApplication) RequestCycle.get().getApplication();

but there is some thing strange:
1,if I visit the Servlet "ViewSurvey.do" first, It will cause some error, and 
all the application is down
2,if I visit the Wicket application first, It's OK, and then I visit the  the 
Servlet "ViewSurvey.do", the servlet is OK

Maybe it's relation about the servlet start-up sequence. I really couldn't find 
the reason at all.






the following is my web.xml file






        CMS Message System

        

        
                applicationBean
                wicketApplication
        
        
                contextConfigLocation
                
                        
/WEB-INF/applicationContext.xml,/WEB-INF/cms-Context.xml,
                
        
        
                encodingFilter
                
                        org.springframework.web.filter.CharacterEncodingFilter
                
                
                        encoding
                        GB2312
                
                
                        forceEncoding
                        false
                
        
        
                encodingFilter
                *.*
        
        
                org.springframework.web.context.ContextLoaderListener
        
        
                WicketApplication
                
                        org.apache.wicket.protocol.http.WicketServlet
                
                
                        applicationFactoryClassName
                        org.apache.wicket.spring.SpringWebApplicationFactory
                        
                
                1
        
        

        
                SurveyAction
                
                        cn.meadlai.cms.servlet.survey.SurveyAction
                
                3
        

        
                ViewSurvey
                
                        cn.meadlai.cms.servlet.survey.ViewSurvey
                
                3
        

        
        
                SurveyAction
                /surveyAction.do
        
        
                ViewSurvey
                /viewSurvey.do
        
        
        
        
                WicketApplication
                /manage/*.html
        

        
                index.html
        


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to