Results 1 to 4 of 4

Thread: Taglib for mixing http/https

  1. #1
    Join Date
    Nov 2004
    Posts
    15

    Default Taglib for mixing http/https

    Back in 2002, there was a serie of JavaWorld articles on mixing protocols transparently. The code contained a nice little set of tags that made JSPs really tidy (to my point of view). These Tags were struts specific.

    Cf http://www.javaworld.com/javaworld/j...-struts_p.html

    I would like something similar that works with Spring.
    I've looked at AppFuse but it only uses the SecureTag, which is nice, but I would also like to avoid having to load the page to trigger the redirect.

    Any idea? If I try to implement them, would that be an interesting enhancement?

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Acegi Security already has HTTP/HTTPS switching support via its net.sf.acegisecurity.securechannel package.

    You can see an example of configuration in the CAS sample (see the CAS sample's applicationContext-acegi-security.xml channelProcessingFilter and channelDecisionManager beans).

    I'm not sure what value a taglib would add over the IoC-based declarations. If you have some example I'd be interested in hearing more about how the taglib could work.

  3. #3

    Default CAS Sample

    Hi

    I too need the HTTP / HTTPS switching functionality...

    but when I goto :


    http://acegisecurity.sourceforge.net...downloads.html

    and click on the link:

    http://sourceforge.net/project/showf...-cas-0.7.0.jar

    To download the sample, I get redirected to the default acegi download page

    So I downloaded both acegi 0.7 jar files and the cas jar file is in there...

    But I do not see the CAS sample applicationContext-acegi-security.xml file you mention...

    Can you tell me where I can download this please?

    Thanks

  4. #4
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    To use the CAS sample you will need to checkout from CVS. There are detailed instructions at http://acegisecurity.sourceforge.net on the "Building with Maven" page (top of navigation sidebar).

Similar Threads

  1. Displaytag taglib
    By bobmanc in forum Web
    Replies: 10
    Last Post: May 22nd, 2009, 01:44 AM
  2. use spring taglib error!
    By leonyuan in forum Web
    Replies: 1
    Last Post: Sep 23rd, 2005, 04:21 AM
  3. Logged in taglib?
    By wpfeiffe in forum Security
    Replies: 4
    Last Post: Sep 10th, 2005, 01:03 AM
  4. ACL taglib
    By vtatai in forum Security
    Replies: 8
    Last Post: Nov 29th, 2004, 05:15 PM
  5. Problem with taglib
    By twest in forum Web
    Replies: 2
    Last Post: Nov 20th, 2004, 06:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •