HTML:MESSAGES,HTML:ERRORS,Ó÷¨
=======<html:messages>============
Action ÖÐ :
ActionMessages message = new ActionMessages();
message.add(" ÏûÏ¢¾ä±ú ",new ActionMessage(" ×ÊÔ´ÎļþÖÐ Key Öµ ",String ÀàÐÍÃèÊöÐÅÏ¢ ));
this.addMessages(request,message);
return ActionForward;
JSP Ò³ÃæÖÐ :
<html:messages id=" Ö¸¶¨Ê¹ÓÃÏûÏ¢µÄ±êʶ " property=" ÏûÏ¢¾ä±ú " message="true|false">
<bean:write name=" ÒÔÉÏËùÖ¸ ID ±êʶ "/>
</html:messages>
==========<html:errors>==============
Action ÖÐ :
ActionMessages message = new ActionMessages();
message.add(" ÏûÏ¢¾ä±ú ",new ActionMessage(" ×ÊÔ´ÎļþÖÐ Key Öµ ",String ÀàÐÍÃèÊöÐÅÏ¢ ));
this.saveErrors(request,message);
return ActionForward;
JSP Ò³ÃæÖÐ :
<html:errors property=" ÏûÏ¢¾ä±ú "/>
Èç¹ûActionÖÐÕâÑùÉ趨(false)£¬Ò³ÃæµÄÌáʾÐÅÏ¢½«²»´Ó×ÊÔ´ÎļþÀï¶ÁÈ¡:
ActionMessages message = new ActionMessages();
message.add("ÏûÏ¢¾ä±ú",new ActionMessage("StringÀàÐÍÃèÊöÐÅÏ¢",false));
this.saveErrors(request,message);
return ActionForward;
JSPÒ³Ãæ:
<html:errors/>»ò<html:errors property="ÏûÏ¢¾ä±ú"/>
Ïà¹ØÎĵµ£º
´úÂëÈçÏ£º
Function RemoveHTML(strText)
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
RemoveHTML = RegEx.Replace(strText, "")
RemoveHTML = replace(RemoveHTML," "," ")
End Function
ÕâÊÇ×î»ù±¾µÄÕýÔòÌæ»»£¬ÓÐÄ³Ð©ÌØÊâ×Ö·û»¹Ã»¹ýÂË£¬¿É×ÔÐÐÌí¼Ó ......
JSPÊÇÈÝÒ׳öÏÖÂÒÂëÎÊÌ⣬²»¹ýÄãֻҪעÒâÒÔϼ¸µã¾ÍÒ»¶¨Äܸ㶨 ¿É²Î¿¼http://www.historycreator.com/bbs/2009-10/19/033181872.html
1¡¢±£Ö¤ÄãµÄÎı¾±àÂëÓëÄãËùÆÚÍûµÄ±àÂëÏà·û£¨ÓÃд×Ö°å´ò¿ªÄãµÄÒ³ÃæÈ»ºóÎļþÁí´æÎª£¬ÔÚ±àÂëλÖÃÑ¡ÔñÄãÆÚÍûµÄÎı¾±àÂ룬GB2312¶ÔÓ¦ANSI£¬UTF8µ±È»¶ÔÓÚUTF8ÁË£©
2¡¢±£Ö¤´úÂëÀïÃæµÄÉùÃ÷±àÂëÓëÄ ......
´Ë´¦Ç¶ÈëµÄflashÀïÃæµÄͼƬÊÇ¿ÉÒÔËæÊ±·¢Éú¸Ä±äµÄͼƬ£¨¶¯Ì¬Í¼Æ¬£©
×¢ÒâÀ¶É«×ÖÌåµÄµØ·½£¬ÕâЩµØ·½¶¼ÒªÍ³Ò»
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="${ctx}/ui/Login/AC_RunActiveContent.js"
language="javascript"></script& ......
ÔÚÍøÉÏËÑѰµ½2Öнâ¾ö·½°¸£º
1.ÆäʵֻҪÔÚ±í¸ñ¿ØÖÆÖÐÌí¼ÓÒ»¾ä
<td style="word-break:break-all">¾Í¸ã¶¨ÁË¡£
ÆäÖпÉÄܶÔÓ¢ÎÄ»»ÐпÉÄÜ»á·Ö¿ªÒ»¸öµ¥´ÊÎÊÌ⣺½â¾öÈçÏ£º
Óï·¨£º
word-break : normal | break-all | keep-all
²ÎÊý£º
normal : ¡¡ÒÀÕÕÑÇÖÞÓïÑԺͷÇÑÇÖÞÓïÑÔµÄÎı¾¹æÔò£¬ÔÊÐíÔÚ×ÖÄÚ»»ÐÐ
break-all ......