⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lib0103.html

📁 java外企软件工程师就业班 J2EE方向 《J2EE架构师手册》 电子书
💻 HTML
字号:
<html>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<title>Common Mistakes</title>
<link rel="STYLESHEET" type="text/css" href="images/xpolecat.css">
<link rel="STYLESHEET" type="text/css" href="images/ie.content.css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;"><a href="toc.html"><img src="images/teamlib.gif" width="62" height="15" border="0" align="absmiddle"  alt="Team LiB"></a></div></td>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href="LiB0102.html"><img src="images/previous.gif" width="62" height="15" border="0" align="absmiddle" alt="Previous Section"></a>
<a href="LiB0104.html"><img src="images/next.gif" width="41" height="15" border="0" align="absmiddle" alt="Next Section"></a>
</div></td></tr></table>
<br>
<div class="chapter">
<a name="ch15"></a>
<div class="section">
<h2 class="first-section-title"><a name="507"></a><a name="ch15lev1sec3"></a>Common Mistakes</h2><p class="para">
<b>Putting business logic in JSPs or servlets.</b> Business logic tends to make JSPs and servlets more complex and difficult to maintain unless your organization buys development tools that allow interactive debugging. I've seen Web applications with all server-side code embedded in servlets.</p>
<p class="para">
<b>Declaring instance-level variables on servlets.</b> Don't consider servlets thread safe by default (even if you implement <span class="fixed">SingleThreadModel</span>). I've even seen a development team "synchronize" every method in the servlet in an attempt to compensate for the problems caused by declaring instance-level variables.</p>
<p class="para">
<b>Using no formal navigation control.</b> Without a formal control structure, presentation layer code is often unstructured and unorganized. It's usually harder to maintain. Besides Struts, another good presentation layer control package is Maverick (<a target="_top" class="url" href="http://mav.sourceforge.net/">http://mav.sourceforge.net/</a>).</p>
</div>
</div><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;"><a href="toc.html"><img src="images/teamlib.gif" width="62" height="15" border="0" align="absmiddle"  alt="Team LiB"></a></div></td>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href="LiB0102.html"><img src="images/previous.gif" width="62" height="15" border="0" align="absmiddle" alt="Previous Section"></a>
<a href="LiB0104.html"><img src="images/next.gif" width="41" height="15" border="0" align="absmiddle" alt="Next Section"></a>
</div></td></tr></table>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -