wood burning stoves 2.0*
The moose likes JSP and the fly likes Pro JSP pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Pro JSP pattern" Watch "Pro JSP pattern" New topic
Author

Pro JSP pattern

Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
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

Joined: Jan 10, 2002
Posts: 61426
    
  67

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.)

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
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

Joined: Jan 10, 2002
Posts: 61426
    
  67

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

Joined: Jan 31, 2011
Posts: 239
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pro JSP pattern