Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Authentication and Empty Classes

JP Cafaro

2010-07-11

Replies: Find Java Web Hosting

Author LoginPost Reply
One thing that I don't like (haven't figured out how to get around this)
is the need for empty classes. If I have a secure page, like an image
upload form, let's call it (image-upload-form.jsp), I don't want the
user to be able to access it if he or she is not logged in. To
accomplish this, I have a package defined in my struts.xml that declares
a custom interceptor. Then, in the actions that need to be secure, I
declare this package as their ParentPackage using a package-info.java
file. Finally, in order for an access to image-upload-form.jsp to be
intercepted, I have to have a class called ImageUploadForm.java JUST so
that the interceptor can be called. There's nothing in the class that
needs to be done. It seems like a waste. Is there any way around this?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.