PDA

View Full Version : View layer



grom358
Sep 14th, 2004, 05:02 AM
I am currently using JSP with JTSL for the view layer. However I have noticed that opening the jsp directly with the browser and HTML editors, that it does not render (eg. get stuff like " method="post" > appearing in the page).

Zope (http://www.zope.org) has page templating for HTML (TALES (http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixC.stx)) that uses custom attributes on standard HTML tags. It works nicely with HTML browsers and editors. It also lets you have dummy data.

Is there anything like this for J2EE?

Alef Arendsen
Sep 14th, 2004, 08:55 AM
There are some plugins for Dreamweaver I think that might do the trick. I prefer to work in Eclipse with a Tomcat plugin and edit my JSPs in Eclipse.

When dealing with HTML programmers, I usually try to teach them JSP as well. Most of them don't like wysiwyg stuff anyway :)

grom358
Sep 14th, 2004, 09:04 PM
Yeah, I edit HTML markup directly. But you have to use Tomcat (or some other servlet container) to see how the changes affect the page. No big deal for me, but means HTML programmers have to install Java and Servlet/JSP container. Also means a lot of HTML tools do not work.

mraible
Sep 14th, 2004, 11:17 PM
Tapestry (http://jakarta.apache.org/tapestry) has what you're looking for. Standard HTML markup with some custom attributes to hook in dynamic data. Tapestry also easily integrates (http://www.springframework.org/docs/reference/view.html#view-tapestry) with Spring.