This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
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 while loading the welcome page

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I have developed one simple web application using spring, by getting the code from the internet. But when I start the application, the welcome file is not being loaded at all. Request you to please help me to resolve this issue. Even though my spring context file name is dispatcher-servlet.xml, I am getting the below weird exception.



dispatcher-servlet.xml



web.xml

 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The above listener code searches for a file named applicationContext.xml.. Also, we can initialize other files using the context-param.
You tell when you start the application, welcome page is not loaded at all, this means what you get in browser/server, 404 exception or what? please TelltheDetails.
 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks a lot for your mail, when i start the browser, I am getting the below exception:

HTTP Status 404 - /SpringValidationDemo/

--------------------------------------------------------------------------------

type Status report

message /SpringValidationDemo/

description The requested resource (/SpringValidationDemo/) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.20


Request you to please help me to resolve this issue.
 
Prasad Krishnegowda
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Just noticed this now, you can't directly access jsp's inside WEB-INF, so only we keep jsp inside WEB-INF, so its secure.. take the redirect.jsp out and put in WebContent. Also, post that redirect.jsp and also post the server logs when the application is deployed.
 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have now commented the below code:



But now I am getting the below error in the browser after the server start from my userForm.jsp:



userForm.jsp code
 
Prasad Krishnegowda
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove the attribute label for the mentioned tag.. Its not valid as per the taglib definition..
You might want to take a look into this one for knowing what attributes are valid for the spring form taglib..
http://static.springsource.org/spring/docs/3.0.x/reference/spring-form.tld.html
 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As per your previous comment, I removed the label tag from the jsp. That issue got resolved. But now I am getting the below mentioned error:



onSubmit method of my controller class:



This application is about the validations in spring framework. Please help me to resolve this issue
 
Prasad Krishnegowda
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are you setting your commandClass, in dispatcher-servlet.xml or controller.. in dispatcher-servlet.xml i see them commented..
If you are setting in controller class can you post them here..
If no, uncomment these two line from your dispatcher-servlet.xml
 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks a lot. It is working fine now Thanks for all your help
 
ranger
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shyampriya soni,
Your post was moved to a new topic.
 
BWA HA HA HA HA HA HA! 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!