What I mean is.

I hate hard coding.  Its been a while since I have done web programming.
And one think I always disliked has been hardcoding relationships (URLs)
between forms.

I have not finished implementing this yet, but I believe it will work
effectivly.
I like a much more dynamic and database driven approach with to goals in
mind:
1.Give our users a easy way of customizing the system.
2.Have the ability of supplying multiple views to the system
(User/Admin/Customer/Consultant, etc...)
       In a database you must have users related to a view/profile.
You have a base set of forms in the system. Users an "Overide" this base
form by providing their own version.
So for instance you have the base form:
    "user_view" mapped to base_user_view.jsp
And a users customized from:
    "user_view_custom" mapped to user_view_custom.jsp

Each form in the system will as we all know now map to "AppController".  The
AppController in my scenerio will execute an Jpythoin script action.
The action (related to the callee form) will return the next view to goto.
The AppController then must decode what is the proper version to show of the
logical view based on the "logical" form name and the User's profile/view of
the system.

The are two elements of control  that the AppController implements(at least
I can think of):
    1.What is the next destination (View) of the Action . (example: Error or
View)
    2.What is ther version of the view (User/Admin/etc...)
        The other way to code this is putting the control logic in the
View(JSP).
        if (user.type == USER.Admin)
            Show this element
        Else if (user.type == USER.User)
            Show some other element


Does this help?

Shone Sadler
Developer
Q-link Technologies
http://www.qlinktech.com




----- Original Message -----
From: Scott Evans <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, April 09, 2000 9:40 AM
Subject: RE: Model 2 Question


> What do you mean by logical view?
>
> Scott Evans
> SI&I Training Development
> 46833 (Ramat Gan)
>
>
>
> > -----Original Message-----
> > From: Shone Sadler [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, April 09, 2000 4:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: Model 2 Question
> >
> >
> > Hello,
> > I am also new to this camp as well as sevlets/jsp.
> >
> > I keep reading all of the discussions about Model II and MVC
> > and I would
> > like to thank everyone
> > for an enlightening experience.
> >
> > My question, is also about the design of the Action.
> > To me a View(HTML form) is nothing less than HTML and actions.
> > The Action component of the controller is simple an event
> > handler for a user
> > action (button click, etc)
> > I am attempting to make a flexible architecture for a
> > packageable product,
> > ie I do not want a end-user to compile functionality into the
> > application.
> > Has anyone used a scripting language such as JPython to implement the
> > Action.
> > Meaning:
> > 1. Each request would be delegated to the ApplicationController
> > 2. Application Controller would look into its action
> > Hashtable (loaded from
> > filesytesm/database) of scripts based on logical name and action name.
> > 3. Application would create an instance of the Action class
> > and execute it.
> > 4. The action class would invoke JPython's embedded interpreter.
> >     The responsibilities of the script would be:
> >         1.Manipulate the DataLayer
> >         2.Tell the ApplicationController what logical view to send the
> > request to.
> > 5.The ApplicationController would look at the logical view
> > returned and
> > return an associated physical view(JSP page)
> >
> > Does anyone see any issues with this?  Any feedback appreciated!
> >
> > Thanks,
> > Shone Sadler
> > Developer
> > Q-Link Technologies
> >
> > ==============================================================
> > =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to