Win a copy of Head First Android this week in the Android 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Integrating Wicket & Struts

Ranch Hand
Posts: 538
Hibernate Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have a legacy Struts application, and I want to use Strut for all legacy pages and Wicket for a new one.
So I made the project, it works as a standalone context with Tomcat, Wicket is a Filter of course, so nothing should prevent me logically from using both Struts as a Servlet & Wicket as a Filter in the same Tomcat container.

Wicket relevant code is:
public class TEST_Application extends WebApplication
// Wicket method which allows to initialize the Web Application
public void init()
// Keep windows titles tidy
mountBookmarkablePage("/project/test/page", Page.class);

JSP menu index.jsp is:

WEB.xml is:

But it looks like there is no way the Filter is recognized, each time I attempt to access the new page I get a 404 NOT FOUND error "The requested resource (/project/test/page) is not available".

Of course I made many tests changing Filter's "url-pattern" without any success.

Has someone any idea of what could be wrong?

Best regards.
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not a Struts and Wicket expert but as far as I remember, Wicket uses HTML files as its view technology and it looks to me that you are mounting JSP file.
If I were you, I would check it.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic