What´s wrong in my HTML code

What´s wrong in my HTML code? I've developed a site that doesn't show up properly when using Safari. Could some expert tell med what errors we've made. Have a look at
www.scandinaviandesigncenter.com
We promise to send the person who helps us to fix this a real nice Scandinavian design present as a token of appreciations
B rgds
Jorgen B --> [email protected]

Hi, Jorgan, welcome to Apple's user-to-user discussion forums.
What version of Safari are you using? I am having no problems on any of the pages I have tried using Safari 2.0.3 under OS X 10.4.4. I have only browsed through the site, I have not tried filling out any forms.
The first place I would look is at the results of putting your pages through the W3C Validator to see if they meet accepted html/xhtml standards. Your Home Page fails with a number of errors listed. Safari is one of the least forgiving of browsers when it comes to rendering non-standard, bad, or incorrect coding of web pages.
1 Ghz 15 inch PowerBook G4 Mac OS X (10.4.4) 1984 Macintosh

Similar Messages

  • What is wrong with the idl code generated by packager.exe?

    Hello everybody,
    I am trying to figure out what is wrong with the idl code generated by packager.exe. In the evaluation for the bug posted at http://developer.java.sun.com/developer/bugParade/bugs/4964563.html it says that the IDispatch interface is not exposed correctly and thus early binding of java objects is not possible using the current activex bridge implementation.
    As I am no idl expert I have no idea what that means. However, I managed to dig out the idl code generated by packager.exe for the following example bean:
    package test;
    public class MyBean
         protected int value;
         public MyBean()
         public void setMyValue(int _value)
              value = _value;
         public int getMyValue()
              return value;
         public MyBean getSelfReference()
              return this;
    }The corresponding idl code generated by packager.exe is
    uuid(81B0BF63-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    library MyBean
    importlib("Stdole2.tlb");
    dispinterface MyBeanSource;
    dispinterface MyBeanDispatch;
    uuid(81B0BF64-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    dispinterface MyBeanSource {
    properties:
    methods:
    uuid(81B0BF65-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    dispinterface MyBeanDispatch {
    properties:
    [id(4097)]
    int myValue;
    methods:
    [id(32768)]
    VARIANT_BOOL equals(IDispatch* arg0);
    [id(32769)]
    IDispatch* getClass();
    [id(32770)]
    int getMyValue();
    [id(32771)]
    IDispatch* getSelfReference();
    [id(32772)]
    int hashCode();
    [id(32773)]
    void notify();
    [id(32774)]
    void notifyAll();
    [id(32775)]
    void setMyValue(int arg0);
    [id(32776)]
    BSTR toString();
    [id(32779)]
    VARIANT wait([optional] VARIANT var0, [optional] VARIANT var1);
    uuid(81B0BF62-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    coclass MyBean {
    [default, source] dispinterface MyBeanSource;
    [default] dispinterface MyBeanDispatch;
    };Does anyone know what is wrong with this code and maybe how to fix the idl code? Generating the dll should then be easy (I already tried several variations of the idl code but as my idl knowledge is limited it didn't really do what I wanted).

    Then the question is why it does work with visual controls (even if you set them to non-visible)?

  • What's wrong with the following code?

    What's wrong with the following code?
    Circle cir1;
    double rad = cir1.radius

    The circle Object was never instantiated.
    In other words, you have set a declaring of a Circle, but it has not been created in memory yet.
    You will create it using the " = new Circle( PARAMETERS_HERE ); "
    Or some other method that returns a circle.

  • What's wrong with this simple code?

    What's wrong with this simple code? Complier points out that
    1. a '{' is expected at line6;
    2. Statement expected at the line which PI is declared;
    3. Type expected at "System.out.println("Demostrating PI");"
    However, I can't figure out them. Please help. Thanks.
    Here is the code:
    import java.util.*;
    public class DebugTwo3
    // This class demonstrates some math methods
    public static void main(String args[])
              public static final double PI = 3.14159;
              double radius = 2.00;
              double area;
              double roundArea;
              System.out.println("Demonstrating PI");
              area = PI * radius * radius;
              System.out.println("area is " + area);
              roundArea = Math.round(area);
              System.out.println("Rounded area is " + roundArea);

    Change your code to this:
    import java.util.*;
    public class DebugTwo3
         public static final double PI = 3.14159;
         public static void main(String args[])
              double radius = 2.00;
              double area;
              double roundArea;
              System.out.println("Demonstrating PI");
              area = PI * radius * radius;
              System.out.println("area is " + area);
              roundArea = Math.round(area);
              System.out.println("Rounded area is " + roundArea);
    Klint

  • What is wrong in this java code?

    Can someone please tell me what is wrong in this java code?
    /* The program is intended to start animating text at the click of a button, pause it at another click and resume at the next click. It should continue like this */
    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TextAnime implements Runnable
    JFrame frame;
    boolean flag;
    Thread animeThread;
    JLabel label;
    String[] textArray;
    public TextAnime()
    flag = false;
    animeThread = new Thread(this);
    frame = new JFrame("Animate Text");
    GridBagLayout gbl = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    frame.setLayout(gbl);
    JButton button = new JButton("Start");
    label = new JLabel("Stopped");
    textArray = new String[5];
    String textArray1[] = {"Programmer", "SportsMan", "Genius", "Friend", "Knowledgable"};
    for(int ctr = 0; ctr<5 ; ctr++)
    textArray[ctr] = textArray1[ctr];
    gbc.weightx = 1;
    gbc.gridx = 0;
    gbl.setConstraints(button,gbc);
    frame.getContentPane().add(button);
    ButList bl = new ButList();
    button.addActionListener(bl);
    gbc.gridx = 1;
    gbl.setConstraints(label,gbc);
    frame.getContentPane().add(label);
    frame.setSize(200,150);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
    frame.setVisible(true);
    public class ButList implements ActionListener
    public void actionPerformed(ActionEvent evt)
    if(flag == false)
    flag = true;
    animeStart();
    else
    flag = false;
    //animeStop();
    public synchronized void animeStart()
    animeThread.start();
    Thread newThread;
    newThread = Thread.currentThread();
    newThread.notify();
    public void animeStop()
    animeThread.interrupt();
    public void run()
    int i = 0;
    try
    while(i == i)
    if(i==5)
    i=0;
    label.setText(textArray);
    animeThread.sleep(1000);
    i++;
    if (flag == false)
    animeThread.wait();
    catch(InterruptedException ie)
    label.setText("Stopped");
    public static void main(String args[])
    TextAnime ta = new TextAnime();
    Please tell me if this can be written in a more simpler manner. Also please correct this code. I am tired after trying many times.

    When I fix your error, compile and run it, I get this exception:
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalMonitorStateException
         at java.lang.Object.notify(Native Method)
         at cruft.TextAnime.animeStart(TextAnime.java:81)
         at cruft.TextAnime$ButList.actionPerformed(TextAnime.java:63)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    %

  • Does anybody know what is wrong with my java code?

    Does anybody know what is wrong with my java code?
    --------------------Configuration: <Default>--------------------
    stockApplet.java:47: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    if (M_pointThread==null)
    ^
    stockApplet.java:49: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    M_pointThread=new Thread(this);
    ^
    stockApplet.java:50: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    THE CODE:
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    public class StockApplet extends java.applet.Applet implements Runnable
    int Move_Length=0,Move_Sum=0;
    String FileName,Name_Str,Content_Date;
    int SP[]=new int[2000];
    int KP[]=new int[2000];
    int JD[]=new int[2000];
    int JG[]=new int[2000];
    int Mid_Worth[]=new int[2000];
    String myDate[]=new String[2000];
    double CJL[]=new double[2000];
    double MaxCJL,MidCJL;
    Label label[]=new Label[10];
    int MaxWorth,MinWorth;
    int x_move0,x_move1,MaxLength=0;
    int x0,y0,X,Y,Record_Num;
    boolean Mouse_Move,Name_Change=true;
    int JX_Five1,JX_Five2,JX_Ten1,JX_Ten2;
    public void init()
    TextField text1=new TextField();
    Thread M_pointThread=null;
    setLayout(null);
    this.setBackground(Color.white);
    this.setForeground(Color.black);
    for(int i=1;i< 10;i++)
    label=new Label();
    this.add(label[i]);
    label[i].reshape(i*80-65,10,50,15);
    if(i==2){label[i].reshape(80,10,70,15);}
    if(i==7){label[i].reshape(510,10,80,15);}
    if(i >7){label[i].reshape((i-8)*490+45,380,70,15);}
    FileName="six";
    Name_Str="six";
    this.add(text1);
    text1.reshape(150,385,70,20);
    text1.getText();
    public void start()
    if (M_pointThread==null)
    M_pointThread=new Thread(this);
    M_pointThread.start();

    Welcome to the forum. I think that George123 has your problem and its solution well in hand. Follow his good advice and you will have solved this problem. One other thing though just for future reference. If you post your code, here, you are going to want someone to be able to read it easily. Please use code tags when posting next time and your code will be much easier on the eye. You can find out about them here:
    http://forum.java.sun.com/help.jspa?sec=formatting

  • What's wrong with my servlet code ?

    <p>
    Hi,
    </p>
    <p>
    I need to redirect user from jsf application to PHP app with some request attributes using POST method. To check how to do at first I prepared simple servlet:
    </p>
    <p>
    public class TestServlet extends HttpServlet {
        public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException,
    </p>
    <p>
                                                                                   IOException {
            req.setAttribute(&quot;p1&quot;,&quot;Value One&quot;);
            req.setAttribute(&quot;p2&quot;,&quot;Value Two&quot;);
            res.sendRedirect(&quot;http://www.mycompany.pl/test.php&quot;);  
        public void doGet(HttpServletRequest request, HttpServletResponse response)throws IOException,
    </p>
    <p>
                                                                                                                                ServletException{
                  doPost(request,response);
    </p>
    <p>
    I also prepared simple PHP page to display these attributes (Im sure this page works correct):
    </p>
    <p>
    &lt;html&gt;
     &lt;body&gt;
      Attribute p1:  &lt;? echo $_POST[&quot;p1&quot;]; ?&gt; &lt;br /&gt;
      Attribute p2:  &lt;? echo $_POST[&quot;p2&quot;]; ?&gt; &lt;br /&gt;
     &lt;/body&gt;
    &lt;/html&gt;
    </p>
    <p>
    Te problem is that attributes from servet don&#39;t displayed  on PHP page - why. What is wrong wit this servlet ?
    </p>
    <p>
    Kuba
    </p>

    Well if this line of code works for you:
    res.sendRedirect("http://www.mycompany.pl/test.php");
    you could append parameters by building the url string dynamically.
    res.sendRedirect("http://www.mycompany.pl/test.php?p1=ValueOne&p2=ValueTwo");
    Isn't PHP a server technology, if yes why don't you do all the work in php (you'll avoid cookie problems)?
    Regards
    Fred
    PS I don't think this forum is the right place for php questions.

  • What is Wrong with My html-el:reset Tag?

    In my JSP, I used <html-el:form ...>, <htim-el:checkbox ...>, <html-el:hidden ... >, <html-el:submit ... > without any problem.
    But, I got Error 500:(class: org/apache/strutsel?taglib/html/ELResetTag, method: release signature: ?V) Illegal use of nonvirtual method call
    when I used:
    <html-el:reset accesskey="C">Clear</html-el:reset>And the reset button does not get displayed when I
    <html-el:reset>Clear</html-el:reset>Would anybody point out what is wrong with the way I used the reset tag? Thank you.

    In my JSP, I used <html-el:form ...>, <htim-el:checkbox ...>, <html-el:hidden ... >, <html-el:submit ... > without any problem.
    But, I got Error 500:(class: org/apache/strutsel?taglib/html/ELResetTag, method: release signature: ?V) Illegal use of nonvirtual method call
    when I used:
    <html-el:reset accesskey="C">Clear</html-el:reset>And the reset button does not get displayed when I
    <html-el:reset>Clear</html-el:reset>Would anybody point out what is wrong with the way I used the reset tag? Thank you.

  • What's wrong with this mini-code? (Trying to draw graphics).

    Could someone please help me fix what's wrong the following test-program?:
    package project;
    import java.awt.Graphics;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class GraphicsTester extends JPanel
        JPanel thePanel = this;
        public void GraphicsTester()
            JFrame frame = new JFrame();
            frame.setSize(600,600);
            frame.add(thePanel);
            frame.setVisible(true);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            g.drawRect(50, 50, 50, 50);
            System.out.println("Sup fool");
        public static void main(String[] args)
            GraphicsTester gt = new GraphicsTester();
            System.out.println("works2");
    }Any help would be greatly appreciated!
    Thanks in advance!

    Also, all Swing code should be called from the Event Dispatch Thread. It probably isn't hurting much in your case. But, in the body of main, do this (instead of the comment, put what you currently have as the body of main):
    EventQueue.invokeLater(
    new Runnable()
          public void run()
              // Your current body of main.
      });

  • What is wrong about this DefaultTableModel code?

    Hi,
    Can anybody tell me what is wrong about the construction of my JTable. I create the instance of the below class and add to my JTable:
    MyTableModel myModel = new MyTableModel();
    JTable costTable = new JTable(myModel);
    I can see printouts "MTM_1,2,3,4" then it gives me an exception
    Exception caught in Scenegraph: 16 >= 16
    The vector IFC_Tree.totalVector has members like:
    IFC_Tree.totalVector[0]: [IFCBeam, 4.962499618530273, m3, 0.0, 0.0]
    IFC_Tree.totalVector[1]: [IFCColumn, 13.84760570526123, m3, 0.0, 0.0]
    IFC_Tree.totalVector[2]: [IFCFloor, 113.82814025878906, m3, 0.0, 0.0]
    IFC_Tree.totalVector[3]: [IFCWall, 229.7195587158203, m3, 0.0, 0.0]
    IFC_Tree.totalVector[4]: [IFCRoofSlab, 215.8400421142578, m2, 0.0, 0.0]
    IFC_Tree.totalVector[5]: [IFCWindow_2.375*2.45, 8.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[6]: [IFCWindow_0.6*0.6, 20.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[7]: [IFCWindow_3.85*2.45, 3.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[8]: [IFCWindow_2.0*2.1, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[9]: [IFCDoor_0.9*2.1, 17.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[10]: [IFCDoor_1.8*2.45, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[11]: [IFCDoor_0.8*2.1, 28.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[12]: [IFCDoor_0.9*2.45, 11.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[13]: [IFCDoor_2.0*2.1, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[14]: [IFCDoor_1.0*2.1, 4.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[15]: [null, null, null, TOTAL COST, 0.0]
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.JScrollPane;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import javax.swing.DefaultCellEditor;
    import java.util.Vector;
    //public class MyTableModel extends AbstractTableModel
    public class MyTableModel extends DefaultTableModel
    private boolean DEBUG = true;
    static double totalCost = 0.0;
    static Vector data = new Vector();
    static Vector columnNames = new Vector();
    static Vector tmp;
    public MyTableModel()
    System.out.println("MTM_1");
    addColumn("IFCOBJECTS OR PROCESSES");
    addColumn("QUANTITY");
    addColumn("UNITS");
    addColumn("UNIT COST (�)");
    addColumn("TOTAL COST (�)");
    System.out.println("MTM_2");
    for(int i=0; i < IFC_Tree.totalVector.size(); i++)
    System.out.println("MTM_3");
    tmp = (Vector)(IFC_Tree.totalVector.elementAt(i));
    System.out.println("MTM_4");
    addRow(tmp);
    System.out.println("MTM_5");
    System.out.println("MTM_6");
    public int getColumnCount()
    return columnNames.size();
    public int getRowCount()
    public String getColumnName(int col)
    public Object getValueAt(int row, int col)
    public boolean isCellEditable(int row, int col)
    public void setValueAt(Object value, int row, int col)
    }

    Hi,
    Can anybody tell me what is wrong about the construction of my JTable. I create the instance of the below class and add to my JTable:
    MyTableModel myModel = new MyTableModel();
    JTable costTable = new JTable(myModel);
    I can see printouts "MTM_1,2,3,4" then it gives me an exception
    Exception caught in Scenegraph: 16 >= 16
    The vector IFC_Tree.totalVector has members like:
    IFC_Tree.totalVector[0]: [IFCBeam, 4.962499618530273, m3, 0.0, 0.0]
    IFC_Tree.totalVector[1]: [IFCColumn, 13.84760570526123, m3, 0.0, 0.0]
    IFC_Tree.totalVector[2]: [IFCFloor, 113.82814025878906, m3, 0.0, 0.0]
    IFC_Tree.totalVector[3]: [IFCWall, 229.7195587158203, m3, 0.0, 0.0]
    IFC_Tree.totalVector[4]: [IFCRoofSlab, 215.8400421142578, m2, 0.0, 0.0]
    IFC_Tree.totalVector[5]: [IFCWindow_2.375*2.45, 8.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[6]: [IFCWindow_0.6*0.6, 20.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[7]: [IFCWindow_3.85*2.45, 3.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[8]: [IFCWindow_2.0*2.1, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[9]: [IFCDoor_0.9*2.1, 17.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[10]: [IFCDoor_1.8*2.45, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[11]: [IFCDoor_0.8*2.1, 28.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[12]: [IFCDoor_0.9*2.45, 11.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[13]: [IFCDoor_2.0*2.1, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[14]: [IFCDoor_1.0*2.1, 4.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[15]: [null, null, null, TOTAL COST, 0.0]
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.JScrollPane;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import javax.swing.DefaultCellEditor;
    import java.util.Vector;
    //public class MyTableModel extends AbstractTableModel
    public class MyTableModel extends DefaultTableModel
    private boolean DEBUG = true;
    static double totalCost = 0.0;
    static Vector data = new Vector();
    static Vector columnNames = new Vector();
    static Vector tmp;
    public MyTableModel()
    System.out.println("MTM_1");
    addColumn("IFCOBJECTS OR PROCESSES");
    addColumn("QUANTITY");
    addColumn("UNITS");
    addColumn("UNIT COST (�)");
    addColumn("TOTAL COST (�)");
    System.out.println("MTM_2");
    for(int i=0; i < IFC_Tree.totalVector.size(); i++)
    System.out.println("MTM_3");
    tmp = (Vector)(IFC_Tree.totalVector.elementAt(i));
    System.out.println("MTM_4");
    addRow(tmp);
    System.out.println("MTM_5");
    System.out.println("MTM_6");
    public int getColumnCount()
    return columnNames.size();
    public int getRowCount()
    public String getColumnName(int col)
    public Object getValueAt(int row, int col)
    public boolean isCellEditable(int row, int col)
    public void setValueAt(Object value, int row, int col)
    }

  • What's wrong with this html and css code? ref: Create your first  website tut.

    In reply to David Powers re: design view doesn't translate to browser.  I hope this is the approved way to send copies of code and images.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>cable cars</title>
    <link href="main.css" rel="stylesheet" type="text/css">
    <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.-->
    <script>var __adobewebfontsappname__="dreamweaver"</script>
    <script src="http://use.edgefonts.net/source-sans-pro:n6:default.js" type="text/javascript"></script>
    </head>
    <body>
    <div id="#wrapper">
      <header id="top">
        <h1>Bayside Beat</h1>
        <nav id="mainnav">
          <ul>
            <li><a href="index.html" class="thispage">Home</a></li>
            <li><a href="sightseeing.html">Sightseeing</a></li>
            <li><a href="eating_out.html">Eating Out</a></li>
            <li><a href="whats_on.html">Whats On</a></li>
            <li><a href="where_to_stay.html">Where to Stay</a></li>
          </ul>
        </nav>
      </header>
      <div id="hero">
        <article>
          <h2>Be  Where It&rsquo;s At</h2>
          <p> </p>
          <p>San Francisco is one of the most exciting and vibrant cities on  the planet. Bayside Beat is here to keep you informed of the best  places to see, where to eat, what to do, and where to lay down your  weary head after an action-packed day—or night—on the town.</p>
        </article>
      <img src="golden_gate.jpg" width="1214" height="547" alt=""/>  </div>
      <article id="main">
        <h2>Riding  the Cable Cars</h2>
        <p> </p>
        <p>No visit to San Francisco is complete without a ride on the iconic  cable cars that climb up the vertiginous hills of the city. Of the  twenty-three lines established between 1873 and 1890, three remain:  two routes from downtown near Union Square to <a href="http://www.fishermanswharf.org/">Fisherman's Wharf</a>, and  a third route along California Street.</p>
        <p> </p>
        <p>The cable cars rely on cables running constantly beneath the  road&rsquo;s surface. The driver—or gripman—uses a lever to grip the  cable to pull the car and its passengers up the hill. The gripman  requires not only great strength, but also great skill. He needs to  know where to release the cable to coast over crossing cables and  points. The conductor works in close cooperation with the gripman,  operating the brake at the rear of the car to prevent it from running  out of control on the downward slopes.</p>
        <img src="cable_car1.jpg" width="400" height="266" alt=""/>
        <figure>
          <p>The cable car terminus near Union Square</p>
    </figure>
        <p> </p>
        <p>Although the cable cars are now mainly a tourist attraction,  they&rsquo;re still used by local commuters to get to and from work. The  California Street line is particularly popular among commuters on  weekdays.</p>
      </article>
      <article id="sidebar">
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
        <HTML>
        <!--          @page { margin: 2cm }          A:link { so-language: zxx }      -->
        <BODY DIR="LTR">
        <h2>Cable  Car Tips</h2>
        <p> </p>
        <p>A single ride on a cable car costs $6. If you plan to travel  around the city, it&rsquo;s often cheaper to buy a Muni Passport, which  gives you unlimited rides on San Francisco&rsquo;s extensive public  transport system, including the cable cars (but not the <a href="http://www.bart.gov/">BART</a> subway  system). Even a single-day passport ($14) will save you money if you  make a return trip, and stop off to visit Chinatown one way.</p>
        <p> </p>
        <p>There are often long lines at the cable car terminus, particularly  on the Powell-Mason and Powell-Hyde routes. If you don&rsquo;t want to  wait, try walking a few stops along the route. The conductor usually  leaves a small number of places to pick up passengers on the way. The  California Street route is generally less crowded (but not as  spectacular).</p>
      </article>
      <div id="footer">&copy; Copyright Bayside Beat 2013</div>
    </div>
    </body>
    </html>

    Some very strange code that doesn't belong. 
    <article id="sidebar">
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
        <HTML>
        <!--          @page { margin: 2cm }          A:link { so-language: zxx }      -->
        <BODY DIR="LTR">
    Not sure how that got in there but it is definitely not valid.  Looks like a bad copy & paste from some other document.
    Have you reviewed the fundamentals of HTML5 docs yet?  Knowing the basic structure  will help you more than anything else you can learn at this point. 
    Each page has:
    one DOCTYPE,
    one set of <html> tags,
    one set of <head> tags,
    one set of <body> tags. 
    http://www.w3schools.com/html/html5_intro.asp
      <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Title of the document</title>
    </head>
    <body>
    Content of the document......
    </body>
    </html>   
    Nancy O.

  • What is wrong with this idoc code snip?

    Hi all here's the code that's supposed to give me a default value for a metadata in check-in:
    1. <$if dDocAccount like "test*"$>
    2. <$dprDefaultValue="Test"$>
    3. <$elseif userHasRole("TesterA") or userHasRole("TesterB")$>
    4. <$dprDefaultValue="A or B"$>
    5. <$elseif userHasRole("TesterC") or userHasRole("TesterD")$>
    6. <$dprDefaultValue="C or D"$>
    7. <$else$>
    8. <$dprDefaultValue="Not A nor B nor C nor D"$>
    9. <$endif$>
    Now if I leave the code like that only the first 2 lines work meaning that if first condition fails then the whole code stops working even though line 3 is true... is there something wrong in just calling dDocAccount on its own? never seen that happen before.
    If I change that first line for <$if *#active.* dDocAccount like "test*"$> then this first condition won't work but the rest (line 3+) does work!
    please help!!

    Hmmmm,
    If your first two lines work if true then the issue is with the elseif lines right?
    userHasRole("foo") returns true or false. Can you wrap userHasRole("foo") in an "isTrue()" function and test that way?
    What about exploding the OR statement and writing a bunch of elseifs to see if it works that way.
    The other thing you can do is to wrap your OR clause itself in parens
    <$elseif ((userHasRole("foo")) or (userHasRole("bar")))$>
    do stuff
    <$endif$>
    let us know what works for you
    Warmly,
    Billy Cripe
    Fishbowl Solutions

  • Does any one know what is wrong with this servlet code

    package com.bt.ros;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import javax.sql.*;
    import javax.naming.InitialContext;
    import javax.naming.Context;
    import javax.naming.NamingException;
    * This class is a servlet that searches for a Finder Aid.
    * @author
    public class FinderAidsSearchS extends HttpServlet {
       * This is the static initializer,
       * executed the first time this class is referred to.
       * It makes sure the JDBC pool driver is loaded.
       * This method examines an HTTP request and searches for the
       * specified Finder Aid record in the database. It then redirects
       * the response to the <tt>Results.jsp</tt> JSP page.
      public void service(HttpServletRequest req, HttpServletResponse res)
           throws IOException
        HttpSession session = req.getSession(true);
    //res.setContentType("text/html");
    //PrintWriter out = res.getWriter( );
    //out.println("<HTML>");
    //out.println("<HEAD>");
    //out.println("<TITLE>");
    //out.println("A Servlet Example");
        String year   = req.getParameter("Year");
        String year_range      = req.getParameter("Year_Range");
        String county          = req.getParameter("County");
        Connection conn = null;
        try {
    //example code from tomcatmanual
    Context initContext = new InitialContext();
    Context envContext  = (Context)initContext.lookup("java:/comp/env");
    DataSource ds = (DataSource)envContext.lookup("jdbc/rosDS");
    //Connection
    conn = ds.getConnection();
              Statement stmt = conn.createStatement();
          String select = "select * from abridgment where " +
                          "(a_county = '" + county +
                          "' AND a_year_date = " + year +
    out.println("<DEBUG> <select> the select staement is : " + select);
          stmt.execute(select);
          ResultSet resultSet = stmt.getResultSet();
         Results abridgeresults = new Results();
         abridgeresults.setName("NaeemColl");
         Abridgment varabridgment = null;
          int nRows = 0;
          while(resultSet.next()){
            nRows++;
               varabridgment = new Abridgment();
           varabridgment.seta_county(county);
          varabridgment.seta_year_date(Integer.parseInt(year));
            varabridgment.seta_sub_year_volume(resultSet.getInt("a_sub_year_volume"));
           // out.println("varabridgment - attributes are:");
              //out.println("varabridgment - attributes are:" +varabridgment.geta_sub_year_volume());
              //out.println("varabridgment - attributes are:"+resultSet.getInt("a_sub_year_volume"));
              varabridgment.seta_page_id(resultSet.getString("a_page_id"));
            varabridgment.seta_month_date(resultSet.getInt("a_month_date"));
            varabridgment.seta_day_date(resultSet.getInt("a_day_date"));
            varabridgment.seta_year_sequence(resultSet.getLong("a_year_sequence"));
            varabridgment.seta_day_sequence(resultSet.getLong("a_day_sequence"));
            varabridgment.seta_year_volume(resultSet.getInt("a_year_volume"));
            varabridgment.seta_volume_id(resultSet.getString("a_volume_id"));
            varabridgment.seta_summary(resultSet.getString("a_summary"));
            varabridgment.seta_batch_id(resultSet.getLong("a_batch_id"));
            varabridgment.seta_image_id(resultSet.getLong("a_image_id"));
              abridgeresults.addAbridgment(varabridgment);
              //trying to use vector construct
          req.setAttribute("results",abridgeresults);
          //session.setAttribute("results", abridgeresults);
          stmt.close();
          conn.close();
    //out.println("</BODY>");
    //out.println("</HTML>");
    //      String sURL = res.encodeRedirectURL("/rossearch/results.jsp");
            try{
    //TEMPCOMM        res.sendRedirect(sURL);
    req.getRequestDispatcher("/rossearch/results.jsp").forward(req, res);
    //TEMPCODE
    //out.println("</BODY>");
    //out.println("</HTML>");
          catch(Exception e){
            System.err.println("Exception: FinderAidsSearchS.service: " + e);
        catch (Exception e) {
          System.err.println("Exception: FinderAidsSearchS.service: " + e);
    }i really need some assistance at the following areas of code :
    where the database results are set to attributes of one bean varabridgment (Type Abridgement) - the declaration and use of this bean.
    and where this bean is then added to another bean abridgeresults (Type Results) as a List collection.
    i get a null pointer exception when i try to retrieve the List from abridgeresults object of Type Results Bean.
    i would really appreciate some assistance in this - i really need to go to sleep now - but cant until i solve this issue. - thanks all in advance.

    below is exception outputed to tomcat log file.
    it is thrown at the following line of code in the jsp that tries to get the List object :
    currently jsp code to retrieve List: <% List myAbridgments = (List) request.getAttribute("results");
    for (int i = 0; i < myAbridgments.size(); i++) {
    abridgment = (Abridgment) myAbridgments.get(i);
    %>
    line that gives problem is
    (results_jsp.java:95)
    //myAbridgments - is variable where i store the List object in jsp scriptlet
    for (int i = 0; i < myAbridgments.size(); i++) {
    Also, i dont understand why the servlet keeps on forwarding to the results.jsp when i even comment out the line of code to forward request oobject to results.jsp - i recompile copy it over original and restart tomcat - but still i get the null pointer exception in results_jsp - but i'm no longer forwarding anything to this jsp. --- i want to do some out.printline statemets in servelt to see some of the data from the query - but i cant as it just forwrads the request to results.jsp - how can i output the data to look at debug - i dont have a log4j logger setup and dont have IDE to be able to place break points - so wanted to just output stuff to browser to have a look at what was going on - but can't as just forwards request on ?
    Exception ....
    2005-11-07 02:45:20 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    ----- Root Cause -----
    java.lang.NullPointerException
         at org.apache.jsp.results_jsp._jspService(results_jsp.java:95)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)

  • What's wrong with the HTML Editor?

    When editing the HTML of my project, when I put the cursor into position the text at that point partially disappears - notice the 'd' in 'bold' above. It's also slow and generally just difficult to use because the text gets so messed up when you edit it, that you can't see what you're doing!!
    Trying to insert javascript is an absolute nightmare.
    Is it just me or do other people have this issue too?

    Thanks - it works much better now.
    There is still a slight delay when moving the cursor around so it's not perfect but a definite improvement. Now i just need to work on improving my eyesight so I can see properly without zooming in.
    I'm using RoboHelp 9.
    Cheers!

  • What's wrong with this button code

    Dear All,
    I am trying to set up a button handler for many buttons
    rather just one. The
    intention of this code is to say if I press Load1 to Load40
    that button and
    only that button's alpha should change to 50%. This code
    makes them all 50%
    alpha when the frame loads rather than on the onPress event.
    Can someone please help me out with this one?
    i = 0;
    while (i<40) {
    this["Load"+i].onPress = btnEvaluate(this["Load"+i]);
    ++i;
    function btnEvaluate(target_btn:Button) {
    target_btn._alpha = 50;
    Thanks again.
    Alastair MacFarlane

    kglad,
    Thanks again. What would this group do without your help.
    Alastair
    "kglad" <[email protected]> wrote in message
    news:gh0sq0$cbv$[email protected]..
    > :
    >
    >
    >
    > for (var i = 0;i<40;i++) {
    > this["Load"+i].onPress =function(){
    > this._alpha=50;
    > }
    > }

Maybe you are looking for