Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 19th, 2008, 12:55 AM
Registered User
 
Join Date: May 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default which one is fast: java Bean implementation Or Arr

Hi,
iam doing a web based project using servlets and jsp.This application will be use around 30 users.
Iam writing all my business logic in a jsp page. There will be a common java bean file for database connection.
Just calling that bean file in all the jsp pages using the jsp:usebean tag.
Now i want to write all my bussiness logics(database querys) in a separate java file.
so wheather i have to write that in a java bean file or using ArrayList Or is there any other methods.
which method is good.Please help me in this.


Regards,
Dhruthi

 
Old April 1st, 2008, 03:07 AM
jomet
Guest
 
Posts: n/a
Default


use packages
http://72.5.124.55/docs/books/tutori...age/index.html

write all your business logics in that package

and include that package in your jsp page
u can then create objects of classes contained in that package
and can call its methods
just we do in a java program



jomet.
---------------------------------------------
Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.





Similar Threads
Thread Thread Starter Forum Replies Last Post
java.lang.IllegalArgumentException: No bean specif vijayks EJB 0 June 1st, 2007 05:37 AM
connecting DB with JSP using Java Bean Q4Java Java Databases 1 May 7th, 2007 03:44 AM
java bean file not found / cannot resolve symbol r Calverstine JSP Basics 4 July 3rd, 2006 05:38 AM
Can/How i use Java Bean & Tag Library in servlet nigam.anand Servlets 0 May 9th, 2006 09:40 PM
java bean VS ejb kishore.dyn J2EE 0 February 20th, 2006 01:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.