Linking to a file in same directory?

I am working with someone else to design a site, he is coding some pages and including a form. I want to link to this form on a page and I was told that it will be in the same directory as the rest of the site. I was told to use the following path:
/teachers_staff/staffquestions
How do I add this path to a link?
Thanks.

Hi Stan,
in addition to osgood_'s hint, I would like to show you the steps in (Germam) DW:
I named this page "form.html" and put it in a directory called "/teachers_staff/staffquestions". As osgood_ said, I did "Highlight the text on your page that you want to be the link" here "form.html" and used (Grmna DW) insert a Hyperlink, like this:
Here I got DW's offer (among others in this directory) to pick "form.html":
After that the link is active. In your source code you will find this:
<p><a href="form.html">form.html </a></p>
Hans-G.

Similar Messages

  • Copying files from same directory as *.java files and moving to WEB-INF/classes/ package name

    In our current application we have the following source directory structure:
              src -
              - com
              - edeploy
              - subdirs ... (many directories here)
              - jsp
              -subdirs ... (many directories here)
              In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              files). I would like to modify my build.cmd script to copy the *.gxq files
              into the same directory as the class files.
              Here's my script so far:
              @REM Create list of files to compile
              DIR /S /B /A:-D src\com\*.java >class.list
              @REM Create list of query files
              DIR /S /B /A:-D src\com\*.gxq >query.list
              @REM Compile
              javac -d stage\WEB-INF\classes @class.list
              @REM Copy query files into class directory
              .......... code needed here ......
              Can anyone help me with this?
              Thanks,
              Matt
              

    You may want to check out:
              http://jakarta.apache.org/ant/index.html
              Gary
              "Matt Raible" <[email protected]> wrote in message
              news:[email protected]..
              > In our current application we have the following source directory
              structure:
              >
              > src -
              > - com
              > - edeploy
              > - subdirs ... (many directories here)
              > - jsp
              > -subdirs ... (many directories here)
              >
              >
              > In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              > files). I would like to modify my build.cmd script to copy the *.gxq
              files
              > into the same directory as the class files.
              >
              > Here's my script so far:
              >
              > @REM Create list of files to compile
              > DIR /S /B /A:-D src\com\*.java >class.list
              >
              > @REM Create list of query files
              > DIR /S /B /A:-D src\com\*.gxq >query.list
              >
              > @REM Compile
              > javac -d stage\WEB-INF\classes @class.list
              >
              > @REM Copy query files into class directory
              > .......... code needed here ......
              >
              > Can anyone help me with this?
              >
              > Thanks,
              >
              > Matt
              >
              >
              

  • Generate file in same directory as current running process

    Hi all:
    I basically have a batch file in a particular directory that runs a Java program. Within the program, I am doing this:
    //generate contact server file
    String contactServer = "Testing...";
    BufferedWriter bw = new BufferedWriter(new FileWriter("contactServer.txt"));
    bw.write(contactServer, 0, contactServer.length());
    bw.close();Now, what I would expect is that it would be generated in the same directory as the process that is running. However, when I do a search, it ends up in C:\Documents and Settings\Leonard\My Recent Documents.
    How can I specify to generate it in the same directory as the current running process?

    Now, what I would expect is that it would begenerated in the same directory as the process that is
    running. However, when I do a search, it ends up inC:\Documents and Settings\Leonard\My Recent
    Documents.let say your batch file is in
    C:\Documents and Settings\Leonard\
    and you run from
    C:\Documents and Settings\Leonard\
    and your application is in
    C:\Documents and Settings\Leonard\My Recent Documents.
    so..when you run the bat file, is output file created
    in
    C:\Documents and Settings\Leonard\
    or
    C:\Documents and Settings\Leonard\My Recent Documents.
    it should be created in C:\Documents and
    Settings\Leonard\
    unless you create a shortcut to the batch file (which
    is located in "C:\Documents and Settings\Leonard\My
    Recent Documents." and move the shortcaut batch file
    to "C:\Documents and Settings\Leonard\"...than the
    output file will be created in C:\Documents and
    Settings\Leonard\My Recent Documents.
    make sure the batch file is not a shortcut to the
    original batch file. the file will be created
    wherever the batch (original) file is reside in"
    Jesus man, thank you so much. Just like you suggested, when I actually used the batch file itself instead of the shortcut, everything worked out fine.
    So, any suggestions on how to get it to generate in the same directory as the target of the shortcut, not the shortcut itself?

  • Button Pointing to audio file in same directory

    I'm fairly new to Flash, but have gotten the hang of it for
    the most part.
    I'm trying to create audio buttons that will play vocabulary
    words when clicked on for a language learning website. I can create
    buttons that play audio when clicked, but as of now the only way I
    know how to do it is to add the audio directly to the swf file. The
    problem is this takes up about 24kb of space, and there will be
    about 20 copies of the button per page, each for a different
    vocabulary word.
    I was thinking it would be nice if I could use the exact same
    swf file to save on loading time, but have it point towards
    different audio files. Basically, I figure if the audio is built
    into the swf file, when the page loads it will take a long time,
    because it will load all of the audio along with the files. if it
    points separately, it will only load the audio when the button is
    clicked.
    Is it possible to do this? I've heard that you can use the
    object tag to point towards separate audio files, but am not too
    sure on how to pull that off. I'm just looking for a way to use the
    button I've created and keep speeds reasonable when loading the
    webpage. Loading 30 audio files at the beginning can slow it down,
    especially if they only plan on playing a couple of them. Each mp3
    is only a few kb larger than a swf file with the audio already in
    it, so the compression of mp3 in a swf (at least from what I know)
    didn't do too much for my case.
    I figure I can put all the audio files in a folder along with
    the swf file.

    Superman859 wrote:
    > I'm fairly new to Flash, but have gotten the hang of it
    for the most part.
    >
    > I'm trying to create audio buttons that will play
    vocabulary words when
    > clicked on for a language learning website. I can create
    buttons that play
    > audio when clicked, but as of now the only way I know
    how to do it is to add
    > the audio directly to the swf file. The problem is this
    takes up about 24kb of
    > space, and there will be about 20 copies of the button
    per page, each for a
    > different vocabulary word.
    http://www.kennybellew.com/tutorial/
    Very detail tutorials on Sound in flash, from basic stop/play
    to complex,
    dynamic players with all kind of bells and whistles
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Open a file in same directory as app

    I am trying to open a separate app that is in the same folder as the form app i'm using. Is there a way to do it so i can move the folder with the files in it from computer to computer and still have it work. I'm trying to open it with a jbutton
    Thanks
    Edited by: aschreiner22 on Apr 21, 2008 3:33 PM

    aschreiner22 wrote:
    either another app, Look up the Process and Runtime class of the Java api. Usually if you want to execute another application like an .exe you would do this:
    Process p = Runtime.getRuntime().exec("anotherApp.exe");
    or a class embedded in an html.A class embedded in an html file? usually an Applet class. You can open the applet class like how you open other Java classes.
    SampleAppletClass sample = SampleAppletClass();A word of advice, try Google and search your questions in this forum before asking. Chances are that other people have already ask them. Lot of users of this forum do not like to answer questions that have been asked before. You may receive unpleasant replies if you're not careful.
    have a nice day!

  • Jar file is not working after deleting all packages from the same directory

    hello
    i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
    Please tell me what may be the reason???
    thanks in advanced

    hello
    i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
    Please tell me what may be the reason???
    thanks in advanced

  • How to create links to different files on the same page?

    Good day to all again,
    can someone please guide me through creating several links to different files on the same page. In other words, I am creating a photo page where my links are called Gallery 1, Gallery 2, etc... I would like to create links so when the User clicks on Gallery 1, they see Gallery 1 slide show in the frame; when the user then clicks Gallery 2, then they see Gallery 2 slide show in the window.
    My slide show files are done and I am using GoLive CS2. I have no knowledge of JavaScript or ActionScript/Flash.
    Any suggestions are highly appreciated.
    Thank you
    Alek

    Hi Diana,
    I'm a professional photographer and in the process of getting
    my finished site published. I used Coffeecup Photo Gallery. You can
    create multiple albums on the same page. Do a Google search for the
    address. It's easy, inexpensive, and it works. I tried to do this
    with the Photo Gallery in DW and FireWorks--but couldn't get it
    right. CC uses Flash and Javascript.
    Good Luck

  • How to Save XML file in the same directory as the swf file automatically?

    Hi all,
    I'm really new here with flash and actionscript 3, so i might not make any sense, probably. Any input is greatly appreciated.
    So here's my problem, i'm trying to make a Top Score history for a flash game, which i load from an XML file. The problem comes to when i want to update the XML file. how do i do that automatically without prompting the user (ofcourse). I want it to be saved automatically to the same directory as the flash file.
    here's my code right now, but it prompts the user where it wants to be saved, which i don't want to happen:
    var xml:XML = <XML>
                        <topScoreList>
                        </topScoreList>
                  </XML>;
    for(var i:Number=0; i<10; i++)
         var Record:XML = <Record>
                             <score></score>
                             <playerName></playerName>
                        </Record>;
         Record.score.appendChild(topScores[i].toString()); //topScores[] -> class variable containing scores
         Record.playerName.appendChild(topNames[i].toString()); //topNames[] -> class variable containing names
         xml.topScoreList.appendChild(Record);
    var ba:ByteArray = new ByteArray();
    ba.writeUTFBytes(xml);
    var fr:FileReference = new FileReference();
    fr.save(ba, "topScoreList.xml");

    yeah that makes sense, actually - after reading a dozen more forums. It's really weird tho that flash doesn't have a Buffer writer, unlike other programming frameworks.
    But yeah, thanks. i'll start reading on flash.net.SharedObject, correct ? Thanks.
    Anyways, if anyone out there has a different input, will be greatly appreciated!!

  • Accessing a file not in the same directory

    I would like to get the first line of a txt file and perform certain analysis on it, I can do this when the file is located in the same directory but i'm experiencing problems when it comes to trying to get a file outside of my current folder .
    What do I need to do when I recieve the string from the user containing the directory and name of the file (e.g. C:\Test\file.txt).
    Any help would be appreciated

    refer following code.
    String path = "C:\\Test\\file.txt";
                   BufferedReader reader = new BufferedReader(new FileReader(new File(path)));
                   System.out.println(reader.readLine());     

  • Does a wrapper html file need to be in the same directory? Need advice

    I'm doing some RnD experiments for an upcoming project and I would like to use Edge.
    What I'm trying to do is load 2 different compsites in a wrapper.html file that is level above the compsites. For instance my setup is
    project/wrapper.html
    project/product1/product1.html
    project/product2/product2.html
    In my wrapper file I have this, but this doesn't work
    <!DOCTYPE html>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
        <title>Untitled</title>
    <!--Adobe Edge Runtime-->
        <script type="text/javascript" charset="utf-8" src="product1/product1_edgePreload.js"></script>
        <style>
            .edgeLoad-EDGE-68005601 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    </head>
    <body style="margin:0;padding:0;">
        <div id="Stage" class="EDGE-68005601">
        </div>
    </body>
    </html>
    But when I move the wrapper.html file into the same directory as product1 and modify .js path and it loads fine? So my question is how do people normally load multiple compsites that resided in a different directory? What is the best method for accomplishing this? If anyone can point me in the right direction please. Thanks in advance.

    You will need to update the new loction for even the product1_edge.js file and the product1_edgeActions.js file in the product1_edgePreload.js file.
    Open up the product1.edgePreload.js file.
    Search for 'aloader'.
    Under this there should be a ' load: "product1_edge.js" '  change it to  ' load: "product1/product1_edge.js" '
    and do the same for product1_edgeActions.js file too.
    Bascially when you update the location of the edge preload file you will have to update the location of the animate assets like the edge file,edge actions,images etc.All these file locations work relative to the html file loading them.

  • 2 BPEL Processes doing Read at same directory in File Adapter.

    Hi,
    I am using File Adapter for Read operation. Normally we would make a Logical Directory for reading files at that location. There is a design design scenario where 2 BPEL processes will need to read file from same File location.
    Incase such a design is implemented, will it work? And if yes, what will the precedence for reading file by BPEL processes. Also, will both of them read the files or one will be reading the file?
    OR
    Is there any other way that the same design can be implemeted??
    I am using Oracle SOA 10.1.3.4 and JDeveloper 10.1.3.4.
    Will really appreciate if someone can help in this regard.
    Thanks for the needful.
    Cheers,
    Varun

    Hi Varun
    As per the best practice guide :
    The file and FTP adapters support the high availability feature for the active-passive
    topology. Perform the following steps to configure the adapter for this feature:
    1. Create a shared folder on a highly available file system. This folder must have
    write permissions and must be accessible from all systems running the file and
    FTP adapters.
    2. Open the pc.properties file available in the SOA_ORACLE_
    HOME\bpel\system\service\config directory on each node.
    3. Set oracle.tip.adapter.file.controldirpath to the shared folder name.
    This is the shared folder that stores the control files for the adapter.
    4. Restart the servers.
    Note that in the case of Oracle ESB, you must rename SOA_ORACLE_
    HOME\integration\esb\config\pc.
    You can use a trigger file .tg to notify the second process that it can pick the file which the first process has written into the folder.
    Regards
    A

  • When Opening a file in TextWrangler it defaults to the same directory

    When i open a file in textwrangler and a couple of other applications it defaults to the same directory each time. Normally it will remember the last opened directory.
    This was only an issue when i upgraded to Snow Leopard from Leopard.
    Does anyone know if there is something that can be done to fix this issue.

    See this:
    [http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox]

  • Reading a file in the same directory as the JSP files

    Hi,
    Okay so I have my JSP files in the directory $Catalina/webapps/webservices, I also have a text fire in the same directory called users.txt
    All I want to do is open the users.txt from the JSP program and read from it. But JSP can't seem to find the users.txt.
    Code I have tried include,
    File users = new File("users.txt");
    File users = new File("http://localhost:8080/webservcies/users.txt"); Also File users = new File(new URI ("http://localhost:8080/webservcies/users.txt"));
    File users = new File("webservices/users.txt");
    I guess part of the problem is that I don't know what the JSP working directory is. I assumed it was $Cataline/work/standalone/localhost/webservices
    but even if I use,
    File users = new File("../../../../webapps/webservices/users.txt");
    It doesn't work. Does anyone know how I can read the file? Any help in this matter would be appreciated.

    From within a JSP you have a reference to a PageContext called pageContext. This has a method getServletContext(). From the ServletContext you can find the real path the servlet lives in. So...
    File basePath = new File(pageContext.getServletContext().getRealPath("/"));Now basePath contains your path $Catalina/webapps/webservices. Then it's just a matter of working relative to that, e.g.:
    File usersFile = new File(basePath, "users.txt");

  • Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
    Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
    http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
    It might also help if you post the exact error message, including the path to the flv file.
    '''Note:'''
    Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information.

  • Multiple HTML-files in one stack / link another HTML-file in a stack

    Hi,
    I want to integrate a webapp (html/js) into a stack of a dps-folio. All the HTML works fine ... all no problem, but at clicking the first link on the initial HTML-document the next (local) HTML-File is opened in a slider with a "ready"/"Fertig"-bar at the top. But I want, that all html files are seamlessly loaded in the same view.
    At this point i found: http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60-8ad81e812b10bfd837-80 00.html and i made the file "NativeOverlays.config" and moved it to the described location. After that, the behaviour was correct in the desktop-preview-app of the DPS, but it still fails on the iPad-Adobe-Viewer.
    How can i link between HTML-files without any interuption or sliding?
    Thank you!
    Christian

    Hi Tim,
    Thanks for replying. I have looked for "PDFBookBinder class" in xml publisher user guide for ver 5.6.2. I didn't get any reference of this text. Can you please guide me to a tutorial/link where i can get more information about this class.
    Also, i originally thought of similar to your second logic, as my design basis. Oracle process generates the xml file in output directory which i can get. What i didn't get is how do i "pick them up and merge" using publisher. Also, is there way to do this merging process using pl/sql ? Can you please give little more information on your second approach.
    My original plan of action is that i will create a report set in which i will call oracle seeded report for all 7 payrolls in a sequential manner. Then using the child requests of the report set i will get to 7 xml files generated by seeded oracle process. Then the piece i am not sure of , i will use those 7 files to generate a single xml file having payroll name as tree top for each output. Once single xml is ready, i can easily design a template and register the process to generate output as Excel.This process will not require me to actually change any data or do any calculation. It will only reformatting the feilds we see and abiity to see all 7 payroll at one time rather then entering these numbers manually into an excel to do analysis.
    Please provide your feedback, if you think above plan is not feasible or need corrections.
    Best Regards,
    Ankur

Maybe you are looking for