Hey Francois,

> Hi,
>
> has anybody already used JSP to create WML page ?
> if yes, tell me how please ... thanks in advance
> FB
>

Yes, more than I want ;)

I can only give a short reply right now, but I will be happy to give more info when
I have some more time.

A short note about what I did and how:

I was in charge of building a portal prototype for a swedish ERP vendor. One of the
requirements of the portal was to be "device independent", meaning I was not
allowed to assume the user would have a desktop PC and a browser, but the user
could very well be someone with a WAP cellular phone. Now how is this done? I saw
two simple ways to do this using JSP:s.

1. Use one JSP per media. One for HTML, One WML, etc. and make the JSP:s extremely
simple and move all logic to beans/ejb:s.
2. Use XML JSP:s and have an XSLT processor transform the XML to HTML, WML or
something else depending on the user-agent.

For several reasons I reached the conclusion that number 2 was far superior. I
don't have time to tell you all reasons right now, but a few ones are:
* One JSP per page with XML, not one per media.
* JSP only have a standard mapping for HTML, not for WML, PDF or other formats that
might be wanted.
* XML provides additional seperation between all content and presentation, giving
for free that customization and personalization was extremely simple to implement.

I also know about other projects doing WML with JSP choosing option 1, but I'm not
sure I'm allowed to talk about them ;)

The project was a great success and I'll be happy to provide you with more info
about how to do it and what to avoid ;)

The software I used for this project was:

* Orion Application Server (www.orionserver.com)
* Cocoon for XML/XSL, but unfortunately I can't recommend using this right now :(
Doing WML with it required some hand hacking and it does some non-standard things
breaking it with many servlet engines. It's a great idea though. Now Orion supports
XML/XSL directly, so Cocoon isn't necessary if you go with Orion.

Tell me more, are you required to use a specific web server? The problem is that
neither ServletExec nor JRun works with Cocoon without hacking the source yourself,
and not many servlet vendors have realised that we need XML _today_ for things like
WAP.

Cheers,
Karl Avedal

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to