• 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Struts2 tags in a login page using JBoss Form Based Authentication

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I'm facing a little problem with struts 2 and form based authentication on JBoss. I managed to make almost everything work as i wanted, except 1 little thing: when i try to call a struts2 tag inside the login.jsp page i get the following error:

The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter.Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag


That's happening because instead of passing through the Struts2 servlet filter i'm redirected to the container form based authentication "handler". This is the related part of the web.xml file:


Is there any way to solve this problem?
(Sorry for my bad english!)
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having exactly the same problem. What is the solution? Thank you in advance!
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch.
Since Marco hasn't posted in two years, I'll chime in. I think you have a few options:
1. Remove Struts tags from your page.
2. Create a JSP page that redirects to your login page and use the JSP page in the login-config section of your web.xml.
3. It may be possible to use an action URL in the login-config section of your web.xml. In every container I've used this is not possible because the JEE specification does not include Struts but I would not rule it out without testing it first
 
You’ll find me in my office. I’ll probably be drinking. And reading this tiny ad.
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic