This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Using Vaadin and Struts 1 together  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm writing an application using Struts 1 and Vaadin. Struts 1 for the customers and Vaadin for the administrative panel. The application's working fine but I have trouble putting them together. If I change the servlet mapping for the Vaadin application, the CSS doesn't get loaded properly and thereby the Vaadin application looks and works weird. Could someone help me out of this??

 
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you have two mappings to the same URL--that's not going to work. Why not put a prefix (one not used in the struts app) for the admin app?
 
Ragunath Jawahar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, the mappings are:

<servlet-mapping>
<servlet-name>Reindeer</servlet-name>
<url-pattern>/admin</url-pattern>
</servlet-mapping>


<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

This one is causing problem with the Admin application (Vaadin), the page doesn't load properly. It doesn't work well with any other mapping except /*
 
Ragunath Jawahar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured it out finally http://vaadin.com/book/-/page/application.environment.html
 
Ragunath Jawahar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you David Newton.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!