Search:

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

Search: Search took 0.02 seconds.

  1. I found issue SPR-5457 at Spring projects issue...

    I found issue SPR-5457 at Spring projects issue tracker is related to this thread.
    https://jira.springframework.org/browse/SPR-5457
  2. Thanks martin675. I actually traced to source...

    Thanks martin675.

    I actually traced to source code at class
    LocalVariableTableParameterNameDiscoverer.inspectClass(Class<?> clz), and found some deference between 3.0.1 and 3.0.4. Please take...
  3. java.lang.IllegalStateException & Parameter name

    Hi here,

    I encounter a problem when I upgrade to spring mvc 3.0.4.
    the case is:
    Controller definition:


    <bean parent="controller">
    <property name="proxyInterfaces"...
  4. Replies
    6
    Views
    2,182

    Define a bean in session scope in...

    Define a bean in session scope in applicationContext.xml, such as below.



    <bean id="springSession" class="java.util.HashMap" scope="session"/>


    you would put anything in it, and its...
  5. Replies
    5
    Views
    2,924

    Please try @RequestMapping(value =...

    Please try

    @RequestMapping(value = "/document/image/{filename}", method = RequestMethod.GET)
    public String function(@PathVariable("filename")String filename);


    liang xiao
  6. Replies
    0
    Views
    384

    Layer between controller and view(JSP)

    Hi,

    There is sample bean as bellow:


    public class Book{
    private String name;
    private Integer authorId;
    // getter/setter
    }
  7. Replies
    5
    Views
    684

    Are you sure your setting of applicatContext.xml...

    Are you sure your setting of applicatContext.xml follow the manual?
    Below is ordinary one


    <bean class="org.springframework.web.servlet.view.UrlBasedViewResolver">
    <property name="viewClass"...
  8. How do you invalidate a bean in session scope?

    Hi every body,

    In my case, I make a primitive approach which to manipulate HttpSession in servlet.
    I think there should be a better solution for this kind of logic. Any idea?

    Thanks in...
  9. For my previous solution is absolutely not a best...

    For my previous solution is absolutely not a best one. it couples the J2EE's api to business layout. you should implement interface ApplicationContextAware instead.

    Regards
  10. for use annotation. you just make your method...

    for use annotation. you just make your method signature of Controller include ServletRequest. the corresponding value was stuffed automatically
    such as:


    public yourFunction(ServletRequest...
  11. Hello Kravicha, Your solution make controller...

    Hello Kravicha,

    Your solution make controller invloved in the logic what it doesn't matter.
    If there are some new logic such as redirect page to a login screen. the new code sippet have to be...
Results 1 to 11 of 11