RE: Newbie: Default transforming *.html/*.jsp or whatever

"Eelco Hillenius" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
You should do stuff like this entirely different. Learn about it at:
http://developer.java.sun.com/developer/Books/javaserverpages/servlets_javas
erver/servlets_javaserver05.pdf

Eelco Hillenius


-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Jonas Van
Poucke
Sent: maandag 24 februari 2003 17:19
To: [email protected]
Subject: [Mav-user] Newbie: Default transforming *.html/*.jsp or
whatever


Hi,
I have a question on doing the following:
1. If a command exists in maverick, execute it
2. If it does not exist, e.g. for MyPage.html then do:
   a. Load theat page (DocumentView)
   b. perform any default transformation
      (e.g. like stripping out any attributes on some tag, using XSLT)
   c. Show the transformed document.

It seems that two things are missing:
1. Reading in any *.extension command
2. Views need a "path" attribute, but something like path="." (taking
the command as a path) does not work.

To summarize, I would need something like:
    <commands>
        <command name="*.html">
            <view name="success" type="document" path=".">
                <transform type="xslt" path="DoSomethingWithHTML.xsl"/>
            </view>
        </command>
    </commands>

Is there something to support this already? Do I need to create my own
View? Or modify DispathedViewFactory? Any help welcome!

Jonas Van Poucke
Actonomy




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.