... and why is Struts MO BETTA?

I've already coded most of my site with plain old JSP with taglibs. I structured an MVC model without the use of Struts. However, I figured I'd better go ahead and learn about the framework. You know how managers and recruiters are about matching their silly job requirements these days. It's better to have a buzzword on your resume than it is to actually have 20 yrs experience. But lets not get me started on that!
So I went out and bought myself a book on Struts. After a somewhat brief intro, I've come to the conclusion that I would have to write just as much code in a Struts environment as I have already done with Vanilla JSP, plus deal with yet another layer of abstraction. So I figure that Struts advantage must be in the organized structuring, maintenance and perhaps portability of code. Why not just write the darn code ... already!
I know this is going to induce a little politics into the frey, but I just have to ask ... Am I missing something here? I know my opinion might be a little premature, but right now I don't see the "BIG DEAL!"
Don't get upset though - I might yet become a convert!

Yeah, I worked for a company that migrated to an
n-tier architecture from their old legacy systems in
the late 90's. They changed the name to n-tears!I'll have to remember that. ;)
I once thought that Oracle had it right. Your view
should be used to send insert, update, delete and
query requests to the backend. As for the middle tier
and business logic, well thats what database triggers
and stored procedures are for. I guess that's the argument - render unto the middle tier the business logic, and unto the database persistence logic.
Even Oracle has gotten into the act early. They've got a J2EE app server running inside the database. You can write Java stored procs. Of course if your database goes down so does that app server, and visa versa. You end up assuming that the data source is only used by J2EE apps. If that's not the case it might not be a good design.
So whats all this
middle tier business? Most of these middle tiers
where written by third-party vendors and did not
integrate well with any of the other tiers. I heard
all the brew-ha-ha about how this mutliple tier setup
was supposed to reduce network traffic and reduce
response times and make esspresso for the staff while
it was at it.Which vendor was that? I gotta get me some of that! ;)
You guessed it! It didn't happen. First of all I
never understood how replacing a query being sent from
a heavy client with one being sent from a middle tier
was supposed to reduce network traffic. Unless of
course you put the middle tier on the same server as
the database. Most of the time they're separate, of course.
To me a query is a query and a result
set still has to be processed at the DB server and
packets have to be sent to the requester regardless of
what tier the request came from. Response times got
painfully slow in spite of all the hipe about how much
more efficient adding the middle tier was going to be.Indeed, I agree. But the fastest database query you can make is the one that doesn't go out over the network. Caching on the middle tier can help speed things, no?
End the end, my little "FAT" client Sql*Windows blew
the doors off of this flash bang, revolutionary n-tier
system and ended up saving my manager his job.I can't argue with that. Sounds like you did a good job.
Even M$ is embracing this model with their .NET framework. Are you saying they're wrong to abandon their client/server fixation?
I've always found the middle tier in the so-called
n-tier architectures extremely lacking. That is until
Java came along with its beans and tagslibs. That I
like.Maybe the first implementations that you were involved with were just poor first attempts. Do you think it's better now, in your experience? Can all these companies be fooled for all this time if it's worthless?
It seems to me that it's getting worse if that's the case, because service-oriented architecture will simply codify the distributed nature of the middle tier. Martin Fowler's Rule of Distributed Architecture will be broken forever when this becomes widespread.

