Praful Thakare

Ranch Hand
+ Follow
since Feb 10, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
7
Received in last 30 days
0
Total given
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Praful Thakare

Welcome Jeremy, the book title and description sounds interesting !!
1 year ago
Welocme Paul ,keen to learn about Codacy

since you are using annotation mapping you dont need following lines, try removing those from config file.


<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter"/>

<bean id="/login.spring" class="com.jitun.login.web.Login" />

3 years ago
First line has the clue java.lang.ClassCastException: org.springframework.web.servlet.ModelAndView cannot be cast to java.lang.String looks like the action methods causing this error are returning ModelAndView object where as String is expected. check the return type and return statements of these methods.
3 years ago
my personal favourite is Apache CXF for REST, some more info here

http://architects.dzone.com/articles/apache-cxf-vs-apache-axis-vs
3 years ago
Interesting fact is, Servlet is supporting NON-Blocking requests since 3.0 released in end of 2009, Where as spring MVC is supports it since Spring 4.0 released Dec 2013.
Another interesting fact is Java is supporting it since jdk 1.4 released 2002 :-) But was too complex to use.

Google for DeferredResult + Spring MVC , you will find many examples.
So to answer your questions.

1) Does Spring Framework use non-blocking IO by default - NO
2 & 3) Can this be configured - Not configured but you can write specific MVC controllers
3 years ago
-U,--update-snapshots Forces a check for missing
releases and updated snapshots on
remote repositories
3 years ago
try mvn -U
3 years ago
with multipart request you won't get get values using request.getParameter(). its discussed previously on java ranch here
3 years ago
<head> ??

BTW, this is JSP forum you should ask questions in relevant forums

I tried using request.getParameter() but it only returns string.



yes, because its read only map (for servlet developer) used by container to store request/form parameters. you can use request.setAttribute and request.getAttribute.
3 years ago
try deleting works folder under tomcat, remember with eclipse there is a different folder for tomcat something like org.eclipse.wst.server.core
agree with Ulf, why to reinvent the wheel.

for code re factoring, one quick thing is to refactor sendEmailToUserList and sendEmailToUser should be refactored since they have 90% similar code. same goes with createEmailMessage and createBulkEmailMessage
3 years ago

I'm learning java ee now, so I think rewriting and understanding how tomcat implemented these interfaces helps.



Really? IMHO that will take you ages to learn java and not sure if it will add any significant knowledge by knowing how its done, I am personally worried about what the api should do, at max read the JSR, but if that's your style then so be it
3 years ago
Not sure if I (or anyone else) understands the question, but I am curious to know, why you want to rewrite request dispatcher?
3 years ago