Dear Patrick,

Jsp and servlets technology including powerful opportunity splitting inners
layers from presentation logics. That means you should use objects from
compiled classes. Possibilities to use:

1. Parameters code tables from inner classes
    Sample looking like
   param1 =  Global.getAttribute("param1");

2. Fill out your data into JSP Bean
    Technology how to use JavaBeans you can find out through         the
search engine at http://java.sun.com and learn it too simply.
3. All your requesting data will automatacly inserting into     Bean. Pass
your Bean into business logic classes to analize     bifore passing into db
layer to inserting and etc..
4. Use java session object, Auth and trace user.
5. Configure own transaction manager, depending auth and trace.

Sincerely,
Victor
----- Original Message -----
From: "Patrick Fong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 8:15 AM
Subject: Question about effective servlet development


> Hi
>
> I have two questions.
>
> 1) I was wondering if it was more effective to have one servlet that
> handles all the requests eg. http://localhost/index.jsp?instruct=02 for
> adding requests, index.jsp?instruct=03 for editting database entries.
>
> String instruct= request.getParameter("request");
>
> if (instruct.compareTo("01")!=-1) {
>
>
> } file://do something
>
> else if (same as above) {
>
> if request.getParameter(Parameters for inserting database requests) {
>
> }// do the DB thing
>
> }
>
> and so on...  I find alot of big web-sites are doing that now. What are
> benefits of this? I am trying to prevent the user from finding out too
much
> about the operations of the web-sites. I think that any individual can
> figure out how a database works and how the website works by looking atthe
> form elements and the links within the page. What is the best way of
> hidding these sort of information. (I want the users to use the web-site
> and not try to hack into the database etc etc).
>
> 2) I have also come across websites where by clicking on the link it
brings
> you to http://localhost/index.jsp# and it brings up windows/goes away and
> does something. How would someone program that in a  servlet/jsp? The
> benefits of this may be what I am looking for in 1).
>
> Patrick
>
> Comments appreciated.
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to