如何将tomcat默认首页直接访问action 本帖最后由 hyqinger 于 2012-12-29 20:24:01 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果你想打开的默认路径http://localhost:8080/ui/ 那么你可以tomcat conf\Catalina\localhost路径下,新建一个xml文件,把下面的代码粘贴上,文件名ui.xml<?xml version='1.0' encoding='utf-8'?><Context workDir="work\Catalina\localhost\ui" path="/ui" docBase="项目ui本地路径" useNaming="false" reloadable="true"></Context>ps:ui就是你默认想直接登录的页面。 这是我在公司用到的技术,不知道合适ssh吗,希望对你有参考价值 我又个很简单的方法<body> <form action="_userlist.do" method="post" id="pageForm"></form> <center> <table height="100%" align="center"> <tr> <td valign="middle"><img alt="Please waiting...." src='images/loading.gif' border='0'id="singlePhoto" />Please waiting ...</td> </tr> </table> </center> </body> <script type="text/javascript"> $.post("_checkSession.do",function(data){ if (data != null) { document.getElementById("pageForm").submit(); } }); </script> web.xml里面设置一个默认打开页面init.jsp,再在init.jsp页面里面初始自动加载index.action<meta http-equiv="refresh" content="0;url=index.action"> 不懂<meta http-equiv="refresh" content="0;url=index.action">加在哪里 有关乱码的问题... 模拟href 的 css样式 spring关于对数据的封装问题 (高手帮助)用spring接受存储过程返回的值为什么结果是空 或者好像什么都没有 想做一个简易的财务管理软件,各位大侠,应该怎么入手呢? 从数据库里添加js树型菜单(就是说要做一个三级的js树型菜单也是动态添加的) sql2000 转sql2005后,页面内容为什么一直加载? 怎么样用java实现查找局域网共享文件夹? 大家帮个忙,不是很难,但是困扰着我,是关于java bean的 bbs项目问题 获取不到span里面的内容 jxl怎么实现多个单元格的合并
<Context workDir="work\Catalina\localhost\ui" path="/ui" docBase="项目ui本地路径" useNaming="false" reloadable="true">
</Context>ps:ui就是你默认想直接登录的页面。
<form action="_userlist.do" method="post" id="pageForm"></form>
<center>
<table height="100%" align="center">
<tr>
<td valign="middle"><img alt="Please waiting...." src='images/loading.gif' border='0'id="singlePhoto" />Please waiting ...</td>
</tr>
</table>
</center>
</body>
<script type="text/javascript">
$.post("_checkSession.do",function(data){
if (data != null)
{
document.getElementById("pageForm").submit();
}
});
</script>
<meta http-equiv="refresh" content="0;url=index.action">