File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Problem with simple filter and JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with simple filter and JSF" Watch "Problem with simple filter and JSF" New topic
Author

Problem with simple filter and JSF

Fabio Cunha
Greenhorn

Joined: Mar 25, 2011
Posts: 12
Hi guys, I'm trying to make a login system for users using a filter, my application is done with JSF and Hibernate, but every time I boot up it, I get an error



But the program still works, but I wonder what the cause of this error? someone would have any idea?
I appreciate any help, thanks

web.xml



LoginFiltro.java



login.xhtml



GravaUsuario.java(part of it)

Mike Zal
Ranch Hand

Joined: May 04, 2011
Posts: 144

This should probably be in the JSF forum instead of JSP. Why do you have an EL expression in your web.xml? I was under the impression that you can only have fully qualified, explicit values inside it.


OCJP6, OCWCD5
Fabio Cunha
Greenhorn

Joined: Mar 25, 2011
Posts: 12
I have EL expression my web.xml to manipulate skins for Richfaces, i sure that is not the problem because i already use that for a long time, but I'll try to post this message in the JSF forum.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

Coding suggestion: Always use braces on conditionals. I can't count the number of times I've cause myself grief because I changed something like:


to:



IllegalStateException means that you're trying to do something at the wrong time. Most typically it happens because you attempt to do something like set a header after you've begun sending content.


Customer surveys are for companies who didn't pay proper attention to begin with.
Fabio Cunha
Greenhorn

Joined: Mar 25, 2011
Posts: 12
My friend help, the problem is that I don't close the state,

before correction

after correction

thanks for everyone that try to help
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem with simple filter and JSF
 
Similar Threads
Don't work any jfs scripts
When trying to deploy my JSF 2.0 JSP page I get this:
Uable to access jsp page from xhtml
Error JSF 2.1: java.io.FileNotFoundException:*/*.xhtml Not Found in ExternalContext
JSF, Facelets losing context after reload