aspose file tools*
The moose likes Spring and the fly likes Configuring app url with welcome-file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Configuring app url with welcome-file" Watch "Configuring app url with welcome-file" New topic
Author

Configuring app url with welcome-file

Scott Disten
Greenhorn

Joined: Mar 19, 2012
Posts: 2
I followed the example from the spring forums (JSF, Webflow, Spring MVC) to updating my app to use these technologies. It works perfectly, however, when I try to access server/webservername/ it redirects me to server/webservername/app/home -> where home is the correct view. I want to remove the /app/ path in this url, but cannot figure out how to set this up correctly. My web.xml has the Spring MVC Dispatcher Servlet with url-pattern /app/*, but when I remove this from the url-pattern I get the message No mapping found for HTTP request with URI [/webservername/app/home] in DispatcherServlet.


Does anyone know where it gets specified to look for app/home instead of just home? My index.html has a redirect that I changed from app/home to just home.

If you need more information don't hesitate to ask.

The tutorial I used was the webflow-primefaces-showcase.
Scott Disten
Greenhorn

Joined: Mar 19, 2012
Posts: 2
Also, I'm using Tomcat 7.

I turned on log4j debugging and found that it processes the GET request for [/webservername/app/home] even though I think that I've removed everywhere that references /app


Solution: Clear the browser cache -_-
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring app url with welcome-file