Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Spring
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Software Teaming: A Mob Programming, Whole-Team Approach
this week in the
Agile and Other Processes
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Rob Spoor
Junilu Lacar
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Piet Souris
Carey Brown
Bartenders:
Forum:
Spring
spring and Extjs integration.
nil bhalekar
Greenhorn
Posts: 2
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i want develop small project on extjs and spring ,on that user will type some info and that info will be shown on next page .i am having problem to integrating extjs in spring.mt code is
this my extjs code <script type="text/javascript"> Ext.onReady(function(){ Ext.QuickTips.init(); var login = new Ext.FormPanel({ items:[{ fieldLabel:'Name', name:'Name', allowBlank:false },{ fieldLabel:'age', name:'age', allowBlank:false },{ fieldLabel:'id', name:'id', allowBlank:false }], buttons:[{ text:'Submit', formBind: true, handler:function(){ login.getForm().submit({ url: '/HelloWeb/addStudent.htm' , method:'POST' } }] }); this my spring controller @RequestMapping(value = "/addStudent", method = RequestMethod.POST) public String addStudent(@ModelAttribute("SpringWeb")Student student, ModelMap model) { model.addAttribute("name", student.getName()); model.addAttribute("age", student.getAge()); model.addAttribute("id", student.getId()); return "result"; } this my web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>HelloWeb</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>HelloWeb</servlet-name> <url-pattern>*.htm</url-pattern> </servlet-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>redirect.jsp</welcome-file> </welcome-file-list> </web-app> this is my servlet.xml <context:component-scan base-package="nil" /> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/WEB-INF/jsp/" /> <property name="suffix" value=".jsp" /> </bean>
Bill Gorder
Bartender
Posts: 1682
7
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am not a fan of ExtJS but I know those that do use this with Spring seem to like this plugin
https://market.sencha.com/extensions/extdirectspring
[
How To Ask Questions
][
Read before you PM me
]
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Activating page in another panel -- almost working but puzzled
Error with web.xml
how to initiate hashtable and linklist
Extjs and spring integration
no WebApplicationContext found: no ContextLoaderListener registered?
More...