我会尽可能地描述。
struts标记不能在jsp上解析。当你看到什么应该作为链接来解析时,你会看到:
<html:link page="/dto/initDTO.do"><b><i>Design To Order Control System ( DTOCS )</i></b></html:link>
此页面的来源包括:
<%@ include file="/common/taglibs.jsp" %>
如果你看看这个jsp:
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>
<%@ taglib uri='/WEB-INF/tlds/struts-html.tld' prefix='html' %>
<%@ taglib uri="/WEB-INF/tlds/cat-input.tld" prefix="input" %>
<% String URLRoot = request.getContextPath(); %>
如果你看看web.xml文件:
<taglib>
<taglib-uri>/WEB-INF/tlds/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tlds/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tlds/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tlds/struts-template.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-template.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/webTrends.tld</taglib-uri>
<taglib-location>/WEB-INF/webTrends.tld</taglib-location>
</taglib>
</jsp-config>
现在,它正在我的本地WebSphere6服务器上运行,它由IBMRAD启动。当我签出这个项目时,我的本地链接无法解析。但是,当我的队友检查的时候,它在他的本地运行。很明显,我已经确保我在本地运行这个应用程序的步骤和我的队友一样。这个应用程序也运行在我们的websphere测试、QA和PROD环境中。所以,这种情况只针对我的盒子。