Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

spring mvc sending email got error check the code

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my EmailController.java file

EmailController.java



This is my EmailSender.java file



This is my EmailMessage.java file



This is my emailConfiguration.xml file under src/main/resources/META-INF



This is my applicationContext.xml under the view folder



This is my email-servlet.xml file under view folder i.e. src/main/webapp/resources/WEB-INF/view



This is my index.jsp file under the WEB-INF folder



This is my pom.xml file



This is my console of Spring Tool Suit IDE

 
Sheriff
Posts: 7656
522
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, and where is the most important part, an error you are getting?
You attached partial console output, which is an intro only.
 
Bhushan Ramse
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when I run the program and click on this link   'Click here to Load Email Form' then I got following  error -----

HTTP Status 404 - /mypackage/WEB-INF/view/EmailFormView.jsp

type Status report

message /mypackage/WEB-INF/view/EmailFormView.jsp

description The requested resource is not available.
Pivotal tc Runtime 3.2.2.RELEASE/8.5.6.B.RELEASE
 
Liutauras Vilda
Sheriff
Posts: 7656
522
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, the error message appear to be quite descriptive:

/mypackage/WEB-INF/view/EmailFormView.jsp
The requested resource is not available.

Do you have that email form created?
 
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic