Re: Generate Website(HTML) thumbnails on the fly



aussie wrote:
Our team needs to have a on the fly website thumbnail. I have found
few scripts for php and .net but nothing for java. Preferably I would
like to set up a servlet that can take url as a parameter and return a
thumbnail image of that website. The only lead I have found on the web
was to use JEditorPane(URL) and then invoking the paint method to a
BufferedImage. Any Java GURUs out there who have an idea or an example
on how to do this?

If you are writing servlets then Swing is not relevant.

Write a servlet to read the image and pump a thumnail through response.out, then put an <img> tag in your JSP with that servlet and the target image as its URL:

<img src="Display?image=foo.jpg" />

GIYF - that's how I found the idiom.

-- Lew
.



Relevant Pages

  • Re: HTML "scrape" causes loss of query string in URL
    ... >> in PHP with several PHP scripts interacting with one Java servlet, ... >> which interacted with several Java classes. ... > process to go from PHP to JSP. ...
    (comp.lang.java.help)
  • Re: Generate Website(HTML) thumbnails on the fly
    ... few scripts for php and .net but nothing for java. ... like to set up a servlet that can take url as a parameter and return a ... Any Java GURUs out there who have an idea or an example ...
    (comp.lang.java.help)
  • Re: Client-Server to Web App
    ... it possible to keep a connection open to the C++ server between ... The downside is if the C/C++ server side piece is not thread safe. ... Below is a Java ... If you called this class from a standard Java Servlet, for instance, since ...
    (borland.public.delphi.non-technical)
  • Re: Velocity
    ... > If he asks me to go deep into java, there is something I need to know. ... suggest "Java Servlet Programming" by Jason Hunter, ... Finally, if you're going to do any Struts programming at all, ... you should seriously consider installing an IDE such as Eclipse ...
    (comp.lang.java.programmer)
  • Re: =?ISO-8859-1?Q?Kompatibilit=E4t_von_Konzepten_von_PH?= =?ISO-8859-1?Q?P_zu_Java?
    ... Hab ich schon hinter mir, hatte ehrlich gesagt kein Problem mit dem Java Teil, aber dafür umso mehr mit dem Veröffentlichen beim Tomcat. ... Ab sofort sollte es doch etwas schneller mit den Servlet spezifischen Sachen gehen, hab mir ein begleitendes Buch gekauft "Das J2EE Codebook" ... genau wie bei PHP ein Gemisch aus PHP und HTML. ... Auf Basis des Framework ein konkretes Projekt im Genre der klassischen Aufbau Online Browser Games. ...
    (de.comp.lang.java)