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
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.)
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.
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.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop