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.. :)
koem
I'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
Similar Messages
-
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. -
Firefox downloads html page instead of opening it
I have an Apache web server (2.2.24) on a Red Hat Linux server (RHEL 5.8). On the web site I have a link to an html page that is not in the web directory, but is on the file system. When I click on the link to go to the web page, Firefox will not render the html page within the URL of the web site--it instead wants to download the html page before it displays the html. So, instead of getting http://mywebsite.com/help.html I get file:///C:Users/myuser/AppData/Local/Temp/Help.html. In internet explorer, the web page opens just fine: http://mywebsite.com/help.html--it does not try and download the file
Our httpd.conf file has DefaultType text/plain
The web page in question has a header of:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (X11; I; HP-UX B.10.20 9000/879) [Netscape]">
And yet Firefox still wants to download the page instead of render it directly in the browser :-( -
Downloading HTML page blocked by site
Hello,
I am attempting to download the html page at the following url.
http://www.rcsb.org/pdb/results.do?&startAt=30&endAt=39&inputQuickSearch=protein%20kinase
However, when I do so with my java code.
URLConnection urlConn = theURL.openConnection(); //get the connection
BufferedReader myStream = new BufferedReader(new InputStreamReader(urlConn.getInputStream())); //get the stream connection
String oneLine = "";
try{ while ( (oneLine = myStream.readLine()) != null) { theHTML.append(oneLine + "\n"); } }
catch(IOException e) { throw e; } //throw the exception to the invocation
myStream.close();I actually get a response with a page saying my "browser" isn't compatable.
Is there any way around this? Is there anyway I can download the information from the page like I would in a browser?
Cheers,
ChrisAny idea of the value I would set it to?No, but if you go here http://www.google.com/search?hl=en&lr=&q=http+header&btnG=Search you'll see some websites that will show you what your browser is sending. You should be good if you mimic the relevant headers from a browser that works.
This would be done in a fashion similar to the
example at
http://javaalmanac.com/egs/java.net/Post.html right?
I didn't see them setting any request headers there. -
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
> -
Convert html page to jpeg image
How can i convet an html page to a jpeg image .I mean any web page needs to be converted as an image could any one plz provide me the sample code....
Hi!,
I really need to do that. Which example did you try?,
did you got it?
Thank you in advance.
kind regardsLobuss i am just a bit curious to know as to where you stumbled across this thread? -
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 -
Download doesn't include all activities
Downloading transaction history, selecting "all activities to csv file". It's not including "Payment from..." activities -- any idea why? (This used to work...)
I have been expericencing the same problems for 3 days now. Went I try and download all acticity all i get is my bond release and bond taken payments. NO customers name address so I can send them out what I need to. This needs to be sorted asap
-
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...
-
Export shrinks entire html page, including images!
I've just completed my first page in fireworks. When I export
the png to html (with the associated sliced images) the entire site
has been scaled down by about two thirds. The page width in
fireworks is 940 pixels and yet the exported html file has a table
width of 380 pixels. All the images are scaled down too.
Any ideas????
Thanks for your help!quote:
Originally posted by:
dynera
I've just completed my first page in fireworks. When I export
the png to html (with the associated sliced images) the entire site
has been scaled down by about two thirds. The page width in
fireworks is 940 pixels and yet the exported html file has a table
width of 380 pixels. All the images are scaled down too.
Any ideas????
Thanks for your help!
Oh...man...there's a setting somewhere that is probably doing
this. I don't remember what it is, though. Hang on, I'll look and
see if I can find something. Probably before I do, though, someone
who
does know exactly what it is will post the right
answer. -
Not showing image in basic copy gif image icon and place on html page
Trying to do a basic copy gif image icon and place it on a basic html page.
The image shows up in my local page and shows on remote side but when I go to view in browser it does not show as a image. It shows the border but no image.
The directions were (working with windows xp and IE8)
Download the image to your C:\temp folder.
4. Copy the gif file from your C:\temp folder and paste it in the same folder where your .html or .asp file is.
I copied the image with right click save as in many different areas of computer. I even put on desktop.
I add image and it shows on the site I am working in but when putting to remote side it does not view as an image on the browser.
I have cleared cashe as well as pressed cntrl/refresh and still nothing.
Other images work and show.
on-line-vacations.com
Thanks!Basic assumptions:
You have Defined a site.
All files reside within the defined site (including image files)
All files use the appropriate file extensions, for example, image.gif
You have saved and uploaded all site files to your server.
You are EXACTLY naming the source image (no errant capital letters) in the link.
If your other images are linking properly and showing, delete this image and insert it again (or re-link it to the image file within your site structure).
Z -
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? -
Ingest HTML file and ALL of it's contents
In hopes of maintaining ALL files in the database, is there a way to ingest an HTML file and all of the corresponding content (gif, jpeg, wav, mp3, mpeg, etc) displayed or referenced by the HTML page.
All the content referenced by the HTML is in the same directory as the HTML file itself.Not sure what you mean, the question is there:
"...is there a way to ingest an HTML file and all of the corresponding content (gif, jpeg, wav, mp3, mpeg, etc) displayed or referenced by the HTML page"
I'd like to be able to ingest ALL the content on an HTML page (ie. the images displayed and any audio/video referenced) and when the HTML page is referenced from the database, the images will be displayed on the page and if a user were to click on any audio/video link, the media will be served to the user.
Apparently, prior versions of the PL/SQL gateway supported this type of functionality (at least the images part), but has since been deprecated.
http://download-east.oracle.com/docs/cd/A97335_02/apps.102/a90099/feature.htm#1007028 -
E-mail looses all images if mail server doesn't accept outgoing email...
I open some web page in Safari, press Command+i, new email message is created and all web page content is inserted in the email message, including all images. Nice! I enter email address and send email.
If for some reason outgling mailserver doesn't accept my outgoing email, the same email is shown again to let me choose another outgoing mail server.
BUT - at this time all images in the email body are gone! Instead of the images I see blue rectangles with the white question marks on them. And if I proceed and send such email via another email server, recipients get email from me without pictures embedded in the email.
Can Apple fix this bug? It's really annoying, because quite often outgoing mail server of my ISP is not accepting my outgoing emails and I cannot resend email through another mail server, because images are already lost - I have to delete email, switch back to Safari, again Command+i, again enter email address and then change email account and then try to send again...Posting this here is a good idea if you’re looking for possible solutions/workarounds, but if all you want is to let Apple know so that it’s fixed, you’d better do it in one of the following places:
http://www.apple.com/macosx/feedback/
http://developer.apple.com/bugreporter/ -
Displaying content on multiple html pages
I’m building a basic website for a business/charity I
work in. I’m no pro so all my pages and templates are written
in HTML. For convenience it would be nice to have sustain bits of
info appear throughout the website on different pages. As I
understand the best way to do this is to create a RSS feed and then
have the relevant web pages display the feed.
However I’ve been reading up on how to do this and I am
finding it very complicated and am not even sure if it can be done
with an HTML page. All the examples I have come across seem to be
done in PHP. I’m not even sure what PHP is.
My question therefore is: Firstly, is RSS, what I need, or is
there a simpler way of having bits of text appear on multiple web
pages? And, if so, can I have RSS feeds display in an HTML? And,
again, if so, can someone point me in the right direction to do
this in the most simple but yet still efficient/reliable way?
Thank You
Ps, Merry Christmas and Happy New Year> Firstly, the web page displaying the SSI code seems to
require a .shtml
> extension, is this correct?
Yes. It is true *unless* the host enables server parsing of
all extensions.
> Secondly, I don?t seem to have to change the SSI source
file?s extension
> from
> .html to .ssi. And in fact I think it will make updating
the website
> easier for
> my colleagues if I keep the extension to .html as, when
I change the file
> extension to .ssi, Dreamweaver?s properties inspector
and CSS panels
> become
> inactive meaning that the only way to edit the file is
going state into
> the
> code rather than using a point and click interface. Is
there any reason
> the SSI
> source file should not keep an .html extension.
Name the file being included anything you want. It doesn't
matter to its
functionality as an included file.
> Is there any open source or low cost software out there
that would make it
> easier for my colleagues to update the website?s SSI
files and still be
> able to
> format the text with the same CSS fill the whole website
uses. Is this
> what the
> Contribute program in Macromedia Studio does?
A properly constructed include file should only contain
references to CSS
rules specified in the parent page. That being the case, if
you are editing
the include file directly, you cannot style the text unless
you are doing it
in Dreamweaver, or unless you make reference to the existing
styles
specified in the parent page.
Contribute does lots more than what you ask. Go to Adobe's
site and read
about it.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Chopo^2" <[email protected]> wrote in
message
news:[email protected]...
> Ok, cool, thanks for all the help, I've even managed to
get the text in
> the
> .ssi document to obey the same CSS rules as the rest of
my web pages. Just
> a
> few last question concerning extensions and user
friendliness before I?m
> perfectly comfortable with using SSI.
>
> Firstly, the web page displaying the SSI code seems to
require a .shtml
> extension, is this correct?
>
> Secondly, I don?t seem to have to change the SSI source
file?s extension
> from
> .html to .ssi. And in fact I think it will make updating
the website
> easier for
> my colleagues if I keep the extension to .html as, when
I change the file
> extension to .ssi, Dreamweaver?s properties inspector
and CSS panels
> become
> inactive meaning that the only way to edit the file is
going state into
> the
> code rather than using a point and click interface. Is
there any reason
> the SSI
> source file should not keep an .html extension.
>
> Is there any open source or low cost software out there
that would make it
> easier for my colleagues to update the website?s SSI
files and still be
> able to
> format the text with the same CSS fill the whole website
uses. Is this
> what the
> Contribute program in Macromedia Studio does?
>
> Thanks a lot everyone,
>
> Chopo
>
Maybe you are looking for
-
[JS][CS3] Getting Page Number
Hi. I need to find the page number of the page containing a frame. Normally I would use "myFrame.parent.name" to find the page number. However, I cannot use this method on an inline graphic. What I get returned is the story, which has no page number
-
Deploying with Workshop to a WLI cluster
Hello! I have a WLI 8.1 cluster running ok on server enviroment. My WLS Workshop is installed on my workstation were Workflow developing will be done. I need Workshop to be able to deploy to the cluster and not to a particular managed server, like th
-
SAP GUI - SAP Business client - Portal Comaprison
Hi , We would like to know what are the advantages and disadvantages of NW Business client over portal and normal SAP GUI in all the aspects such as development,performance . what is the general/rule of thumb difference between development for SAP BC
-
Image quality of iDVD material
I use AfterEffects, as well as Final Cut Express, to create content. Recently I put together a program that was all AE, 24 fps, and output as a 16 bit per channel animation 'movie', ie high color resolution. When this program is played directly via Q
-
Hi All, My requirement is in make to order scenario the customer places the order according to in house production and shipping,transportation days system will propose a availability date,and finally the production people will post the stock in