Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Problem with Spring web mvc

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a web application doing crud operations .But my action add and edit are not working. i am not able to find the mistake. I am sure the sql query for listing is executed as i get output for that.
I am including my code for the application.
Kindly help me out.

ProjectDAO.java


apple-dao.xml

ProjectDAOJdbc

Project.java

ProjectService.java


ProjectServiceImpl.java


apple-service.xml


AddEditProjectFormController.java

ProjectController.java

Inside WEB-INF/jsp folder i have my jsps

addEditProject.jsp


header.jsp


footer.jsp

view.jsp


viewAllProject.jsp


apple-servlet.xml



web.xml


index.jsp


The above is the code for my application i am trying using an example from a website. But the action add and edit is not getting set when i open the corresponding pages. I am not getting any error, but the save update operations are not working hence. Am i missing out anything?

Regards,
Nikhitha
 
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you to try to debug? Is control going to controller? Put some breakpoints and debug.
Else use some print statements and see what's being printed.
 
Nikhy Pai
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have added many debugging lines to output but nothing is getting printed in the console. i am not able to DO debugging correctly in eclipse. please tell me how to do so? is there any thing else wrong with my program?
Kindly help me.
 
Nikhy Pai
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i simply started fresh and retyped all the code and now its working . Still i do not know what was the problem ?
 
Oh. Hi guys! Look at this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!