• 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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
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!