JeraldFernando
asked on
Error when I execute an action using links
Hi Friends,
Problem
Getting into an endless loop when I am clicking on a edit link which leads me to an edit Page.
Struts 2, Tiles
JSP Code
Tiles
Struts
The error what I am getting
I am getting blank page as result.
I am clueless whats going wrong in this. Any help will be appreciable. Thanks in Advance
Problem
Getting into an endless loop when I am clicking on a edit link which leads me to an edit Page.
Struts 2, Tiles
JSP Code
<s:iterator value="list" status="listStatus">
<s:url id="editURL" action="EditAction">
<s:param name="type" value="%{type}"></s:param>
</s:url>
<s:a href="%{editURL}">Edit</s:a>
</s:iterator>
Tiles
<definition name="Page1" extends="baseLayout">
<put-attribute name="title" value="Page1"/>
<put-attribute name="body" value="/Page1.jsp"/>
</definition>
Struts
<action name="EditAction" method="EditAction" class="grouping.master.action.Action">
<result name="success" type="tiles">Page1</result>
</action>
The error what I am getting
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:175)
at java.io.PrintWriter.flush(PrintWriter.java:276)
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:175)
at java.io.PrintWriter.flush(PrintWriter.java:276)
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:175)
at java.io.PrintWriter.flush(PrintWriter.java:276)
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:175)
at org.apache.tiles.jsp.taglib.RenderTag.doEndTag(RenderTag.java:222)
at org.apache.jsp.baseLayout_jsp._jspx_meth_tiles_005finsertAttribute_005f1(baseLayout_jsp.java:387)
at org.apache.jsp.baseLayout_jsp._jspService(baseLayout_jsp.java:300)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:650)
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:644)
at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:103)
at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:96)
at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)
at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:103)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:659)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:678)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:633)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:322)
I am getting blank page as result.
I am clueless whats going wrong in this. Any help will be appreciable. Thanks in Advance
is this ur calss name ??
Action"> why you put name like this its reserved word so change the name and try !
Action"> why you put name like this its reserved word so change the name and try !
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
But Action is the already defined clss in struts so it cause the problem . Any try to change the name . Dont use reserved words ...
ASKER
Work around which was of timely help
ASKER
Caused by: org.apache.tiles.impl.Cann
Can you please help me on this