Search:

Type: Posts; User: kkus; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. I modified its value on-the-fly and expect to see...

    I modified its value on-the-fly and expect to see hot-swap work in this case, but not. I guess that is because I start Tomcat from its bootstrap and Tomcat doesn't implement redefineClasses() method...
  2. Is this a ClassLoader issue for AbstractController?

    Hi,

    For the following code, I put String urlReq = "value" first in handleRequestInternal() and set up a breakpoint there. Then I run this Spring 2.0 MVC app in debug mode. It shows me "value" when...
  3. I just change the value in source code but don't...

    I just change the value in source code but don't rebuild and re-deploy the war. To my understanding, Java will take care of swapping changed class/method/variable to memory (is that called hot...
  4. Sorry for confusion. For the following code, I...

    Sorry for confusion. For the following code, I put String urlReq = "value" first and set up a breakpoint there. Then I run app in debug mode. It shows me "value" when breakpoint is reached. Then I...
  5. Sorry for missing put there. What I...

    Sorry for missing put <code> there.

    What I need is send a http://localhost/test.html, the following code will respond with sending back a xml file. In my debug I noticed if I change any value for...
  6. Value can't be changed in bean extended from AbstractController

    Hi,

    I have a bean to return xml response so I extended my bean from AbstractController. After code is running in debug mode, I changed value to String urlReq = "diffValue"
    but this value cant'...
  7. But for getServletContext() will it return me...

    But for getServletContext() will it return me spring's servlet context or my servlet context? Since this method is called from my servlet, I think it is my servlet context. What I need is spring's...
  8. How to access spring application context from another servlet(not in spring context)?

    Hi,

    I need write a simple servlet which needs access some beans in spring application context/web app context. Since this servlet only returns some simple xml content to client, which isn't a...
  9. I tried putting server app's initialization in a...

    I tried putting server app's initialization in a listener extended from ContextLoaderListener, but can't work. Problem is server app always has a while(true) for server socekt to listen to request,...
  10. How to hook up a server app with existing spring app?

    I have a simple server app which needs be integrated into an existing spring app(MVC). One way I can see is building a servlet extended from DispatcherServlet, and then configure this servlet in...
  11. How to configure bean for telenet server with dynamical port?

    I need write a telnet server which is listening for different ports, which means once bean of telnet server is constructed with a request from client with a port number then server should start a new...
  12. Why doesn't Spring spawn new thread for each request?

    I was educated in servlet lifecycle init()/destroy() is called once, but service()(doGet/doPost) will spawn a new thread for each request. When I digged into Spring 1.2.6 code I can't find place to...
  13. Replies
    7
    Views
    1,645

    Since it is a Spring MVC project, I don't think...

    Since it is a Spring MVC project, I don't think it is appropriate or thread safe to place a ThreadLocal in controller as field variable. Even controller itself is singleton and thread safe, it could...
  14. Architecture question: why do we need POST and GET in one submission?

    I noticed for each submission in Spring MVC I got one POST(processFormSubmission()) and one GET(showNewForm()) actions. GET actoin happens after POST is finished and an entity is obtained, and then a...
  15. Replies
    7
    Views
    1,645

    With regard to ThreadLocal, do you mean...

    With regard to ThreadLocal, do you mean implementing like below to make sure controller is thread safe?



    public class MyFormController extends SimpleFormController {
    private static ThreadLocal...
  16. Replies
    7
    Views
    1,645

    That result is returned from a manager which is...

    That result is returned from a manager which is visiting a physical device and get results back from reading that device. After I have this result I need send it out through email. Is controller...
  17. Replies
    7
    Views
    1,645

    How to make a thread-safe controller bean?

    In one page I have two buttons(save and send). After I have result from clicking save button, I will send this result out by clicking send button.
    For such a singleton bean extending from...
  18. Replies
    1
    Views
    721

    How to loop through whole context hiearchy?

    I have web context defined as below,



    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    ...
  19. Sorry for the long sentence:-) When I use...

    Sorry for the long sentence:-)

    When I use getApplicationContext().getBeanDefinitionNames() in controller class it only shows me beans from action-servlet.xml(). WebApplicationContext set its own...
  20. Since my web.xml has following definition which...

    Since my web.xml has following definition which doesn't include /WEB-INF/action-servlet.xml, for controller which extends from SimpleFormController I can't get any beans defined from...
  21. Is action-servlet.xml required in loading context?

    I renamed the above file and got following error in starting tomcat for MVC app,

    INFO [main] .log(646) | Loading WebApplicationContext for Spring FrameworkServlet 'action'
    [appfuse] ERROR [main]...
  22. Replies
    15
    Views
    1,868

    I found answer from these different...

    I found answer from these different XmlWebApplicationContext. My parent/child beans are located at /WEB-INF/action-servlet.xml, but this file isn't specified in web.xml. This file is is implicitly...
  23. Replies
    15
    Views
    1,868

    What I found is XmlWebApplicationContext from...

    What I found is XmlWebApplicationContext from controller and manager layers are different even though I only configure one context in web.xml.

    getBeanDefinitionNames() from controller...
  24. Replies
    15
    Views
    1,868

    I tested your code w/ and w/o concrete class...

    I tested your code w/ and w/o concrete class defined in child bean, both show me proper type of child bean. It works fine. But in my real world, it is a Spring MVC app(Spring...
  25. Replies
    15
    Views
    1,868

    For a10, Since it is a parent/child beans, I...

    For a10,

    Since it is a parent/child beans, I don't want to spread concrete class in each child bean. What I really want is have one class in top parent level and no concrete classes defined at all...
Results 1 to 25 of 51
Page 1 of 3 1 2 3