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 8745715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:04:43+00:00 2026-06-13T12:04:43+00:00

The index.jsp contains java codes which will fetch some images and texts from a

  • 0

The index.jsp contains java codes which will fetch some images and texts from a database.

In the JavaScript file I wrote.

$(document).ready(function(){
    //When Document is Ready, Show the Main Page
    $("#showifjavaenabled").fadeIn(1000);

    });

So in the beginning, the DIV showifjavaenabled is hidden, but I noticed that even when it shows up after 1 second, not all java are executed because they are actually a lot, the time they need to load isn’t big, it’s only a second or two, but still it’s looking bad, how can I .show() or .fadeIn() this page only after all java codes have been executed?

  • 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-13T12:04:44+00:00Added an answer on June 13, 2026 at 12:04 pm

    This is one of the reasons for not putting java code into JSPs…

    If you are doing server-side business, you should do it server side, then forward the request to the JSP with all data already loaded.

    OR you can use AJAX calls to perform Java frontend operations, using kind of tiles (the page is loaded, the little box loading with ajax has still the progress bar running until he’s done.

    Avoid scriptlets (<% %>) as much as you can, and separate concepts for a better results.


    EDIT:
    You should really try to start with some framework like Struts2 (not Struts1, that is harder and less powerful).

    It’s not difficult, well documented, and the time you spend to learn the ‘hello world’ and to setup your application will come back immediately in terms of power and easyness, and you could use it for future applications.

    Posting a gigantic comma separated string from server to client, and then de-tokenize it there is not Object Oriented Programming.

    OOP would be one object for every conceptual object you need to work with, exposed to the JSP through an Action, and accessed in JSP with EL or OGNL tags…

    i know the step seems huge, but it is worth doing…

    Or you can stay with your antipattern, antediluvian technology and try to hack this problem, maybe for today you will end this software, but tomorrow you will have the same problems.

    My 2 cents (as said, i was in your situation years ago… )

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

Sidebar

Related Questions

I have index.jsp from which I get the parameters to servlet LoginServlet.java The servlet
I deployed a simple war file (vivek.war) which contains a simple index.jsp file successfully
monitorUrl-- http://host03:8810/solr/admin/stats.jsp which contains this xml file. <?xml-stylesheet type=text/xsl href=stats.xsl?> <solr> <core></core> <schema>test</schema> <host>domain.host.com</host>
I have a page index.jsp available at this link https://www.dropbox.com/s/0smy7nlcmilkqt4/index.jsp . This file contains
I have a page which I'm converting from Velocity to JSP. I have some
I am trying to use an image in the below index.jsp file in a
Our web app contains both index.html and index.jsp, and we use Apache Tomcat 6.
I am creating a table based on result from servlet, which contains a checkbox
I have a index.jsp file that has two different types of forms <form action=searchpath
For example on our index.jsp contains only one link: <a href=<s:url action='viewBook'/>>Your Book</a> In

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.