Search:

Type: Posts; User: jerry.yan.mj; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    451

    I think you miss the *

    <urlpattern>/*</urlpattern>
  2. that's how I did as example

    <bean
    class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
    <property name="interceptors">
    <list>
    <ref bean="measurementInterceptor"...
  3. order

    you do not actually need to have another xml. you can configure both in one xml and have the order set to tell which one to load first.

    the order is a property in AbstractHandlerMapping.
  4. Replies
    5
    Views
    1,308

    data binding related

    The topic is about the checkbox data binding. the spring bind data fine if there is a value. If check is unchecked, it sends null and spring won't bind null and the original selected state remains....
  5. Replies
    5
    Views
    1,308

    Use spring tag

    Did you use spring taglib? I really doubt if it is not working with the use of spring taglib.

    Try to use spring taglib and compare the html rendered, you will a hidden field which helps to tell...
  6. Tiles 2 perfectly works with Spring MVC

    I remembered that they work together well but I didn't have a proof.

    Now I got it. I remembered that I read about this topic when I was reading Pro Spring 2.5. Chapter 17 has a section about it....
  7. I don't find it very useful to also replace the...

    I don't find it very useful to also replace the struts action.

    I've used struts 2 first when it was 2 years ago from now. I also used spring mvc extensively this year. All I want to say is I...
  8. I think i got you

    404 means resource not found.

    have you tried return new ModelAndView(null)?
  9. You don't need a json

    a empty jsp will work.
  10. You simply implement an empty callback

    You simply implement an empty callback

    What ever spring mvc return to you will be as a data parameter in jquery. see below:

    $.post(url, params, function(data){
    // do sth

    })

    what you...
  11. I would always recommend to use simple html tag. ...

    I would always recommend to use simple html tag. The spring tag requires object initialization of nested object. This cause problem with hibernate unless you always check and set null if the object...
  12. Please do not jump to the conclusion before you...

    Please do not jump to the conclusion before you actually try it.

    I've been doing this for 3 different projects and it is proven to work fine.
  13. A better way to do this is the following....

    A better way to do this is the following.
    BindingResult errors = getBindingResult(request, yourCommandBean);
    if (errors.hasErrors()) {
    return new ModelAndView(getFormView(), errors.getModel());
    }
  14. Replies
    4
    Views
    802

    I am sorry no. My assumption is based on the way...

    I am sorry no. My assumption is based on the way spring implementing its annotation and my understanding of annotation. Just for brain storming.
  15. can you post your error?

    can you post your error?
  16. Replies
    4
    Views
    802

    This is definitely not an annotation type...

    This is definitely not an annotation type provided by spring. But you should be able to create your own annotation and plugin?
  17. Replies
    3
    Views
    1,550

    I assume you are using...

    I assume you are using "redirect:/doc/jsps/blahblah"? This is pretty good way that works both in regular flow and ajax. It clearly sends 302 to the browser and triggers a new GET to the server...
  18. Replies
    5
    Views
    1,062

    what is your further question?

    what is your further question?
  19. public ModelAndView...

    public ModelAndView newcontactHandler(HttpServletRequest request, HttpServletResponse response)

    If this is your signature, you haven't passed in your command object. As in the source code,...
  20. I really suggest people who use Spring read the...

    I really suggest people who use Spring read the source code.
  21. Replies
    5
    Views
    1,062

    Static form means the content is always the same,...

    Static form means the content is always the same, you do not require server side to help to return the form view.

    dynamic form means you need some server side operation to return the form view.
    ...
  22. Replies
    5
    Views
    1,062

    it depends on how you want to load the form. ...

    it depends on how you want to load the form.

    1. if it is a static form, you can load it with the whole page but hide the div. use javascript tech to bring up the form whenever you need it.

    2....
  23. Here is the one I use.

    <bean id="wizardMultiActionController" class="frameworks.scd.controller.WizardMultiActionController">
    <property name="schedulerWriteBo" ref="SchedulerWriteBo"></property>
    <property...
  24. Prerequisite: 1. sessionForm -> true // this is...

    Prerequisite:
    1. sessionForm -> true // this is for duplicate form submit
    2. synchronizeOnSession -> true // this is for someone who hit h5 really fast.

    We need to make the session access...
  25. See the screenshot

    please see screenshot
Results 1 to 25 of 41
Page 1 of 2 1 2