Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7057583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:00:15+00:00 2026-05-28T04:00:15+00:00

I was asked to add a module to existing system. While studying the structure,

  • 0

I was asked to add a module to existing system. While studying the structure, I found something ‘weird’. The system is struts1 based.

In some jsp, I found there are some DAO call to return entity object.
In most JSP pages, there is a <app:validate> tag, which would make call to DAO to check access rights, and would redirect to the login page if not permitted.
There is an accessDA object, but it does more than data fetching, it also does some access right checking.

My questions are:

  1. Does calling out DAO in view lead to tier leakage?
  2. Is the app tag implementation a good practise (or should it do checking at action class instead of at view)?
  3. Is the accessDA too fat?
  4. Should my new module follow the existing structure?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:00:15+00:00Added an answer on May 28, 2026 at 4:00 am

    1) IMO yes, but: it’s not a leaky abstraction as such, precisely because it’s in a tag. Tags exist to abstract implementation details from the view. It’s also arguable that doing the access lookup in the action makes the action responsible for something that’s relevant only to the view layer.

    Another issue with encapsulating the data access in the tag itself is that if there are many uses of the tag on the page there may be more data access than necessary, slowing response time. A clever tag could mitigate this by caching values, or caching may be implemented at a deeper level.

    2) A tag like that should be acting against the current user object, which should have encapsulated the user’s rights already (probably on login). That said, it may not be sufficient to use cached values to determine access rights if those rights may change during a user’s session.

    3) I don’t know; without knowing more details IMO that’s impossible to answer.

    4) Depends. Doing the same thing multiple ways can lead maintenance nightmares.

    If there’s an effort to re-structure the application according to best practices, then yes, new development should follow better patterns. If there isn’t, IMO it’s more confusing to introduce multiple ways of doing the same thing, and makes it more difficult for those who follow because they then need to decide which way to do something, determine if there’s a functional difference between the different ways, and so on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been asked to add some logging to a legacy application using .net
I have been asked to add support to a xml based website. I have
I have some reports with drilldown, and I have now been asked to add
Edited to add more details: (originally asked nearly two months ago...still haven't found a
A website that I co-own has been asked us to add some content to
I was recently asked to add some Woopra JavaScript to a website and noticed
This question is based on this previously asked question : Magento custom module date
I've been asked to add Google e-commerce tracking into my site. This tracking involves
I'm being asked to add queryability to a database (Oracle) filled with mostly binary
I've been asked to add Google Earth images to a desktop app (civil engineering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.