1) Yes, the presentation layer is exactly what Flex is designed for. You can use JSP to generate the html wrapper for the Flex generated SWF if you want. This is often done if you want to pass values into the Flex app, via flashvars, when it starts up. And this is generally more flexible than just using a static html page to host the Flex app. You can run a swf directly, but I don't think you ever would in production.
Comparing is still difficult because there are different ways to build a jsp-based app. If it is a standard HTML page, postback architecture then one comparison would apply. It the jsp app is build using dhtml, javascript, xmlhttp (ajax), then a comparison with Flex would look different. Regardless, jsp, asp etc are server-side processes that generate html for the client. Flex is different in that the app runs in the Flash Player, and is not html. Some general benefits of Flex: * Retain state on the client. Sessions are not needed on the server * No postbacks, screen redrawing * Very rich, interactive UI in most all browsers. Try that with html. 2) Remember, Flex is presentation tier, and exists client side only, some server-side code would be required to do logging. Besides, logging typically logs business logic process on the server anyway, and not ui process on the client. FDS, with which I am not familiar, may have some logging capabilities. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Saheta, Jyoti Sent: Tuesday, December 12, 2006 11:42 AM To: [email protected] Subject: RE: [flexcoders] Flex vs. JSP 1) The app to build : will be java based that would communicate with web services to fetch and store data to back-end. Since the app will also include some rich components like Grid, I evaluated FLEX. So, I was looking if it is possible to replace the jsp presentation layer completely with Flex. What are the pros and cons of using FLEX as the application layer for a web app. if I'm using only couple of flex components, Is it a good practice to include the flex component in the jsp page ? 2) I am not clear on the logging answer. We intend to use Log4j for asynchronous logging to websphere queue. Struts action classes does this seamlessly. Does Flex support log4j? Thanks! Jyoti ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Monday, December 11, 2006 4:29 PM To: [email protected] Subject: RE: [flexcoders] Flex vs. JSP 1) Its really like comparing apples and oranges. Anything you can do in JSP(using struts) you can do in Flex and more. Perhaps you want to explain briefly what kind of app you want to build? 2) There are two levels of logging. On the server side you can tell Flex to log all incoming/outgoing communication for debugging purposes. On the client side, using the Flash debug player you can turn on debugging and it will log to local file. Dimitrios Gianninas RIA Developer Optimal Payments Inc. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Saheta, Jyoti Sent: Monday, December 11, 2006 3:26 PM To: [email protected] Subject: [flexcoders] Flex vs. JSP Hi Folks, 1. Where can I find a true functional comparison list for flex and jsp? I'm trying to evaluate if Flex framework by itself can replace JSP(/struts) presentation layer(for a java/websphere based project). 2. How can I perform logging in a flex app? Can I use log4j? If yes, how? Any example/article would help. Thanks, Jyoti AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender.

