Search:

Type: Posts; User: andrew_null; Keyword(s):

Search: Search took 0.02 seconds.

  1. Quick followup using hasPermission()

    So I removed all the authz tags, and am using hasPermission() instead, and passing a bunch of booleans through the model into the view, in order to figure out what to display.

    When I do this, I...
  2. In Spring/Hibernate, Acl taglib hangs app in high load

    Hello everyone,

    Just wanted to see if anyone else had encountered this. I'm using:

    - Spring 1.1.4
    - Hibernate 2.1.8
    - ...with HibernateInterceptor and OpenSessionInView
    - Acegi 0.8.2 with...
  3. Thanks

    Yeah, that works for me. And we're going to switch to autowiring :) Thanks.

    Andrew
  4. Easiest way to get HibernateInterceptor to be called

    Hello everyone,

    I'm using Spring's HibernateInterceptor for my DAOs, in order to get sessions attached to them. Here's an example of my TargetProxy:


    <bean id="MemberDAOTarget"...
  5. So rather than strip out ALL the HTML, I want to...

    So rather than strip out ALL the HTML, I want to allow some in there. For example, I'd like to allow <P>, <I>, <IMG SRC ... >, <A HREF ...> , etc., but not allow tables of stylesheets of Javascript....
  6. How filter user input for bad HTML/Javascript

    Hey guys,

    I'm writing an app that accepts user input in the form of free-form text.

    The problem is that the Spring HTML escaping tags are WAY too harsh for me. I want to allow links, <IMG...
  7. Where should I be closing these sessions? 1)...

    Where should I be closing these sessions?

    1) Should each method within the DAOs call this.closeIfNecessary?

    2) Or should this be happening in the controllers?

    And to confirm, is the error...
  8. And a potentially related problem...

    After a while, the queries will hang:


    2005-05-10 00&#58;05&#58;32,163 DEBUG &#91;net.sf.hibernate.hql.QueryTranslator&#93; - <HQL&#58; from org.phatcast.db.Member as member where member.username = ?>
    2005-05-10...
  9. When to close sessions and when not to (OpenSessionInView)

    I am using OpenSessionInView and using Spring+Hibernate together, to build a webapp.

    I notice that I'm getting a steady stream of WARNs in the log about unclosed connections. At the same time, I'm...
  10. Replies
    1
    Views
    892

    Does ACL scale up?

    Hello everyone,

    In a system we're building, we are making extensive use of the ACL. For example, we have a bunch of objects:

    User (which can be edited by the user himself only)
    Blog (which is...
  11. Making Acegi ACLs and Hibernate work together nicely...

    I'm using Hibernate, and have recently started using Acegi ACLs. I'm running into an annoying problem that I hope someone else has had experience with:

    1) I use Hibernate xmls to create the two...
  12. Thanks for the tip. I was looking at my copy...

    Thanks for the tip.

    I was looking at my copy of Spring In Action, and unfortunately, it covers an old version of Acegi without the ACL... makes for a great paperweight.

    I'll take a look at...
  13. Here's my guess so far...

    I could be totally, totally wrong, but here's my first guess:

    - Write AuthoritiesByUsernameMapping.java that does a custom query, and returns GrantedAuthority[] that look like: ROLE_ADMIN_1 (where...
  14. Let's say I want to build a blog (Newbie question on roles?)

    Hello everyone, I'm just starting to experiment with Acegi, guided by the "Spring in Action" book.

    A quick question:

    Let's say I want to build a site like Blogger.com, where people can create...
  15. Can I use multiple controllers and multiple...

    Can I use multiple controllers and multiple command objects for WizardFormController?
  16. Detaching an object from a session in Spring?

    I'm using OpenSessionInViewInterceptor and all the other Hibernate/Spring goodies. I'm using HibernateSynch with the Spring templates as well.

    How do you detach an object and reassociate it with...
  17. Moving from one controller to another, seamlessly?

    Let's say I have a new member wizard, which touches multiple controllers. In this example, it could be for a social network like Flickr:

    1) Create the user (NewUserController with User command...
  18. OpenSessionInViewInterceptor called but session flushed

    Hi everyone,

    I added OpenSessionInViewInterceptor into my Spring beans so that I could do lazy init of variables from within my views.

    I see that the interceptor is correctly called, and a...
Results 1 to 18 of 18