Re: XSLT Struts

2003-01-08 Thread V. Cekvenich


ROSSEL Olivier wrote:

XML in files, and not in DB is fine for small site, or if you do not 
have a lot of consent turn over.

But it is much easier to operate a large site, whit a lot of 
approval, 
editing, etc. and complex custom layouts (tiles) if you store XML 
content in a db, IMO. Ex: flag content as approved. Count number of 
clicks on it. Display content to a role. etc. is trivial with 
a DB XML.


Well, the question is to know what change most.
The XML content itself or the metadata around it.

The advantage of DB is the notion of relations.
The drawback is the cache management.
If the DB allows to retrieve timestamps or things like that so you can
take decisions about cache, it's fine.

Filesystem can be a VERY efficient database, when
properly used.

My main problem with XML databases is the poor load capability.
And RDBMS with XML extensions have too poor functionnalities (at
least Oracle 9iR2)



I do not use it as such, I just store XML as text (or even blob) in a field.
And date/time created is there. As is user that last modified, etc.
Works nice, and in production (and basicPortal is Apache license).

.V




This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XSLT Struts

2003-01-08 Thread ROSSEL Olivier
> XML in files, and not in DB is fine for small site, or if you do not 
> have a lot of consent turn over.
> 
> But it is much easier to operate a large site, whit a lot of 
> approval, 
> editing, etc. and complex custom layouts (tiles) if you store XML 
> content in a db, IMO. Ex: flag content as approved. Count number of 
> clicks on it. Display content to a role. etc. is trivial with 
> a DB XML.

Well, the question is to know what change most.
The XML content itself or the metadata around it.

The advantage of DB is the notion of relations.
The drawback is the cache management.
If the DB allows to retrieve timestamps or things like that so you can
take decisions about cache, it's fine.

Filesystem can be a VERY efficient database, when
properly used.

My main problem with XML databases is the poor load capability.
And RDBMS with XML extensions have too poor functionnalities (at
least Oracle 9iR2)

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XSLT Struts

2003-01-08 Thread V. Cekvenich
XML in files, and not in DB is fine for small site, or if you do not 
have a lot of consent turn over.

But it is much easier to operate a large site, whit a lot of approval, 
editing, etc. and complex custom layouts (tiles) if you store XML 
content in a db, IMO. Ex: flag content as approved. Count number of 
clicks on it. Display content to a role. etc. is trivial with a DB XML.

.V

Johan wrote:
ROSSEL Olivier wrote:


That would be the past IMO. Apache HTTP and Cocon and similar are PITA.

... you can publish static text from Struts like this:
- Store XML content in a db field. (from user input or RSS feed).
- XSLT it and cache HTML cache in a db field.
Or many variations such as Styxx browser side.

You can now approve it, secure it, WIKI it, RSS feed it, count 
clicks, find matching advertisements to display, display it in a 
struts tile that users can move around like my.netscape.com.

I would say it is a good practice to use Struts with XML for delivery 
of static and dynamic content.



Cocoon is great if your input is already XML.
Cocoon is a fully-XML framework.
And its cache management can't be beat.



The problem I'm facing is that I don't want to put xml documents inside 
a database. This because the fact that there are a lot of documents in 
various formats. So we want to convert those documents to XML. And use 
cocoon to publish those documents. Plus those documents are written by 
people using their average wordprocessor or in the futere a 
wordprocessor which can do XML. We don't want them to feed a Database.

