标签: struts

在WEB-INF目录下移动JSP的问题

当我将JSP文件与WEB-INF/web /目录下的CSS和JS文件一起移动时,我遇到了问题.问题是,当JSP页面加载时,它不会加载CSS和JS文件.如果您对此有任何疑问,请提供帮助.

谢谢

欧麦尔

java jsp struts web-inf java-ee

1
推荐指数
1
解决办法
6497
查看次数

Struts - 异常 - 无法找到Struts调度程序

我在用Struts 2.1.8.1.我想使用struts我的jsp页面提供的标签.例如

<%@ taglib prefix="html" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Transfer Program - Login</title>
   </head>
   <body>
       <html:form action="/loginaction.do" method="post">
           Username:<html:text name="username"></html:text>
       </html:form>
   </body>
</html>
Run Code Online (Sandbox Code Playgroud)

但是当我运行上面的jsp页面时,我收到以下错误:

The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this …
Run Code Online (Sandbox Code Playgroud)

java jsp struts

1
推荐指数
1
解决办法
2万
查看次数

在Struts 1.1中抛出"No bean specified Error"的可能原因是什么?

在Web应用程序中运行Struts 1.1时抛出此错误的可能原因是什么?我的IDE控制台窗口中的堆栈跟踪如下所示:

java.lang.IllegalArgumentException: No bean specified
at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3245)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2003)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Run Code Online (Sandbox Code Playgroud)

java struts

1
推荐指数
1
解决办法
2万
查看次数

java.sql.SQLException:超出锁定等待超时; 尝试在MYSQL中重启事务异常

我在MYSQL中使用表名"test",它在事务T1期间锁定,将在20分钟内完成.当我在这20分钟内通过另一个事务T2更新此表时.我得到一个例外: -

11:58:38,584 ERROR [STDERR] java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
11:58:38,584 ERROR [STDERR]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
11:58:38,584 ERROR [STDERR]     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
11:58:38,584 ERROR [STDERR]     at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1124)
11:58:38,584 ERROR [STDERR]     at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:676)
Run Code Online (Sandbox Code Playgroud)

请给我解决方案,如何在不得到此异常的情况下执行此事务T2?

在mysql数据库中更新innodb_lock_wait_timeout的值是否正确以解决此异常.我期待着为这个问题找到任何有用的解决方案.

java mysql sql struts

1
推荐指数
1
解决办法
3万
查看次数

有没有人在这里使用Struts 1进行新项目?

我有一个场景,客户要求在struts 1上开发一个新项目.看起来他们有很多应用程序在Struts 1上运行,内部IT团队对此很满意.

对于数据访问,我们被要求编写JDBC,没有ORM,甚至不是Spring DAO.他们开发了一个框架,我们被要求使用它.

我想知道这里是否有人遇到类似情况,并设法说服客户使用更新的框架.

struts perception

0
推荐指数
1
解决办法
778
查看次数

java.lang.ClassNotFoundException:org.apache.commons.logging.LogFactory

我正在使用My-eclipse并且执行struts项目没有语法错误但是在启动tomcat服务器时,控制台中出现以下错误.

java.lang.ClassNotFoundException:org.apache.commons.logging.LogFactory

javax.servlet.UnavailableException:解析错误处理资源路径jndi:/localhost/strutspro/WEB-INF/struts-config.xml

任何想法是什么问题.

java struts

0
推荐指数
1
解决办法
2万
查看次数

如何重命名现有文件

我的硬盘中有一个现有文件,我想重命名这个文件.

java struts rename file

0
推荐指数
1
解决办法
5464
查看次数

Struts 1.3有哪些替代方案

我的产品目前使用Struts 1.3进行Web GUI开发.这或多或少是我们作为组织指令的重点.最近,我们遇到了问题.主要的一点是其陡峭的学习曲线 - 最近进入团队的新Web开发人员习惯于使用Spring MVC,需要几周时间才能获得高效率.

我们已经就是否应该寻找Struts 1.3的替代品进行了一些讨论.我们的Web GUI很快就会有许多新功能,我不确定是否值得努力从头开始使用新的Web框架.从我的交谈中几个有经验的Web开发人员(我目前的组织以外),并从我自己在网上研究收集,Struts的1.3是一个稳定的,成熟的,相当受欢迎(Apache的Struts的网页声称,它是最流行网络框架,但我带了一点盐).

你有什么看法?

java migration struts web-frameworks

0
推荐指数
1
解决办法
2919
查看次数

xpages和java框架

XP开发中似乎有越来越多的炒作.

到目前为止,我所看到的XPages对于快速开发Forms是有益的.它似乎是VB的现代版本

使用xpages与其他java框架相反的优点是什么?

java spring struts struts2 xpages

0
推荐指数
1
解决办法
1089
查看次数

是否存在解析int的方法或者如果不能这样做则返回0?

我经常不得不在不同的地方和项目中写这样的东西.

int appointmentId =  Integer.parseInt(StringUtils.isNotEmpty(request.getParameter
("appointmentId")) ? request.getParameter("appointmentId"): "0");
Run Code Online (Sandbox Code Playgroud)

是否有一个公共类返回解析的int或0或您指定为默认返回值的内容?

java spring struts

0
推荐指数
1
解决办法
147
查看次数

标签 统计

struts ×10

java ×9

jsp ×2

spring ×2

file ×1

java-ee ×1

migration ×1

mysql ×1

perception ×1

rename ×1

sql ×1

struts2 ×1

web-frameworks ×1

web-inf ×1

xpages ×1