你会使用的Laszlo开发一个基于Flash的前端到Java Web应用程序?

问题描述:

如果你有一个基于Java的Web应用程序(J2EE Web应用程序 - 更不用说正在使用的其他基本框架),并且你想介绍一个基于Flash的前端,你会使用拉兹洛,还是宁愿暴露REST-像XML接口,构建和部署使用的Flash应用程序?

If you have a Java based web application (J2EE webapp - never mind which other underlying frameworks are being used), and you wanted to introduce a Flash based front-end, would you use Laszlo or would you rather expose a ReST-like XML interface and build and deploy a Flash application that uses that?

在一方面,拉斯洛​​是相当惊人的 - 这样做对Flash什么JSP支持HTML。这是很容易的工作。它适合于非常出色的Web应用程序(基于该JSP)的其余部分。

On one hand, Laszlo is quite amazing - doing for Flash what JSP does for HTML. It is easy to work with. It fits in very well with the rest of the web application (which is JSP based).

在另一方面,它可能会更好开发一个完整的Flash应用程序从服务器上分离,并使用XML-过断点续传机制,结合两个。这将具有能够使用相同的XML接口的一个AJAX前面,如果需要结束加入优点

On the other hand it might be better to develop a complete Flash app decoupled from the server and use an XML-over-HTTP mechanism to bind the two. This would have the added advantage of being able to use the same XML interface for an AJAX front end if needed.

你会怎么做,为什么?

拉斯洛是,没有把它的产品,没有围绕它开发一个足够大的生态系统。

Laszlo is the product that never made it, there isn't a big enough ecosystem of developers around it.

我会使用Adobe Flex的前端的。使用标记语言,用于做闪光的开源项目同样的好处,但它有一个更大的开发基础和借鉴。对于数据通信,使用R​​EST,或者如果你想获得聪明,使用BlazeDS的。

I'd use Adobe Flex for the front end. The same benefits of using a markup language for doing flash, but it has a much larger developer base and open source projects to draw upon. For the data communication, use either REST or if you want to get clever, use BlazeDS.