File Include Relative Pathing Problem
Was developing large jsp app in JRUN, recently switched to Oracle 9i.
However the includes work differently.
In 9i it seems that if a jsp page includes a jsp file, that in turn includes a jsp file... the path to the second include must be relative to the first jsp page and NOT the calling page.
This discourages code reuse!
Is it a bug or what?
null
Yes I have a jsp file and that file has a tag like
<jsp:include page="/fragments/test.html" flush="true" />
jsp application is deployed on Weblogic App server,but the test.html is in on Web Server(IIS). I know that according to the JSP specs,it looks for the test.html with respect to the application context and since test.html could not be found,throws servlet exception. But if I try to use this application with Websphere,it works because WAS will try to look for the test.html with respect to the server context.
Is there a way Weblogic could work the way as WAS?
Thanks
Similar Messages
-
Reconnect Media - Unable to Reconnect All Files in Relative Path
I have a project that I have restored from a DLT backup. The project file and the all the media are now on a SAN which I access from my G5. Since this project originated on a different editor's computer all of the clips in my project are ostensibly offline within my project. All of the media files are located in a single capture scratch folder on the SAN with the same filenames and reel numbers. As such, I figured that when I used "Reconnect Media" with "Reconnect All Files in Relative Path" checked, all of the files would automatically relink. However, everytime I attempt to do this, the only file that is reconnected is the original file which I manually selected to establish the file path to the rest of my media. If I use the "Search" functionality and instruct FCP to search the capture scratch folder one file at a time, without fail, it will automatically find the media and reconnect it. Yet, I cannot seem to batch reonnect, as it were.
My question is this: If all of the media files are located in the same capture scratch folder (i.e. same relative path), why won't FCP automatically reconnect all the files in that folder to the corresponding offline clips?
I have attempted to reconnect the media on two different machines. The same issue arose on both machines. This leads me to believe that the problem may be a result of some issue with the filesystem on the SAN. Also, I have run FCP rescue and attempted a reconnect with both a clean backup and entirely new preference files, to no avail.Hi Nat,
I don't have a direct solution, and you might you've been doing this already. Although you didn't describe this. I think that what I would try to do is:
- Copy the project (backup).
- Open the project, and when it tells you that 132 clips and 714 render-files are offline, I'd select the checkboxes in order to 'Forget' the files.
- Hit OK.
- FCP 'forgot' all the links to the original files. So you forced errors from that perspective by doing this.
- Try to reconnect again.
Just a thought...
All the best
Rienk
PS What version FCP are you running? -
Link to files via relative path?
It seems that Captivate is only capable of linking to
external files via absolute links. In other words, when I create a
click box that opens a file and select a file located on my
development machine, the project will still look for that file on
my local hard drive, even after it is posted on the Web. This is
extremely frustrating, and I have not found a workaround.
Please help me identify a way to link using a relative path.
In other words, the project will resolve it's current location and
look for content in the directory it is located in or in specified
directories under that location. That is is the only way you can
create a project that will run correctly when posted. Captivate
already does this when you create a click box that opens another
project, so there MUST be a way to do this when opening non-project
files!
Please Help!
Thanks,
Dan RobertsHi Dan,
Are you publishing the file as a standalone executable? If
so, others have experienced problems and have reported this as a
bug... a link to a recent post.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=464&threadid=1247575
I have had no problems using standard conventions for
relative links in published swfs. For instance - assume I have a
course with lessons separated in 8 different folders. I have
resources in a common folder that is in the same folder as all of
the lessons. To get one of my swfs to link to a resource in the
common folder, I would set the URL to something like
"../common/managing_workflows_job_aid.pdf" - this causes the
browser to look up one folder level, then to common, then to the
specified file.
Does that answer your question? -
Creation of file using relative path
I am working on JSP
I want to create a file object by passing a relative path as parameter to
File f = new File("<relative path>");
i encounter the following error
"it says server cannot find the file in the path specified."
I have searched the forums but not able to get any relevant expalination.
Its an urgent requirement. So please reply. Thanks in advance.I notice that servletContext.getRealPath()
returns path from root directory to the ../webapps/examples folder
am i correct or it can get real path for any file residing in any subfolder
like ../webapps/examples/a/df/a.txt ? -
Links to PDF files with relative paths from a Captivate 4 project
I'm creating a presentation in Captivate 4 (I'm making an exe file) with some links to PDF files; the links are buttons with the 'open URL or file' set. The presentation will be distributed in CDs and obviously the links will not work for they point to an absolute path in my PC. Is there another way to display external files? thanks
"file:\file folder\filename" is not a relative path. It's still an absolute path because you're specifying the path all the way from the root drive, whether you used a drive letter or not.
A relative path shows where to find the other file in relation to the file that is calling it.
Relative paths look like this:
myDoc.doc (if the file is in the same directory as the file calling it)
folderName/myDoc.doc (if the file is inside a folder in the same directory as the file calling it)
../myDoc.doc (if the file is located in the parent directory above the file that is calling it)
../../myDoc.doc (if the file is located two levels above the file that is calling it)
etc
Here's a tutorial that explains it better: http://www.communitymx.com/content/article.cfm?cid=230ad -
Simple problem, i have a file named gallery.swf in
/site/gallery/ and when i launch the file swf from that directory
the loading is going fine, im loading a xml file with this command
"xmlReadGalleries.load("photo_galleries.xml")" so the file is
loading from /site/gallery/photo_gallery.xml, no problem there.
But, when i run the master.swf from /site/ and then load the
gallery.swf into it, it would not work becuse then it tries to load
the file from /site/photo_gallery.xml and not
/site/gallery/photo_gallery.xml. So here's my question. Why don't
it load from the root directory of the gallery.swf file? And is
there anyway to fix it?
//MarioDj Mario wrote:
> Simple problem, i have a file named gallery.swf in
/site/gallery/ and when i
> launch the file swf from that directorty the loading is
going fine, im loading
> a xml file with this command
"xmlReadGalleries.load("photo_galleries.xml")" so
> the file is loading from
/site/gallery/photo_gallery.xml, no problem there.
> But, when i run the master.swf from /site/ and then load
the gallery.swf into
> it, it would not work becuse then it tries to load the
file from
> /site/photo_gallery.xml and not
/site/gallery/photo_gallery.xml. So here's my
> question. Why don't it load from the root directory of
the gallery.swf file?
> And is there anyway to fix it?
> //Mario
SWF does not know or remembers its place on server /
directory.
Once html loads it, it seek its files from perspective of
that HTML file.
So if you keep them all in one folder and place it deep into
sub/sub1/sub2
than load it from html in SUB, it will thing it is its
original position
and not sub2. Causing paths mismatch. Normally we do design
the projects
with that in mind from scratch.
In your case the path would be : gallery/photo_gallery.xml
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
Happy New Year
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Report on folders/files including the path charchter length
Hi, i am trying to find a way of exporting or creating a report that will extract the file/folder path charachter length and the trustees of all our users data.
Our Data volume which contains all our users data/files & folders have become almost unmangeable regarding too many nested folders and very long naming used for files and folders.
I am trying to find out all the files/folder - including their full path chrachter length with the owners/trustees into a report.
Once i can extract this information i can then start resolving those problematic areas - as normal basic admin tasks are proving difficult such as copy/cut and paste - i keep getting errors.
Once i can resolve/identify the areas that contain all the long chrachters and who the trustees are - i can then start to restrucutre the data into a more managmeable way.
Any assistance - greatly apprecated.
regards
DennisDchitolie,
> Hi, i am trying to find a way of exporting or creating a report that
> will extract the file/folder path charachter length and the trustees of
> all our users data.
> Our Data volume
Trustee.nlm will create a file that you can import into something for
further processing.
Anders Gustafsson (NKP)
The Aaland Islands (N60 E20)
Have an idea for a product enhancement? Please visit:
http://www.novell.com/rms -
Can't open files using relative paths
That seems straightforward but i can't figure out how I can have access to
image files stored in the same directory with the compiled classes.
Here's my what I want to do
windowsButton = new JButton("Windows", new ImageIcon("icon_cool.gif"));
but it doesn't work :(
however if i specify the absolute path to images everything works fine.
I tried also copying images into the source directory it didn't work.
I thought about a workaround like If i could get the absolute path of the
class that loads images that would be great but i have no clue how to get
that absolute path.
i code in netbeans so src and classes are separated.
Thanks in advance for your replies. If u feel like u need more details i'll
try to provide them :)In addition to jverd's answer, here is a tutorial
dealing with images and icons
"How to Use Icons":
http://java.sun.com/docs/books/tutorial/uiswing/misc/i
con.html
It gices some examples of how to use the
getResource() method to load your images.As the tutorial points out, simple path is more general than using class loader and resources for it.
If OP's problem is on the line of this simplicity, he has to learn relevant details of a particular IDE or,
if he hates the kind of learning, he'd be better off throwing away and foget it forever.
It reminds me of a long-time belief that IDE is too big an /unnecessary/ obstacle for beginners.
Does anyone know, does Eclipse have similar awkwardness for resource path issue? -
How do you convert absolute paths to external files to relative paths?
I have a TOC PDF document that contains approximately 200 links to other external PDF files. The other files are located in the same directory as the linking PDF. However, when the links were done, I accidentally created the links in a copy of the PDF on the file server, *not* the one in the same directory as the target PDFs.
So now the links in the TOC PDF all have an absolute network path embedded in the link such as "/D/projects/assets/PDF/targetFile.pdf", whereas they should only be "/targetFile.pdf". Is there a way to easily change these? I don't relish the notion of having to walk through the document and manually fixing each one.
I tried forceably editing the PDF file in a binary editor, but this caused the document structure and fonts to get out of whack -- though the links worked.
Any recommendations? I will consider a commercial product if one exists!
Thanks,
RobI think you are barking up the wrong tree...
Let's say you have a 10 second clip of PAL material:
10 seconds x 25 fps = 250 frames
If properly converted to NTSC:
10 seconds x 30 fps = 300 frames
The only difference is the number of frames, NOT THE LENGTH OF THE CLIP! It is still 10 seconds long.
10 seconds of audio x 44.1 kHz = 441 thousand samples
or
10 seconds of audio x 48 kHz = 480 thousand samples
or
10 seconds of audio at 22.05 kHz = 220.5 thousand samples
The only difference is the number of samples. NOT THE LENGTH OF THE AUDIO. It is still 10 seconds long.
If you have drift, then there is something wrong in your conversion. You can't take a 25 fps clip, tell it to play at 30 fps and expect it to be the same length. There are multi-thousand $$$ transcoders that do that job.
HTH, -
Jar file and relative path ?
Hi
1)When a jar file is run how can I access a file that is in the same directory that the jar is in ?
(I need access to another file that is not in the jar.)
2) If you read an ini file from the jar with getResource etc can you write back to that ini with new values ?
Thanks for your help.
Tim1) Use getResource to locate the jar url that contains the class. You will now have to extract the local filesystem path from the jar url.
2) No -
Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ?
Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ? Please help me as its urgent.THanks for your help in advance.
Hi Jay,
SSIS can only recognize the absolute path of a XML Configuration file, the relative path is not supported. Furthermore, if the XML Configuration file is already generated, we can use the Environment variable package configuration type instead so that
SSIS runtime automatically looks for the configuration file from the path defined in the environment variable. This is convenient when we need to deploy a package to different environment. We only need to define the environment variable for package configurations
once on each server, and then the variable can be used by all the packages on this server.
Regards,
Mike Yin
TechNet Community Support -
File path problem and getCodeBase Usage
I have a java application and read data from file.
I create file by File file=new File("F:\MyProgram\.txt');
if I want to give my file to relative path name, HOw can i give. I can move my program to jar file or exe and move to anywhere.
How can i give file to move anywhere by only give folder name and don't need to give full path name?
How can I use getCodeBase to give file path name?You need to use resources and the URL class, here's an example:URL resourceLocation = getClass().getResource("/configuration.txt");That will give the location of the configuration file regardless of how you've packaged the software. If you need to read the file from a static context use "ClassName.class" in place of "getClass()".
-
Read BMP File Requires Absolute Path
I noticed something today regarding the Graphics Formats, Read JPG File, Read PNG File and Read BMP File vi's. It seems that when reading a JPG or PNG file, a relative path is OK, but when reading a BMP file, an absolute path is required. When the path only contains the filename, it returns:
Error 1430
"Open/Create/Replace File in Read BMP File Data.vi->Read BMP File.vi->ReadImageFileTest.vi"
I tried a simple test that uses either the relative or absolute path, trying to read 3 different files in the same directory as the VI. Only the Read BMP File errors. Of course, the simple work around is to always use the full pathname to a file. Is this only on my system? Is this a known bug or feature or expected behavior?
I'm using LabVIEW 8.2 on Windows XP.
Thanks!
B-)
Message Edited by LabViewGuruWannabe on 11-05-2007 11:06 PM
Attachments:
ReadImageFileTest-FPgood.PNG 30 KB
ReadImageFileTest-FPbad.PNG 26 KB
ReadImageFileTest-BD1.PNG 48 KBMissed this on the first post:
Message Edited by LabViewGuruWannabe on 11-05-2007 11:10 PM
Attachments:
ReadImageFileTest-BD.PNG 48 KB -
Relative Paths in Java, omg
Ok I just figured out that, what seemed to be a relative path is in reality the relative path of the starting program.
For instance:
We suppose, I got a directory: "D:/Java/Project"
in this dirrectory, there are .class files, .java files and folders which holds data like music and graphics.
normaly in all my classes the path goes like this:
for example the audio class : load every audio file from "audio/" + specific audio file name
until now everything like that worked, but only because I started the Project from within this very directory.
Assuming I got in "D:\Java" a batch file, that starts my project, like this: "java -cp ./Project MyClass"
if I run it, my code suddenly looks at "D:/Java/audio" for audio files instead of "D:/Java/Project/audio"
which means the relative path is in reality the relative path of the starting program and not from the class itself.
So how could I possibly get a relative path, telling my program, my audio class for instance again "stay where this class file is, then go to audio/ and there you got your audio files", regardless at where I start my project ?If you do
new File("some/relative/path/foo.bar");it is relative to the directory you started Java in.
If you want to use the classpath (or load things from inside JAR files) you should use
this.getClass().getClassLoader().getResourceAsStream("some/relative/path/foo.bar");using "/" regardless of your OS.
I think you can also use
this.getClass().getClassLoader().getResource(...)which gets a URL instead of a stream, and then maybe you can
open the file directly with the URL.
and you can also use
Thread.currentThread().getContextClassLoader().get... -
Load pictures from a relative path
I have this type of code:
startButton.setIcon(new ImageIcon("C:\\images\\calculate.gif"));All my pics are in the images folder. How can I make the app load and display images from a relative
path. I mean if I put my jar and the images folder inside another folder the app should work on another system too.
The images folder is in the same folder as the app, and it should not matter what folder hierarchy is upper.
Inbstead of new ImageIcon("full path") something like
new ImageIcon(new File(?relative path here));Any examples?In all fairness, I don't think this is really a Swing question. It's about loading resources, the Swing element is incidental The OP is using an ImageIcon and JLabel, which are both only used in Swing application.
If the OP would bother to read the JLabel API they would find a link to the Swing tutorial which explains everything about loading resources.
If the OP would search the Swing forum they would find dozens of questions and answers on this topic.
The point is the OP makes very little effort to post in the appropriate forum.
Most application that use images will be using Swing. The best chance of getting an answer or finding related questions is to search/post in the forum that is most appropriate.
Its not "fair" that we waste time repeating answers to questions that are asked over and over.
Maybe you are looking for
-
DVD drive does not burn the DVD but prompts the mysterious 0x8002006D error
I read the earlier threads about the mysterious 0x8002006D error. Then went to look at the console and the DiskRecording log reads: Finder: Burn sense: 3/73/03 Medium Error, Power calibration area error Finder: Burn error: 0x8002006D The device faile
-
I have non English characters showing up.
This morning I wanted to make a change in my Security & Privacy settings and when prompted to authenticate the dialogue box contained non-English characters. Even the OK button appeared to be in Chinese are the like. Any ideas welcome. OS X 10.8.1
-
Is it possible to organize the order of photos in an album
Is there a way to move around or name photos in an album to get them in order.
-
Now I am at USA for joining summer program here for 2 months and I really need new notebook now so is it possible that I will order Macbook Pro with the Thai keyboard from service in Thailand or Asia which have Thai language on keyboard and ask them
-
Hello everybody, I created a oracle report i.e Bank Book having banks transactions receipts and payments and opening balance w.e.f 01-jul-2014. parameters are bank code, from_date and to_date. opening balance calculates (return ope from table bankinf