kartik hedau

Greenhorn
+ Follow
since Feb 12, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by kartik hedau

Well, in my opinion, it depends on a particular context. Sometimes I find returning a String is useful, sometimes returning a ModelAndView object is preferred. It's flexible, depending one's need and habit.



thank you for your thoughts, but can you elaborate more on " depends on a particular context"
11 years ago
Hi all
i am newbie in spring MVC.
i want to know which is better way,either to return ModelAndView or just return String with controller?? I have implemented simple login demo with both way and both are working well.




11 years ago
Hello, I am begginer of struts2, i am getting following error while requesting on action

java.lang.NullPointerException
org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:500)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434)


jsp file




struts.xml




actionClasss



Thank you..
11 years ago
I need to insert a [number of] uiBinder-based widgets into another one, at a particular spot.
lets just say.there is header ,center container and footer uiBinder-based widgets and i want to combine them as home page.
need basic idea..



12 years ago
GWT
The init() method is typically used to perform servlet initialization--creating or loading objects that are used by the servlet in the handling of its requests. Why not use a constructor instead? Well, in JDK 1.0 (for which servlets were originally written), constructors for dynamically loaded Java classes (such as servlets) couldn't accept arguments. So, in order to provide a new servlet any information about itself and its environment, a server had to call a servlet's init().
12 years ago
hello,
i am trying to build small app in gwt, i am using DockPanel to set homepage,but issue here is its adding extra space between left menu and center container which i haven't specify.,


have attached image of home screen ..

code of dock panel is as below




and code of left menu is as below





12 years ago
GWT
hello i am trying to integrate GWT with spring,when ever i run the code it shows following error.

Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.login.client.GreetingService.login(java.lang.String,java.lang.String)' threw an unexpected exception: java.lang.NullPointerException




LoginDao.java



LoginDaoImpl.java


web.xml


applicationContext.xml

when ever i use following code


its working well but i want to use logindao(Autowired) instance to access the method directly to access dao.

Thank you in Advance.
12 years ago
GWT