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

  • Home
  • SEARCH
  • 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 7877901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:30:35+00:00 2026-06-03T03:30:35+00:00

This is something I’ve been thinking about a lot. What are the advantages and

  • 0

This is something I’ve been thinking about a lot. What are the advantages and disadvantages of a design where the pages are un-mapped pure HTML and JavaScript and the data is all JSON pulled from the Struts 2? No action mappings means relative page references so we don’t have much use for the Struts 2 URL tags or any other tags for that matter. Literally ANY information we need from the model can be retrieved through JSON or handled with a custom Interceptor. Session management for example is usually dealt with in an Interceptor anyways. I’m assuming that JavaScript can get information from the headers here which may not be correct. Please let me know if I’m wrong. Even if I am wrong, one might still use a hidden control or some other means to stash this type of information in. Regardless, I feel certain that it can be done although I am fuzzy on the specifics.

In a nutshell the end result would seem to be a pure HTML / JQuery UI which a UI-only developer, an expert on page design and usability can work with without ever needing to know Java. A person who’s sole purpose is to manage the user experience from the UI side. With the use of tabs, menus pop-ups etc., pages might never need anything except JSON data which would enhance browser caching. This idea also greatly reduces the need for Web Services, since you already have a cleanly de-coupled model and view. We won’t need OGNL or JSTL or have to mess with the value stack or type converters. If you are using Hibernate, I’ve already seen libraries out there that will convert Hibernate entities directly to JSON.

Am I completely off my rocker here? Is it possible to get what Servlets and JSP promised without all the cruft?

  • 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-06-03T03:30:37+00:00Added an answer on June 3, 2026 at 3:30 am

    I’m not sure what your final sentence means at all. Not sure what you mean by “reducing the need for web services”, because what you describe are web services returning JSON.

    That aside; of course you can do everything client-side via JavaScript and get only JSON from S2. If your client-side framework supports it, I don’t really think there are any drawbacks, as long as your app doesn’t require data-specific bookmarking or you’re using a JS library that supports it.

    The level of caching may be slightly higher, but a well-designed, non-JSON-only app can do quite a bit of caching anyway, so I’m not sure how much of a boost you’d get from that–but certainly some.

    Depending on the browser you may run into a variety of issues regarding memory usage, leaks, etc. which can be difficult (or impossible) to track down or resolve, but depending on your app’s usage patterns, and your user’s browser preferences, this may never become an issue.

    With modern browsers, and modern client-side JS frameworks, this kind of app is completely possible, and is being done more and more–it’s not a unique idea.

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

Sidebar

Related Questions

This is something that's been bugging me for many years: why most online services
This is something i have wondered for a while and decided to ask about
The evaluation order does matter a lot, so, is this something called non-referential-transparency? int
I have a JavaScript object that does something like this - using a closure
I have about 500+ memory warnings after running the static analyzer. Is this something
From this example: http://datamapper.wanwizard.eu/pages/getadvanced.html#Deep.Relationship.Include You can see that it says: At this time, deep
Something I have been curious about for quite sometime now. How exactly do you
Is this something I shouldn't try?
When you have code like this: Something something = new Something(); BlahEntities b =
I need to break apart a string that always looks like this: something --

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.