On Wed, 2008-02-20 at 05:15 +0000, Kelly Graus wrote:
> Wes Wannemacher <wesw <at> wantii.com> writes:
> 
> > I'm jumping in late, so if I refer to something that came up in a
> > previous post, I apologize ahead of time. I'm guessing that you're using
> > tomcat. Tomcat is picky about certain things being actual filesystem
> > resources. There are two possible solutions (if I'm right about Tomcat),
> > the first being Jeromy's suggestion. The other thing I've done that
> > seems to work is to create a blank file that matches the request. In
> > this case a 0-byte file called login.action may do the trick. It's a bit
> > of a hack, and I think when this comes up with the Tomcat peeps, they
> > point to the spec. 
> > 
> > -Wes
> > 
> Hi Wes,
> 
> Thanks for the reply!  I tried your fix, now Tomcat returns a blank page.  
> Any 
> other configuration issues I need to be aware of?
> 
> Thanks!
> 
> Kelly
> 

hmm... It worked for the welcome-file pages for me :)

Do you have the struts filter mapped so that it would have picked up the
request? 

I'm thinking you have three choices depending on the amount of time you
have to finish your task. The first would be using a newer version of
Tomcat. As was mentioned earlier, this is basically a gotcha when
dealing with the previous spec (more specifically Tomcat 5.5.x) combined
with a framework that takes over request processing. If not Tomcat,
there are plenty of good alternatives. 

Another choice would be to roll your own authentication and
authorization. There is a great tutorial here
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor that 
gets linked to quite often on this list that will help. Rolling your own is 
much easier than it sounds and the lack of portability when configuring 
Tomcat's *Realms led me to start rolling my own whenever I have needed. 

The last choice is to forgo the framework for the login-form. IIRC, the
requirement is a j_username string and j_password string posted to
j_security_check. I'm a bit of a purist and I don't really like it, but
sometimes you have to do what works, rather than forcing a square peg in
a round hole.  




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to