Link to home
Start Free TrialLog in
Avatar of aman0711
aman0711

asked on

Too many jsp pages in a web application

Hi Experts,
                   I was working on a web application, which basically helps user to see some data in tabular form along with related line charts.

                  I am new to java, and for the simplicity, I went on creating a new jsp page for every new Application that we wanted to display. Now my jsp count is already close to 70 and with some more applications heading my way, it will reach somewhere around 100 (I know a big stupid design)
              I dont have a single clue, how to fix this kind of problem. Can you please provide me your valuable suggestions.

               I have attached one of the same page, where the chart itself is rendered in a seperate page, the table below the chart is another seperate. They are both included in the container (main page).
Page-emo.PNG
SOLUTION
Avatar of Bart Cremers
Bart Cremers
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aman0711
aman0711

ASKER

Hi Bart_cr,
                      This is my very first web application on real world scenario, so i dont know the actual jsp counts.
                       
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Actually the global structure is wrong as per your definition. Even for a light change I have to go through all the jsp pages, which is so tiring and error prone. moreover its violating the web application development rules.
ASKER CERTIFIED SOLUTION
Avatar of Murali Murugesan
Murali Murugesan
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Murali,
                 Thanks for your suggestions :-)

>> Whereever you have included the page using <%@include ..... (used in a single page and not included in multiple pages) then you can just move those jsp contents to the target jsp with few or no bugs.

I have used <%@include... for header, footer and left navigation panel for now. Other stuff like the chart and tabular table below it, I am using jsp:include tag for that.


>> using Sitemesh

How tough would be to implement Sitemesh now? Will it be helpful for me in future if we decide to change the appearance of the website? I am a newbie with java
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the descriptive answers Murali.
I will try to run Sitemesh... you and other EE experts can help me run it.

none of my page has big load of data to display, so I guess sitemesh would be fine? right
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Murali,

                        very very helpful :-)
Thanks folks :-)