Similar Messages

  • I am going to buy a macbook pro for grade 12, and I need to know wheather I should get a macbook pro or a macbook pro retina. If someone could tell me (in a very simple way) which one is,better for me and why, I would be ever so apprreciative.

    I am going to buy a macbook pro for grade 12, and I need to know wheather I should get a macbook pro or a macbook pro retina. If someone could tell me (in a very simple way) which one is,better for me and why, I would be ever so apprreciative.

    Why do you need a expensive MacBook Pro?
    Your attending high school and unless everyone else is rich also your likely going to be a target by the more poorer students for theft or damage to the machine.
    You could keep it home, but if you need it for class then your exposed again.
    Also at that age your not very careful yet, a MacBook Pro is a expensive and easily damaged machine.
    Unless your made of money and so are others at your school, I would recommned a low profile, just does the job cheap Windows PC.
    If it dies, gets lost, stolen or damaged because of your inexperince handling senstivie electronics then it's no big deal.
    You can buy a Mac later on when your sure you have a need for it, currently there isn't much advantage of owning a Mac compared to a PC, they do just about the same things now, one just looks prettier than the other.
    Since 95% of the world uses Windows PC's your going to have to install Windows on the Mac in order to keep your skills up there or be unemployed, so it's a extra headache and expense.
    good luck

  • Which is better and why: Safari or Firefox?

    Which is better and why: Safari or Firefox?

    Thx, I've been using FF on my MacBook, as I did with PowerMacs before that. I used to work in the industry and stay up on current trends; but, I'm just a regular user with a new MacAir now and hate to bother my SF/SJ peeps with trivial questions.
    As I start to load up the Air, I'm just a bit overwhelmed with the volume of bookmarks I've collected and organzied in FF on my MB.

  • Which is better and why a = new String("AA") or a = "AA"

    Hi,
    Which is better and why
    String a = new String("AA") or
    String a = "AA"
    Does invoking a construtor waste memory? Please explain in detail.
    Thanks in advance
    Deepak

    > So in case "AA" not there in string pool,
    That is not correct.
    does new creates "AA" on string pool as well as heap memory?Yes. The literal "AA" points to a pooled String object. The new operator creates a new String object with the same character sequence ("AA"). You can verify this with a little code...
    String s = new String("AA");
    assert s != "AA";
    assert s.equals("AA");
    assert s.intern() == "AA";~

  • In and EXISTS??which is better and why

    hi...
    Performance wise which is better IN or EXISTS and why..

    user8469486 wrote:
    hi...
    Performance wise which is better IN or EXISTS and why..DomBrooks pointed out that it may not matter due to query optimization rewrites.
    In theory it depends on circumstances.
    Correlated EXISTS subqueries tend to be efficient if the lookup is properly indexed. If the list of values is very small (especially if you only get one value) an IN subquery might be more efficient.

  • Which i/o approach is better and why?

    can someone please explain which i/o approach is better for obtain the data from the InputStream and why? and consequences for reading streams that contain 2-byte characters?
    thank you.
    InputStream in = conn.openInputStream();
    approach 1
    byte[] byteData = new byte[(int)conn.getLength()];
    in.read(byteData);
    String rawdata = new String(byteData);
    approach 2
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    byte[] buf = new byte[128];
    int t;
    while( (t=in.read(buf)) != -1) {
    baos.write(buf,0,t);
    String rawdata = new String(baos.toByteArray());

    First way will be best in terms of performance: you do all the reading procedure in one sentence, avoiding the chequing of the loop condition check and invoking less times the method read, and you too sabe the memory space required for the object baos you employ in the second approach.
    In performance terms I would say second option saves CPU and memory, so it's better.
    Abraham.

  • SAP BW or BO ? Which is better and why

    Hi,
    I dont know much about SAP BW so I am not able to compare which one is better.
    It would be great if someone could help me comparing these tools.
    Which one is better and why ?
    If a user is already using SAP BW and planning to start using SAP BO what could be the features he would go for ?
    I am thinking from the sales perspective for Business Objects to a BW user.
    Regards,
    Chinmay

    Hi,
    Someone might be able to provide you with the comparitive chart or a tabular format to make you understand the differences but I would say that SAP itself has designed the roadmap for the product integration wherever it suited the needs.
    I would like you go through the roadmap of SAP BI and BO integration and you would be able to yourself compare what is in and what is out and why.
    Please give the below link a look:-
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b00a1a75-c49d-2b10-0ebb-ecc80ab88994
    Happy reading.
    Please let us know if you need any further explanation to this.
    Cheers.

  • If i have two option to select between XI or BW which one in better and why

    if i have two option to select between XI or BW which one in better and why
    both in terms of money and in terms of my career growth.......

    Sheetika,
    XI if you  are good in JAVA.The rest is same for both XI and BW.
    K.Kiran.

  • Why is 4.0b11pre not available in win64 and when will the regular betas get win64 version

    Why is 4.0b11pre not available in win64 and when will the regular betas get win64 version

    Mozilla will not be releasing a 64 bit Windows version of Firefox 4. They are creating 64 bit builds for testing purposes, but there will not be an official 64 bit Windows version until some time after Firefox 4 is released.

  • What is better to use and why?

    Hi,
    What is better to use and why?
    We have written follwing statements to check the existence of interested record in table.
    1).
    select count(*) from emp where deptno = 20;
    2).
    select 'X'
    from dual
    where exists (
    select 'X' from emp
    where deptno = 20);
    Thanks and Regards,
    Rushang Kansara

    Assuming a large table, number two would be the fastest. If empno in unique, you can leave out the where exists part and just select x from emp where empno = 20. If empno is not unique, then using where exists can be faster. Assuming that empno is not unique, query 1 may elect to scan the whole table looking for that empno. Number 2 can use the index and return your result in, typically, three LIOs.
    Again, it all depends on your indexing, size of tables, and uniqueness of key upon which you are searching.

  • Linux on Primary Or Logical? which is better?? and why?

    hello,
    what is the best way to install linux ( redhat,oracle enterprise ,etc)
    on primary partition or logical partition ? and why?
    i have 3 hd's ( hda,hdb,hdc) >> ( 40 GB,80GB,320GB) IDE
    why im asking this becoz i installed linux more than 3 times lately and i always ended up with GRUB errors and problems
    any idea plz shed some light on this
    need your experience regarding the optimal solution to install linux along with Windows OS
    thanks and regards,

    Hi,
    Q: what is the best way to install Linux ( redhat,oracle enterprise ,etc)
    A: Almost no difference between Redhat and Oracle Enterprise Linux. But Oracle has patched some additional patches for Oracle database based on Redhat released Enterprise Linux. If you would have subscribed Oracle Unbreakable Linux Network(ULN), which make it easier to update the system and deploy Oracle database. For more details refer to http://linux.oracle.com
    Q: On primary partition or logical partition ? and why?
    A: Your boot partition ought to be a primary partition, not a logical partition. So if you want to boot your operating system from the drive you are about to partition, it should be installed on primary partition. Otherwise, you can install it on logical partition.
    Q: why im asking this becoz i installed linux more than 3 times lately and i always ended up with GRUB errors and problems
    A: For this issue, what kind of GRUB error had you experienced? What the result after re-installing the grub?
    Happy new year!
    Terry

  • DECODE OR CASE - Which is better and why

    Oracle version: 11.2
    Problem: We have a huge table with 10M records, which needs to be processed daily.
    While loading data in table we have to handle condition if flag is =1 then '111' else '000'
    To implement this which one is efficient solution? .. using CASE or DECODE and why?
    Example:
    SQL> select flag,case when flag='Y' then '111' else '000' end from (select 'Y' as flag from dual union all select 'N' from dual);
    F CAS
    Y 111
    N 000
    SQL> select flag,decode(flag,'Y','111','000') from (select 'Y' as flag from dual union all select 'N' from dual);
    F DEC
    Y 111
    N 000

    Hi,
    For this job, they're equally efficient.
    For any job, where DECODE doesn't require a lot more code than CASE, they will be equally efficient.
    I recommend (almost) always using CASE. It's easier to understand and debug, and, if written correctly, will never be slower than DECODE.
    The only situation where I use DECODE is for very simple tasks (like the one you posted) where this is used inside a very complicated expression, and the slightly less coding needed for DECODE makes the larger statement easier to read.

  • LSMW: Idoc or BAPI; which one is better and why ?

    Hi All,
    In LSMW, given the choices between Idoc and BAPI,which processing method is good and why?
    Please do reply asap. Its urgent.
    Best regards.
    Ram

    The preferece of Import Techniques are:
    1)Batch Input
    2)Direct Input
    3)BAPI's
    4)IDOCS's
    5)Recording
    6)Custom Program
    <b>
    Refer these Links:</b>
    Re: LSMW with Recording or LSMW with BAPI?????
    Regards,
    AS

  • Question: Which is better and why....RMAN catalog or Flashback Recovery

    Hey All,
    Newly testing and reading up on 10g. I am on information overload and would appreciate pro's advice on which to choose and why.
    Thanks,
    d.

    Different things, not necessarily alternative. That is, RMAN catalog is normally (at least should be) on another machine, and does not contain physical backups, but only information about them : physical backups are normally stored on external devices, like tapes.
    Flashback Recovery technique is based on Flashback logs in Flash Recovery Area, which is a disk area on local machine, and so cannot be unlimited.
    Therefore, Flashback Recovery is much faster than Media Recovery, since you don't need to restore anything, but you have limits in using that : your disks size.
    On the other hand, RMAN backups are safer, being physically elsewhere.
    See http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/backrec.htm#g1023042

  • Applicant Conversion - Which is better of the 2 options and why?

    Hi -
    I needed your technical expertise to identify the easiest and most efficient method I should take for converting the applicants -
    First option is to Convert the candidate into an applicant by applying to an existing vacancy (This is similar approach we do in the front end ).
    Potential API Internal Name: CONVERT_TO_APPLICANT
    Interface:HR_APPLICANT_API.
    Second method is a two step process, convert the candidate into an applicant, then creating applicant assignment for all the jobs the candidate has applied for.
    Potential API Internal Name: ACTIVATE_EMP_ASG, CREATE_SECONDARY_APL_ASG
    Interface:HR_ASSIGNMENT_API
    Which approach do you experts think would be the best option and why?
    Early response is much appreciated.
    Many Thanks,
    Dinesh Babuji

    If you are looking applicant creation without Assignment , Ist option is good
    If you are looking applicant creation with Assignment , IInd option is good
    Thanks

