This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

minor design question  RSS feed

 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I want to use a servlet to stream HTML from the database to the user, would it be prettier design to use the servlet to call the methods to pull it from the database and then forward the HTML text to a JSP to present it, or should I just stream the bytes directly from the servlet? It seems like it wouldn't be that advantageous in this case to go all the way to a JSP, but I'll defer to the wisdom of the ancients if they foresee any potential design issues down the road...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the page is in final format from the DB, why go through all the overhead of a faux JSP page?
 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds good...thanks for the confirmation!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!