The Artima Developer Community
Sponsored Link

Java Answers Forum
What's better solution in reusing JSP?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Antonio Merico

Posts: 1
Nickname: mericoa
Registered: Mar, 2004

What's better solution in reusing JSP? Posted: Mar 30, 2004 1:58 AM
Reply to this message Reply
Advertisement
Suppose that we have a page flow JSP1->JSP2->...->JSPn refering to a use case UC1, realized according to MVC pattern; the flow of the pages is managed by a servlet S1.

Suppose that we have to implement an other use case UC2 with flow page J1->J2->...Jx->JSP1->JSP2->...JSPn->Jx+1->...Jm, which "include" the complete flow page of the use case UC2.

We have two possible ways in proceeding:
1. according to pattern MVC I realize a servlet S1 wich invoke all the page J1, ..., Jx, JSP1, ..., JSPn, Jx+1, ..., Jm. In these case I reuse all the JSP page but I must to "copy and paste" from the servlet S1 all the code which manages pages JSP1, JSP2, ..., JSPn

2. I realize S1 so it can be "completely" reused and I realize S2 which manage the flow of the page Ji (1<=i<=n) and call S1 which control the flow JSP1, JSP2, ..., JSPn

What is the better soluzion in order to obtain more benefit in reusing code?

Thank you very much.

Topic: tel me is it right or wrong Previous Topic   Next Topic Topic: Jakarta Cactus

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use