Maybe you are looking for

  • Problem with bean in a JSP page

    I have developped a JSP pages in wich I call a bean with <jsp:useBean id="db" scope="request" class="SQLBean.class" /> The bean SQLBean.class is in the same directory as the JSP page. When I execute the JSP, I have the following error: SQLBean.class

  • Generating a flat file

    Hi, I have data in my oracle DB and I generated the data using procedure, using consume adapter service, oracleDBbinding. The schema has been formed in my Visual Studio project which it will be my source schema. Now I need to generate a text file wit

  • Making changes in a User's account, my admin's account not recognized

    Just upgraded A Quicksilver 2002 G4 to Leopard from Panther. Used Upgrade and everything worked amazingly well. I'm the admin, my wife & daughter are users. All three of us can log in using the names and passwords we have always used Only trouble is:

  • Running long time- need help

    Following Query running more than 4 hrs. could somone please suggest me to tune this query. SELECT fi_contract_id, a.cust_id, a.product_id, a.currency_cd, ROUND (DECODE (SUBSTR (a.ACCOUNT, 1, 4), '4992', posted_tran_amt, 0), 2 ) ftp_amt, ROUND (DECOD

  • Thousand and decimal seperators

    Hi all, I have a question I need to convert a european number (. as thousand seperator and a , as decimal seperator) to an american number. But I could recieve both type of numbers. So when I get an american number delivered I want to do nothing and