This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes separation of business and presentation logic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "separation of business and presentation logic" Watch "separation of business and presentation logic" New topic
Author

separation of business and presentation logic

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
Hi guys,
I have a generic jsp page that builds custom screens. Right now all the information about a particular screen comes from a file where I describe each of the fields. A class that renders the screen reads this file and builds html screen on the fly. Is there a way I can "marry" a static html page without relying on files that I use right now and Java in order to create a screen? This will make building my generic screens much more flexible since I will be able to create an html page how I see fit without making my render class much too complex in order to describe different possibilites of html component positioning.
thanks a lot,
Alex


All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61447
    
  67

Is there a way I can "marry" a static html page without relying on files that I use right now and Java in order to create a screen?

You lost me here.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
sorry...
I guess what I am trying to say is how can I create sort of html template that will describe how my page will look, but will not include any Java code. Java code that is responsible for manipulating data will read this template and populate all fields as needed.
Hope I am clear this time
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: separation of business and presentation logic