You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dola Woolfe <do...@yahoo.com> on 2005/04/29 09:50:12 UTC

Dynamic to static conversion

Hi,

A friend of mine has asked me to help him build an
"eBay store". So I need to build a bunch of static
pages.

I think that it is still a good idea to do so
programmatically (the only way I know how to do it!)
through jsp. Do you agree?

How would I then convert pseudo-dynamic pages to
static in an automated fashion?

Or if you have any other ideas or experiences, please
share!

Many thanks in advance,

Dola

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Dynamic to static conversion [OT]

Posted by Tim Funk <fu...@joedog.org>.
Build the site with jsp (or whatever) and then use wget --mirror (or some 
similar command) to spider the site as static pages.

-Tim

Dola Woolfe wrote:
> Hi,
> 
> A friend of mine has asked me to help him build an
> "eBay store". So I need to build a bunch of static
> pages.
> 
> I think that it is still a good idea to do so
> programmatically (the only way I know how to do it!)
> through jsp. Do you agree?
> 
> How would I then convert pseudo-dynamic pages to
> static in an automated fashion?
> 
> Or if you have any other ideas or experiences, please
> share!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Dynamic to static conversion

Posted by Mark Benussi <ma...@hotmail.com>.
Hi Dola,

A strategy you could employ is the following.

All data for your items can be held in a persistence store of some kind (DB,
XML). For each product build an XML representation and then use XSLT to
convert each item to a html file. Then when requesting to view an item you
can build up a Struts template (Or whatever technology your prefer ;o) ) and
insert the static file, wrapping round it all your dynamics (Shopping cart,
account details etc).

When ever an item is updated you can simply redo the translation. An added
benefit is that if you wish to search the content you have static html files
you can search using Lucene (Or whatever technology your prefer ;o) ) and
you know you are only searching the content, not any of the 'wrapping' of a
page.

I have used this strategy for my sites and it is very inexpensive in so far
as the html for the item is done for you. No runtime presentation logic is
required.

-----Original Message-----
From: Dakota Jack [mailto:dakota.jack@gmail.com] 
Sent: 29 April 2005 14:48
To: Tomcat Users List
Subject: Re: Dynamic to static conversion

There is no reason I can think of to build static pages dynamically. 
I know what you are asying, but it makes little sense, I think. 
However, if you want to get the static equivalent of a dynamic page,
all you have to do is to build a little application browser which gets
the output of your pages and saves them.  You can get the code for
doing this pretty much from the COS message classes.

Jack

On 4/29/05, Dola Woolfe <do...@yahoo.com> wrote:
> Hi,
> 
> A friend of mine has asked me to help him build an
> "eBay store". So I need to build a bunch of static
> pages.
> 
> I think that it is still a good idea to do so
> programmatically (the only way I know how to do it!)
> through jsp. Do you agree?
> 
> How would I then convert pseudo-dynamic pages to
> static in an automated fashion?
> 
> Or if you have any other ideas or experiences, please
> share!
> 
> Many thanks in advance,
> 
> Dola
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Dynamic to static conversion

Posted by Dakota Jack <da...@gmail.com>.
There is no reason I can think of to build static pages dynamically. 
I know what you are asying, but it makes little sense, I think. 
However, if you want to get the static equivalent of a dynamic page,
all you have to do is to build a little application browser which gets
the output of your pages and saves them.  You can get the code for
doing this pretty much from the COS message classes.

Jack

On 4/29/05, Dola Woolfe <do...@yahoo.com> wrote:
> Hi,
> 
> A friend of mine has asked me to help him build an
> "eBay store". So I need to build a bunch of static
> pages.
> 
> I think that it is still a good idea to do so
> programmatically (the only way I know how to do it!)
> through jsp. Do you agree?
> 
> How would I then convert pseudo-dynamic pages to
> static in an automated fashion?
> 
> Or if you have any other ideas or experiences, please
> share!
> 
> Many thanks in advance,
> 
> Dola
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org