Dealing with HTML stored in database

I am trying to fetch data from one data source into XML, apply a stylesheet, and then save the resultant HTML into another table (using Java). The source data has some HTML tags embedded in it (which I want to maintain as tags), but during the processing these are being converted to text, as in:
<P> gets transformed into &#60;P>
and is therefore not rendered correctly.
Can anyone help?

The thing is I don't know if DW has the ability to extend in
that manner because it would affect the way in which DW connects to
the database which seems to me to be a bit above and beyond what
the extensions were designed to do. I personally have not designed
extensions, but maybe one of the PVII guys who hang around this
forum or even Murray might be able to shed some light on this
subject.
The reason I don't believe it can do this right now is
because it does not have the database editing technologies built
into it, although I do believe that might not be a bad feature to
recommend (
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
). I know it is too late for CS4 because that is already in the
beta stages and not too far from production from the looks of it
and what has been discussed on the CS4 forums. Probably a couple
small patches and it is ready to go. Although it is possible for
the CS5 release which should also see PHP4 support going
away.

Similar Messages

  • How to deal with images stored in oracle

    hi,
    can anyone help me to solve this issue please:
    in fact i am developping a swing based standalone application based on a TCP/IP client-server connection, so the point is to display on my frame for each student his information and also his personal picture
    first step : storing the personal picture into the oracle database from a specefic frame that allows to specify each NEW student's profile and his photo.
    step 2: as needed, a specefic frame allows to retrieve all the information related to a student and his photo to ( in a jlabel or other swing componenet)
    how to deal with this storing and then the retriving from the oracle DB
    any help please!

    If I understand well your problem, you need your client java application to store and retrive information from an oracle DB.
    This can be done via JDBC.
    Here's the tutorial:
    http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html
    Look at
    http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html#JDBC2018
    for storing and retriving binary data (like java serialized objects (Images for example))

  • Serving webpage with image stored in database

    This may look long, but it's easy to understand--I'm just trying to give all the details you might want: In our servlet/JSP site, a user can generate a report that may or may not contain images. The servlet just sends the user to a regular HTML page. The HTML file and images it may have are stored in directories on the Tomcat server. But now we have a problem...
    We're moving to 2 standalone Tomcat machines with a load balancer in front, and so now we want to move any of this stuff that was stored on the webserver into the database. If the HTML text for the report has not yet been generated for that day, I can see my web app going to the database to pull out that HTML, and if there are any images, it could pull those out of the database, but then...how does it get those to the user's web browser?
    Currently, when this report loads in the browser, we do a sendRedirect to the file, and the URL displays the full path to the file (and in the HTML code, there is of course a relative link to the image file). But now, these are supposed to be pulled out of the database...are we going to have to pull them out of the database and then write them out to file on the webserver (since they might not exist on that webserver), or is there some other/better way to display them to the user?
    Thanks...

    You can create an Image Servlet that you use to stream the image streight from the db to the page. The URLs that you use in the HTML pages would point to this Servlet with a parameter identifying the image (or you could map the Servlet to *.gif for example). The servlet then sets the content type to the appropriate image format, retrieves the image from the DB as a Stream and copies it byte for byte to the response output stream.
    If you search the forums you will probably find an example of how to do this.

  • Viewing HTML stored in database in Dreamweaver

    For the longest time, I have tried to figure out how to
    access, view and edit html/php code stored in a database. I build
    most of my sites using the Joomla CMS so all of the content is
    stored within its database. When I am working on a page, I need to
    open the site, go into HTML view, copy the code, paste it into DW,
    make my changes and then copy it back to the CMS.
    What I want to do is create a direct DB connection so that I
    can open, edit and save the changes all from within DW. Is there
    any way to do this?

    The thing is I don't know if DW has the ability to extend in
    that manner because it would affect the way in which DW connects to
    the database which seems to me to be a bit above and beyond what
    the extensions were designed to do. I personally have not designed
    extensions, but maybe one of the PVII guys who hang around this
    forum or even Murray might be able to shed some light on this
    subject.
    The reason I don't believe it can do this right now is
    because it does not have the database editing technologies built
    into it, although I do believe that might not be a bad feature to
    recommend (
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    ). I know it is too late for CS4 because that is already in the
    beta stages and not too far from production from the looks of it
    and what has been discussed on the CS4 forums. Probably a couple
    small patches and it is ready to go. Although it is possible for
    the CS5 release which should also see PHP4 support going
    away.

  • Associating APP_USER with file stored in database

    I'm using APEX 3.0 with 10g database. I have an invoice report that references the APP_USER as the person who generated the invoice, and his or her name appears at the bottom of the invoice. I need a way to associate the person who is the APP_USER with a .pdf signature file, so the person who generates the invoice is "signing-off" on it, and then can email the invoice to the customer with this signature at the bottom. Is there a way to provide logic between the BI Publisher report and the application/database so each APP_USER is associated with an assigned .pdf signature file?

    Hello,
    If you include session state information, in the xml that is send to BI Publisher the APP_USER is included.
    So in your BIP Word template (rtf) you can include the APP_USER field.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Dealing with tables from different databases?

    Hi. I'm a newbie to Visual Studio 2012 and stuck on how to interact with different datasets.
    I am building a report that is associated with with two tables, each from a different database. The
    master_flat table with the primary key matter_number is from the first database and it contains all the columns I need that should show up in the report layout I've built. However,
    billing_table with the primary key matter_number contains a flag that I go by which I must use to determine whether each matter should come through in the reporting or not. 
    I've set the master_flat as dataset1 and the billing_table as dataset2. Now, what is the best way in Visual studio 2012 to filter by the matters that has flag "N" in dataset2?
    Thanks

    We are way out of sync.  Lets synchronize.  I'm not sure which question you are refering to.  Is it the "C# or VBnet"  question or is it the "One or two database Question".  It seem like it would be the database question since you
    should know which programming language you are using.
    Open SQL Server Management Studio (SSMS).  After login, there is an explorer where you can browse the databases, tables, and fields in the tables.  You should be able to view how you build the database.  If you right click any tables and then
    "Script Table As : Select To : New Query Editor Window".  There is an execute button to run the query.  You can aslo edit the query.  I usually test all my qeuries in SSMS before actually using them in an application.  I would get a JOIN
    SQL working in SSMS.
    If you let me know if you are using VBnet or C# I will write a simple LINQ.  Even better if you supply me the names of the columns of the two tables.
    jdweng

  • Evaluation of html stored in the database

    Hello everyone, here is my story.
    I have html stored in the database that I am using in regions. The region is a pl/sql anonymous block with code similar to this.
    DECLARE
    testt varchar(30000);
    BEGIN
    SELECT Main_Page_Image_Zone INTO testt FROM htmltable where Main_Page_Image_Zone IS NOT NULL;
    htp.p(testt);
    END;
    It draws in and displays the html great. The only problem is apex isn't evaluating the html. I have an image that is drawing from #workspace_images#, but instead of translating this to something useful, I get a red x. It is trying to find the image as #workspace_images#...The html being drawn in isn't being evaluated like I want it to (I want it to translate #workspace_Images#). Any ideas how to evaluate this html?
    Here is what the image location is supposed to look like
    http://127.0.0.1:8080/apex/wwv_flow_file_mgr.get_file?p_security_group_id=6933527329162765&p_fname=fmw.gif
    Instead this shows up:
    http://127.0.0.1:8080/apex/f?p=104:12:617607226208594:::::#WORKSPACE_IMAGES#fmw.gif
    This is stored in the database (ignore the .)
    <.img src="#WORKSPACE_IMAGES#fmw.gif" width="697" height="439" border="0" usemap="#Map" />

    However
    Replacing occurences of '#WORKSPACE_IMAGES' with 'WORKSPACE_IMAGES' in the database
    and then applying the replace function on the column works.
    select replace(f1,'WORKSPACEIMAGES','&WORKSPACE_IMAGES.') into str from temp_tab;
    Again, don't know why !

  • Displaying html stored in a database table in a region

    Hi All,
    I would like to pass html to regions on the page which is stored in a database table.
    I have got this working for simple html (call a packaged function to get the html and then in a PL/SQL Anonymous Block htp.p(f_get_html(:P1_param1,'REGION1')); to display it within the region ) but what I would also like to take the html generated for charts/graphs etc out of the application and also put them into the database table so that the position on the page can be determined by database tables.(i.e. have a page with lots of regions and assign html to them at runtime). I am struggling with substituting all the necessary parameters into the HTML returned from the database and how it should be formatted.
    Any help appreciated and if I get any further I will update the post

    I have actually managed to achive this now. When I get chance I will post the code.
    The idea is that a page could have say 6 regions and depending on choices made (i.e. selected project or the individual user permissions) there are regions which you would want to display and regions you dont. Also, you may want to move regions around the page so that the important ones for that user or project etc. are at the top.
    You can then, on entering a page, query database tables to decide what is to be displayed in region1, region 2 etc. and then getting the html from the database for that region and displaying it.
    I have successfully done this now with embedded Oracle Reports showing graphs which look better than the SVG graphs and are more flexible.

  • Trouble with international formats. Converting and storing in database.

    Back again!
    This time, I've got my app working as it should. I extract strings of information from a file, and store them appropriately in a database. Some of the data I cast to double as they are money values. The problem is this:
    I'm storing the data in an access database. I need one of the values to be in European format. That is, using commas for decimal points and vice versa. Eg: $3.20, would become E3,20. (Don't know the shortcut for the Euro symbol).
    I can't change swap commas to demimals points and THEN cast to double, because double wants american standard numbers. So how do I, or is there another way, to store the value in the database as:
    E3,20 and not E3.20...??? I've changed the type in the access database column to Euro, so I get the Euro symbol...but if I put in a decimal, it stays a decimal.
    Any ideas???
    Thanks again.
    ...DJVege...

    OK! And I'm lost again!!!! :-( Sorry, my bad!
    Now, I've formatted the values perfectly in Java. But
    unless I keep the type of column in Access as text,
    they don't transfer over properly. If I keep them as
    number, then only the numbers come over etc...If you have the numbers in Access as number and you can format numbers in Java then what is your problem? Without showing your code I (an most other non-mindreaders) don't have a chance. How are you getting the values form the Access database?
    >
    Also, do you know the custom format i need to use, so
    that, even if I keep the column as text, Thjis does not make sense? I showed you two examples. What do you want in the way for format that they don't give.
    it will
    stick a � sign in front of it??? I don't understand! Show your code.
    I figure, I'll just
    stick to the text field, So you want to bodge it and leave the problem to someone else to deal with later on!
    but somehow I need to stick
    a � sign in front of it for display purposes.I have shown you how to format the numbers! I have suggested that the Euro symbol Unicode can be found using Google (it took me less than 30 seconds). What more can I do other than write the whole of your code for you?

  • Dealing with null values from a database (easy?)

    I'm sure this should be a simple question :
    I'm creating a dynamic dropdown of my companies products that once a product is selected draws values (links) from a database and displays them (links to User guides, FAQs etc).
    My problem is dealing with blank entries in the database - i.e. if a product doesn't have a User guide I've left the database blank.
    I'd like to show 'none' or 'not available' if the entry is blank rather than the 'null' I currently get.
    I'm sure it should be a straightforward if .... else .... but I'm struggling and would appreciate any help,
    Many thanks,
    Mo

    Thanks for the message, the cut down piece of code I'm using for the output is:
    <%
    while (rs.next())
    //header row
    out.println("<tr bgcolor='#666666'>");
    out.println("<td><font style='font-family:arial;color:#ffffff;font-size:10px;'>Product Name</font></td>");
    out.println("<td><font style='font-family:arial;color:#ffffff;font-size:10px;'>FAQs</font></td>");
    out.println("<td><font style='font-family:arial;color:#ffffff;font-size:10px;'>Technical Information</font></td>");
    out.println("</tr>");
    //results
    out.println("<tr border='1' bordercolor='#CCCCCC' bgcolor='#FFFFFF'>");
    out.println("<td><font style='font-family:arial;font-size:12px;font-weight:bold;'><a style='text-decoration:none' href=" + rs.getString("ProductURL") + " target='_blank'><font color='#669999'>" + rs.getString("ProductName") + "</a></td>");
    out.println("<td><font style='font-family:arial;color:#000000;font-size:10px;'>" + rs.getString("FAQs") + "</td>");
    out.println("<td><font style='font-family:arial;color:#000000;font-size:10px;'>" + rs.getString("TechInfo") + "</td>");
    out.println("</tr>");
    stmt.close();
    conn.close();
    %>
    It's the FAQs and TechInfo strings I need to use the statement on - if there's no entry show 'none',
    Thanks again,
    Mo

  • Using 2 different databases in Oracle 9i with HTML DB

    I'm new to appex and I am wondering if I can use it to use data from different databases within Oracle 9i, and if so, how/where can I find out to do it. Basically I have an already existing database in 9i, and I have to create another one that uses information from one table in that original database. I have to somehow link it to the new tables (to use the live data from the original db) to filter data. Then ultimately make use of the collaborated information with HTML DB. Any and all help/suggestions is more than greatly appreciated.
    Thanks!

    I'm new to appex and I am wondering if I can use it to use data from different databases within Oracle 9i, and if so, how/where can I find out to do it. Basically I have an already existing database in 9i, and I have to create another one that uses information from one table in that original database. I have to somehow link it to the new tables (to use the live data from the original db) to filter data. Then ultimately make use of the collaborated information with HTML DB. Any and all help/suggestions is more than greatly appreciated.
    Thanks!

  • Can you access non-Oracle database with HTML DB?

    Can you access non-Oracle database with HTML DB? If not, will this be possible in the future?
    I realize HTML DB is not an open-source product. However, it is necessary sometimes to get non-Oracle database info. JDeveloper supports this. It does not appear to me that HTML DB does. This is a major drawback to it being a product for more potential applications that rely on other database technology such as MySQL, etc.
    If it is possible, is this brain surgery to do it. HTML DB offers fast simplified development and it would be good if it was built in. Does anyone know of an example of accessing non-Oracle database that is available?

    12282,
    In general, HTML DB gives you access to Oracle database facilities. These include heterogeneous services. Please search this forum for keyword "heterogeneous" and you can follow the threads that interest you.
    As for the comparison with brain surgery, I'd rank them about the same in terms of raw thrill.
    Scott

  • Accessing many databases with HTML DB from a single Apache Server

    Hello;
    I am planning the install of 10g and HTML DB on a HPUX server with many databases running out of many Oracle Homes 9.2.0, 9.0.1 and 8.1.7. I will be upgrading a number of the existing databases to 10g and want to access them with HTML DB.
    My question is how can I install HTML DB on many databases and use a single Apache Server to access them?

    Where would I find the DADs? a default installation of htmldb puts the modplsql DAD, "pls/htmldb", in a marvel.conf file located in $OHS_HOME/Apache/modplsql/conf/marvel.conf
    What would the URLs look like? not sure what you're asking. if you're asking about how the change in DAD's would affect the URLs you're calling, though, you should consider looking over the OHS (oracle http server) doc some more before making these types of customizations.
    And how would I install the HTML DB in the different databases?
    Would I use the installer or scripts?the only supported way to install htmldb is via the 10g Companion CD. just use that installer to point to your different db's.
    regards,
    raj

  • When opening aperture I get Warning that says There was an error opening the database for the library "~/Desktop/Feb 12, 2011.aplibrary".  I'm concerned that my pictures may be lost.  Does anyone know how to deal with this Warning?

    When opening Aperture I get Warning that says "There was an error opening the database for the library “~/Desktop/Feb 12, 2011.aplibrary.”  That's it. The program does not open at all.  I'm concerned that my pictures may be lost.  Does anyone know how to deal with this Warning? 

    Might just need to rebuild the library...see this link:
    Aperture 3: Troubleshooting Basics

  • Dealing with XML  as  database

    Hello members,
    My requirement is to deaI with xml totally as a database instead of taking any data base(like oracle etc..).I.e i have to deal with all the operations like update,delete, insert etc to the xml file from my java application.So that my application willl idependent from database.
    I am not finding any information regarding doing update and delete operations from a java application to XML file(the information i am getting is only how to read and write into the XML file ) and i am not able implement all these stufs to my project.
    If any body have any idea help me so that i can move further.
    Thanks
    Mahi

    If you have decided to go ahead with using XML as a d/b then JAXB will be an ideal place to start, at some point you will need to convert XML to java objects and vice versa, then search for the appropriate node in the xml and do delete or update option.
    If you are still pondering over - to use or not to use XML I suggets you to use simple flat files (thats what I do in my project; and it does work fine)
    I store incomming & outgoing SMS in flatfiles (serialized objects). processes like insertion/deletion/update are all done by keeping the file pointer position in memory and I traverse to the exact location (using io.randomAccessFile) of the file and change the record.
    You may try a similar approch in using XML where you may allocate same size for each child node in the XML and mapping each child to a File pointer position in memory and traverse to the exact child to delete/update/insert, so when you make an update - you will actually be writing to a file pointer position in the file and the XML child node will be re-written-over by a new XML data (similar to update in a d/b); when you delete a XML chile node, traverse to that File pointer position and remove it in the file, but that file pointer position remains open/active; where you can write your next record...

Maybe you are looking for

  • SInstance=Param not working for sap bw query based reports (FWM 02020)

    Has anyone else tried linking to instances using sInstance=Param from a webi to webi or webi to crystal document? We have attempted the following using the build hyperlink function in webi. 1. Select the crystal report. 2. We have 2 variables, the va

  • Randomly quitting applications

    When I am using applications they randomly close out. The screen just goes to the desktop.

  • When the new ipad will be released on United Arab Emirates online store?

    i would like to buy the new ipad (3) but when i enter the online store for United arab Emirates i can see only the ipad 2 ....is it going to be released soon?

  • When the User Exit USEREXIT_PRICING_PREPARE_TKOMK  gets triggered?

    Hi All, Could you please let me know when the following user exit gets triggered? USEREXIT_PRICING_PREPARE_TKOMK Is it before the Pricing? or After the pricing? Is it like Pricing uses TKOMK structure for calculating the Pricing?? Please help me....

  • DB2 SAP

    Hello Gurus - I am a newbie when it comes to DB2 on SAP (although I am a seasoned DB2 DBA) on Unix and Windows. First of all, I am glad that I have joined this forum as I can learn and hopefully share my DB2 knowledge with you folks. Now getting to m