aspose file tools*
The moose likes Servlets and the fly likes Framework creating tips for web applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Framework creating tips for web applications" Watch "Framework creating tips for web applications" New topic
Author

Framework creating tips for web applications

yogesh seth
Greenhorn

Joined: Jun 28, 2005
Posts: 17
Hi,

We are developing multiple web applications and will host them as different products.
I am currently in the process of developing a framework which will be used by the developers as the base for developing the web applications. Some functionalities like logging, exception handling, service locator, taglibs, Data AccessManager i intend to put in the framrwork.
we will have a framework.jar which will be used by the web applications.
This will make the life of the developers working on differnet products easy and also ensure smooth maintainability of the different products as they basic framework will be same across all.

are there any sites which can give some general tips for doing this job effectively specially for exception handling, logging and build environment?
one issue i m facing is that the common web resources (eg. tlds) cannot be included in frameework.jar, rather they have to be copied in the WEB-INF folder of the web application. i am copying the web resources at buil time from framework source folder to web application.

any other features except from the ones listed above which can be a part of framework?

i know the question is vague any suggestions/comments are welcome.

thanks

ps: btw we r using spring on web and business layers and IBatis on data access layer.
Dave Wingate
Ranch Hand

Joined: Mar 26, 2002
Posts: 262
one issue i m facing is that the common web resources (eg. tlds) cannot be included in frameework.jar, rather they have to be copied in the WEB-INF folder of the web application. i am copying the web resources at buil time from framework source folder to web application.


We resolve the problem in the same way (ant script that copies one canonical tld file to all webinf dirs). I'd be very interested to hear if anyone has a more elegant way to do this.


Fun programming etcetera!
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Generally speaking, I think it's perfectly acceptable for a file to be copied into a number of directories. What matters is that this process is automated via a script.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61432
    
  67

(eg. tlds) cannot be included in frameework.jar


TLDs most certainly can be included in a jar file. I do it all the time.

Just be sure that they are placed in the correct location (META-INF) and that the web apps use auto-discovery to find them (e.g. not declared in web.xml).


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Moving to Servlet.


GenRocket - Experts at Building Test Data
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Ant and log4j are two tools that you should defineately look at.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Framework creating tips for web applications