But another part of the website is an application which will be written 
with struts. Now I don't think it is a solution to XML the output from 
struts (I just understant the struts-tag libraries and the struts-layout 
library, I don't want to learn XSP/XForms etc yet) and render it with 
cocoon.

What is wrong with using struts and cocoon mixed together. For me it's 
just a few extra steps to forward an struts action to JSP page that 
produces XML output which will be forwarded to cocoon. Especially when 
it is an form where users have to provide input which needs to be 
processed by a struts action.

On the other side I think it's worthwile when a result of a struts 
action is a XML document, is to render that document with cocoon. So 
levering the power of both frameworks.

Question is if it is possible to render part's of a page with struts and 
 another part with cocoon which are combined within a tiles-definition.

Johan
---
Nilling Software Design
Postbus 43
2280 AA  Rijswijk ZH
w: http://www.nilling.nl
e: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XSLT Struts

2003-01-08 Thread ROSSEL Olivier
> >>That would be the past IMO. Apache HTTP and Cocon and similar 
> >>are PITA.
> >>
> >>... you can publish static text from Struts like this:
> >>- Store XML content in a db field. (from user input or RSS feed).
> >>- XSLT it and cache HTML cache in a db field.
> >>Or many variations such as Styxx browser side.
> >>
> >>You can now approve it, secure it, WIKI it, RSS feed it, 
> >>count clicks, 
> >>find matching advertisements to display, display it in a 
> struts tile 
> >>that users can move around like my.netscape.com.
> >>
> >>I would say it is a good practice to use Struts with XML for 
> >>delivery of 
> >>static and dynamic content.
> > 
> > 
> > Cocoon is great if your input is already XML.
> > Cocoon is a fully-XML framework.
> > And its cache management can't be beat.
> > 
> 
> The problem I'm facing is that I don't want to put xml 
> documents inside 
> a database. This because the fact that there are a lot of 
> documents in 
> various formats. So we want to convert those documents to 
> XML. And use 
> cocoon to publish those documents. Plus those documents are 
> written by 
> people using their average wordprocessor or in the futere a 
> wordprocessor which can do XML. We don't want them to feed a Database.
> 
> But another part of the website is an application which will 
> be written 
> with struts. Now I don't think it is a solution to XML the 
> output from 
> struts (I just understant the struts-tag libraries and the 
> struts-layout 
> library, I don't want to learn XSP/XForms etc yet) and render it with 
> cocoon.
> 
> What is wrong with using struts and cocoon mixed together. 
> For me it's 
> just a few extra steps to forward an struts action to JSP page that 
> produces XML output which will be forwarded to cocoon. 
> Especially when 
> it is an form where users have to provide input which needs to be 
> processed by a struts action.
> 
> On the other side I think it's worthwile when a result of a struts 
> action is a XML document, is to render that document with cocoon. So 
> levering the power of both frameworks.
> 
> Question is if it is possible to render part's of a page with 
> struts and 
>   another part with cocoon which are combined within a 
> tiles-definition.

I am not sure I get exactly your problem.
First of all, you can share the same webapp between Struts and Cocoon.
Struts could handle all front-end URLs, the controller part of the job,
the model view and even some of the view job.
And the XML part of the job (rendering XML, aggregating datas...) can be
done by Cocoon.

Simply say that URLs beginning with cocoon/* are handled by Cocoon servlet.

Then you use those URL patterns whenever you need them.

For example you can do:

Struts must display a HTML+formatted XML page for URL foobar.do
It does it with a JSP that displays the HTML part and makes an include 
for the result of request to /cocoon/foobar.2html which will be handled 
by Cocoon.

Or you can do the opposite (that's what I would do, cause I know nothing
at JSP including the result of a HTTP request).
So the main URL would be handled by Cocoon (let's say /cocoon/foobar.do)
and it would aggregate two generators: the static HTML part + the result
of request to /cocoon/foobar2.html. you could then make a XSL to format 
both parts together and it's done.

Is it clear?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XSLT Struts

2003-01-08 Thread Johan
ROSSEL Olivier wrote:

That would be the past IMO. Apache HTTP and Cocon and similar 
are PITA.

... you can publish static text from Struts like this:
- Store XML content in a db field. (from user input or RSS feed).
- XSLT it and cache HTML cache in a db field.
Or many variations such as Styxx browser side.

You can now approve it, secure it, WIKI it, RSS feed it, 
count clicks, 
find matching advertisements to display, display it in a struts tile 
that users can move around like my.netscape.com.

I would say it is a good practice to use Struts with XML for 
delivery of 
static and dynamic content.


Cocoon is great if your input is already XML.
Cocoon is a fully-XML framework.
And its cache management can't be beat.



The problem I'm facing is that I don't want to put xml documents inside 
a database. This because the fact that there are a lot of documents in 
various formats. So we want to convert those documents to XML. And use 
cocoon to publish those documents. Plus those documents are written by 
people using their average wordprocessor or in the futere a 
wordprocessor which can do XML. We don't want them to feed a Database.

But another part of the website is an application which will be written 
with struts. Now I don't think it is a solution to XML the output from 
struts (I just understant the struts-tag libraries and the struts-layout 
library, I don't want to learn XSP/XForms etc yet) and render it with 
cocoon.

What is wrong with using struts and cocoon mixed together. For me it's 
just a few extra steps to forward an struts action to JSP page that 
produces XML output which will be forwarded to cocoon. Especially when 
it is an form where users have to provide input which needs to be 
processed by a struts action.

On the other side I think it's worthwile when a result of a struts 
action is a XML document, is to render that document with cocoon. So 
levering the power of both frameworks.

Question is if it is possible to render part's of a page with struts and 
 another part with cocoon which are combined within a tiles-definition.

Johan
---
Nilling Software Design
Postbus 43
2280 AA  Rijswijk ZH
w: http://www.nilling.nl
e: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Cocoon and Struts [Was: RE: XSLT Struts]

2003-01-08 Thread ROSSEL Olivier
> I Confused when I read you email AND an article about XMLForms from
> http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormsStruts !!
> 
> Can we replace all the struts functionality with cocoon? Is 
> cocoon a MVC
> frame work too? I thought cocoon works on presentation layer only. 

Cocoon is not a concurrent of Strutsxx for example.
Cocoon is a framework which provides several SAX components (
XML generators, XML transformers, serializers) + a sitemap
processor that dynamically  bind URLs
and pipelines. A pipeline is a small code (in fact an XML
description) that say which Cocoon components you chain
in order to create the document the user requested via this URL.

The problem of Cocoon (at first) is that you bind too tightly
URLs and pipelines (the same URL pattern == the same pipeline). This
is exactly the behaviour you want for publishing reasons.
But it is not very flexible.

If you design a web site "MVC-style", you use a Struts-like strategy
and use some "front-end" URLs and dynamically bind them with "back-end" 
URLs.

> By the way, can you explain this line:
> 
> ... you almost never write Java code + its URL sitemap system

The basic concept of Cocoon is "give me an URL, i will build a pipeline,
execute it and sent back the resulting document".
All the internal data are SAX events. So you manage only XML streams.

You never write Java code, cause the pipeline is always made of
generic Cocoon components (DBGenerators..., XSLTransformers...) so you spend
your time configuring them for your current need, but you (rarely) 
write a Cocoon component.

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Cocoon and Struts [Was: RE: XSLT Struts]

2003-01-08 Thread Alireza Fattahi
I Confused when I read you email AND an article about XMLForms from
http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormsStruts !!

Can we replace all the struts functionality with cocoon? Is cocoon a MVC
frame work too? I thought cocoon works on presentation layer only. 

By the way, can you explain this line:

... you almost never write Java code + its URL sitemap system


-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 1:16 PM
To: 'Struts Users Mailing List'
Subject: Cocoon and Struts [Was: RE: XSLT Struts]

> I just started developing webapplications with struts. It's great for 
> the application-part of the website, but for the publishing of static 
> text I don't see much advantage using struts. For that I see a great 
> advantage in using cocoon.
> 
> Now I didn't use cocoon yet. But for me the ideal combination 
> would be 
> that I could insert into a tiles-definition a jsp-page, a 
> struts-action, 
> a tiles-definition or a xml page. The first three would be handled by 
> struts and the xml-page by cocoon.
> 
> Have anyone experience with this kind of use with cocoon and struts?

Well, I use both products.
And love them both.

Cocoon has some great features (mostly that you almost never write
Java code + its URL sitemap system). Its major drawback is that you must be 
skilled in XSLT and comment your code (do it!). The other drawback I see is
that
design patterns with Cocoon are hard to understand at first. Your
first applications are a mess where logic is hidden in different places.
When skill comes, you see the big power of each component of the system
and see some design patterns. These design patterns are mostly the mantra
"be MVC, be MVC", so if you use Struts a lot, you won't be lost (believe me,
from a PHP programmer point of view, it was harder to understand :-)

Struts provides very efficient design patterns for web dev + simple and
(VERY!) efficient
taglibs. My main concern are for peripherical things such as URL rewriting, 
cache management, genericity (with Cocoon, you use Cocoon components all the
time, 
with Struts, you use jEdit all the time :-), database access, aggregation of
datasources
(my god, Cocoon is so good at that!!!), HTML/PDF output.

For info, my company provides an full IDE for Cocoon (data model made into
Netbeans +
XSL for HTML made in dreamweaver + autogeneration of forms for
add/edit/delete entities
of the data model :-).

Now, I stop this OT about Cocoon, contact me privately for more infos.
Or (as usual) mail to [EMAIL PROTECTED] ...

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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

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




Cocoon and Struts [Was: RE: XSLT Struts]

2003-01-08 Thread ROSSEL Olivier
> I just started developing webapplications with struts. It's great for 
> the application-part of the website, but for the publishing of static 
> text I don't see much advantage using struts. For that I see a great 
> advantage in using cocoon.
> 
> Now I didn't use cocoon yet. But for me the ideal combination 
> would be 
> that I could insert into a tiles-definition a jsp-page, a 
> struts-action, 
> a tiles-definition or a xml page. The first three would be handled by 
> struts and the xml-page by cocoon.
> 
> Have anyone experience with this kind of use with cocoon and struts?

Well, I use both products.
And love them both.

Cocoon has some great features (mostly that you almost never write
Java code + its URL sitemap system). Its major drawback is that you must be 
skilled in XSLT and comment your code (do it!). The other drawback I see is
that
design patterns with Cocoon are hard to understand at first. Your
first applications are a mess where logic is hidden in different places.
When skill comes, you see the big power of each component of the system
and see some design patterns. These design patterns are mostly the mantra
"be MVC, be MVC", so if you use Struts a lot, you won't be lost (believe me,
from a PHP programmer point of view, it was harder to understand :-)

Struts provides very efficient design patterns for web dev + simple and
(VERY!) efficient
taglibs. My main concern are for peripherical things such as URL rewriting, 
cache management, genericity (with Cocoon, you use Cocoon components all the
time, 
with Struts, you use jEdit all the time :-), database access, aggregation of
datasources
(my god, Cocoon is so good at that!!!), HTML/PDF output.

For info, my company provides an full IDE for Cocoon (data model made into
Netbeans +
XSL for HTML made in dreamweaver + autogeneration of forms for
add/edit/delete entities
of the data model :-).

Now, I stop this OT about Cocoon, contact me privately for more infos.
Or (as usual) mail to [EMAIL PROTECTED] ...

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XSLT Struts

2003-01-08 Thread Fabrice . Bocquillon
there is a missing ".ZIP" at the end of your line.
fabrice.

-Original Message-
From: Eric Gignac [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 22:37
To: Struts Users Mailing List
Subject: Re: XSLT Struts


This url don't work !  Where I can find this resource ?

http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt

Thanks


- Original Message -
From: "Johan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 5:05 PM
Subject: Re: XSLT Struts


> [EMAIL PROTECTED] wrote:
> > here we go
> >
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt.
> > zip
> > http://www.oroad.com/opencode/stxx/download.html
> >
> > these are two custom approachs (both with java sources), but if I can
tell
> > my feeling on the question, I suggest -if your app is "large"- that you
feed
> > cocoon with you're serialized XML ... but I don't own such an example.
> >
> 
>
> I agree on using cocoon for publishing XML data. But IMHO we shouldn't
> mix two parts of the universe to much. Struts for webapplications and
> cocoon as a publishing framework.
>
> I just started developing webapplications with struts. It's great for
> the application-part of the website, but for the publishing of static
> text I don't see much advantage using struts. For that I see a great
> advantage in using cocoon.
>
> Now I didn't use cocoon yet. But for me the ideal combination would be
> that I could insert into a tiles-definition a jsp-page, a struts-action,
> a tiles-definition or a xml page. The first three would be handled by
> struts and the xml-page by cocoon.
>
> Have anyone experience with this kind of use with cocoon and struts?
>
> Johan
>
> ---
> Nilling Software Design
> Postbus 43
> 2280 AA  Rijswijk ZH
> www: http://www.nilling.nl
> epost: mailto:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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

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




RE: XSLT Struts

2003-01-08 Thread ROSSEL Olivier
> That would be the past IMO. Apache HTTP and Cocon and similar 
> are PITA.
> 
> ... you can publish static text from Struts like this:
> - Store XML content in a db field. (from user input or RSS feed).
> - XSLT it and cache HTML cache in a db field.
> Or many variations such as Styxx browser side.
> 
> You can now approve it, secure it, WIKI it, RSS feed it, 
> count clicks, 
> find matching advertisements to display, display it in a struts tile 
> that users can move around like my.netscape.com.
> 
> I would say it is a good practice to use Struts with XML for 
> delivery of 
> static and dynamic content.

Cocoon is great if your input is already XML.
Cocoon is a fully-XML framework.
And its cache management can't be beat.

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XSLT Struts

2003-01-07 Thread Jacob Hookom
Do you just cache the data as a blob in the db and then just push it to
the output stream of the response then?  I've downloaded the BasicPortal
source, but haven't had the time to go through it all yet.

-Original Message-
From: news [mailto:[EMAIL PROTECTED]] On Behalf Of V. Cekvenich
Sent: Tuesday, January 07, 2003 3:17 PM
To: [EMAIL PROTECTED]
Subject: Re: XSLT Struts

That would be the past IMO. Apache HTTP and Cocon and similar are PITA.

... you can publish static text from Struts like this:
- Store XML content in a db field. (from user input or RSS feed).
- XSLT it and cache HTML cache in a db field.
Or many variations such as Styxx browser side.

You can now approve it, secure it, WIKI it, RSS feed it, count clicks, 
find matching advertisements to display, display it in a struts tile 
that users can move around like my.netscape.com.

I would say it is a good practice to use Struts with XML for delivery of

static and dynamic content.


.V

Johan wrote:
> [EMAIL PROTECTED] wrote:
> 
>> here we go
>>
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsx
slt. 
>>
>> zip
>> http://www.oroad.com/opencode/stxx/download.html
>>
>> these are two custom approachs (both with java sources), but if I can

>> tell
>> my feeling on the question, I suggest -if your app is "large"- that 
>> you feed
>> cocoon with you're serialized XML ... but I don't own such an
example.
>>
> 
> 
> I agree on using cocoon for publishing XML data. But IMHO we shouldn't

> mix two parts of the universe to much. Struts for webapplications and 
> cocoon as a publishing framework.
> 
> I just started developing webapplications with struts. It's great for 
> the application-part of the website, but for the publishing of static 
> text I don't see much advantage using struts. For that I see a great 
> advantage in using cocoon.
> 
> Now I didn't use cocoon yet. But for me the ideal combination would be

> that I could insert into a tiles-definition a jsp-page, a
struts-action, 
> a tiles-definition or a xml page. The first three would be handled by 
> struts and the xml-page by cocoon.
> 
> Have anyone experience with this kind of use with cocoon and struts?
> 
> Johan
> 
> ---
> Nilling Software Design
> Postbus 43
> 2280 AA  Rijswijk ZH
> www: http://www.nilling.nl
> epost: mailto:[EMAIL PROTECTED]



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


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




RE: XSLT Struts

2003-01-07 Thread Craig R. McClanahan


On Wed, 8 Jan 2003, Alireza Fattahi wrote:

> Date: Wed, 8 Jan 2003 08:31:05 +0330
> From: Alireza Fattahi <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: XSLT Struts
>
> We are at the beginning of this way too!  But as we found out, we can use
> struts as usual with all the actions and tags. What struts users do is
> inserting struts tags in jsp pages to create *JSP/HTML*. Now we should use
> struts tags to create xml files.

If you want to go this way, a strategy to consider is to have the JSP page
render the static part of your XML output, and use tags like 
to fill in the details.  If you're using a JSP 1.2 or later container, you
can even leverage things like the JSTL XML tags to do the final (perhaps
client specific) XML transformation in the page rather than in the
business logic, but you don't have to.

Consider a case where you've got an array of customers in a request
attribute named "customers" (placed there by an Action) and you want to
render an XML document containing the data from those beans for your
client.  Using JSP with the Struts tags, that's as simple as:

  <%@ page contentType="text/xml" %>
  <%@ taglib prefix="bean"  uri="/WEB-INF/struts-bean.xml" %>
  <%@ taglib prefix="logic" uri="/WEB-INF/struts-logic.xml" %>
  

  


  

  

or, if you're using JSTL instead:

  <%@ page contentType="text/xml" %>
  <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
  

  


  

  

> As I said we are on the beginning of this road too. So I appreciate
> comments.
>

XML and HTML may look a little different, but this is still just a matter
of mixing static and dynamic content together ... something that JSP is
pretty good at :-).

Craig


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




RE: XSLT Struts

2003-01-07 Thread Alireza Fattahi
We are at the beginning of this way too!  But as we found out, we can use
struts as usual with all the actions and tags. What struts users do is
inserting struts tags in jsp pages to create *JSP/HTML*. Now we should use
struts tags to create xml files. 
As I said we are on the beginning of this road too. So I appreciate
comments.

-Original Message-
From: Johan [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 1:36 AM
To: Struts Users Mailing List
Subject: Re: XSLT Struts

[EMAIL PROTECTED] wrote:
> here we go
>
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt.
> zip
> http://www.oroad.com/opencode/stxx/download.html
> 
> these are two custom approachs (both with java sources), but if I can tell
> my feeling on the question, I suggest -if your app is "large"- that you
feed
> cocoon with you're serialized XML ... but I don't own such an example.
> 


I agree on using cocoon for publishing XML data. But IMHO we shouldn't 
mix two parts of the universe to much. Struts for webapplications and 
cocoon as a publishing framework.

I just started developing webapplications with struts. It's great for 
the application-part of the website, but for the publishing of static 
text I don't see much advantage using struts. For that I see a great 
advantage in using cocoon.

Now I didn't use cocoon yet. But for me the ideal combination would be 
that I could insert into a tiles-definition a jsp-page, a struts-action, 
a tiles-definition or a xml page. The first three would be handled by 
struts and the xml-page by cocoon.

Have anyone experience with this kind of use with cocoon and struts?

Johan

---
Nilling Software Design
Postbus 43
2280 AA  Rijswijk ZH
www: http://www.nilling.nl
epost: mailto:[EMAIL PROTECTED]


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

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




RE: XSLT Struts

2003-01-07 Thread Ahmed ALAMI
I think this will work
http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-strutsxslt.html


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XSLT Struts

2003-01-07 Thread Eric Gignac
This url don't work !  Where I can find this resource ?

http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt

Thanks


- Original Message -
From: "Johan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 5:05 PM
Subject: Re: XSLT Struts


> [EMAIL PROTECTED] wrote:
> > here we go
> >
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt.
> > zip
> > http://www.oroad.com/opencode/stxx/download.html
> >
> > these are two custom approachs (both with java sources), but if I can
tell
> > my feeling on the question, I suggest -if your app is "large"- that you
feed
> > cocoon with you're serialized XML ... but I don't own such an example.
> >
> 
>
> I agree on using cocoon for publishing XML data. But IMHO we shouldn't
> mix two parts of the universe to much. Struts for webapplications and
> cocoon as a publishing framework.
>
> I just started developing webapplications with struts. It's great for
> the application-part of the website, but for the publishing of static
> text I don't see much advantage using struts. For that I see a great
> advantage in using cocoon.
>
> Now I didn't use cocoon yet. But for me the ideal combination would be
> that I could insert into a tiles-definition a jsp-page, a struts-action,
> a tiles-definition or a xml page. The first three would be handled by
> struts and the xml-page by cocoon.
>
> Have anyone experience with this kind of use with cocoon and struts?
>
> Johan
>
> ---
> Nilling Software Design
> Postbus 43
> 2280 AA  Rijswijk ZH
> www: http://www.nilling.nl
> epost: mailto:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Re: XSLT Struts

2003-01-07 Thread V. Cekvenich
That would be the past IMO. Apache HTTP and Cocon and similar are PITA.

... you can publish static text from Struts like this:
- Store XML content in a db field. (from user input or RSS feed).
- XSLT it and cache HTML cache in a db field.
Or many variations such as Styxx browser side.

You can now approve it, secure it, WIKI it, RSS feed it, count clicks, 
find matching advertisements to display, display it in a struts tile 
that users can move around like my.netscape.com.

I would say it is a good practice to use Struts with XML for delivery of 
static and dynamic content.


.V

Johan wrote:
[EMAIL PROTECTED] wrote:


here we go
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt. 

zip
http://www.oroad.com/opencode/stxx/download.html

these are two custom approachs (both with java sources), but if I can 
tell
my feeling on the question, I suggest -if your app is "large"- that 
you feed
cocoon with you're serialized XML ... but I don't own such an example.



I agree on using cocoon for publishing XML data. But IMHO we shouldn't 
mix two parts of the universe to much. Struts for webapplications and 
cocoon as a publishing framework.

I just started developing webapplications with struts. It's great for 
the application-part of the website, but for the publishing of static 
text I don't see much advantage using struts. For that I see a great 
advantage in using cocoon.

Now I didn't use cocoon yet. But for me the ideal combination would be 
that I could insert into a tiles-definition a jsp-page, a struts-action, 
a tiles-definition or a xml page. The first three would be handled by 
struts and the xml-page by cocoon.

Have anyone experience with this kind of use with cocoon and struts?

Johan

---
Nilling Software Design
Postbus 43
2280 AA  Rijswijk ZH
www: http://www.nilling.nl
epost: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XSLT Struts

2003-01-07 Thread Johan
[EMAIL PROTECTED] wrote:

here we go
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt.
zip
http://www.oroad.com/opencode/stxx/download.html

these are two custom approachs (both with java sources), but if I can tell
my feeling on the question, I suggest -if your app is "large"- that you feed
cocoon with you're serialized XML ... but I don't own such an example.




I agree on using cocoon for publishing XML data. But IMHO we shouldn't 
mix two parts of the universe to much. Struts for webapplications and 
cocoon as a publishing framework.

I just started developing webapplications with struts. It's great for 
the application-part of the website, but for the publishing of static 
text I don't see much advantage using struts. For that I see a great 
advantage in using cocoon.

Now I didn't use cocoon yet. But for me the ideal combination would be 
that I could insert into a tiles-definition a jsp-page, a struts-action, 
a tiles-definition or a xml page. The first three would be handled by 
struts and the xml-page by cocoon.

Have anyone experience with this kind of use with cocoon and struts?

Johan

---
Nilling Software Design
Postbus 43
2280 AA  Rijswijk ZH
www: http://www.nilling.nl
epost: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: XSLT Struts

2003-01-07 Thread Yujin Kim
Hello,

I read that article too since I'm trying to use xslt with struts.

I thought it was a great article, but I didn't agree with their
approach.  (I sent an email to the author about it and received no
answer so far.)  BTW, I'm by no means a struts, xsl or java guru.  I'm
just stating my opinion here, and I welcome any corrections or
suggestions.

So here it goes.

The problem with their approach IMHO is that to create a true MVC
environment (which is good), the approach is creating too much overhead
(i.e generating XML on the fly and parsing it to feed the XSL, all at
the runtime).  Also one of the reason people like me love struts is
because of the extensive tag-libs which allow you to eliminate business
logic entirely from your jsp files. But what that article suggested was
not using struts tags and jsps at all.  

So my approach of incorporating XSLT to struts is as follows: (this is
only in conceptual level yet. Trying to get it to work in the near
future though)

- Create a form definition in XML (or use struts-config to define the
form properties but I'd hate to touch the struts-config for business
logic related stuff).
- Create a XSL for the form
- using the form definition and DynaActionForm, populate the instances
of form beans.  Or I am also considering pre-generating form beans based
on the xml form definition (or use struts-config to define the form
properties)
- Action class doesn't have to know the details of the form bean.  It's
just going to pass the form beans to manager classes that handles
database, etc. Using the form definition file, I could gererate prepared
statements or something like that too.
- At the deployment time, I would also like to pre-generate jsps out of
XML/XSL using xslt such as xalan instead of doing the transformation at
the runtime.  From my brief testing, xalan seems to cache the generated
templates, but still pre-generating the files would work better.

The problem I need to solve is figuring out how to put struts tags in
the XSL.  The only way I could think of so far is put xsl namespace
definition for struts in the XSL file (ie xslns:html) and replace the
line with struts tag definition during pre-generation of the jsp files.

Any thoughts would be appreciated.


-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 07, 2003 12:29 PM
To: Struts Users Mailing List
Subject: RE: XSLT Struts



The artcile is the same one from Javaworld that you sent me, I already
downloaded the example, but it explains nothing. the article is good,
but the sample is vague
Thanks
 [EMAIL PROTECTED] wrote:here we go
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsx
slt.
zip
http://www.oroad.com/opencode/stxx/download.html

these are two custom approachs (both with java sources), but if I can
tell
my feeling on the question, I suggest -if your app is "large"- that you
feed
cocoon with you're serialized XML ... but I don't own such an example.

By the way, could you please send me your wonderful article ?

thank's & regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 18:05
To: Struts Users Mailing List
Subject: RE: XSLT Struts



Fabrice
I got a wonderful arcticle,
But I need a good example..
do u have any or any suggestions\

[EMAIL PROTECTED] wrote:Hi,

go to javaworld.com and search for "XSLT struts" you'll find good
articles +
links to sources...

regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 17:32
To: [EMAIL PROTECTED]
Subject: XSLT Struts


Hi, 
Can any body pls give me an example of using XSLT and struts.. Or can
any one tell me how to convert the sample Struts application so that it
uses Model 2 architecture rather than the usual JSP routines  Any
help apprecaied.
I have had experience with both as seperate techs, but havent used both
together.. 
I was going thru an article from Javaworld, and was thinking of how to
make the sample struts application in such a way that it doesnt have any
JSPs..

Any links, appreciated 
Thanks 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now



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




Re: XSLT Struts

2003-01-07 Thread V. Cekvenich
Also consider JSTL X:transform or browser side Styxx or caching HTML in 
a db field.
.V

maya menon wrote:
The artcile is the same one from Javaworld that you sent me, I already downloaded the example, but it explains nothing. the article is good, but the sample is vague
Thanks
 [EMAIL PROTECTED] wrote:here we go
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt.
zip
http://www.oroad.com/opencode/stxx/download.html

these are two custom approachs (both with java sources), but if I can tell
my feeling on the question, I suggest -if your app is "large"- that you feed
cocoon with you're serialized XML ... but I don't own such an example.

By the way, could you please send me your wonderful article ?

thank's & regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 18:05
To: Struts Users Mailing List
Subject: RE: XSLT Struts



Fabrice
I got a wonderful arcticle,
But I need a good example..
do u have any or any suggestions\

[EMAIL PROTECTED] wrote:Hi,

go to javaworld.com and search for "XSLT struts" you'll find good
articles +
links to sources...

regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 17:32
To: [EMAIL PROTECTED]
Subject: XSLT Struts


Hi, 
Can any body pls give me an example of using XSLT and struts.. Or can
any one tell me how to convert the sample Struts application so that it
uses Model 2 architecture rather than the usual JSP routines  Any
help apprecaied.
I have had experience with both as seperate techs, but havent used both
together.. 
I was going thru an article from Javaworld, and was thinking of how to
make the sample struts application in such a way that it doesnt have any
JSPs..

Any links, appreciated 
Thanks 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now



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




Re: XSLT Struts

2003-01-07 Thread Mark Lowe
I've never acually done this but I reckon you'd be looking at importing 
the xalan stuff into your action class and doing your xsl 
tranformations from there..

Rather than forwarding to happy or unhappy jsp's you can just forward 
to actions that do xml transformations.

so an example would be to take a struts action class and add an xml 
transformation that runs it..

I have no idea how slow this is or anything like that.. but this seems 
to be what you're asking..

cheers mark

Martedì, 7 gen 2003, alle 17:31 Europe/Rome, maya menon ha scritto:

Hi,
Can any body pls give me an example of using XSLT and struts.. Or can 
any one tell me how to convert the sample Struts application so that 
it uses Model 2 architecture rather than the usual JSP routines  
Any help apprecaied.
I have had experience with both as seperate techs, but havent used 
both together..
I was going thru an article from Javaworld, and was thinking of how to 
make the sample struts application in such a way that it doesnt have 
any JSPs..

Any links, appreciated
Thanks



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XSLT Struts

2003-01-07 Thread maya menon

The artcile is the same one from Javaworld that you sent me, I already downloaded the 
example, but it explains nothing. the article is good, but the sample is vague
Thanks
 [EMAIL PROTECTED] wrote:here we go
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt.
zip
http://www.oroad.com/opencode/stxx/download.html

these are two custom approachs (both with java sources), but if I can tell
my feeling on the question, I suggest -if your app is "large"- that you feed
cocoon with you're serialized XML ... but I don't own such an example.

By the way, could you please send me your wonderful article ?

thank's & regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 18:05
To: Struts Users Mailing List
Subject: RE: XSLT Struts



Fabrice
I got a wonderful arcticle,
But I need a good example..
do u have any or any suggestions\

[EMAIL PROTECTED] wrote:Hi,

go to javaworld.com and search for "XSLT struts" you'll find good
articles +
links to sources...

regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 17:32
To: [EMAIL PROTECTED]
Subject: XSLT Struts


Hi, 
Can any body pls give me an example of using XSLT and struts.. Or can
any one tell me how to convert the sample Struts application so that it
uses Model 2 architecture rather than the usual JSP routines  Any
help apprecaied.
I have had experience with both as seperate techs, but havent used both
together.. 
I was going thru an article from Javaworld, and was thinking of how to
make the sample struts application in such a way that it doesnt have any
JSPs..

Any links, appreciated 
Thanks 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


RE: XSLT Struts

2003-01-07 Thread Fabrice . Bocquillon
here we go
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt.
zip
http://www.oroad.com/opencode/stxx/download.html

these are two custom approachs (both with java sources), but if I can tell
my feeling on the question, I suggest -if your app is "large"- that you feed
cocoon with you're serialized XML ... but I don't own such an example.

By the way, could you please send me your wonderful article ?

thank's & regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 18:05
To: Struts Users Mailing List
Subject: RE: XSLT Struts



Fabrice
I got a wonderful arcticle,
But I need a good example..
do u have any or any suggestions\
 
 [EMAIL PROTECTED] wrote:Hi,

go to javaworld.com and search for "XSLT struts" you'll find good
articles +
links to sources...

regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 17:32
To: [EMAIL PROTECTED]
Subject: XSLT Struts


Hi, 
Can any body pls give me an example of using XSLT and struts.. Or can
any one tell me how to convert the sample Struts application so that it
uses Model 2 architecture rather than the usual JSP routines  Any
help apprecaied.
I have had experience with both as seperate techs, but havent used both
together.. 
I was going thru an article from Javaworld, and was thinking of how to
make the sample struts application in such a way that it doesnt have any
JSPs..

Any links, appreciated 
Thanks 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

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




RE: XSLT Struts

2003-01-07 Thread maya menon

Fabrice
I got a wonderful arcticle,
But I need a good example..
do u have any or any suggestions\
 
 [EMAIL PROTECTED] wrote:Hi,

go to javaworld.com and search for "XSLT struts" you'll find good articles +
links to sources...

regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 17:32
To: [EMAIL PROTECTED]
Subject: XSLT Struts


Hi, 
Can any body pls give me an example of using XSLT and struts.. Or can
any one tell me how to convert the sample Struts application so that it
uses Model 2 architecture rather than the usual JSP routines  Any
help apprecaied.
I have had experience with both as seperate techs, but havent used both
together.. 
I was going thru an article from Javaworld, and was thinking of how to
make the sample struts application in such a way that it doesnt have any
JSPs..

Any links, appreciated 
Thanks 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


RE: XSLT Struts

2003-01-07 Thread Fabrice . Bocquillon
Hi,

go to javaworld.com and search for "XSLT struts" you'll find good articles +
links to sources...

regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 17:32
To: [EMAIL PROTECTED]
Subject: XSLT Struts


Hi, 
Can any body pls give me an example of using XSLT and struts.. Or can
any one tell me how to convert the sample Struts application so that it
uses Model 2 architecture rather than the usual JSP routines  Any
help apprecaied.
I have had experience with both as seperate techs, but havent used both
together.. 
I was going thru an article from Javaworld, and was thinking of how to
make the sample struts application in such a way that it doesnt have any
JSPs..
 
Any links, appreciated 
Thanks 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

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




XSLT Struts

2003-01-07 Thread maya menon
Hi, 
Can any body pls give me an example of using XSLT and struts.. Or can any one tell me 
how to convert the sample Struts application so that it uses Model 2 architecture 
rather than the usual JSP routines  Any help apprecaied.
I have had experience with both as seperate techs, but havent used both together.. 
I was going thru an article from Javaworld, and was thinking of how to make the sample 
struts application in such a way that it doesnt have any JSPs..
 
Any links, appreciated 
Thanks 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now