logo       


Re: XMLC and Struts: msg#00125

Subject: Re: XMLC and Struts
On Monday 22 September 2003 08:23, David Li wrote:
> A while ago, someone posted using Struts and XMLC. I'd like to learn
> more about it. Thanks.
>

I know I've mentioned it.  What we've done, is to create a PresentationObject 
(sound familiar), which is responsible for doing all the XMLC stuff, and then 
producing the HTML (and headers, etc.) 

For each page, we generally have one class derrived from a PO.  If there are 
many similar pages, we might have an intermediate class the provides common 
handling of common page portsion.

In the action construct and call this object, which generates the output.  We 
return null from the action.

Then, of course, we built a family of objects for common manipulations. 
(Forms, Tables, RepeatingBlock, Include, Tree) etc. the PO-derived class can 
call.

One "tangent team", opted for a strategy where they wrote actions that did 
NOTHING but present a page based on what was in the request.  This made it 
more viable to switch to JSP (and back).  I didn't like that, because you 
give up type-safety (to a degrree) when you stuff everything into the 
request.

Questions?

David


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe