Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Presentation logic in the bean, Application logic in the JSP

 
Michel Plungjan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all...
I would like a discussion on where to put what.
My web application accesses a mainframe and returns lists of ID's.
All IDs in one list will be linked to another servlet so it simply becomes an enumeration of links.
On the other list, some IDs will be linked to another servlet and some not.
It is application logic that dictates which ID is linked and which is not HOWEVER if I later want to, say add an image to the link, I will have to edit the servlet/bean
I also have a navigation bar - I want to visually give feedback on what options are active so the bar depends on availability of data from the mainframe - e.g. application logic. I check the browser or user settings and can return a pure text bar, an image bar or a bar created using CSS - It is quite a bit of string handling and java code and repeated code in the JSP.
If I were to take it out of the JSP, what would in you opinion be a clever way of accessing it from the JSP.
Thanks in advance!
Michel
PS: Currently only java people work on the beans and JSPs so it is not technically a problem for us to have lots of java in the JSP - it only feels wrong ;-)
[This message has been edited by Michel Plungjan (edited November 28, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic