Re: Web Application Design Patterns
From: Markos Charatzas (xarm_at_forthnet.gr)
Date: 03/17/04
- Next message: John O'Conner: "Re: AWT and Hebrew"
- Previous message: Gordon Beaton: "Re: JNI"
- In reply to: Michael Scovetta: "Re: Web Application Design Patterns"
- Next in thread: Michael Scovetta: "Re: Web Application Design Patterns"
- Reply: Michael Scovetta: "Re: Web Application Design Patterns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 17 Mar 2004 09:51:43 +0200
First of all thanks for your reply. It's good to see that someone read
your post got him thinking. It encourages discussion.
Well, all I'm trying to figure out a general design for a web application
where a Servlet handles all the requests that have to do with either
serving a web page or performing a particular action on a web page.
So the way I'm thinking about it is that every web page has,
1. A context
2. A template
3. Some actions that can be performed to it depending on the context
So for example the Servlet should be responsible for,
1. If a web page is requested then update the context to reflect that of
the web page requested
2. If an action is requested, then send it to the *current* web page to
work it out
3. Finally display the template of the web page
Also the Servlet could handle other things like site navigation.
E.g. know what to show when a previous (back) web page is requested)
With that in mind, I'm thinking as an initial design to have classes that
represent the web pages, and an interface between them and the servlet.
These are the things that got me thinking...
On 16 Mar 2004 13:44:03 -0800, Michael Scovetta
<nospam_googlegroups@scovetta.com> wrote:
>
> A good design is very dependent on the project goals, scope, time,
> resources, etc. Your question is just too open-ended. At one extreme,
> just write a few JSPs with embedded Java if you're talking about a
> one-page site. At the other, Struts will save you time and effort when
> debugging, expanding, or maintaining your app.
>
> I rely heavily on Jakarta (jakarta.apache.org) for things like
> connection pooling, miscellaneous utilities, validation, etc.
>
> Explain more, and maybe I can give you a better suggestion--
>
> M
>
>
> Markos Charatzas <xarm@forthnet.gr> wrote in message
> news:<opr4yj3rtxlzwgym@news.forthnet.gr>...
>> Hello there,
>>
>> What would be a good design to choose for developing a simple web
>> application based on Servlets without using any of the available
>> frameworks (struts, jsf, etc)?
>>
>> By *simple* I mean there are no extensive validation for example,
>> althougt
>> some basic navigation rules do apply.
>>
>> Thanks in advance
- Next message: John O'Conner: "Re: AWT and Hebrew"
- Previous message: Gordon Beaton: "Re: JNI"
- In reply to: Michael Scovetta: "Re: Web Application Design Patterns"
- Next in thread: Michael Scovetta: "Re: Web Application Design Patterns"
- Reply: Michael Scovetta: "Re: Web Application Design Patterns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|