Dreamweaver  8 display of CF code issue

I'm running Windows XP, with svs pck 2 on my local machine.
Dreamweaver 8 has been acting fine, except for the problem
with it not updating the time stamp on the server. Even with 8.02
is still does it occasionally, but I launched the program this
morning, having made no changes to preferences etc, and when I
opened a page that has CF in it, it's showing all the code, not
just the curly brackets with field names. It's showing all the
code.
I am in the twilight zone about this one. I even found the
Edit /Preference/show invisible elements as: {} and it's still
showing the full code.
Can anyone help with this? Has it ever happened to you? All
else is functioning properly. My Web pages look fine. And other
folks in my development team are NOT having this issue, even though
they are running the same program version. It seems that it has to
be a local setting. And I am in a quandry as to what that might be.
Thanks, WCW

Never happened to me - sorry.
One thing to check is Edit > Preferences > File Types /
Editors and make sure .cfm is not in the Open in code view box
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"Willow315" <[email protected]> wrote in
message news:eujub4$koc$[email protected]..
> I'm running Windows XP, with svs pck 2 on my local
machine.
>
> Dreamweaver 8 has been acting fine, except for the
problem with it not
> updating the time stamp on the server. Even with 8.02 is
still does it
> occasionally, but I launched the program this morning,
having made no changes
> to preferences etc, and when I opened a page that has CF
in it, it's showing
> all the code, not just the curly brackets with field
names. It's showing all
> the code.
>
> I am in the twilight zone about this one. I even found
the Edit
> /Preference/show invisible elements as: {} and it's
still showing the full code.
>
> Can anyone help with this? Has it ever happened to you?
All else is
> functioning properly. My Web pages look fine. And other
folks in my development
> team are NOT having this issue, even though they are
running the same program
> version. It seems that it has to be a local setting. And
I am in a quandry as
> to what that might be.
>
> Thanks, WCW
>

Similar Messages

  • Dreamweaver not displaying last 30 lines of code, GoLive does display them

    My issue here is that Dreamweaver is displaying lines 1
    through 71 of an .html document but there are 124 lines of code
    when opened in Go Live. Here are the undisplayed lines of code...
    any suggestions on how to reveal them in Dreamweaver CS3?
    <input type="hidden" name="id" value="1">
    <input type="hidden" name="amount" value="1200">
    <input type="hidden" name="amount_base" value="1200">
    <input type="hidden" name="quantity" value="1">
    <input type="hidden" name="item_number" value="3">
    <input type="hidden" name="item_name" value="Sabre 2 - 300
    Jumps">
    <input type="hidden" name="on0" value="warranty">
    <input type="hidden" name="or0" value="1">
    warranty: <select name="os0"
    onchange="UpdatePrice(this.form);">
    <option value="None">Please
    select</option><option
    value="Warranty=100">Warranty</option>
    </select>
    <br>
    <input type="image" src="images/ppcart1.gif" border="0"
    name="submit" alt="">
    </div>
    </td>
    </tr>
    <tr>
    <td colspan=2><div
    class="paypalsb"></div></td>
    </tr>
    </form>
    <script language="JavaScript">
    <!--
    UpdatePrice(document.pp1); // initialize option price
    -->
    </script>
    </table>
    </td></tr></table>
    <!-- view template customizable area end -->
    <p> </p>
    </td>
    <!-- End Content column -->
    <!-- Begin Cart column -->
    <td width="20%" valign="top" class="ntkRightColumn">
    <p><b><div class="paypalsb">Shopping
    Cart</div></b></p>
    <script language="JavaScript">
    <!--
    CartView(0);
    //-->
    </script>
    </td>
    <!-- End Cart column -->
    </tr>
    </table>
    <!-- Footor -->
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr class="ntkBottomRow">
    <td> <!-- Note: Only licensed users are
    allowed to remove or change the following copyright statement.
    -->
    <span class="paypalsb" style="color:
    #808080;">&copy;2005 NTK Software. All rights
    reserved.</span>
    </td>
    </tr>
    </table>
    </body>
    </html>

    And the file is corrupt turns out to not be the answer....
    Again I try a different fresh file that follows the same
    guidlines and the code is cut off at line 92, there are 133
    total.... I've provided the code below with a line to show what
    shows up and what doesn't - Any suggestions?
    <html>
    <head>
    <title>testing</title>
    <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <meta HTTP-EQUIV="Expires" CONTENT="0">
    <script language="JavaScript" type="text/javascript">
    <!--
    NTK_RootPath = ""; // configure root path
    NTK_CartAction = 0; // load cart
    //-->
    </script>
    <script language="JavaScript"
    src="ntkcartconfig.js"></script>
    <script language="JavaScript"
    src="ntkcartpp.js"></script>
    <script language="JavaScript"
    src="ntkcart.js"></script>
    <script language="JavaScript"
    src="menu.js"></script>
    <script language="JavaScript"
    src="ntkmenuconfig.js"></script>
    <script language="JavaScript"
    src="ntkcategoryconfig.js"></script>
    <link href="project1.css" rel="stylesheet"
    type="text/css">
    <meta name="generator" content="PayPal Shop Builder
    v2.0.0.1">
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <!-- Logo and top banner background color -->
    <tr class="ntkTopRow">
    <td><img src="images/paypalsb_logo.png"
    border="0"></td>
    </tr>
    </table>
    <table width="100%" height="100%" border="0"
    cellspacing="0" cellpadding="0" class="ntkMain">
    <tr>
    <!-- Begin Menu Column -->
    <td width="20%" height="100%" valign="top"
    class="ntkLeftColumn">
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr><td nowrap>
    <script type="text/javascript" language="javascript">
    if (document.getElementById) {
    oMenu_root.Render();
    } else {
    document.write(ntk_browserNotSupported);
    </script>
    </td></tr>
    </table>
    <br>
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr><td nowrap>
    <span
    class="paypalsb"><b>Browse</b></span>
    </td></tr>
    </table>
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr><td nowrap>
    <script type="text/javascript" language="javascript">
    if (document.getElementById) {
    oCat_0.SetHighlight(); //*** need to set highlight to the
    current cateogry or page
    oCat_root.Render();
    } else {
    document.write(ntk_browserNotSupported);
    </script>
    </td></tr>
    </table>
    </td>
    <!-- End Menu Column -->
    <!-- Begin Content column -->
    <td valign="top" class="ntkMidColumn">
    <!-- <div class="paypalsb">testing</div>
    -->
    <p><b><div
    class="paypalsb">Categories &gt; Rigs</div></b></p>
    <!-- list template customizable area start -->
    <table class="ntkTable">
    <tr class="ntkTableAltRow">
    <form name="pp1" onSubmit="return
    SubmitItemToCart(this);">
    <td width="200" valign="top"><a
    href="Product_view_Rigs_1.html"></a></td>
    <td width="99%" valign="top">
    <a href="Product_view_Rigs_1.html">2</a>
    <br>
    <a href="Product_view_Rigs_1.html">Mirage G4</a>
    <br>
    <input type="hidden" name="id" value="1">
    <input type="hidden" name="amount" value="1200">
    <input type="hidden" name="amount_base" value="1200">
    <!-- *** Discount type -->
    <input type="hidden" name="discounttype" value="0">
    <!-- *** Ship type -->
    <input type="hidden" name="shiptype" value="0">
    <input type="hidden" name="quantity" value="1">
    <input type="hidden" name="item_number" value="2">
    <input type="hidden" name="item_name" value="Mirage
    G4">
    <input type="hidden" name="on0" value="Color">
    <input type="hidden" name="or0" value="0">
    <input type="hidden" name="shipping" value="1">
    <div id="div_amount_1" name="div_amount_1">Price:
    $1,200.00
    <!----Above Line shows up in Dreamweaver CS3-->
    <!----Below Line shows up only in other code editors-->
    Color: <select name="os0"
    onchange="UpdatePrice(this.form);">
    <option value="None">Please select</option>
    <option value="Green=0">Green</option>
    <option value="red=0">red</option>
    </select>
    <br>
    <input type="image" src="images/ppcart1.gif" border="0"
    name="submit" alt="">
    </td>
    </form>
    <script language="JavaScript">
    <!--
    UpdatePrice(document.pp1); // initialize option price
    //-->
    </script>
    </tr>
    </table>
    <!-- list template customizable area end -->
    <br>
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0"><tr>
    <td align="right"><div
    class="paypalsb">Items 1 to 1 of 1</div></td>
    </tr></table>
    <br>
    <p> </p>
    </td>
    <!-- End Content column -->
    <!-- Begin Cart column -->
    <td width="20%" valign="top" class="ntkRightColumn">
    <p><b><div class="paypalsb">Shopping
    Cart</div></b></p>
    <script language="JavaScript">
    <!--
    CartView(0);
    CartButton(0);
    //-->
    </script>
    </td>
    <!-- End Cart column -->
    </tr>
    </table>
    </body>
    </html>

  • The camcorder displays an error code with the letter C: or E: followed by a number.

    Solved!
    Go to Solution.

    Error codes display to help diagnose issues detected by the camcorder. Below is a list of common error code numbers, followed by their causes and the necessary steps to resolve the issue.
    IMPORTANT: If model-specific information is required to complete any of the steps in this solution, refer to the operating instructions supplied with the product. Manuals are available online in the Manuals/Specs/Warranty section of the Sony® eSupport Web site.
    NOTE: The xx in the error codes below represent any random numerical digits and does not affect the overall diagnosis of the issue.
    Error Code
    Cause
    Resolution
    C:13:xx
    The recording media you are using is either not supported for use with the camcorder or the media has a problem.
    Ensure the recording media you are using is supported for use with the camcorder or try using different recording media.
    NOTE: If you have a DVD camcorder and are using a recordable DVD, the disc may be dirty or have scratches; try cleaning the disc with a soft cleaning cloth.
    C:21:xx
    Moisture condensation has occurred.
    Remove the recording media from the camera.
    Leave the media compartment open for at least one hour.
    Insert different recording media into the camcorder.
    Power on the camcorder.
    C:22:xx
    The video heads are dirty.
    Clean the video heads using a dry head-cleaning cassette.
    C:04:xx
    C:23:xx
    The battery being used is not an InfoLithium® battery.
    Replace the battery in the camcorder with a Sony® InfoLithium battery or connect the supplied AC power adapter.
    C:31:xx
    C:32:xx
    The camcorder has detected an issue that may require a power reset.
    Turn off the camcorder.
    Remove the battery or disconnect the AC power adapter for 60 seconds.
    Insert the battery or reconnect the AC adapter.
    E:20:xx
    E:40:xx
    E:60:xx
    E:61:xx
    E:62:xx
    E:91:xx
    E:94:xx
    The camcorder has detected an issue that may require service.
    Reset the camcorder to factory specifications to try resolving this issue.
    The troubleshooting steps listed above should resolve your issue. If you have completed all of the steps and the issue is not resolved, service may be required. The Sony® eService Web site at https://eservice.sony.com/ can assist you in obtaining service from a Sony Service Center or locating a Sony Authorized Servicer.

  • Is Muse compatible with Email Service Providers. I found html code issues - PCs have viewing issues

    Is Muse compatible with Email Service Providers? A colleague said Muse has html code issues as PCs struggle to display the artwork correctly when emails are delivered.

    Is Muse compatible with Email Service Providers? A colleague said Muse has html code issues as PCs struggle to display the artwork correctly when emails are delivered.

  • 4 digit pass code issue

    I am having issues getting itno my phone as I have lost the ability to use predictive text and ont actually know the four digit pass code, is there any way of resetting this on my phone (07879884496)? i am on the final 10th attempt and do not want to lose my data! Many thanks katharine

    You can't call any one to ask your password, we don't know.
    Often users who have multiple numerals in their password will only press the ALT key for the first numeral and not those following, so for instance, if your password were "1234", you might have been pressing "Alt 1234" on the device, which makes the actual password to be "1ers".
    Does that make sense? Does it sound familiar to your usage?
    So check the way you enter your password on the device... do you think you are entering multiple numbers but actually are not?
    You can always try connecting your BlackBerry to the Desktop Software wherein you will be asked to enter the password and you can do so via the full keyboard.
    Anyway, if you JUST SET up the phone, there's not much to lose, is there? Just wipe and start over fresh and this time get your password down pat and remember how you entered it.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to get the last wbs which is displayed  in transaction code cj03?

    Dear Experts,
       I want to get the last wbs which are displayed in  transaction code cj03, i have written below program,but i found it is incorrect. because the sort of wbs  in cj03 is not equal to table prps. the last wbs in cj03  is not equal to table prps.
    who can tell me how to get last wbs which is displayed in cj03?
      SELECT
         PRPS~STUFE
         PRPS~POSID
         PROJ~POST1
         INTO CORRESPONDING FIELDS OF TABLE WA_PRPS_TEMP FROM PRPS INNER JOIN PROJ ON PROJPSPNR = PRPSPSPHI
         WHERE PROJ~PSPID EQ P_PROJECT.
      WA_TLINE = LINES( WA_PRPS_TEMP ).
      READ TABLE WA_PRPS_TEMP INDEX WA_TLINE.
      IF WA_PRPS_TEMP-POSID = P_lastWBS.
        P_LAST = 1
    endif.
    Best Regards,
    Merry

    Hi Merry  ,
      The WBS elements are stored in the table PRPS , so please try using the conversion exit and use the data in internal format then use it in the IF condition.
    Check the FM CONVERSION_EXIT_ABPSN_INPUT and CONVERSION_EXIT_ABPSN_OUTPUT
    Regards,
    Arun

  • How to display the source code for this friggin' file.

    Below is a rather lengthy bit of code that provides the behavior and attributes of a web server for OpenCyc. I need to know if I can enter some java to have the HTML source code displayed in a separate text file whenever this class returns some resulting webpage. If you have any ideas it will be greatly appreciated.
    -"Will code for foo."
    package org.opencyc.webserver;
    * Class WebServer is simple multithreaded HTTP server
    * with CGI limited to a Cyc connection on default port 3600.
    * <p>
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.util.jar.*;
    import java.text.*;
    import org.opencyc.util.*;
    public class WebServer extends Thread {
         * Singleton WebServer instance.
        public static WebServer current;
         * Default HTTP port.
        protected static int DEFAULT_PORT = 80;
         * Default Cyc base port.
        protected static int DEFAULT_CYC_PORT = 3600;
         * Default directory to serve files from on non-Windows OS.
        protected static String DEFAULT_DIR = "/";
         * Default directory to serve files from on Windows.
        //protected static String DEFAULT_WIN_DIR = "C:\\";
        protected static String DEFAULT_WIN_DIR = "k:\\opencyc\\run\\httpd\\htdocs";
         * File cache capacity.
        protected static final int CACHE_CAPACITY = 100;
         * File cache to improve file serving performance.
        protected static Hashtable fileCache = new Hashtable(CACHE_CAPACITY);
         * Number of files served from this web server.
        protected static long nbrFilesServed = 0;
         * Number of files served from this web server that were found in the cache.
        protected static long nbrCacheHits = 0;
         * Server socket for accepting connections.
        protected ServerSocket server;
         * Directories to serve files from.
        protected ArrayList dirs;
         * Map from String (jar root) to JarFile[] (jar class path).
        protected HashMap map;
         * Webserver HTTP port.
        protected int port;
         * Cyc HTML host.
        protected String cycHost = "localhost";
         * Cyc HTML port.
        protected int cycPort;
         * Expand jar tress.
        protected boolean trees;
         * Requests flag.
        protected boolean traceRequests;
         * Constructs a WebServer object.
         * @param port the port to use
         * @param directories the directory to serve files from
         * @param trees true if files within jar files should be served up
         * @param traceRequests true if client's request text should be logged.
         * @exception IOException if the listening socket cannot be opened, or problem opening jar files.
        public WebServer() throws IOException {
            getProperties();
            server = new ServerSocket(port);
            processDirectories();
         * Class Task processes a single HTTP request.
        protected class Task extends Thread {
             * Socket for the incoming request.
            protected Socket sock;
             * Client socket to the Cyc KB HTML server.
            protected Socket cycHtmlSocket;
             * Output tcp stream.
            protected DataOutputStream out;
             * Contains the file request path for a not-found error message.
            protected String notFoundPath;
             * Contains the first line of a request message.
            protected String methodLine;
             * Contains the body of a POST method.
            protected String bodyLine;
             * Constructs a Task object.
             * @param sock the socket assigned for this request.
            public Task(Socket sock) {
                this.sock = sock;
             * Processes the HTTP request.
            public void run() {
                if (traceRequests)
                    Log.current.println("connection accepted from " + sock.getInetAddress());
                notFoundPath = "";
                try {
                    out = new DataOutputStream(sock.getOutputStream());
                    try {
                        getBytes();
                    catch (Exception e) {
                        Log.current.println("file not found: " + notFoundPath);
                        try {
                            out.writeBytes("HTTP/1.1 404 Not Found\r\n");
                            out.writeBytes("Server: Cyc WebServer\r\n");
                            out.writeBytes("Connection: close\r\n");
                            out.writeBytes("Content-Type: text/html\r\n\r\n");
                            out.writeBytes("<HTML><HEAD>\n");
                            out.writeBytes("<TITLE>404 Not Found</TITLE>\n");
                            out.writeBytes("</HEAD><BODY>\n");
                            out.writeBytes("<H1>404 - Not Found</H1>\n");
                            out.writeBytes("</BODY></HTML>");
                            out.flush();
                        catch (SocketException se) {
                catch (Exception e) {
                    Log.current.printStackTrace(e);
                finally {
                    try {
                        sock.close();
                    catch (IOException e) {
             * Reads the HTTP request and obtains the response.
             * @exception IOException when HTTP request has an invalid format.
            private void getBytes() throws IOException {
                // Below logic is complex because web browsers do not close the
                // socket after sending the request, so must parse message to find
                // the end.
                BufferedReader in = new BufferedReader(new InputStreamReader(sock.getInputStream()));
                ArrayList inBytes = new ArrayList(200);
                int ch = 0;
                boolean postMethod;
                methodLine = in.readLine();
                //if (traceRequests)
                //    Log.current.println("methodLine=" + methodLine);
                bodyLine = "";
                if (methodLine.startsWith("POST /"))
                    postMethod = true;
                else
                    postMethod = false;
                //if (traceRequests)
                //    Log.current.println("postMethod=" + postMethod);
                int ch1 = -1;
                int ch2 = -1;
                int ch3 = -1;
                int ch4 = -1;
                // Read the HTTP request headers.
                while (true) {
                    ch = in.read();
                    inBytes.add(new Integer(ch));
                    ch1 = ch2;
                    ch2 = ch3;
                    ch3 = ch4;
                    ch4 = ch;
                    if (ch1 == '\r' && ch2 == '\n' && ch3 == '\r' && ch4 == '\n')
                        break;
                    if ((! postMethod) &&
                        (! in.ready()) &&
                        ch1 == -1 &&
                        ch2 == -1 &&
                        ch3 == '\r' &&
                        ch4 == '\n') {
                        inBytes.add(new Integer('\r'));
                        inBytes.add(new Integer('\n'));
                        break;
                byte[] byteArray = new byte[inBytes.size()];
                for (int i = 0; i < inBytes.size(); i++) {
                    Integer ich = (Integer) inBytes.get(i);
                    byteArray[i] = ich.byteValue();
                String headers = new String(byteArray);
                if (postMethod) {
                    String lcHeaders = headers.toLowerCase();
                    int i = lcHeaders.indexOf("content-length: ");
                    String contentLength = lcHeaders.substring(i + 16);
                    int j = contentLength.indexOf("\r\n");
                    contentLength = contentLength.substring(0, j);
                    int bodyLen = (new Integer(contentLength)).intValue();
                    for (int k = 0; k < bodyLen; k++) {
                        bodyLine = bodyLine + (new Character((char) in.read())).toString();
                String line = methodLine + "\r\n" + headers + bodyLine;
                if (traceRequests)
                    Log.current.println(line);
                if (postMethod)
                    processHttpPost();
                else
                    if (line.startsWith("GET /"))
                        processHttpGet(line.substring(4));
                    else {
                        Log.current.println("Invalid request = " + line);
                        throw new IOException();
             * Processes an HTTP GET method.
             * @param httpGetPath the path of the file to get.
             * @exception IOException if the file is not found.
            private void processHttpGet(String httpGetPath) throws IOException {
                int i = httpGetPath.indexOf(' ');
                if (i > 0)
                    httpGetPath = httpGetPath.substring(0, i);
                Log.current.println(methodLine + " from " + sock.getInetAddress().getHostName());
                i = httpGetPath.indexOf("cg?");
                if (i > 0) {
                    cycHtmlRequest(httpGetPath.substring(i + 3));
                    return;
                notFoundPath = httpGetPath;
                i = httpGetPath.indexOf('/');
                if (i < 0 || map == null) {
                    if (map == null || httpGetPath.endsWith(".jar")) {
                        for (int j = 0; j < dirs.size(); j++) {
                            String dir = (String) dirs.get(j);
                            String nativePath = dir + httpGetPath;
                            nativePath = nativePath.replace('/', File.separatorChar);
                            if (fileCache.containsKey(nativePath)) {
                                writeDataBytes((byte[]) fileCache.get(nativePath));
                                Log.current.println("...cached");
                                nbrCacheHits++;
                                nbrFilesServed++;
                                return;
                            try {
                                File f = new File(nativePath);
                                byte[] fileBytes = getBytes(new FileInputStream(f), f.length());
                                writeDataBytes(fileBytes);
                                if (fileCache.size() >= CACHE_CAPACITY)
                                    fileCache.clear();
                                fileCache.put(nativePath, fileBytes);
                                Log.current.println("...from " + nativePath);
                                nbrFilesServed++;
                                return;
                            catch (IOException e) {
                    throw new IOException();
                String jar = httpGetPath.substring(0, i);
                httpGetPath = httpGetPath.substring(i + 1);
                JarFile[] jfs = (JarFile[]) map.get(jar);
                if (jfs == null)
                    throw new IOException();
                for (i = 0; i < jfs.length; i++) {
                    JarEntry je = jfs.getJarEntry(httpGetPath);
    if (je == null)
    continue;
    writeDataBytes(getBytes(jfs[i].getInputStream(je), je.getSize()));
    nbrFilesServed++;
    return;
    throw new IOException();
    * Processes an HTTP POST method.
    * @exception IOException if the file is not found.
    private void processHttpPost() throws IOException {
    Log.current.println("POST " + bodyLine + " from " + sock.getInetAddress().getHostName());
    cycHtmlRequest(bodyLine);
    * Reads the specified number of bytes and always close the stream.
    * @param in the file to be read for subsequent downloading.
    * @param length the number of bytes to read from the file.
    * @return An array of bytes from the file.
    * @exception IOException if an error occurs when processing the file.
    private byte[] getBytes(InputStream in, long length) throws IOException {
    DataInputStream din = new DataInputStream(in);
    byte[] bytes = new byte[ (int) length];
    try {
    din.readFully(bytes);
    finally {
    din.close();
    return bytes;
    * Sends the HTML request to Cyc.
    * @param cycPath the portion of the URL which is given to the Cyc HTML server.
    private void cycHtmlRequest(String cycPath) {
    String request = sock.getInetAddress().getHostName() + "&" + cycPath + "#";
    System.out.println("request=" + request);
    ArrayList bytes = new ArrayList(10000);
    try {
    cycHtmlSocket = new Socket(cycHost, cycPort);
    System.out.println("cycHost=" + cycHost + " cycPort=" + cycPort);
    BufferedReader cycIn = new BufferedReader(new InputStreamReader(cycHtmlSocket.getInputStream()));
    PrintWriter cycOut = new PrintWriter(cycHtmlSocket.getOutputStream(), true);
    cycOut.println(request);
    cycOut.flush();
    int ch = 0;
    while (ch >= 0) {
    ch = cycIn.read();
    bytes.add(new Integer(ch));
    catch (Exception e) {
    Log.current.printStackTrace(e);
    byte[] byteArray = new byte[bytes.size()];
    for (int i = 0; i < bytes.size() - 1; i++) {
    Integer ich = (Integer) bytes.get(i);
    byteArray[i] = ich.byteValue();
    try {
    writeTextBytes(byteArray);
    catch (Exception e) {
    Log.current.println(e.getMessage());
    * Responds to the HTTP client with data content from the requested URL.
    * @param bytes the array of bytes from the URL.
    * @exception IOException if there is an error writing to the HTTP client.
    public void writeDataBytes(byte[] bytes) throws IOException {
    out.writeBytes("HTTP/1.1 200 OK\r\n");
    out.writeBytes("Server: Cyc WebServer\r\n");
    out.writeBytes("Connection: close\r\n");
    out.writeBytes("Content-Length: " + bytes.length + "\r\n");
    String prefix = (new String(bytes)).toLowerCase();
    if (prefix.indexOf("<html>") > -1)
    out.writeBytes("Content-Type: text/html\r\n\r\n");
    else
    out.writeBytes("Content-Type: application/java\r\n\r\n");
    out.write(bytes);
    out.flush();
    * Respond to the HTTP client with text content from the requested URL.
    * @param bytes the array of bytes from the URL.
    * @exception IOException if there is an error writing to the HTTP client.
    public void writeTextBytes(byte[] bytes) throws IOException {
    out.writeBytes("HTTP/1.1 200 OK\r\n");
    out.writeBytes("Server: Cyc WebServer\r\n");
    out.writeBytes("Connection: close\r\n");
    out.writeBytes("Content-Length: " + bytes.length + "\r\n");
    out.writeBytes("Content-Type: text/html\r\n\r\n");
    out.write(bytes);
    out.flush();
    * Gets properties governing the web server's behavior.
    private void getProperties() {
    port = DEFAULT_PORT;
    String portProperty = System.getProperty("org.opencyc.webserver.port", "");
    if (! portProperty.equalsIgnoreCase(""))
    port = (new Integer(portProperty)).intValue();
    Log.current.println("Listening on port " + port);
    cycPort = DEFAULT_CYC_PORT;
    String cycPortProperty = System.getProperty("org.opencyc.webserver.cycPort", "");
    if (! cycPortProperty.equalsIgnoreCase(""))
    cycPort = (new Integer(cycPortProperty)).intValue();
    Log.current.println("Cyc connections directed to port " + cycPort);
    String dirsProperty = System.getProperty("org.opencyc.webserver.dirs", "");
    dirs = new ArrayList(3);
    StringTokenizer st = new StringTokenizer(dirsProperty, ";", false);
    while (st.hasMoreTokens()) {
    String dir = st.nextToken();
    dirs.add(dir);
    trees = false;
    String treesProperty = System.getProperty("org.opencyc.webserver.trees", "");
    if (! treesProperty.equalsIgnoreCase(""))
    trees = true;
    traceRequests = false;
    String traceRequestsProperty = System.getProperty("org.opencyc.webserver.traceRequests", "");
    if (! traceRequestsProperty.equalsIgnoreCase("")) {
    traceRequests = true;
    Log.current.println("tracing requests");
    * Adds transitive Class-Path jars to jfs.
    * @param jar the jar file
    * @param jfs the list of jar files to serve.
    * @param dir the jar file directory.
    * @exception IOException if an I/O error has occurred with the jar file.
    private void addJar(String jar, ArrayList jfs, String dir) throws IOException {
    Log.current.println("Serving jar files from: " + dir + jar);
    JarFile jf = new JarFile(dir + jar);
    jfs.add(jf);
    Manifest man = jf.getManifest();
    if (man == null)
    return;
    Attributes attrs = man.getMainAttributes();
    if (attrs == null)
    return;
    String val = attrs.getValue(Attributes.Name.CLASS_PATH);
    if (val == null)
    return;
    dir = dir + jar.substring(0, jar.lastIndexOf(File.separatorChar) + 1);
    StringTokenizer st = new StringTokenizer(val);
    while (st.hasMoreTokens()) {
    addJar(st.nextToken().replace('/', File.separatorChar), jfs, dir);
    * Administrative accessor method that obtains list of directories from which files are served.
    public ArrayList getDirs() {
    return dirs;
    * Administrative method that updates the list of directories from which files are served.
    public synchronized void setDirs(ArrayList dirs) throws IOException {
    this.dirs = dirs;
    fileCache.clear();
    processDirectories();
    * Administrative accessor method that obtains number of files served.
    * @return The number of files served.
    public long getNbrFilesServed() {
    return nbrFilesServed;
    * Administrative accessor method that obtains number of files served from cache.
    * @return The number of files served from the cache.
    public long getNbrCacheHits() {
    return nbrCacheHits;
    * Administrative method that clears the file cache.
    public synchronized void clearFileCache() {
    Log.current.println("Clearing file cache");
    fileCache.clear();
    nbrFilesServed = 0;
    nbrCacheHits = 0;
    * Processes the directories from which files are served, expanding jar trees if
    * directed.
    * @exception IOException if problem occurs while processing the jar files.
    private void processDirectories() throws IOException {
    if (dirs.size() == 0)
    if (File.separatorChar == '\\')
    dirs.add(DEFAULT_WIN_DIR);
    else
    dirs.add(DEFAULT_DIR);
    Iterator directories = dirs.iterator();
    while (directories.hasNext())
    Log.current.println("Serving from " + directories.next());
    if (trees) {
    map = new HashMap();
    for (int j = 0; j < dirs.size(); j++) {
    String dir = (String) dirs.get(j);
    String[] files = new File(dir).list();
    for (int i = 0; i < files.length; i++) {
    String jar = files[i];
    if (!jar.endsWith(".jar"))
    continue;
    ArrayList jfs = new ArrayList(1);
    addJar(jar, jfs, dir);
    map.put(jar.substring(0, jar.length() - 4), jfs.toArray(new JarFile[jfs.size()]));
    * Provides the command line interface for creating an HTTP server.
    * The properties are:
    * <pre>
    * org.opencyc.webserver.port=<HTTP listening port>
    * </pre>
    * which defaults to 80.
    * <pre>
    * org.opencyc.webserver.cycPort=<Cyc connection port>
    * </pre>
    * which defaults to 3600.
    * <pre>
    * org.opencyc.webserver.dirs=<path>;<path> ... ;<path>
    * </pre>
    * with the argument enclosed in quotes if any path contains an
    * embedded space.
    * The default directory on Windows is C:
    * and the default on other systems is / the default
    * can be overridden with this property. By default, all files
    * under this directory (including all subdirectories) are served
    * up via HTTP. If the pathname of a file is <var>path</var> relative
    * to the top-level directory, then the file can be downloaded using
    * the URL
    * <pre>
    * http://<var>host</var>:<var>port</var>/<var>path</var>
    * </pre>
    * Caching of file contents is performed.
    * <pre>
    * org.opencyc.util.log=all
    * </pre>
    * If the all value is given, then all attempts to download files
    * are output.
    * <pre>
    * org.opencyc.webserver.traceRequests
    * </pre>
    * If this property has any value, then the client HTTP requests are
    * output.<p>
    * <pre>
    * org.opencyc.webserver.trees
    * </pre>
    * This property can be used to serve up individual files stored
    * within jar files in addition to the files that are served up by
    * default. If the property has any value, the server finds all jar files
    * in the top-level directory (not in subdirectories). For each
    * jar file, if the name of the jar file is <var>name</var>.jar, then any
    * individual file named <var>file</var> within that jar file (or within
    * the jar or zip files referenced transitively in the Class-Path manifest
    * attribute, can be downloaded using a URL of the form:
    * <pre>
    * http://<var>host</var>:<var>port</var>/<var>name</var>/<var>file</var>
    * </pre>
    * When this property has any value, an open file descriptor and cached
    * information are held for each jar file, for the life of the process.
    * @param args an unused array of command line arguments.
    public static void main(String[] args) {
    Log.makeLog();
    System.out.println("OpenCyc Web Server");
    try {
    // Launch thread to accept HTTP connections.
    current = new WebServer();
    current.start();
    catch (IOException e) {
    e.printStackTrace();
    * Just keep looping, spawning a new thread for each incoming request.
    public void run() {
    try {
    while (true) {
    // Launch thread to process one HTTP request.
    new Task(server.accept()).start();
    catch (IOException e) {
    e.printStackTrace();

    JLundan,
    I want to thank you for responding to the thread I started on the forum at java.sun.com. Your solution to my problem of needing to print the code of the html pages that the file I included generates was just what I was looking for. However, I have some further questions to ask, if you don't mind. To clarify my task I should say that your rephrasing of the problem is accurate: "You wan't to display the contents of the HTML file that the web server produces in response of client's request?"
    Yes, this is what I need to do, but also it needs to display the source code of that html file that the server produces in response to the client's request. Also, in this case, I am the client requesting that the server return some html file, and I'm not sure where the server is. But the webserver.java file that I shared on the forum is on my local machine. I was wondering if I could modify this webserver.java file at my home so that any html file the server returns to me would automatically display the source code. This is a school project of mine and I am stuck on this one thing here.
    Further, where would I put the "foo.html" file so it can be written to?
    FileOuputStream fos = new FileOutputStream("foo.html");
    fos.write(bytes);
    fos.close();
    Thanks so much for your help. I look forward to your response, at your convenience.
    Regards

  • Error in Dreamweaver: Unknown Adobe color transform code 2

    I am getting an error in Dreamweaver: Unknown Adobe color transform code 2. Can anyone tell me what is causing this and what to do?

    Not encountered that problem before, but unusual messages after performing a particular action in Dreamweaver are normally the sign that you have a corrupt cache file. Instructions on how to remove the corrupt file are here: http://forums.adobe.com/thread/494811.

  • HT204291 I have downloaded the new Lion OS X but the AirPlay icon wont appear in my menu bar.  The option of AirPlay mirroring is turned on in the Display settings. No issues Air playing through iTunes. Need help. Thanks

    I have downloaded the new Lion OS X but the AirPlay icon wont appear in my menu bar.  The option of AirPlay mirroring is turned on in the Display settings. No issues Air playing through iTunes. Need help. Thanks

    AirPlay
    AirPlay Mirroring requires a second-generation Apple TV or later, and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer).
    Several Apple Articles Regarding AirPlay
    Apple TV (2nd and 3rd gen)- How to use AirPlay Mirroring
    How to set up and configure AirPort Express for AirPlay and iTunes
    Troubleshooting AirPlay and AirPlay Mirroring
    Using AirPlay

  • Directly display cross company code document overview in FBL1N

    Hi Buddy
    My user wants to display cross company code document overview in FBL1N Directly, after execute.
    Instead of going FBL1N --> execute --> Vendor line item display --> once click on cross company code document number than it will take to Display document at lie item level --> once click on call up document overview (F9) than it will display cross company code document overview in FBL1N
    It suggested to user we can use FBU3 for cross company code document overview.
    But user wants in FBL1N --> execute --> Vendor line item display --> once click on cross company code document number -->than it has to  display cross company code document overview in FBL1N.
    Is there any possibility in FBL1N or ells we need to create Z. T CODE? For the same.
    Thanks in advance.
    Regards
    asuvamsi

    Hi, Experts,
    Once i execute the report FBL1N with user's user ID, i have double click on docuement and i click on document overview(At mountain button) it is displaying the respective comapny code wise docuement overview
    if i am executing with our user ID it is displaying cross company code docuement overview once click on document overview (At mountain button)
    How it possible i have checked SU53 T.code also, there are no authorization problem for both user ID's
    Could any body please  give me suggestions on the same.
    Thanks.
    Regards
    asuvamsi
    Edited by: asuvamsi on Dec 28, 2011 11:24 AM

  • How to display the actual code name on the table of the uix file?

    I have established entity object:Schoolinfo,and a view object SchoolinfoView,and registered in the application module.and I drag and drop to a uix file the Datacontrol and it works well,i can see the schoolinfo table's contents.The problem is:in schoolinfo there is an attribute schooltype code,like 1,and referenced to another table:CodeDict in the database, and I want to display the actual code name when displaying the table on the uix file,like "middle school", not just the code 1.How can I do?

    This is more of BC4J question.
    The data that is displayed (View) is a SQL query. You should be able to change the SQL query represented by the view object appropriately to get the desired output. You can see more information on view objects from Jdev help to get more information on it.
    Thanks
    Vijay V
    Team UIX

  • Version number is displayed as a code not the number

    I've created a document template within a  library and added a label to display the version of a document on the footer and I continued to add other columns such "date created, date modified, Revision etc" and now the version number is displayed
    as a code not the number that was displayed before. before the version was displayed as minor versions but now it shows this "{_UIVersionString}". Can anyone
    help please
    Thanks In advance

    Hi Rajendra,
    If i understood your problem correctly then try this
    i am giving one example how to use html tags in sql query
    you can try for other html tags
    but below code only works with PL/SQL Dynamic Content region,so create your report using this region.
    htp.p('<ol type = "circle">');
    htp.p('<li>');
    ----------------your code------
    htp.p('</li>');
    htp.p('</ol>');
    htp.p('<br>');
    hope this helps you,
    Thanks,
    Jitendra

  • Dreamweaver CS4 displays generic icon

    This is not a functional problem, but being a visual perso
    n, its driving me crazy. Dreamweaver CS4 displays a generic icon on my desktop, o
    n the start menu, and also in the installation directory. All of the other CS4 programs (from Design Premium) display properly. I have tried reinstalling Dreamweaver, replacing the icon manually ("change icon") and done a disk cleanup to get rid of any temp and cached files but to no avail.
    Any idea what is causing this or how to fix? I am running Windows 7 Pro.
    Thanks
    Donna S

    I have the same problem except with ALL jpegs, not just small ones. Other file types (pdfs, eg) preview just fine in cover flow, and I am able to open all the jpgs by themselves in any program, they just don't render in cover flow.
    I think this happened in conjunction with the upgrade to 10.5.1.
    Any help would be most appreciated!

  • SEO Metadata options not display in admin panel issue.

    SEO Metadata options not display in admin panel issue.

    Hi there,
    Not much information or detail there.
    If the New meta option on pages is what you are refering to then the site in question is likely not been upgraded to that beta feature. Only partners who have access to beta options under settings can access that to upgrade.

  • Dreamweaver not displaying my home page.

    For some strange reason Dreamweaver not displaying my home page. However it will display all other pages on the site. Does anyone know why this is happening?

    Because you have made an error. If you want to share the error with us please post a link to your site.
    Gramps

Maybe you are looking for

  • HT1689 How can I redeem a balance from one account to another on iTunes ?

    I have money on one iTunes account but I want to use a different iTunes account.. Cans funds be transferred from one account to a different account on iTunes ??

  • Update to 10.9.2 killed my Mac Setup

    So I just updated my Mac to 10.9.2 with the most recent security update. I restarted the Mac and when I logged in as my standard user, I could no longer access any of the files from my home directory. I should note that my home directory is located o

  • How to add Image in "SX_OBJECT_CONVERT_OTF_PDF" Function module

    Hi, We have scenario to add a BMP image from report to PDF format ,they are  using the SX_OBJECT_CONVERT_OTF_PDF function module to generate the report in PDF ,so we want to know how to add a image(BMP) for this function module or is there any other

  • Lightning camera connection kit causing crashes (iPad mini)

    I ordered an lighting camera connection kit (with a usb input) from amazon, new. http://www.amazon.com/Apple-Lightning-Camera-Adapter-MD821ZM/dp/B009WHV3XA/ref=s r_1_1?ie=UTF8&qid=1361988752&sr=8-1&keywords=lightning+camera+connection+kit It came in

  • My contry doesn´t hava the adobe store

    Hi, first of all I apologize for asking the question in this forum and for my bad English, but I tried to contact someone from adobe and have had no luck, I need to buy multiple licenses but I want to buy them directly but the adobe adobe store of my