think you very much Le 9 mars 2012 04:33, Xybrek <[email protected]> a écrit :
> On 3/8/2012 11:33 PM, Akram Moncer wrote: > >> hello everybody; >> >> can some one help me and give me how can i create webapp with spring >> framwork on back-end and GWT on front-end ? >> >> -- >> Akram MONCER >> Personne >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Google Web Toolkit" group. >> To post to this group, send email to >> google-web-toolkit@**googlegroups.com<[email protected]> >> . >> To unsubscribe from this group, send email to >> google-web-toolkit+**[email protected]<google-web-toolkit%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/**group/google-web-toolkit?hl=en<http://groups.google.com/group/google-web-toolkit?hl=en> >> **. >> > > In most cases, Spring code is in the GWT RPC (server-side code). Best > approach would be through maven, also you might want to use Spring STS > Plugin if you are using Eclipse. > > If you are able to have your GWT project a "Spring nature" then on your > GWT RPC code, you can apply the standard Spring codes, i.e > in your ServiceImpl code you can override: > > @Override > public void init() ... > { > super.init(); > WebApplicationContext ctx = WebApplicationContextUtils.** > getWebApplicationContext(**getServletContext()); > // Beans > dao = (MyDao)ctx.getBean("myDao"); > } > > @Override > public void doSomething() { > String something = dao.getSomething(...); > } > > From here, you can use the beans to do something your app need to > accomplish. > > Of course you should fix your applicationContext.xml and web.xml which you > can easily search the web on how to do this. > > This is just the basic way to integrate GWT and Spring, as the topic is > very broad, you can integrate other complex things like Spring > authentication etc. > > Hope this helps. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to > google-web-toolkit@**googlegroups.com<[email protected]> > . > To unsubscribe from this group, send email to google-web-toolkit+** > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at http://groups.google.com/** > group/google-web-toolkit?hl=en<http://groups.google.com/group/google-web-toolkit?hl=en> > **. > > -- Akram MONCER Personne -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
