web.xml <welcome-file-list>
<welcome-file>welcome.jsp</welcome-file>
</welcome-file-list> welcome.jsp
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<body>
<logic:forward name="welcome"/>
</body>
</html>struts-config.xml
<forward name="welcome" path="/home"/> <action
path="/home"
type="com..MyPageAction"
scope="request"
validate="false"
input="index.jsp">
<forward name="Success" path="/index.jsp"/>
</action>
index.jsp即为首页
<welcome-file>welcome.jsp</welcome-file>
</welcome-file-list> welcome.jsp
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<body>
<logic:forward name="welcome"/>
</body>
</html>struts-config.xml
<forward name="welcome" path="/home"/> <action
path="/home"
type="com..MyPageAction"
scope="request"
validate="false"
input="index.jsp">
<forward name="Success" path="/index.jsp"/>
</action>
index.jsp即为首页
<welcome-file>welcome.jsp</welcome-file>
</welcome-file-list> welcome.jsp
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<body>
<logic:forward name="welcome"/>
</body>
</html>struts-config.xml
<forward name="welcome" path="/home"/> <action
path="/home"
type="com..MyPageAction"
scope="request"
validate="false"
input="index.jsp">
<forward name="Success" path="/index.jsp"/>
</action>
index.jsp即为首页
好像敲http://localhost:8080/myapplication
就会出现欢迎页面的话应该在dns解析的时候实现!
可能上面那位老兄讲的在struts-config.xml中配置也可能实现这就不大清楚了!
我也是新手,说错了请见谅!