Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP design question

Status
Not open for further replies.

shine67

Programmer
Jan 11, 2002
41
US
I am writing a reporting application in JSP, HTML, and JS. The top part has several buttons user can click including Retrieve, Save, Add, Delete, and Close. More than one button share some common parts of the program code such as retrieving data from database has to be in Retrieve as well as Delete (delete data and then retrieve). I don't have any model jsp scripts which I should look at so I am now confused if I should write one jsp file for everything or write one jsp for each button. In the first case the program becomes a little bit complicated but no duplicate code. The second choice allows each module having its own but some code such as data retrieval have to be duplicated. What is the best solution?

Thanks,
Shine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top