What is the best way to include an xml file in JSP?

I have a jsp page that I need to include an xml file. The xml file
          uses an xsl to render the file. What is the best way to include the
          xml file and still maintain the structure of the style sheet?
          Thanks
          Jennifer
          

          The best way is using the tag lib. If you cannot, but you can use JAXP, you can
          try
          javax.xml.transform.Transformer.transform(Source xmlSource,
          Result outputTarget)
          throws TransformerException
          You construct the transformer with you xsl, use you xml file or DOM to form xmlSource,
          and use JSPWriter "out" to form outputTarget (StreamResult). But if your JSP page
          generates the xml itself, tag lib is the only way.
          [email protected] (Jennifer) wrote:
          >[email protected] (Jennifer) wrote in message news:<[email protected]>...
          >> I have a jsp page that I need to include an xml file. The xml file
          >> uses an xsl to render the file. What is the best way to include the
          >> xml file and still maintain the structure of the style sheet?
          >>
          >> Thanks
          >>
          >> Jennifer
          >
          >Or is there a way to parse the xml file with the jsp page to display
          >the information. I cannot use the Java Standard Tag Libraries as the
          >version of iplanet we are running does not support the JSTL
          >
          >Thanks
          >
          >Jennifer
          

Similar Messages

  • What is the best way to keep my personal files stored in iCloud separate from my work-related files?

    What is the best way to keep my personal files stored in iCloud separate from my work-related files? It seems that I'm not allowed to link my iPad mini and my work iMac using two different accounts, so I'm wondering how to make my single personal account work for both, while keeping personal vs work files reasonably separated.
    Thanks for any suggestions.

    Is it possible for you to upgrade your account to iCloud Drive? That would mean, all Macs upgraded to Yosemite, and all mobile devices to iOS8?
    See:  iCloud Drive FAQ and iCloud: About using iWork for iOS and iCloud
    In iCloud Drive you could create two separate custom folders, one for work documents and one for private documents and organize your documents there.  Don't use the app specific folders (Keynote, Pages, Numbers, ...) , because you can only create one level of folders inside these folders.

  • What's the best way for reading this binary file?

    I've written a program that acquires data from a DAQmx card and writes it on a binary file (attached file and picture). The data that I'm acquiring comes from 8 channels, at 2.5MS/s for, at least, 5 seconds. What's the best way of reading this binary file, knowing that:
    -I'll need it also on graphics (only after acquiring)
    -I also need to see these values and use them later in Matlab.
    I've tried the "Array to Spreadsheet String", but LabView goes out of memory (even if I don't use all of the 8 channels, but only 1).
    LabView 8.6
    Solved!
    Go to Solution.
    Attachments:
    AcquireWrite02.vi ‏15 KB
    myvi.jpg ‏55 KB

    But my real problem, at least now, is how can I divide the information to get not only one graphic but eight?
    I can read the file, but I get this (with only two channels):
    So what I tried was, using a for loop, saving 250 elements in different arrays and then writing it to the .txt file. But it doesn't come right... I used 250 because that's what I got from the graphic: at each 250 points it plots the other channel.
    Am I missing something here? How should I treat the information coming from the binary file, if not the way I'm doing?
    (attached are the .vi files I'm using to save in the .txt format)
    (EDITED. I just saw that I was dividing my graph's data in 4 just before plotting it... so It isn't 250 but 1000 elements for each channel... Still, the problem has not been solved)
    Message Edited by Danigno on 11-17-2008 08:47 AM
    Attachments:
    mygraph.jpg ‏280 KB
    Read Binary File and Save as txt - 2 channels - with SetFilePosition.vi ‏14 KB
    Read Binary File and Save as txt - with SetFilePosition_b_save2files_with_array.vi ‏14 KB

  • What is the simplest  way to get a xml-file from 10g R2 -database ?

    Hi,
    I'm new in xml, there are so many tools to work with xml:
    what is the simplest way to get a xml-file from 10g R2 -database ?
    I have : 10g R2 and a xsd.file to describe the xml-structure
    thank you
    Norbert

    There is no automatic way to generate XML documents from an arbitary set of relational tables using the information contained in an XML Schema. Typically the easiest way to generate XML from relational data is to use the SQL/XML operators (XMLElement, XMLAGG, XMLAttribtues, XMLForest). There are many examples of using these operators in the forums You can validate the generated XML against the XML Schema by registering the XML Schema with XML DB and then using the XMLType.SchemaValidate() method

  • What is the best way to integrate a sound file (mp3) into a PDF?

    I saw that its possible to do it by Tools->Multimedia->Sound. This works fine on a computer but not a tablet. So what is the right way to embed a sound file into a PDF of maybe by Indesign? What i want is that people can easily open a document (PDF) on a tablet and when they click on a (play)icon that they hear a sound file. The best thing is that they can stop or put it on pause.

    I think this functionality relies on Flash, so it's not likely it's going
    to work on mobile devices, certainly not on iOS ones.

  • What is the best way to send multiple pdf files to my ipad

    what is the best way or app to send multiple pdf files to my ipad, so that I can then combine them into one folder

    I have the app Readdle Docs. It allows you to move PDF files to your device and to move them around on your device. Might check it out. ( I think there's an iPad version of the app, but I have the iPhone version and it works, just not as pretty)
    THere's also Goodreader, but I don't have experience with it to know if it has folder abilities.

  • What is the best way to export/share GarageBand files with a non-mac user?

    I have some GB2 files, too big to email, that I want a client to hear and give direction. then I can make the changes and re-export them for him to hear again. What is the best way to do this? IMac seems to be forthcoming about sharing pictures and IMovies but not music files, for understandable reasons. Thanks.
    BB

    Here's one way, but be sure you understand the privacy policy!

  • What is the best way to sort an XML document in WLI 8.1?

    I have the schema for the XML and I want to sort the data. What is the best way to do this?

    I'm not sure if you want the result of the sorting to be a sorted XML document or a sorted object tree but anyway both XSLT and XQuery support sorting so you could use a Transformation control to execute an XQuery or XSLT transformation to sort the data. Another option (if you are not comfortable writing XQuery or XSLT) would be to use XmlBeans and programmatically sort the data. A word of warning though, these processes are quite memory intensive and if the XML document you are sorting is large (say over 10 MB) your server might run out of memory. In this case you might be better of just parsing the document with SAX and then sorting the result objects.

  • What is the best way to save an ai file so it can be opened in corel draw

    I have an ai file that needs to be opened in corel draw by a client. It needs to remain editable all paths and colors ect.
    Whats the best way to save it so it can be.
    yes I know corel is not as good as Illustrator but its what they have.

    Moving files back and forth between Adobe Illustrator and CorelDRAW is tricky. There's quite a bit more to it than knowing what version of CorelDRAW the client is using. If the artwork is fairly simple then there shouldn't be any problem with transferring the artwork into CorelDRAW. If the artwork has gradients, transparency effects, a lot of clipping masks, etc. then it's going to be a lot more dicey getting it to import into CorelDRAW properly. In addition to the .AI file you provide, you should give the client a PDF they can view in Adobe Reader or Acrobat so they can proof how the artwork is really supposed to look.
    I use Adobe Illustrator CC and CorelDRAW X6 in my work. I've used both applications for over 20 years. I don't consider either application better than the other. They both have their own unique strengths and weaknesses. I'll do a good bit of creative work within CorelDRAW to use certain features Illustrator either lacks or just doesn't do as well. Or I may need to design a really big project at full scale and Corel has a much bigger art board than Illustrator. Most of the time I move a lot of the stuff I created in CorelDRAW over to Illustrator for further refinement or moving it into Photoshop as paths or smart objects or just getting it ready to print (I don't like Corel's color engine even though it has improved in recent years).
    Like others have said, you need to know the basics of what the user has -mainly which version of CorelDRAW. The newer versions like the one I'm using can open Illustrator CS5 files. For older versions, you may have to save down to CS2 or even really old versions like Illustrator 8.
    CorelDRAW will not support certain Illustrator-dependent effects. For instance, if you apply a gradient to an object outline it will be lost when opened in CorelDRAW. A lot of other effects won't be maintained when opened in Corel unless they are flattened/expanded. Some effects may even have to be rasterized, and that can create other issues. Out of effects that are maintained, some may have to be adjusted. CorelDRAW and Adobe Illustrator handle things like gradient fills differently and don't understand how to portray gradients from their rival application accurately. Some nice fill that was created in CorelDRAW may have to be tweaked or completely rebuilt when opened in Illustrator.
    I get a lot of customer files in CorelDRAW and also a lot in Illustrator. That reason alone makes it necessary for me to have both CorelDRAW and Adobe Illustrator running on my computer.

  • What is the best way to reduce a .mov file size

    I had a music DVD that I converted to a .mov so that I could cut and paste in QT pro which i have done.
    Now I have a .mov file that is 46 gigabits in size and I want to reduce it considerably without ruining the quality of sound or visual.
    Whats the best way to do this.
    Thanks

    punt

  • WHAT IS THE BEST WAY TO CREATE AN XSD FILE (TO BE USED BY SOAP ADAPTER)

    Dear friends
    I have a simple scenario.
    OUTBOUND DATA  -->  SOAP ADAPTER  --> ( XI )  -->  RFC ADAPTER  --> INBOUND DATA
    The XML file that I got from mapping area of IR (Design) is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_NAME_SOURCE xmlns:ns0="http://test3.com">
       <FIRSTNAME>DAVE</FIRSTNAME>
       <LASTNAME>SMITH</LASTNAME>
    </ns0:MT_NAME_SOURCE>
    If you notice, there are only 2 fields.
    I need to create an XSD file and import it as an external object, which I can use for SOAP Adapter.
    Which is the best way to create it.
    Also, I need to know if there is any step by step of sending a message from XML SPY. I have downloaded this software, but am not able to undertand how to use this.
    Hope to hear from any experts on this forum.
    Thanks in advance
    Ram

    Hi Ram,
    See the below blog..
    It shows how to send SOAP message using XML Spy.
    It also shows how to generate wsdl.
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Regards,
    Sumit

  • What is the best way to optimize database resources in a JSP centered webap

    hi, i am kindda i am new to jsp. so i make database connections on evry page.Assuming i am working on an app where there could be 300 concurrent users, what is the best approach for me to take?
    thanks
    obinna

    java_everywhere wrote:
    hi, i am kindda i am new to jsp. so i make database connections on evry page.JSP shouldn't have anything to do with database access. In any case, you shouldn't be connecting on every page either. You should be recycling connections via a pool.
    Assuming i am working on an app where there could be 300 concurrent users, what is the best approach for me to take?You will have to decide for yourself because we don't know what your app does, how much hardware you have, network latency, etc.

  • What is the best way to include external files in an application?

    I am developing a vocabulary-training program (Adobe AIR using Flex Builder 3). Asks you what an equivalent of a czech word is in english and the other way. I am storing the "dictionaries" in external XML files. I would like to include about twenty of them in the installation. So far I just had them in the applicationDirectory, but now, I added an editing feature and I ran across the fact, that I cannot write into the applicationDirectory. So I figured the most intuitive place for the dictionaries would be in the documentsDirectory/name of program. However, how do I tell the AIR installation to make the according folder and include the files?
    How do I do this, or what do you think is a better solution? Thanks!

    If this post answers your question or helps, please mark it as such.
    I'm creating an application that stores data in the "applicationStorageDirectory".      
    Mac storage directory is <appData>/<appId>/Local Store/
      where <appData> is user preferences folder, typically /Users/<user>/Library/Preferences
    Win: storage directory is <appData>\<appId>\Local Store\
      where <appData> is typically C:\Documents and Settings\<userName>\Application Data
      Note: Vista uses "junctions", which behave like shortcuts but look just like regular folders.
        It is not possible to access them, and any attempt to do so will give you an "Access Denied" error.
        Here is the real folder location:
          C:\Users\<userName>\AppData\Roaming\ContactManager\Local Store\contacts.xml
    Linux: <appData>/<appID>/Local Store/    where  <appData>  is  /home/<user>/.appdata
    Here is how to code to read from and write to a file there in an AIR app:
    var contactsFile:File;
    var contactsXML:XML;
    var contactsXLC:XMLListCollection;
    var stream:FileStream;
    contactsFile = File.applicationStorageDirectory;
    contactsFile = contactsFile.resolvePath("contacts.xml");
    stream = new FileStream();
    if (contactsFile.exists) {
        stream.open(contactsFile, FileMode.READ);
        contactsXML = XML(stream.readUTFBytes(stream.bytesAvailable));
        stream.close();
        contactsXLC = new XMLListCollection(contactsXML..contact);
    }else{
        var outputString:String = '<?xml version="1.0" encoding="utf-8"?>\n<contacts>\n';
        for each(var xml:XML in  contactsXLC){
          outputString += xml.toXMLString();       
          outputString += "\n";
        outputString += "</contacts>\n";
        outputString = outputString.replace(/\n/g, File.lineEnding);
        stream = new FileStream();
        stream.open(contactsFile, FileMode.WRITE);
        stream.writeUTFBytes(outputString);
        stream.close();

  • What is the best way to work with avi-files?

    Hallo all,
    I'm new to this forum so before asking my question I'd like to say some words about myself:
    I'm not a native english speaker, so please excuse language mistakes I'll possibly make and feel free to ask if I'll write something which you don't understand due to this fact.
    Half year ago I bought a HD Cam from Canon (Legria HF 200) which - in my opinion - has a good quality (good enough for my hobby films), and realized that cutting HD films on Windows would require a lot of expensive high end hardware. So I bought a MacBook and Final Cut Express - a decision I'm very happy with.
    After the first disastrous tries to make a small clip I bought Tom Wolsky's "Editorial Workshop for FCE" and now I'm more happy than I was before (because I've seen that you're posting here: thanks for the great book!)
    But now to my question:
    I have 9 old PAL DV tapes (containing family clips which I'd like to cut now) recorded with my old JVC, which has a FireWire port only. Unfortunately my MacBook doesn't have such, so I have to capture to DV avi using a PC with Pinnacle Studio.
    1.) The avi files are very large (between 13 - 18 GB). Because I'm not able to recapture due to the missing FireWire port I'd like to archive the material on an HDD. How should I convert the AVI to make it smaller without a great loss of quality but keeping the ability to use it in FCE (especially when reconnecting after creating the subclips from the original)
    2.) I'd like to keep the whole captured tape content as master clip and work with subclips from it. Yesterday I converted such an AVI to Film using QuickTime (the size didn't change noticable) and used the DV-Start/Stop detection. Unfortunately that didn't work correctly - some of the markers have been set in the middle of the shots instead as expected exactly between them. Should I do this on the original AVI file to make it work? And if, is it possible to reconnect the subclips created this way to a MOV created from the original AVI?
    3.) On the PC I get an xml file containing the correct position data of the subclips (as timecode, if I remember correctly). Is it possibly, to use this data in FCE to mark subclips? Maybe by putting it manually into an xml project file or something similar?
    4.) Or is there any other way to solve my problem?
    Sorry for the big post and thanks in advance,
    André

    You're welcome, and thank you for the reply.
    2) Yesterday I made the subclips with the In-Out Points and Command-U, the benefit is that I've seen the clip before naming it. Now I'm using markers, it's benefit is that I can write comment and (the later) clip name at once, the drawback is that I have to view to the next shot's beginning before knowing what the shot contains.
    But now I found out that I can reconnect my clips independently to the format I converted the master clip to. I reconnected the media to the original AVI file and it worked, too! The more I work with, the more I'm sold on it... - although it doesn't seem to be able to read and use the date information within the DV AVI.
    1) Ok, I tried something similar within FCE. Just worked, but the file size still remains. Which codec settings should I use? Is the export to DV in MOV with a quality of 75% acceptable for both file size and quality? Or would be encoding as H.264 with best quality an option for archiving, knowing that I have to convert it back to DV if I (maybe) wan't to use it for editing later? Or anything else?
    Thank's in advance again,
    André

  • What is the best way to recover a corrupted file from a failing Hard Drive?

    I have a 3TB WD internal drive that is starting to fail with Bad blocks. I noticed it when I had some write errors and so got a new disc as fast as possible to get the data off before it dies completely.
    However, some files are failing to be copied with the Finder.  What tools are best for trying to recover these mainly video files?  I have Tech Tool Pro but its utility seems aimed at finding accidently deleted files.  I seem to remember a utility from way back that would repeatedly try to read a back block and re constitute the file. 
    All suggestions are welcome!
    Thanks.

    Choose and use only a single background process to monitor health of a drive, they really are not safe to use multiple tools. And SoftRAID does its scan and checking in background during idle time for weak sectors - they are not really black/white but more xx tries to read/write.
    as I mentioned, and you fit the profile, DW is one trick pony and can be used when you need to mount or access files to recover and backup.
    Yes, DW will create a new directory. It has an advanced deep scan to scavenge for files.
    Sometimes you just need to use DW's Preview to see what the drive volume 'looks like" now and what it would be after a rebuild/create directory. but sometimes you just want Data Rescue 3. both are in the $95 range.
    Too often large backups, like 10 drives, are not well categorized or 'where is what."
    Clone of a drive means you can restore the volume... TM to keep versions. But I don't have the 200% faith in TM sets or backup.
    Sometimes a RAID6 is the ideal method for a large viideo catalogue or collection. And some people or businesses keep duplicate RAID6 sets, to mirror each other.
    I liken 3TB drive sometimes as putting too many or all the eggs in one basket.
    also, to keep any drive to 40% free which may sound wasteful, unless you consider the data' value.
    SoftRAID 4 could be useful to zero and test the drive. Or to to 'take over' the drive even. Then to build a mirror from it.  MPG recommends using it even in non-array use for some of those very reasons.
    choice now going forward: clone with Superduper / CCC / recovery with DR3 / and build the directory (or not) with DW 4.x.
    With externals sometimes the weak link is the case and interface or drive enclosure, plus the bridge if any (SATA native and none is my preference). And controllers, which may be needed.
    Instead of having to order a drive? always have spares and extras. Always have a clone and an extra that can be used to put into service. And order more.

Maybe you are looking for

  • How to make a tree with more information in one line

    Hi I have seached this forum, and haven't find any information that I can use. I need a tree structure with following informations: arbpl _____aufnr________material_____ text _______extra informations   |_____aufnr________material_____ text   .......

  • Dreamweaver CC won't launch - Mac OS 10.8.5 - No Crash Logs Created

    Dreamweaver CC won't launch at all on my machine anymore.  All the other Adobe CC applications work just fine.  I've uninstalled and reinstalled all my CC applications and done it again for good measure.  I've uninstalled all my fonts and reinstalled

  • Select all check boxes in alv

    hi,   the first column of my alv grid display is check boxes. i want all the check boxes to be checked when the user clicks on the select all button present on the grid.it very urgently required.plz give me the code. thanks & regards, santosh

  • Creative Cloud app Crashs immediately on launch

    Hello all my creative cloud is up to date. i have been working with illustrator with the new updates and everything was fine. suddenly the Creative Cloud App does does not work. after i click on it nothing at all happens. in the task manager it shows

  • Corrective action & preventive action

    Dear Gurus; I am working on a scenario where, after every 5 breakdowns in a month on a Equipment, system should prompt to create a corrective action report or preventive action report. Or in second scenario, If the breakdown time for a equipment is m