Thank you very much. A very good plan, I think.

--- Mark Benussi <[EMAIL PROTECTED]> wrote:
> 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:[EMAIL PROTECTED] 
> 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 <[EMAIL PROTECTED]> 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:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> "You can lead a horse to water but you cannot make
> it float on its back."
> ~Dakota Jack~
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to