Insert/remove image HTML document

Hi,
I use a JEditorPane to edit an HTML document
How can I insert an image into the document?
How can I remove an image into the document?
thank you
Greg

crash wrote:
> Adobe Acrobat is a plugin, and as such it requires the
plug-in to view. You
> cannot "mix" a pdf and HTML AFAIK. The PDF must be view
in the PDF
> application.
>
> You can, of course, convert your PDF to any image format
and place it within
> your content as you've done.
>
> You might try using frames, but I don't know how
successful that would be
> (sounds a bit nightmarish to me).
>
> HTH,
>
> Jon
>
> "rcshell" <[email protected]> wrote in
message
> news:e48u6r$nmi$[email protected]..
>> Hi there,
>> I would like to import or insert a pdf file
(acrobat) into an html
>> document
>> and be able to write above and below the document. I
have copied the
>> document
>> into MS paint and saved it as a gif file and
inserted it that way...Is
>> there
>> any more
>> direct way to do this? I have not been able to copy
and paste directly
>> into
>> DW from
>> adobe acrobat....Please advise!!
>> Thanks abunch!
>> RC
>>
>
>
Or you could convert the pdf to FlashPaper, then insert as
you would an
image. You choose the size.

Similar Messages

  • Firefox (15) inserts a "Firefox HTML document" in Windows Explorer File New menu. It breaks my works patterns (Alt FWF stops working). Need to disable.

    I often use the shortcut Alt FWF to create new directories on Windows.
    When FF 15 is set as default it alters the File New menu from Windows Explorer.
    It inserts a "Firefox HTML document" item.
    This item seems to sabotage the above key combination. It intercepts the last F.
    In addition I object to the naming which is plain wrong, for me.
    I have deleted the registry key that inserts this thing. Unfortunately it re-appears.
    I want to stop this behaviour.
    How do I kill this. (Other than by making another browser the default.)

    I'm not seeing that on Windows 7 (which I'm sure is no consolation to you).
    Since Folder usually is the top item on the new items menu, can you use
    <br>Alt+f w Enter
    until someone comes up with <s>a better workaround</s> an actual solution?

  • Insert pdf into html document

    Hi there,
    I would like to import or insert a pdf file (acrobat) into an
    html document
    and be able to write above and below the document. I have
    copied the document
    into MS paint and saved it as a gif file and inserted it that
    way...Is there any more
    direct way to do this? I have not been able to copy and paste
    directly into DW from
    adobe acrobat....Please advise!!
    Thanks abunch!
    RC

    crash wrote:
    > Adobe Acrobat is a plugin, and as such it requires the
    plug-in to view. You
    > cannot "mix" a pdf and HTML AFAIK. The PDF must be view
    in the PDF
    > application.
    >
    > You can, of course, convert your PDF to any image format
    and place it within
    > your content as you've done.
    >
    > You might try using frames, but I don't know how
    successful that would be
    > (sounds a bit nightmarish to me).
    >
    > HTH,
    >
    > Jon
    >
    > "rcshell" <[email protected]> wrote in
    message
    > news:e48u6r$nmi$[email protected]..
    >> Hi there,
    >> I would like to import or insert a pdf file
    (acrobat) into an html
    >> document
    >> and be able to write above and below the document. I
    have copied the
    >> document
    >> into MS paint and saved it as a gif file and
    inserted it that way...Is
    >> there
    >> any more
    >> direct way to do this? I have not been able to copy
    and paste directly
    >> into
    >> DW from
    >> adobe acrobat....Please advise!!
    >> Thanks abunch!
    >> RC
    >>
    >
    >
    Or you could convert the pdf to FlashPaper, then insert as
    you would an
    image. You choose the size.

  • Inserting Images in a HTML document

    Hello,
    i m developing a small HTML editor ,
    The problem i m facing is that if i m writing in my text pane and
    i wont to insert a image where the cursor presently is how i would do this ?
    since i wont have any trace as the last element of the HTML generated
    by the component does not have any id like i have" id=add" for the
    body tag ! through which i know where to insert HTML!
         e.g
         in the below lines i m setting
         HTMLEditorKit for the JTextPane
         HTMLEditorKit htmlKit4Display = new HTMLEditorKit();
         displayData = new JTextPane(styleDoc);
         displayData.setEditorKit(htmlKit4Display);
         if i initialize my text pane with the below string.
         "<HTML><TITLE >The Title</TITLE><BODY id=add></BODY></HTML>"
         then i can insert HTML after body tag using the below line
         HTMLDocument htmlDoc=(HTMLDocument)displayData.getDocument();
         htmlDoc.insertAfterStart(htmlDoc.getElement("add"), "<IMG src=home.gif>..") ;

    Hello,
    try this:
    a)
    int position = displayData.getCaretPosition();
    javax.swing.text.Element elt = htmlDoc.getCharacterElement(position);
    htmlDoc.insertBeforeStart(elt,"<IMG...");
    or
    b)
    htmlKit4Display.insertHTML(
    htmlDoc,
    position,
    "<IMG src=..."
    0, 0,
    javax.swing.text.html.HTML$Tag.IMG
    a) runs correctly if there is 1 character by element
    b) runs correctly (avoid this method to insert paragraphs elements like tables, <p>...(there are many bugs))

  • How do I insert images in HTML document?

    I'm working on an old site and I want to use Dreamweaver to build new pages.
    That site was not built with Dreamweaver.
    I just want to open a new HTML page, build that page then copy and paste the code.
    I have no problem with the text, but I have to insert graphics using their URL, not their location on my computer. I've tried, but I don't understand how it works.
    Thank you.
    Gina

    cookscornerblog wrote:
    Mr. Powers, I'm 69 years old, so maybe I'm just senile.
    I certainly hope not, Gina. You're only a few years older than me, and roughly the same age as Murray. Neither of us comes from a computing background, but our age hasn't stopped us from learning new technologies.
    You'll find most people here, including me, are very helpful. You got the first answer from me within six minutes of posting your question. When you asked for step-by-step instructions, I gave you a direct link to the Help pages, which give step-by-step instructions.
    Help is given here willingly, regardless of age or experience. But you're more likely to get the assistance you need if you show that you have at least made some effort to solve the problem yourself. I honestly cannot believe that an 80-hour course on Dreamweaver did not cover the insertion of images. It might not have covered the insertion of remote images, but the method is exactly the same as inserting a local image.

  • DWCC2014.1 - When Inserting an Image, all code is wiped and replaced with HTML framework containing an iFrame

    I recently upgraded to DW CC 2014.1 on my Mac - which caused me a number of issues. But the one I'm facing right now is very strange.
    Whenever I try to insert an image - either via the shortcut, or through the top level dropdown dialogue - when the file browser comes up, all of my HTML code disappears, to be replaced with a starter template and an iframe. This happens about 90% of the time - but it sometimes works correctly, and I can't figure out why it does work that 10%.
    Usually, I can just cancel the file browser and Undo to get my code back. But occasionally that doesn't work (and neither does Revert), and I have to close the document and re-open to my last save.
    Here's what appears when my code vanishes:
    Anybody know what's happening here? I don't use any specially created shortcuts. I've run into several issues with 2014.1 that have impacted my productivity, and it's getting increasingly frustrating.

    I am experiencing the same issue.
    Environment: Mac Pro 6,1/OS X 10.9.5/DreamWeaver CC 2014.1 6947 Build
    Relevant software: DefaultFolder X 4.6.10 (16690)
    Steps:
    1) Position cursor on its own line in Code panel of Split View.
    2) Press Cmd+Option+I [OR] select Insert > Image > Image
    3) Navigate to image using file browser
    4) Click OK
    5) Repeat the above steps to insert a second image
    Result with DefaultFolder X active:
    1) The first insert completes as expected [OR] all HTML code between opening and closing body tags disappears, and a frame tag with a source attribute pointing to the file itself is inserted after the closing head tag
    2) For subsequent inserts:
    If the first insert completed as expected: If the cursor is indented from farthest-left,  all HTML code between opening and closing body tags disappears, and a frame tag with a source attribute pointing to the file selected in the first insert appears after the closing head tag. If the cursor is not indented, *most* subsequent attempts will reproduce the issue
    If the first insert produced the issue: all subsequent inserts will reproduce the issue, and the frame source will be the file itself
    Result with DefaultFolder X disabled:
    1) The first insert completes as expected [OR] all HTML code between opening and closing body tags disappears, and a frame tag with a source attribute pointing to the file itself is inserted after the closing head tag
    2) For subsequent inserts:
    If the first insert completed as expected: If the cursor is indented from farthest-left,  all HTML code between opening and closing body tags disappears, and a frame tag with a source attribute pointing to the file itself, no matter what file is selected in the file browser dialog, appears after the closing head tag. If the cursor is not indented, *most* subsequent attempts will reproduce the issue
    If the first insert produced the issue: all subsequent inserts will reproduce the issue, and the frame source will be the file itself

  • Remove an html attribute in a html document

    Hi...
    Can someone give me a piece of code describing how I can remove a html attribute for the text under the current caret position or selection?
    If I have a <font class="..."> tag, I want to delete the class attribute, but maybe still want to have the font tag because it can contain some other attributes, face, size etc.
    I can get the current attribute with the AttributeSet attr = getCharacterElement().getAttributes().
    To be able to delete an attribute in the AttributeSet, I have to put it in a SimpleAttributeSet object?
    If I do that and delete the class attribute with the removeAttribute method and then put the changed AttributeSet back with setCharacterAttributes and setting the replace parameter to true, the selected text is removed...
    Any solutions?

    I don't know exact answer. It's only my suggestions!
    Foreground color in HTMLDocument differ from DefaultStyledDocument
    in the HTMLDocument color is specified with appropriate TAGs (like <FONT>).
    when you change source html text the document tree structure is changed according to html content and your settings are disappeared.
    Try to change source html text.
    Could you tell me what do you want to achieve?
    may be i can suggest a solution...
    i tryed to create an example... but it's unstable.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    import java.util.*;
    class Test extends JFrame {
    JEditorPane edit;
    public Test(){
    super("Test");
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    getContentPane().setLayout(new BorderLayout());
    edit = new JEditorPane();
    edit.setEditorKit(new HTMLEditorKit());
    //edit.setDocument(new MyHTMLDocument());
    edit.setEditable(true);
    edit.setText("<HTML><FONT CLASS='c1' COLOR=RED><B>red text</B></FONT></HTML>");
    JScrollPane scroll=new JScrollPane(edit);
    getContentPane().add(scroll,BorderLayout.CENTER);
    JTree tree=new JTree((TreeNode)edit.getDocument().getDefaultRootElement());
    getContentPane().add(tree,BorderLayout.WEST);
    JButton btn=new JButton("test");
    ActionListener lst=new ActionListener() {
    public void actionPerformed(ActionEvent e){
    HTMLDocument html_doc=(HTMLDocument)edit.getDocument();
    Element el=html_doc.getCharacterElement(1);
    MutableAttributeSet newAttr=new SimpleAttributeSet();
    StyleConstants.setForeground(newAttr,Color.blue);
    html_doc.setCharacterAttributes(1,3,newAttr,false);
    try {
    html_doc.insertString(0,"",null); //this call do nothing but notifies that document is changed
    catch (Exception ex) {
    ex.printStackTrace();
    Element font=el.getParentElement();
    MutableAttributeSet attr=(MutableAttributeSet)el.getAttributes();
    btn.addActionListener(lst);
    getContentPane().add(btn,BorderLayout.SOUTH);
    setSize(300,300);
    setVisible(true);
    public static void main(String a[]) {
    new Test();
    and don't worry about dukes:-))
    i just want to help you.
    best regards
    Stas

  • Creating a new HTML document - removing "todos"

    When creating a new HTML document in a KM repository (i.e. Folder > New > HTML File...), I get a form where I name my HTML document and enter the content etc. I can also choose, from a dropdown box, the document type between a Normal document or a "todos". My questions are the following:
    1) What is "todos" in this case? (I don't think it means "To Do's".)
    2) As a portal admin, how can I remove "todos" from the dropdown box or disable the dropdown box completely.
    Thank you

    Hi Mick,
    sorry, quite late, but better than never
    > how can I remove "todos" from the dropdown box or
    > disable the dropdown box completely.
    System Administration - System Configuration - KM - Configuration - CM - Global Services - Resource Types - Delete "todos".
    > What is "todos" in this case?
    > (I don't think it means "To Do's".)
    I think that in fact some SAP developer wanted to mark this place that there would be more work to be done (Resource Types to be defined or so).
    Hope it helps
    Detlev

  • Can the cell lines be removed from a table inserted in a Pages document?

    Can the cell lines be removed from a table inserted in a Pages document?

    Inspector > Table > Table > Cell Borders
    The buttons immediately below "Cell Borders" allow you to choose left, right, inside, outside etc.
    Choose None from the border style Pop-up.
    Download the Number'09UserGuide from the Help menu in Pages. Search for borders.
    Regards,
    Ian.

  • When I open a HTML document in Safari all the images change to a ?  How do i stop this and get the images back?

    When I open a HTML document in Safari rather then getting an image, I get a ? in a box.  Why is this and how can I change it to get the images back?

    monkeyde,
    You are getting entagled in the two confusing meanings of the term pixels, namely as a unit identical to points and equalling 1/72 inch, and the basic component of raster images (and effects).
    You can read on in this very recent thread:
    Is there a way to get Illustrator to know how many pixels are in an inch?

  • How to insert Transition object into html document

    Hello Friends,
    I am trying to insert Transition object ( downloaded from
    Extension) into HTML document.
    I tried Insert -> HTML -> Head Tags -> Transitions,
    but after doing all this I am not able to insert
    this extension in my document.
    As I am beginner to Dreamweaver, Can anyone pls. help me out?
    I am using Dreamweaver 8.
    Do I need to select <img> tag before inserting
    Transition Object?
    Pls. pls. help me out.....
    Waiting for reply.
    Thanks in advance for your help.

    When I used to do tabs I would set up a page that was as wide as the tab sheet including the tab, then add text frames in each tab position.

  • How to remove the maek up of a html document

    I have a HTML document. I want to remove all the mark up tags from the document and get all the content as a simple text.
    Please tell me how to do it.

    String.replaceAll with a cleverly created regex. Shouldn't be too difficult to remove everything that's a tag. In fact, I saw it done with a rather short regex the other day in another thread.

  • How can I embed a HTML document onto my webpage?

    What I am trying to do: I am trying to make an image that has links to urls from different parts of the image.
    What I have done so far: I have built a photoshop image to embed on my webpage, following the instructions offered by many online forums, but cannot actually embed it as it isn't a url.
    Firstly, I sliced up an image, adding url's and alt tage etc to each slice. Then I did:
    File > Save for web > (Prest: JPEG High) > Save > (entered my file name) Format: HTML and Iamges > Save
    When I locate my file where I saved it, it has been saved as a Chrome HTML Document, but I can't then embed this on my website, using the 'embed code' tool I normally use. I presume this is because it doesn't begin with http:// ?
    Here is the HTML document I have made: file:///C:/Users/Daniel/Desktop/UK%20map%20interactive/Afternoon/UK-map-locations.html
    (If you can see this) This is the image I want and the links are working too but it's getting this onto an existing webpage.
    Other pages I have seen have talked about iamge maps, but I take it using the slice tool is better for what I am trying to acheive?
    Any suggestions/help would be greatly appreciated.

    One: Users can't see links on your local desktop. You would have to upload the files somewhere. Two: Images generally don't contain links. URLs are meta information build around the image in HTML. Three: Because of the previous point, whether you use sliced images or an image map doesn't matter, if you have no way of inserting the information into the native HTML structure of the web pages. If at all, you would open the HTML file in a suitable editor like Dreamweaver (or even a basic text editor) and copy&paste it into the web page sourcve code, but you'd still have to upload the image(s). The rest we can't know. You have not provided any link to the web site or told us which hosting provider you use. From your description it sounds like one of those "free" providers that restrict user's options to customize to the bare minimum and the rest is based on templates and plastered with advertising. In any case, the solution is not in Photoshop and you would have to read up on web design basics, HTML, CSS and al lthat on a more general level or review your hosting provider's guides on how to set all this up.
    Mylenium

  • Insert an image from a Database

    Hi - I am trying to insert an image from a database into a webpage.  Basically when clients register on the site they upload their logo which i want to come up when they look at their account details and when they post a job.  When I test the file upload the file name is in an "image" field in my database and the image is in the website files on the server but I am having problems trying to get the logo to shop up on the webpage.  I have one table called Recruiters where all the client's contact details (and logo upload goes) and a table called jobs where all the job details go when they post a job (this does not hold the logo upload). 
    At the moment i am trying to insert the image into the Recruiter account Details page where all the clients contact details are and all this information comes from the Recruiter table (including the image) but the image does not appear.  the query in my recordset is:-
    SELECT *
    FROM recruiters
    WHERE RecruiterID = colname
    (colname = $_GET['RecruiterID'])
    <?php require_once('../Connections/laura.php'); ?>
    <?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
      $logoutGoTo = "../index.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "Recruiter";
    $MM_donotCheckaccess = "false";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && false) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "../Unavailablepage.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $colname_rsAccountDetails = "-1";
    if (isset($_GET['RecruiterID'])) {
      $colname_rsAccountDetails = $_GET['RecruiterID'];
    mysql_select_db($database_laura, $laura);
    $query_rsAccountDetails = sprintf("SELECT * FROM recruiters WHERE RecruiterID = %s", GetSQLValueString($colname_rsAccountDetails, "int"));
    $rsAccountDetails = mysql_query($query_rsAccountDetails, $laura) or die(mysql_error());
    $row_rsAccountDetails = mysql_fetch_assoc($rsAccountDetails);
    $totalRows_rsAccountDetails = mysql_num_rows($rsAccountDetails);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Nursery and Childcare Jobs in the UK</title>
    <link href="../CSS/Global.css" rel="stylesheet" type="text/css" />
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <!-- google adwords -->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-6435415-4']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><!-- end .header --><a href="../index.php"><img src="../Images/Logo.png" width="900" height="200" alt="Logo" /></a></div>
       <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="../index.php">Home</a>      </li>
          <li><a href="#" class="MenuBarItemSubmenu">Recruiters</a>
            <ul>
              <li><a href="recruiterbenefits.php">Benefits</a></li>
              <li><a href="recruiterfees.php">Fees</a></li>
              <li><a href="recreg.php">Register</a></li>
              <li><a href="reclogin.php">Login </a></li>
            </ul>
          </li>
          <li><a class="MenuBarItemSubmenu" href="#">Jobseekers</a>
            <ul>
              <li><a href="../Jobseekerarea/jobseekerbenefits.php">Benefits</a>          </li>
              <li><a href="../Jobseekerarea/jobseekerreg1.php">Register</a></li>
              <li><a href="../Jobseekerarea/jslogin.php">Login</a></li>
            </ul>
          </li>
          <li><a href="../contactus.php">Contact Us</a></li>
      </ul>
      <div class="sidebar1">
        <p> </p>
        <div class="recruitsidebar">
          <ul id="MenuBar2" class="MenuBarVertical">
            <li><a href="postajob.php">Post a Job</a></li>
            <li><a href="recruiterjobs1.php">My Jobs</a></li>
            <li><a href="recAccdetails.php?RecruiterID=<?php echo $row_rsAccountDetails['RecruiterID']; ?>">My Details</a></li>
            <li><a href="Saferrecruitment.php">Safer Recruitment</a></li>
            <li><a href="Interview1.php" class="MenuBarItemSubmenu">Interviewing Staff</a>
              <ul>
                <li><a href="recInterviewquestions.php">Nursery Staff Interview Questions</a></li>
              </ul>
            </li>
            <li><a href="Nurseryjobsdescriptions.php">Nursery Job Descriptions</a></li>
            <li><a href="recruiterarea.php">Recruiter Home</a></li>
    <li><a href="<?php echo $logoutAction ?>">Log Out</a></li>
          </ul>
          <p> </p>
        </div>
    </div>
      <div class="content">
        <h1>Account Details</h1>
        <p>Below are the details you have provided us with about your nursery/setting.</p>
        <p> </p>
        <form id="accountdetailsform" name="accountdetailsform" method="post" action="recUpdate.php?RecruiterID=<?php echo $row_rsAccountDetails['RecruiterID']; ?>">
          <table width="580" border="0" cellpadding="3" cellspacing="3" id="accountdetails">
            <tr>
              <td width="212" scope="col">Nursery/Setting Name</td>
              <td width="347" scope="col"><?php echo $row_rsAccountDetails['client']; ?></td>
            </tr>
            <tr>
              <td>Contact Name</td>
              <td><?php echo $row_rsAccountDetails['contactname']; ?></td>
            </tr>
            <tr>
              <td>Setting Type</td>
              <td><?php echo $row_rsAccountDetails['settingtype']; ?></td>
            </tr>
            <tr>
              <td>Nursery/Setting</td>
              <td><?php echo $row_rsAccountDetails['Setting']; ?></td>
            </tr>
            <tr>
              <td>Building Name/Number</td>
              <td><?php echo $row_rsAccountDetails['buildingnumber']; ?></td>
            </tr>
            <tr>
              <td>Street Name</td>
              <td><?php echo $row_rsAccountDetails['streetname']; ?></td>
            </tr>
            <tr>
              <td>Address</td>
              <td><?php echo $row_rsAccountDetails['address3']; ?></td>
            </tr>
            <tr>
              <td>Town/City</td>
              <td><?php echo $row_rsAccountDetails['town']; ?></td>
            </tr>
            <tr>
              <td>Post Code</td>
              <td><?php echo $row_rsAccountDetails['postcode']; ?></td>
            </tr>
            <tr>
              <td>Region</td>
              <td><?php echo $row_rsAccountDetails['region']; ?></td>
            </tr>
            <tr>
              <td>Telephone</td>
              <td><?php echo $row_rsAccountDetails['telephone']; ?></td>
            </tr>
            <tr>
              <td>Email</td>
              <td><?php echo $row_rsAccountDetails['email']; ?></td>
            </tr>
            <tr>
              <td>Website</td>
              <td><?php echo $row_rsAccountDetails['WebAddress']; ?></td>
            </tr>
            <tr>
              <td>Password</td>
              <td> </td>
            </tr>
            <tr>
              <td>Logo</td>
              <td><img src="<?php echo $row_rsAccountDetails['Image']; ?>" alt="Logo" /></td>
            </tr>
            <tr>
              <td>Date Registered</td>
              <td><?php echo $row_rsAccountDetails['dateregistered']; ?></td>
            </tr>
          </table>
          <p>
            <input name="hiddenField" type="hidden" id="hiddenField" value="<?php echo $row_rsAccountDetails['RecruiterID']; ?>" />
          </p>
          <p>
            <input type="submit" name="Update" id="Update" value="Update Details" />
          </p>
          <p> </p>
        </form>
        <p> </p>
        <table width="600" border="0" cellpadding="3" cellspacing="3" class="postform">
          <tr>      </tr>
          <tr>      </tr>
          <tr>      </tr>
        </table>
        <p> </p>
    <p> </p>
    </div>
      <div class="sidebar2">
        <h4> </h4>
        <!-- end .sidebar2 --></div>
      <div class="footer">
        <p><a href="../index.php">Home</a> | <a href="../contactus.php">Contact us</a> | <a href="../PrivacyPolicy.php">Privacy</a> | <a href="../termsandconditions.php">Terms of Business</a></p>
        <p>&copy; theNurseryJobSite.com 2011</p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsAccountDetails);
    ?>

    Hi
    You were right – I had to insert full path and it has worked so thanks.
    Would you be able to help me out with inserting the logo into a job post page and  the recordset I will need to insert the logo?
    Basically I want to add the logo that is uploaded when a client registers on the site onto a job info page.  To access the the details about a job, jobseekers just click on the job that interests them which takes them to the job details page which pulls all the information from the "Job" table in the database.  However, the logo is stored in the "image" field in the "Recruiter" table in the database.   I have tried setting up a recordset as:-
    SELECT Image
    FROM recruiters
    WHERE RecruiterID = colname
    (colname = $_GET['RecruiterID'])
    <?php require_once('../Connections/laura.php'); ?>
    <?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
      $logoutGoTo = "../index.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "Recruiter";
    $MM_donotCheckaccess = "false";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && false) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "../Unavailablepage.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $colname_rsDetails = "-1";
    if (isset($_GET['JobID'])) {
      $colname_rsDetails = $_GET['JobID'];
    mysql_select_db($database_laura, $laura);
    $query_rsDetails = sprintf("SELECT * FROM jobs WHERE JobID = %s", GetSQLValueString($colname_rsDetails, "text"));
    $rsDetails = mysql_query($query_rsDetails, $laura) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = "-1";
    if (isset($_GET['JobID'])) {
      $totalRows_rsDetails = $_GET['JobID'];
    mysql_select_db($database_laura, $laura);
    $query_rsDetails = sprintf("SELECT recruiters.Image, jobs.JobID, jobs.RecruiterID, jobs.jobtitle, jobs.`Position`, jobs.Nursery, jobs.branchlocation, jobs.ContactName, jobs.JobDescription, jobs.Location, jobs.town, jobs.employmenttype, jobs.Hours, jobs.qualifications, jobs.Salary, jobs.ContactNo, jobs.Email, jobs.dateposted  FROM jobs, recruiters WHERE JobID = %s", GetSQLValueString($colname_rsDetails, "int"));
    $rsDetails = mysql_query($query_rsDetails, $laura) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = "-1";
    if (isset($_GET['JobID'])) {
      $totalRows_rsDetails = $_GET['JobID'];
    mysql_select_db($database_laura, $laura);
    $query_rsDetails = sprintf("SELECT recruiters.Image, jobs.JobID, jobs.RecruiterID, jobs.jobtitle, jobs.`Position`, jobs.Nursery, jobs.branchlocation, jobs.ContactName, jobs.JobDescription, jobs.Location, jobs.town, jobs.employmenttype, jobs.Hours, jobs.qualifications, jobs.Salary, jobs.ContactNo, jobs.Email, jobs.dateposted FROM jobs, recruiters WHERE JobID = %s", GetSQLValueString($colname_rsDetails, "int"));
    $rsDetails = mysql_query($query_rsDetails, $laura) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = "-1";
    if (isset($_GET['JobID'])) {
      $totalRows_rsDetails = $_GET['JobID'];
    mysql_select_db($database_laura, $laura);
    $query_rsDetails = sprintf("SELECT recruiters.Image, jobs.JobID, jobs.RecruiterID, jobs.jobtitle, jobs.`Position`, jobs.Nursery, jobs.branchlocation, jobs.ContactName, jobs.JobDescription, jobs.Location, jobs.town, jobs.employmenttype, jobs.Hours, jobs.qualifications, jobs.Salary, jobs.ContactNo, jobs.Email, jobs.dateposted FROM jobs, recruiters WHERE JobID = %s", GetSQLValueString($totalRows_rsDetails, "int"));
    $rsDetails = mysql_query($query_rsDetails, $laura) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = mysql_num_rows($rsDetails);
    $colname_rsRecruiterID2 = "-1";
    if (isset($_GET['RecruiterID'])) {
      $colname_rsRecruiterID2 = $_GET['RecruiterID'];
    mysql_select_db($database_laura, $laura);
    $query_rsRecruiterID2 = sprintf("SELECT RecruiterID FROM recruiters WHERE RecruiterID = %s", GetSQLValueString($colname_rsRecruiterID2, "int"));
    $rsRecruiterID2 = mysql_query($query_rsRecruiterID2, $laura) or die(mysql_error());
    $row_rsRecruiterID2 = mysql_fetch_assoc($rsRecruiterID2);
    $totalRows_rsRecruiterID2 = mysql_num_rows($rsRecruiterID2);
    $colname_rsRecruiterID = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_rsRecruiterID = $_SESSION['MM_Username'];
    mysql_select_db($database_laura, $laura);
    $query_rsRecruiterID = sprintf("SELECT RecruiterID FROM recruiters WHERE email = %s", GetSQLValueString($colname_rsRecruiterID, "text"));
    $rsRecruiterID = mysql_query($query_rsRecruiterID, $laura) or die(mysql_error());
    $row_rsRecruiterID = mysql_fetch_assoc($rsRecruiterID);
    $totalRows_rsRecruiterID = mysql_num_rows($rsRecruiterID);
    $colname_Recordset1 = "-1";
    if (isset($_GET['RecruiterID'])) {
      $colname_Recordset1 = $_GET['RecruiterID'];
    mysql_select_db($database_laura, $laura);
    $query_Recordset1 = sprintf("SELECT Image FROM recruiters WHERE RecruiterID = %s", GetSQLValueString($colname_Recordset1, "int"));
    $Recordset1 = mysql_query($query_Recordset1, $laura) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    $query_rsJobs = "SELECT * FROM jobs";
    $rsJobs = mysql_query($query_rsJobs, $laura) or die(mysql_error());
    $row_rsJobs = mysql_fetch_assoc($rsJobs);
    $totalRows_rsJobs = mysql_num_rows($rsJobs);
    $colname_rsJobs = "-1";
    if (isset($_GET['Position'])) {
      $colname_rsJobs = $_GET['Position'];
    $varLocation_rsJobs = "-1";
    if (isset($_GET['Location'])) {
      $varLocation_rsJobs = $_GET['Location'];
    mysql_select_db($database_laura, $laura);
    $query_rsJobs = sprintf("SELECT `Position`, Nursery, Location, Salary, Email, ContactNo, JobDescription, JobID FROM jobs WHERE `Position` = %s AND jobs.Location = %s", GetSQLValueString($colname_rsJobs, "text"),GetSQLValueString($varLocation_rsJobs, "text"));
    $rsJobs = mysql_query($query_rsJobs, $laura) or die(mysql_error());
    $row_rsJobs = mysql_fetch_assoc($rsJobs);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Nursery and Childcare Jobs in the UK</title>
    <link href="../CSS/Global.css" rel="stylesheet" type="text/css" />
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <!-- google adwards -->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-6435415-4']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><!-- end .header --><a href="../index.php"><img src="../Images/Logo.png" width="900" height="200" alt="the Nursery Job Site" /></a></div>
      <div class="navbar">  <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="thenurseryjobsite.php">About the Nursery Job Site</a>      </li>
          <li><a href="#" class="MenuBarItemSubmenu">Recruiters</a>
            <ul>
              <li><a href="Recruiterarea/recruiterbenefits.php">Benefits</a></li>
              <li><a href="Recruiterarea/recruiterfees.php">Fees</a></li>
              <li><a href="Recruiterarea/reclogin.php">Login</a></li>
              <li><a href="Recruiterarea/recreg.php">Register</a></li>
            </ul>
          </li>
          <li><a class="MenuBarItemSubmenu" href="#">Jobseekers</a>
            <ul>
              <li><a href="Jobseekerarea/jobseekerbenefits.php">Benefits</a>          </li>
              <li><a href="Jobseekerarea/jslogin.php">Login</a></li>
              <li><a href="Jobseekerarea/jobseekerreg1.php">Register</a></li>
            </ul>
          </li>
          <li><a href="contactus.php">Contact Us</a></li>
        </ul> </div> <!--end navbar div -->
      <div class="sidebar1">
        <p> </p>
        <div class="recruitsidebar">
          <ul id="MenuBar2" class="MenuBarVertical">
            <li><a href="postajob.php">Post a Job</a></li>
            <li><a href="recAccdetails.php?RecruiterID=<?php echo $row_rsRecruiterID['RecruiterID']; ?>">My Details </a></li>
            <li><a href="recruiterjobs1.php">My Jobs</a></li>
            <li><a href="Saferrecruitment.php">Safer Recruitment</a></li>
            <li><a href="Interview1.php" class="MenuBarItemSubmenu">Interviewing Staff</a>
              <ul>
                <li><a href="recInterviewquestions.php">Nursery Staff Interview Questions</a></li>
              </ul>
            </li>
            <li><a href="Nurseryjobsdescriptions.php">Nursery Job Descriptions</a></li>
            <li><a href="recruiterarea.php">Recruiter Home</a></li>
    <li><a href="<?php echo $logoutAction ?>">Log Out</a></li>
          </ul>
          <p> </p>
        </div>
    </div>
      <div class="content">
        <h1> </h1>
    <div class="detailheading" id="detailheading">
          <h1> </h1>
          <table width="564" border="0" align="center" cellpadding="3" cellspacing="3" id="headingtable">
            <tr>
              <td width="89" height="44" align="center" class="headertext"><h1>Nursery:</h1></td>
              <td width="283" class="headertext"><?php echo $row_rsDetails['Nursery']; ?></td>
              <td width="162" rowspan="2"><img src="<?php echo $row_Recordset1['Image']; ?>" alt="" name="nurserylogo" align="right" id="nurserylogo" /></td>
            </tr>
            <tr align="left" class="headertext">
              <td width="89" height="44" align="center"><h1 class="headertext">Job Title:</h1></td>
              <td align="left"><?php echo $row_rsDetails['jobtitle']; ?></td>
            </tr>
          </table>
          <p> </p>
        </div>
        <table width="568" border="0" align="center" cellpadding="3" cellspacing="3" class="detail" id="detailtable">
          <tr>
            <td width="162" scope="col">Job Title</td>
            <td width="381" scope="col"><?php echo $row_rsDetails['jobtitle']; ?></td>
          </tr>
          <tr>
            <td>Nursery</td>
            <td><?php echo $row_rsDetails['Nursery']; ?></td>
          </tr>
          <tr>
            <td>Branch Name/Location</td>
            <td><?php echo $row_rsDetails['branchlocation']; ?></td>
          </tr>
          <tr>
            <td>Location</td>
            <td><?php echo $row_rsDetails['Location']; ?>,<?php echo $row_rsDetails['town']; ?></td>
          </tr>
          <tr>
            <td valign="top">Job Description</td>
            <td><p> </p>
              <p><?php echo $row_rsDetails['JobDescription']; ?></p>
            <p> </p></td>
          </tr>
          <tr>
            <td>Qualifications Required</td>
            <td><?php echo $row_rsDetails['qualifications']; ?></td>
          </tr>
          <tr>
            <td>Employment Type</td>
            <td><?php echo $row_rsDetails['employmenttype']; ?></td>
          </tr>
          <tr>
            <td>Hours</td>
            <td><?php echo $row_rsDetails['Hours']; ?></td>
          </tr>
          <tr>
            <td>Salary</td>
            <td>£<?php echo $row_rsDetails['Salary']; ?></td>
          </tr>
          <tr>
            <td>Contact Number</td>
            <td><?php echo $row_rsDetails['ContactNo']; ?></td>
          </tr>
          <tr>
            <td>Email</td>
            <td><?php echo $row_rsDetails['Email']; ?></td>
          </tr>
          <tr>
            <td>Date Posted</td>
            <td><?php echo $row_rsDetails['dateposted']; ?></td>
          </tr>
          <tr>
            <td>Job ID</td>
            <td><?php echo $row_rsDetails['JobID']; ?></td>
          </tr>
        </table>
        <p><br />
        </p>
        <form id="recruiterjobsform" name="recruiterjobsform" method="post" action="recruiterjobs1.php">
          <input name="RecruiterIDjobs" type="hidden" id="RecruiterIDjobs" value="<?php echo $row_rsDetails['RecruiterID']; ?>" />
          <input type="submit" name="button" id="button" value="return to my jobs" />
        </form>
        <p> </p>
    <script type="text/javascript">
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
        </script><script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    <p> </p>
    </div>
      <div class="sidebar2">
        <h4> </h4>
        <!-- end .sidebar2 --></div>
      <div class="footer">
        <p><a href="../index.php">Home</a> | <a href="../contactus.php">Contact us</a> | <a href="../PrivacyPolicy.php">Privacy</a> | <a href="../termsandconditions.php">Terms of Business</a></p>
        <p>&copy; theNurseryJobSite.com 2011</p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsDetails);
    mysql_free_result($rsRecruiterID2);
    mysql_free_result($rsRecruiterID);
    mysql_free_result($Recordset1);
    ?>

  • Opening html document.

    Hi all,
    I am trying to use java code to open a html document called "about.htm". At the moment I have the following code:
    public AboutDialog(Frame parent)throws IOException
         Runtime rt = Runtime.getRuntime();
         Process p = rt.exec("C:\\Program Files\\Internet Explorer\\IEXPLORE.exe  D:\\Work\\about.htm");
         }Although this code works the problem is if I transfer it to another PC which does not use Internet Explorer I want it to open using whatever the default program is (ie.Firefox).
    In other words I want to remove the line C:\\Program Files\\Internet Explorer\\IEXPLORE.exeAny help would be appreciated.

    FebTen wrote:
    Change the statement like this. It works
    Runtime rt = Runtime.getRuntime();
    Process p = rt.exec("cmd.exe /C start C:\\Progra~1\\DinPro\\about.html");No, absolutely not the right way to do it. That is unreliable as it assumes the short name of "Program Files" is always "Progra~1", which is not necessarily true. If there happened to be a couple of folders named, for example, "Program Files" and "Programmers R Us", both of those would have short names like "Progra~1" and "Progra~2" (or somesuch), and you can't be certain which one will map to "Program Files".
    The true solution is to do as DrClap said.
    Process p = rt.exec("cmd.exe /C start \"C:\\Program Files\\DinPro\\about.htm\"");Alternatively (and a better way) you can use the various flavors of Runtime.exec, passing it an array of strings, and it will insert the correct quotation marks around the ones containing embedded spaces. Something like:
    String[] args = { "cmd.exe", "/C", "start", "C:\\Program Files\\..." };
    Process p = rt.exec(args);Check the API documentation.

Maybe you are looking for

  • Where can I get the HPLCSWY0 standard report?

    Hi guys, I am unable to find the standard report called 'HPLCSWY0'. It is used for extended wage type selection.I think its country specific to Poland. Is there a way to get this report and the report category from somewhere on the net? Edited by: so

  • Bex Analyzer displays # in the Blank Fields

    Hi Experts, When I execute the Bex Analyzer. The display gets the # in the blank field. Can anyone tell me how do I

  • Only Kerberos Auth. for mac users

    Good Morning, First my setup: Windows Server 2003 - DNS - KER-SERVER - AD Mac OSX Server - OD (Triangle) -Services Like iCAL, Mail Ok now my Problem... I am not able to use my normal AD users without having a Kerb ticket... I choose in every service

  • Please Help Upgrade Path

    Hello, We are currently on Crystal Enterprise 10 and I need to decide what version I need to upgrade too. Please help - Do I want Enterprise XI 3.1 or Crystal 2008? Thanks Norm

  • Two adf requests in one http request

    Hi! When I have change in my portal oracle.adf.view.rich.pprNavigation.OPTIONS from onWithForcePPR to off, I have two adf requests: in Method call before view, it's one request and in regions in view it's another request, and all my request beans is