Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / February 2005

Tip: Looking for answers? Try searching our database.

Is this possible?

Thread view: 
Cornelis Verhoef - 24 Feb 2005 23:55 GMT
Is it possible with java to display html pages in a table.

This is what I'm looking for. I need to randomly (onload) display html pages
in a table. However it needs to get the html pages from a derectory. So for
instance if I have a cell named "sale" it needs to get a random html page,
picture and text, from the directory "sale" and put in the cell.

It needs to do this for several catogories.

Would I be pushing my luck if I can also have a search button that does
this? Like if somebody searches for "rubber ducky" it would go through my
site, and displays all the HTML pages with rubber ducky in seperate
cells....

Am I asking for to much?
Ryan Stewart - 25 Feb 2005 01:11 GMT
> Is it possible with java to display html pages in a table.
>
[quoted text clipped - 10 lines]
>
> Am I asking for to much?
Java really has nothing directly to do with HTML except that you can use a tag
to embed an applet in an HTML page. HTML is typically produced by JSPs and, to a
lesser extent, servlets, which are Java technologies. However there is
absolutely no boundary to what HTML you can produce with them. As for
dynamically including content in a page, that's exactly what the aforementioned
technologies are for. You may find it a bit tricky to randomly select some HTML
pages that you haven't explicitly named anywhere, but you can use your
imagination. On a side note, consider switching to a tableless layout. That's
all I'll say since this isn't an HTML group :)
Thomas G. Marshall - 26 Feb 2005 18:37 GMT
Ryan Stewart coughed up:
>> Is it possible with java to display html pages in a table.
>>
[quoted text clipped - 10 lines]
> Java really has nothing directly to do with HTML except that you can
> use a tag to embed an applet in an HTML page.

Huh?  No, the Document types within java all allow types of text/html.

Usually via setContentType("text/html").  Usually by using a JEditorPane
object.

And those document types can appear anywhere any other display object can,
even in the middle of a table.

> HTML is typically
> produced by JSPs and, to a lesser extent, servlets, which are Java
[quoted text clipped - 5 lines]
> imagination. On a side note, consider switching to a tableless
> layout. That's all I'll say since this isn't an HTML group :)

Signature

"It's easier to be terrified by an enemy you admire."
-Thufir Hawat, Mentat and Master of Assassins to House Atreides



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.