42
Originally posted by David O'Meara:
A little more generic than 'Servlets and JSPs', but there is a common misconception that web applications should run and interact like desktop applications.
Originally posted by Dan Novik:
>client machine from a servlet app or in questions about "back button"
>or "refresh button" issues and why server side Java doesn't have specific >methods for handling them.
At least this stuff (refresh, double posting) is addressed in web frameworks based on JSP and servlets (tokens in Struts, redirection in JSF)
Originally posted by Adeel Ansari:
One of the bigest problem is,
Folks would like to start from the forum without prior knowledge. Sometimes I feel like they really dont want to do on their own at all. Please dont mind folks.
We have many stuff for the begginers over the net, just need some googling around, and at suns site. They dont even try to read the docs and specs sometimes.
Sometimes they just mess up javascript with scriptlets. And I can remember a topic it was "difference between JSP and struts", as Jeroen mentioned earlier.
[ February 03, 2005: Message edited by: Adeel Ansari ]
Originally posted by Ben Souther:
I don't disagree with you. A lot of people seem to make 'asking for help' the first course of action.
I don't, however, think that really fits in with Servlet/JSP/WebProgramming misconceptions. Maybe a learning misconception...
I was hoping we could put together a really informative 'Top 10' (or even 'Top 5') list of gotchas that would help a new web programmer avoid some of the pitfalls that we've all had to dig ourselves out of at one point or another.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Stan James:
Is there a common root cause for all these misconceptions? Overly complex architecture? Unclear doc? J2EE spec design fails to separate concerns?
Is there anything we can do about it? Use the FAQ? Write a book?
http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Originally posted by steve souza:
And finally a servlet/jsp specific one. When coding servlets you must understand thread safety, and that a servlet instance variable can be shared by any process executing the servlet. Bits can hit the ceiling if you don't realize this one.
Originally posted by Stan James:
Is there a common root cause for all these misconceptions? Overly complex architecture? Unclear doc? J2EE spec design fails to separate concerns?
Is there anything we can do about it? Use the FAQ? Write a book?
Originally posted by Gregg Bolinger:
This is a pretty interesting list. I think that as this list grows it would be a good list to put in our JavaEnterpriseEditionFaq on our wiki pages. This board doesn't have sticky threads so once this thread gets buried, no one will see it.
Originally posted by Gregg Bolinger:
Another common mistake, which has been eluded to but not mentioned specifically, is that you can learn J2EE without learning J2SE. New programmers think they are 2 unrelated API's which is not the case. J2EE is more of an extension on top of J2SE that allows web development. If someone thinks they can learn J2EE without knowing Java basics first, they are highly mistaken.
Originally posted by Jeroen Wenting:
another one (again mainly concerned with JSP):
The idea that Struts is a Sun standard and somehow a replacement for servlets and JSP.
Originally posted by Ben Souther:
I don't spend enough time in the frameworks forum to see this but I can certainly see it being an issue. I definitely wouldn't want to try to learn servlets/JSP from within one of the frameworks.
Originally posted by Ben Souther:
If it reaches 10 items, I'll put it up there.
Originally posted by David O'Meara:
No reason to define 10 as the limit, just go as far as you need![]()
Two more (may already be included, I didn't look too carefully)
* How to limit/count the number of Servelt instances
* Why use init(), why not use the constructor?
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|