I found issue SPR-5457 at Spring projects issue tracker is related to this thread.
https://jira.springframework.org/browse/SPR-5457
Type: Posts; User: liangxiao; Keyword(s):
I found issue SPR-5457 at Spring projects issue tracker is related to this thread.
https://jira.springframework.org/browse/SPR-5457
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...
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"...
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...
Please try
@RequestMapping(value = "/document/image/{filename}", method = RequestMethod.GET)
public String function(@PathVariable("filename")String filename);
liang xiao
Hi,
There is sample bean as bellow:
public class Book{
private String name;
private Integer authorId;
// getter/setter
}
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"...
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...
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
for use annotation. you just make your method signature of Controller include ServletRequest. the corresponding value was stuffed automatically
such as:
public yourFunction(ServletRequest...
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...