企业门户网站的设计与实现 - 百度文库 ر

getPath();

if(path==null){out.print(\ͼƬ\

}else{out.print(\<% for(int i=0;i

{out.print(\

<%=bf.SearchSsort(\5.3 ģ

ģҪǶҵƷгʱֺ֧ͰõİûʹúάòƷԲƷĽܡƷչʾƷ˵ƷܴڵȵȡܹõĶԲƷάܹӷͻԸòƷ˽⡢ʹԼͼ5.3-1DZչʾĽģͼ

ͼ 5.3-1 ģнͼ

5.4 ԰

5.4.1 鿴Ϣ

԰Ϊͻҵƽ̨ͻԽԼҵĽͨҵŻվ԰巴ҵӶάԼȨʹȨҲõҵ˽ƺƣҵķչ鿴ϢҳҪڷ

20

ҳʾϢͨBaseFactoryе LGuestboardʵֵģ°԰ķҳʾjspļеġ

<%@ page import=\

<%@ page import=\<%@ page import=\<%@ page import=\

<%@ page contentType=\

ͼ5.4.1-1ʾDZʵվн

ͼ5.4.1-1 鿴԰н

5.4.2 Ϣ

Ǵ򿪵ϢϢϷġԡʱͨӽ뵽ϢҳӶϢӡͼ5.4.2-1Ϣҳн

21

ͼ5.4.2-1 Ϣҳнͼ

ϢҳҪͨaddmess_guestboard.jspļʵ֣ΪļзռûϢķԼϢӵݱеķϢܹӵݱҪͨBasetableFactoryеCreateGuestboardķʵֵġʾϢ浽ݿĴ£

<%@ page import=\java <%@ page contentType=\<%@ page import=\

<%@ page import=\԰java <%@ page import=\<% boolean flag0 =false;

String submit=ParamUtils.getParameter(request,\if(submit!=null&&!\{

session.removeAttribute(\

if(\ⲻΪ

{

flag0=true;

session.setAttribute(\Բӱ\ response.sendRedirect(\

22

}

else{ BasetableFactory bbf=BasetableFactory.getInstance(); //

ʧ

if(!bbf.CreateGuestboard(request))

{ flag=true;

session.setAttribute(\Բʧ\ response.sendRedirect(\

else{ //ر԰岢

out.print(\

\

}

} }%>

5.5 ֧ģ

֧ģҪǽͻڲƷʹùп⣬ͻõʹòƷ

ͼ 5.4-1 ֧ģ

23