On Thu, Feb 3, 2011 at 6:10 AM, eRobot <dwki...@gmail.com> wrote: > I need to allow a user to log in to my struts2 web app and approve an image. > They can only see their images pending approval and should not have access > to the rest of the site. > > This is to replace an old process of emailing the user images pending > approval. > > Please! Does anyone have any ideas about how this could be done??
There are many ways this can be done, depending on a bunch of factors. (You're not asking about "how to have users that can log in" part, right? Just the approval part? There are a zillion examples of user authentication and authorization everywhere.) It sounds like you just want to role-restrict request handling, and role-disable view components (unless you just want a completely separate UI altogether, your requirements don't specify). If you want to restrict *all* access to your web app *except* this, including things like help pages or any other site functionality, why even have it as the same web app? Are you using Spring? Dave --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org