CSP Help

This is a discussion on CSP Help within the Tech Board forums, part of the Community Boards category; I'm having trouble understanding the syntax for the include tag in CSP (C++ Server Pages). Can someone please explain it ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    11

    Question CSP Help

    I'm having trouble understanding the syntax for the include tag in CSP (C++ Server Pages).
    Can someone please explain it to me?

    Thanks,
    WannaB_Geek

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Really? Do go into further detail. It uses reguar C++ thus regular C style include tags.

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    On a side note: I'm now playing with this, this is indeed an amazing toy. Kudos to you good sir for knowing this exists.

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    11
    I don't mean regular C include directives (#include <iostream>)

    I mean a CSP tag that works as a server-side include:
    <%@ include uri="uri" (static | dynamic) %>

    static makes it work much like the #include directive, except what it includes is CSP rather than C/C++

    dynamic essentially runs the CSP script being called and inserts the output from said script where the include tag was.

    There wasn't really any explanation of the syntax listed, so I was wondering if anyone knew how it works. From what I gather it seems to be:
    <%@ include uri="nav.csp" dynamic %> or
    <%@ include uri="copyright.csp" static %>

    The article this syntax comes from is:
    http://bbcr.uwaterloo.ca/~brecht/cou...pages-2003.pdf

    Also (i'm glad to know I'm not the ONLY person who's heard of this), do you know of a good reference site on CSP? All the ones I've been able to find are rather incomplete.

    Thanks,
    WannaB_Geek

    P.S. the <%=myObject%> tag translates to response<<myObject, right? I'm just wondering if I can use operator<< overloading to make it easier to print out certain data.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21