Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pro JSP pattern

 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the design pattern with JSP used by pros? do they still use the approach where servlet send info as object to JSP? or is it better to make servlet send XML text to JSP so that the possibility of memory leak is smaller? what about the UI objects? is it better to use framework specific tags like GWT or JSF tags to create textboxes or any other objects for the UI design, or is it better to use HTML5 native tags to create them? thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
None of your questions has a definitive answer. It's all subjective and based upon people's experiences and preferences. For example, I think JSF is an abomination that needs to be excised like a cancer, and there are people who love JSF. There is no "best way" that works for everyone.

(But the notion of sending XML to the JSP to "avoid memory leaks" is mystifying nonsense.)
 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay, some people think about JSF the same way. but the real question is : is it better to use HTML5 native tags to design the UI page, or is it better to use framework tags like GWT. and what is the best way (I want to know as many options as possible for me to decide) to give info back and forth from JSP to servlet and vice versa. I don't need the silver bullet that can handle all cases, it's impossible. but I do want to know as many methods as possible along with their pros and cons. thanks for the input.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I say again: there is no "best way". Each has it's advantages and disadvantages that will vary from developer to developer. Your question is not answerable.
 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry, I'll rephrase the question :
1. ways for JSP and servlet to give info back and forth? please also tell me the pros and cons and cases appropriate for each approach
2. ways to design UI page? framework specific tags or HTML native tags or are there any other ways? pros and cons and cases appropriate for each approach.
thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic