主题 : jeecms新增一个模块 |
级别: 总版主
![]() |
11# 发表于:2016-07-22 15:51:48 IP:115.64.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
![]() |
12# 发表于:2016-07-22 15:57:23 IP:124.145.*.*
回复第9楼
您说的是在wen-inf/config/jeecms-servlet-admin.xml里配置吗 |
||
---|---|---|---|
级别: 总版主
![]() |
13# 发表于:2016-07-22 16:00:25 IP:115.64.*.*
你那个是后台的配置文件 ,前台的是jeecms-servlet-front-action.xml
|
||
---|---|---|---|
级别: 童生
![]() |
14# 发表于:2016-07-22 16:03:26 IP:124.145.*.*
回复第13楼
那个我单独配置的 我的不是jsp吗 我用的注解扫描 单独配的视图解析器 |
||
---|---|---|---|
级别: 童生
![]() |
16# 发表于:2016-07-22 16:04:28 IP:124.145.*.*
回复第13楼
但是还是不行 压根跑不到 那个连接里 |
||
---|---|---|---|
级别: 童生
![]() |
18# 发表于:2016-07-22 16:10:34 IP:124.145.*.*
回复第17楼
版主我有些不明白您说的那个action在页面里怎么配置 |
||
---|---|---|---|
级别: 总版主
![]() |
19# 发表于:2016-07-22 16:12:01 IP:115.64.*.*
你对着我们默认的html前台页面去写action,可以以留言板为例子
|
||
---|---|---|---|
级别: 童生
![]() |
20# 发表于:2016-07-22 16:14:15 IP:124.145.*.*
回复第19楼
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>JEECMS Administrator's Control Panel</title> <#include "/jeecms_sys/head.html"/> <script type="text/javascript"> if(top!=this) { top.location=this.location; } $(function() { $("#username").focus(); $("#jvForm").validate(); }); </script> <style type="text/css"> body{margin:0;padding:0;font-size:12px;background:url(${base}/res/jeecms/img/login/bg.jpg) top repeat-x;} .input{width:150px;height:17px;border-top:1px solid #404040;border-left:1px solid #404040;border-right:1px solid #D4D0C8;border-bottom:1px solid #D4D0C8;} </style> </head> <body> <form id="jvForm" action="login.do" method="post"> <#if returnUrl??><input type="hidden" name="returnUrl" value="${returnUrl}"/></#if> <#if processUrl??><input type="hidden" name="processUrl" value="${processUrl}"/></#if> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="200"> </td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="423" height="280" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="${base}/res/jeecms/img/login/ltop.jpg" /></td> </tr> <tr> <td><img src="${base}/res/jeecms/img/login/llogo.jpg" /></td> </tr> </table></td> <td width="40" align="center" valign="bottom"><img src="${base}/res/jeecms/img/login/line.jpg" width="23" height="232" /></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="90" align="center" valign="bottom"><img src="${base}/res/jeecms/img/login/ltitle.jpg" /></td> </tr> <tr> <td> <div> <#if error??> <ul> <#if error=="org.apache.shiro.authc.IncorrectCredentialsException"> <li><@s.m "error.invalidPassword"/></li> <#elseif error=="org.apache.shiro.authc.UnknownAccountException"> <li><@s.m "error.usernameNotExist"/></li> <#elseif error=="com.jeecms.common.security.CaptchaErrorException"> <li><@s.m "error.invalidCaptcha"/></li> <#elseif error=="com.jeecms.common.security.DisabledException"> <li><@s.m "error.userDisabled"/></li> </#if> </ul> </#if> </div> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="5"> <tr> <td width="91" height="40" align="right"><strong> <@s.m "login.username"/>:</strong></td> <td width="211"><input type="input" id="username" name="username" vld="{required:true}" maxlength="100" class="input"/></td> </tr> <tr> <td height="40" align="right"><strong><@s.m "login.password"/>:</strong></td> <td><input name="password" type="password" id="password" maxlength="32" vld="{required:true}" class="input"/></td> </tr> <#if (errorTimes??&&errorTimes<=0)||(errorRemaining?? && errorRemaining<=0)> <tr> <td colspan="2" align="center"><img src="${base}/captcha.svl" onclick="this.src='${base}/captcha.svl?d='+new Date()*1"/></td> </tr> <tr> <td height="40" align="right"><strong><@s.m "login.captcha"/>:</strong></td> <td><input name="captcha" type="text" id="captcha" vld="{required:true}" class="input"/></td> </tr> </#if> <tr> <td height="40" colspan="2" align="center"> <input type="image" src="${base}/res/jeecms/img/login/login.jpg" name="submit" /> <img name="reg" style="cursor: pointer" src="${base}/res/jeecms/img/login/reset.jpg" onclick="document.forms[0].reset()" /> </td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table> </form> <#include "/common/alert_message.html"/> </body> </html> |
||
---|---|---|---|