Build html page with database images
Hello,
I have to build html pages in jsp that display images (JPEG, GIF) who are stored in database BLOB fields.
Is anybody have sample to do this ?
Thanks
> Please help me... I need it!
The answer that you do not want to hear is - spend some time
learning HTML
and CSS if you want to do things like this. It's true. DW
will expect this
knowledge on your part. Without it you will encounter
continuous mysteries
in your pages.
> I have designed my page in Photoshop and have saved it
as a HTML with
> images.
This is the wrong way to start. Here's a better plan....
http://apptools.com/examples/pagelayout101.php
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Noreago1979" <[email protected]> wrote in
message
news:g1vhsa$lg6$[email protected]..
> Is there a way to anchor a layer to a specific point on
a HTML page?
>
> I have designed my page in Photoshop and have saved it
as a HTML with
> images.
> I then opened it in Dreamweaver and alligned my designed
page centre so
> that it
> is always center to the opened explorer window. The
problem I am having is
> that
> I want to place my text layers in the document and have
them anchor or
> stay to
> the exact spot i placed them on the page i designed and
now have opened in
> Dreamweaver. When i test it or open it up in the
explorer page the text
> layer
> shifts differently than the the designed page i created
in photoshop. I
> would
> like them to move together at the same rate.
>
> How can I make this work.... I have tried everything
that i could think
> of.
>
> Please help me... I need it!
>
> Thanks
>
Similar Messages
-
Building HTML page with JSP from different applications
Hi,
we need to build a HTML page with 2 JSPs. If both JSP were in the same Application
(Weblogic 8,1) there is no problem. But I have to use JSPs from differents web
applications, each JSP is in different war files.
How can I compose this page? How can I management the request object?
thanks
Your program print the whole jsp source code??
This is your web server configuration problem.
Your web server handle your jsp page like text file only. -
How to upload a HTML page with Flash image viewer?
I´ve got a html page with a flash image viewer file inn it. Preview in a browser is ok, but I don´t get it right on the server. Is it something spesial with the swf file?
This is what i have done: I just upload html -page, viewer swf file and the pictures to the same folder. Is this wrong?
Sorry, I really don´t have a clue... Thanks!Sorry to say, but that is not a webpage -
There is no doctype, no head section, no body section .
etc. etc.
Nothing would work in that document.
Please generate a properly formed HTML page, and place the scripts and script calls in the proper section and the rest in the body, and let's see what you get -
Creating an HTML page with an embedded image in JAVA
is it possible to have a code in java that creates an HTML page,
reads an image file and embeds this to the HTML page?
can anyone give me a sample code? =)
thank you very much!Just tried this out, and it doesn't do what I was hoping: embed the image into the HTML document as a byte stream, so that the HTML document will display the image, without a seperate file.
When I did:
import java.io.*;
public class EmbeddedImageTest {
public static void writeHTML(String htmlfile) {
File htmf = new File(htmlfile);
FileOutputStream fout;
DataOutput dout;
try {
fout = new FileOutputStream(htmf);
dout = new DataOutputStream(fout);
dout.writeBytes("<html><head></head><body><img src=" +
"file:/C:/image.jpg></body></html>");
catch(IOException ie) {
ie.printStackTrace();
public static void main(String[] args) {
writeHTML("c:/embeddedImage.html");
}I just got an HTML file containing "<html><head></head><body><img src=file:/C:/image.jpg></body></html>".
I've seen images get embedded in MS Outlook HTML e-mails. Does anyone know if this is done in a standard way (ie not through some MS-proprietary way), and if it can be done with an HTML file made by Java? -
Up/download html-page including all images
Hi y'all,
I'm developing a quite normal Webbrowser-Webserver-DatabaseServer application with Web-Frontend, Servlets, Jsp, Beans and good old JDBC-Technique. It's kind of a small dictionary.
What I need is a solution for the following problem:
Every item of the dictionary should be made of a html-page which could contain images, too. An administrator builds these pages and uploads them to the webserver. So how can I upload the html-page with all its images automatically?
Some thoughts about it:
- can the html-code be searched for images by java-script, and could they be uploaded automatically then?
- do I need a AWT/Swing frontend?
- or may a httpServlet request the images after getting the html-page?
- packing all the files together into a .zip-File would not be soooo nice, the admin may be dumb.
The same problem I have with downloading a page onto the administrators computer.
well, I think I'm in trouble.. :)
koemI'm not extremely experienced as a JSP/Java programmer but here are my thoughts:
It sounds like your basic requirements are fairly simple, but you are taking the long way around to get there. If it is a dictionary-style app and the administrator is of limited experience then you need to keep things simple.
Why create pages to upload when you can create a template with JSP and insert the text data and the images from a form? Text and link info can be stored in a database and the actual image can be uploaded to a directory or put in the db if you know how. Java Server Pages (O'Reilly) has the image upload code you need.
Am I on track here?
Brad -
ORACLE EXPRESS: build a page with multiple forms linked to one table
hi,
im using oravle application express. APEX
i would like to build a page with multiple forms linked to one table (orders) , the page has 4 from each one with different order_id number (depending on filtering), and if the order is prepared click yes for each order and this 'YES' should be UPDATED AND SAVED to each order number in the same table with the press of one button.
i created all the form as (sql query)
and create one update process
(UPDATE ORDERS
SET TRAY_PREPARED =:P10_TRAY_PREPARED_1
WHERE ORDER_ID =:P10_ORDER_ID_1;
UPDATE ORDERS
SET TRAY_PREPARED =:P10_TRAY_PREPARED_2
WHERE ORDER_ID =:P10_ORDER_ID_2;
UPDATE ORDERS
SET TRAY_PREPARED =:P10_TRAY_PREPARED_3
WHERE ORDER_ID =:P10_ORDER_ID_3;
UPDATE ORDERS
SET TRAY_PREPARED =:P10_TRAY_PREPARED_4
WHERE ORDER_ID =:P10_ORDER_ID_4;
i dont know really if i can do that, but it appear hat it actually saving according to order_id number , but not all the time some time it saved the value as "null".
please guide me what is the correct way to do this.
I READ THIS ONE
http://stackoverflow.com/questions/7877396/apex-creating-a-page-with-multiple-forms-linked-to-multiple-related-tables
BUT IT WAS FOR MULTIPLE INSERT
thanks.Sans,
I am no Apex expert, but with a situation as "complex" as yours, have you thought about creating a VIEW that joins these 7/8 tables, placing an INSTEAD OF trigger on that view to do all the business logic in the database, and base your application on the view?
This is the "thick-database" approach that has been gaining momentum of late. The idea is to put your business logic in the database wherever possible, and let the application (Form, Apex, J2EE, whatever) concentrate on UI issues, -
Problem in downloading an html page that contains images
Hi,
This is surekha
I am facing a problem in downloading an html page that contains images
The file is downloading , but when I access the the downloaded file it displays X marks in the place where images r present....
How can i download a html file along the images it contains
Please help me ...........Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
http://forums.mozillazine.org/viewforum.php?f=25 <br />
You'll need to register and login to be able to post in that forum. -
I have a HTML page with an IFrame. Inside the Iframe there is a table with a tree view
<iframe>
<table>
<tr>
<td>
<treeview id="tv1"></treeview>
</td>
</tr>
</table>
</iframe>
In UIA, i am able to traverse till the tree view but not able to see it.
I have used the TreeWalker.RawViewWalker Field to traverse the node from the desktop Automation.RootElement.
I tried to use AutomationElement.FromPoint method to check whether i am able to get that element. Fortunately i was able to get the automation element.
i tried to get the path to root element from the node element using the TreeWalker.RawViewWalker. I was able to get the parent path to the root element.
But trying the reverse way like navigating from root element to tree node, was not getting the element for me.
Please help me with suggestions or inputs to resolve this issue.Thanks Bernard,
It works fine with JInitiator but not working with
the JPI. For JPI what settings I need to do ??hi TKARIM and Bernard, i am having similar problem even with the Bernard's recommended setup. could you post the webutiljini.htm (i presume you are using config=test) ?
i am actually using jinitiator 1.3.1.28 with Oracle HTTP Server of OAS 10gR2) calling Forms Server 6i (f60cgi). After setting up according to Bernard's recommended setup steps, the java console showed that it loaded the icon jar file when it could not read the form, but it skipped the loading of the icon jar file once it read and started the form. How do we specify in the form to pick up the icon from the jar file instead from a directory ? Or do we need to specify ? Any ideas ?
Thx and Regards
dkklau -
Replace HTML page with an applet
Hello to everybody!
I created a servlet who can manage file upload from an HTML page.
Now I want to replace that HTML page with an applet.
I know that I need to use multipart/form-data , but I have no experience with applet.
HTML page code is:
<html>
<head><title>Upload</title></head>
<body>
<FORM ACTION="http://localhost:8080/examples/servlets/servlet/UploadTest" ENCTYPE="multipart/form-data" METHOD=POST>
What is your name? <INPUT TYPE=TEXT NAME=submitter> <BR>
Which file do you want to upload? <INPUT TYPE=FILE NAME=file> <BR>
<INPUT TYPE=SUBMIT>
</FORM>
</body>
</html>
Any help for "translating" this html page into an applet?
Applet will send, like html page, a string and a file.
Thanks in advance, LiukIf you use something like Apache Http Client you dont have to do any low level implementations.
Also if you are the one who is writing both servlet and applet you dot have to stick to standerd formats. you can develop your own format and write both servlet and applet to handle it. that kind of thing can be done easily even with URLConnection. But if you plan to send large files then URLConnection may not be the right option becouse I have seen many complaining that URLConnection gives OutOfMemoryErrors when uploading large amounts of data. -
Hi there,
I'm trying to send html mail with an image. I'm able to see the image but in another section, at the very bottom of my message. Is it possible to display the image in the main part of my message ?
Here my code :
MimeMultipart multi = new MimeMultipart();
BodyPart messageBodyPart = new MimeBodyPart();
String htmlText = <H1>Test</H1><img src=\"cid:image\">";
messageBodyPart.setContent(htmlText, "text/html");
multi.addBodyPart(messageBodyPart);
MimeBodyPart imagePart = new MimeBodyPart();
DataSource fds = new FileDataSource("C:\\Resources\\Templates\\logo.jpg");
imagePart.setFileName( "geologo.jpg" );
imagePart.setDataHandler(new DataHandler(fds));
imagePart.setHeader("Content-ID","<image>");
multi.addBodyPart(imagePart);
msg.setContent(multi);
Transport.send(msg);How many different e-mail clients have you tested that with?
-
How to call html page with in the flash
I am new to action script, can some one guide me how to call html page with in the flash. lets say i have movie clip having instance name as "news_feed", I need to disply the html page in this news_feed. kindly help me, thanks alot
some one tell me, weather it is possible or not ??
-
Designing Embedded HTML Page with iWeb
I designed a html page with with an embedded html page within it. It all looks fine in iWeb, but when I upload the page to the intenet and I try to view this page it does not come up properly. Although I initially see the page come up as I designed it (for a fraction of a second) it then disapears and I only see the page I embedded on my page.
I added the following codes in HTML Snippet:
<object data=http://www.mls.ca/PropertyResults.aspx?&vs=Residential&ret=300&curPage=PropertySearch.a spx&sts=0-0&beds=0-0&baths=0-0&bt=1%2c16%2c17&atsg=%2c&ci=cartierville&pro=4&mp= 500000-0-0&mrt=0-0-4&trt=2&of=1&ps=10&o=D width="600" height="400"> <embed src=http://www.mls.ca/PropertyResults.aspx?&vs=Residential&ret=300&curPage=PropertySearch.a spx&sts=0-0&beds=0-0&baths=0-0&bt=1%2c16%2c17&atsg=%2c&ci=cartierville&pro=4&mp= 500000-0-0&mrt=0-0-4&trt=2&of=1&ps=10&o=D width="600" height="400"> </embed> Embedd a web page within another web page. </object>
<object data=http://www.mls.ca width="600" height="400"> <embed src=http://www.mls.ca width="600" height="400"> </embed> Embedd a web page within another web page. </object>
As I said, the above pages come up fine in iWeb but not when I search them with Sagari.
Can someone please help with this. Thanks, PadanoThis is the proper code :
<iframe src="http://url.to.file.html" frameborder="0" width="500" height="500" scrolling="no" allowTransparency="true"></iframe>
You can also use this :
<div style="width: 650px; height: 650px">
<script language="JavaScript">
location.replace('../../../your files.html');
</script>
</div>
Source : iframe alternative in the HTML Snippet
And on this page you can see how to use <object> for html, png and jpg files :
Embed content with the <object> HTML element -
Displaying html page with in the applet
I want to open an html page in the applet. If i use showDocument() of applet, it opens the html page in the browser, but i want to open the html page with in the applet(i.e., applet should display the html page). Is there any way which i can do the above thing.
Thanks in advanceLook at this sample:
import java.awt.*;
import java.net.*;
import java.io.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.text.*;
public class BrwsA extends JApplet
JPanel jpa = new JPanel();
JEditorPane jed = new JEditorPane();
JScrollPane jsp = new JScrollPane(jpa);
public BrwsA()
jpa.setLayout(new BorderLayout());
jpa.add(jed);
jpa.setPreferredSize(new Dimension(800,1000));
jed.setEditable(false);
jed.setContentType("text/html");
jed.getEditorKit().createDefaultDocument();
setContentPane(jsp);
public void init()
try
URL url = new URL(getCodeBase(),"test.html");
jed.setPage(url);
catch(MalformedURLException e)
catch(IOException e)
}Noah -
Opening html page with in the applet
I want to open an html page in the applet. If i use showDocument() of applet, it opens the html page in the browser, but i want to open the html page with in the applet(i.e., applet should display the html page). Is there any way which i can do the above thing.
Thanks in advanceUse a JEditorPane to display HTML (supports version 3.2 though)
check API (that's for JDK 1.4.1 so check for version you use)
http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JEditorPane.html
Sky -
Rewrite a complete HTML page with all result inside with JSP
i have generate a HTML page with JSP. Then by an action on a menu on the left frame,i have to rewrite this page with the data already seized, and more code inside(i.e complete the page).
How can i do ?Use JavaScript to tell the other frame to reload or to go to another location. Generate the JavaScript if you're processing a request of the menu...
Maybe you are looking for
-
Daylight Savings Time Changes for 2007
Could Oracle have made it any more confusing to update database server software for the DST changes starting in March? One document I read points to at least a dozen other documents, some of which are actually written in English. Has anyone been able
-
Help! Where did it go!?
I was working on a quicktime file (2 hr movie)....accidently resaved it as a much shorter clip...now the whole file 15gb of the movie is lost and only 2 minutes of it is showing up...How can I recover the 15 gb whole movie!?!? It still says the quick
-
Exporting PDF to Excele 'Sign in errors'
Trying to export a pdf file to excel. I am signed in and subscribed however it keeps coming up with a 'sign in error' message?
-
Return of exciseable goods from assembly line
Scenario: Exciseable plant (production) In plant1 I received x quantity of raw material for production of a material. On goods receipt and excise invoice posting & updation of RG 23 A&C registers, I sent the material to the production line. But y qua
-
Updating WebLogic server 7.0 license using UpdateLicense.cmd
Hi, When carrying out the above procedure do I have to do a re-start of the app server afterwards in order for the new merged file to be picked up correctly with the new expiration date? Thanks, -Ken