• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP views

 
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Our existing application which is using JSP 1.2 is considering expanding the view capability. We are trying to make different views for different users for the same content.

The position of content may change between different views.

Is there any tool in java which allows this? By using stylesheets we could accomplish the same. We don't want to create different pages for each set of viewers.

Any help will be appreciated.
[ July 07, 2005: Message edited by: jiju ka ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

make different views for different users for the same content.



This situation is the poster child for CSS and stylesheets. As such, this has been moved to the HTML forum.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are using CSs it is rather easy to use different style sheets. You can set the style sheet to what the user wants to see either when the page is loading with the server side language or using JavaScript.

Eric
 
jiju ka
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a bit of limitation on our website on using client side code. Our clients are using 56KB line and they always complain about the speed by which the page is rendered. Due to this CSS is our second priority on client side.

Second limitation on CSS is that we don't have much experienced staff willing to work on CSS.

We were in XSL before. It was very memmory intensive. Once we moved from XSL to plain JSP we lost the styling flexibility. But we gained significant performance improvement.

Now we are rethinking about modularizing pages. To say the truth whoever built the JSP pages put so much of repeated code and didn't modularize it. We moved to JSP1.2 recently which will allow us to use page fragmentation.

We are trying to evolve a company wide solution using fragmentation concept. Any styling which works with page fragments is OK.

We used most of our budget in converting from XSL to JSP. So we cannot do major reworks on pages.

In some seminars I heard from people on how they use the page fragmentation concept. I don't know which tool they used and what performance impact it had.

Whatever we decide on this will impact 100,000 of our users in next couple of years.
[ July 18, 2005: Message edited by: jiju ka ]
 
jiju ka
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eric,
Thanks for your reply.

I am new to CSS. I will do some serios learning on CSS before we decide something.
Jiju
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at http://www.csszengarden.com/

You can see how people created seperate style sheets and changed how the page looks and feels, but the content is the same. You can pick different styles from the menu on the right.

Eric
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since download bandwidth is a prime consideration fro your customers, be sure that your CSS rules are linked via an external stylesheet rather than embedded in your pages. This way, not only do you get maximum flexibility, the external stylesheets can be cached by the browser so that the style rules only need be downloaded once, rather than tagging along with each page refresh.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, you might want to check out Resin's XTP (XML Template Pages) technology. (Go Resin!)
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Much as I am a fan of Resin as a servlet container, I'd look askance at any solution that resulted in vendor-lockin.
 
jiju ka
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. We will be evaluating Resin too.
 
reply
    Bookmark Topic Watch Topic
  • New Topic