File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Vaadin and Struts 1 together

 
Ragunath Jawahar
Greenhorn
Posts: 15
  • 0
  • 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??

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you David Newton.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic