Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Re: Ajax recommendations for use with Struts1.1

Subject: Re: Ajax recommendations for use with Struts1.1

2007-10-03       - By Ted Husted

 Back
On 9/20/07, Frank W. Zammetti <fzlists@(protected)> wrote:
> I think that *can* be true if you aren't careful.  The thing that I've
> found people tend to mess up when doing RIA development is that they think
> they need to do things differently than they would if it was a plain
> webapp.  We put in place some relatively simple standards early on and
> they helped immensely.  Things like commenting in the same style as Java,
> always doing everything in an object-oriented way, i.e., create Javascript
> classes for everything and no global-scoped Javascript except where truly
> necessary, develop in Firefox and test in IE (and we gave our developers a
> couple of Firefox tools, Firebug chief among them, to use), and so on.  We
> wound up with, overall, decent code.  Not perfect, but not nearly as bad
> as some other heavily client-based webapps I've seen, and not nearly as
> bad as it could have been given the complexity of the app and the relative
> inexperience in the new technologies of the team.


Just to chime in late ... an Ajax library that does well the sort of
things Frank is describing is the Yahoo User Interface (YUI) Library.
Reading the source for the YUI library is an absolute pleasure!

Earlier this year, my team shipped a .NET application using the JSON
RPC architecture that Frank describes, except that we use Jayrock and
Spring. We used JSON to call from the YUI Ajax pages to "plain old
objects" on the server, that in turn called out to our business logic
and data access layer (classic business facade). Very elegant, very
effective. Though, we did have to reinvent a wheel or two.

What I like about YUI is that I can actually understand (and patch)
the source. I have trouble following the "bouncing ball" in some other
Ajax libraries.

Right now, Struts 2.0 uses Dojo behind the scenes to Ajaxify some of
the tags. But all that has been reduced to a plugin for Struts 2.1,
which opens the door for alternate plugins that use other libraries.
There is already a YUI plugin in the repository, but it only supports
a couple of tags so far.

-Ted.

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.