JSP... architecture...


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: JSP... architecture...

  1. #1
    Join Date
    Apr 2003
    Posts
    4

    JSP... architecture...

    In very short: I need a JSP to display data that is kept in a DB (actually so far only META tags (HTML HEAD...)) but they change very rarely there... so I made custom JSP tag that returns correct data by matching requesting page's URL to data in a HashMap...

    The only thing now is how to properly implement the 'cache' class that pulls/refreshes the data from the DB say every 60 minutes? (it's ran on multiple servers/load balanced, should be well architected for scalability and performance...)

    Details:
    The 'cache'/pulling class: I need _something_ (like EJB/Servlet) [Question 1: suggestions on what _it_ should be?] to start when the server starts (preferably when it starts VS first request to the resource) [Question 2: how to start it?]

    Once started it pulls some data from DB into a HashMap/ArrayList and continuously pulls data once every 60 minutes from the DB - I should have a thread I guess? [Question 3: best way to implement this?]

    And a custom tag class should pull the HashTabe from the above component every time a JSP page requests it...
    Suggestions on the architecture?

    Any tips, tricks, links, suggestions are much appreciated

    Thank you all...

  2. #2
    Join Date
    Oct 2005
    Posts
    2
    how can i add java class file to in my JSP program?

  3. #3
    Join Date
    Oct 2005
    Posts
    2

    Red face jsp with core java

    how can i add java program in jsp or servlet.the java program might be in frame or applet?

  4. #4
    Join Date
    Apr 2003
    Posts
    4
    This is all J2EE based on MVC archetecture...

  5. #5
    Join Date
    Jul 2005
    Location
    Antwerp - Belgium
    Posts
    29

    adding a java class to a JSP

    If you want to add a java class to a JSP, simply write
    Code:
    <jsp:useBean id="film" class="org.gertcuppens.cluif.Film" scope="session"/>
    To get a better idea on the MVC or Model View Controller design pattern, google around or buy the "Apache Tomcat Bible" from Eaves, Jones & Godfrey. This book explains how to download java, MySQL, Eclipse and it explains how to build a web application with the MVC design pattern.

Similar Threads

  1. JSP model 2 architecture question
    By Kit Mendelson in forum Java
    Replies: 2
    Last Post: 04-24-2001, 06:09 PM
  2. How to invoke C DLLs from a JSP
    By Mohan in forum Java
    Replies: 6
    Last Post: 03-02-2001, 03:42 PM
  3. JSP Advantages, compared to others
    By Rob Biernat in forum authorevents.pekowsky
    Replies: 1
    Last Post: 08-15-2000, 09:05 PM
  4. About JSP Architecture
    By Siva Sankar in forum Java
    Replies: 0
    Last Post: 07-13-2000, 01:50 AM
  5. JSP and the <SERVLET> tag
    By Dusty in forum Java
    Replies: 2
    Last Post: 04-07-2000, 02:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center