I'm using struts 2 application where
< s: form name="myForm">
< s:include value = "test.jsp" >< / s:include>
< img src="../../images/next.png" onclick="fnNext();"/>
< / s:form>
test.jsp contains a table with id = "my table"
我必须用Wordpress开发一个类似于JSP中已经存在的站点,它一次处理大约.50K users a day and 200 users。在负载测试中,我得到wordpress一次只能处理40 users (使用Super Cache插件ON)。另外,我还在Shared hosted server上托管了我的网站。
因此,请建议我一些方式或指导我的optimize我的wordpress网站,以便它也可以处理相同的流量。
提前谢谢。
我的问题是如何排除编译后的jsp类中的异常。
示例:我从生产系统获得了以下堆栈跟踪(运行在Apache上):
java.lang.NullPointerException
at jspc_compiled.infobox_jsp._jspService(infobox_jsp.java:147)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
a
尝试将portlet JSP放入WEB文件夹并遇到错误
Path /WEB-INF/jsp/newportlet/view.jsp is not accessible by this portlet
为什么会发生此错误?允许portlet访问WEB是可能的吗?是否可以通过将portlet JSP直接放在web中的方式来直接从WEB浏览器访问portlet?
更新1
我刚刚通过向导创建了一个新的portlet。没有编写代码,只有JSP位置集。该位置适用于向导,因为它将JSP放在那里。该位置在portlet.xml中反映为<portlet>标记的以下子标记:
<init-para
我有一个要包含在多个页面中的header.jsp。标题页中有三个链接。我使用css来向用户指出他们在任何给定点所在的页面。以下是header.html的代码:
<ul>
<%-- Check for the activeState parameter to decide which css to use --%>
<c:choose>
<c:when test='${requestScope.activeState == "home"}'>
<li>