Error when I execute an action using links

Hi Friends,

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:a href="%{editURL}">Edit</s:a>

Open in new window

<definition name="Page1" extends="baseLayout">
      <put-attribute name="title"  value="Page1"/>
      <put-attribute name="body"   value="/Page1.jsp"/>      

Open in new window

<action name="EditAction" method="EditAction" class="grouping.master.action.Action">
<result  name="success" type="tiles">Page1</result>

Open in new window

The error what I am getting
at org.apache.jasper.runtime.JspWriterImpl.flush(
	at org.apache.jasper.runtime.JspWriterImpl.flush(
	at org.apache.jasper.runtime.JspWriterImpl.flush(
	at org.apache.jasper.runtime.JspWriterImpl.flush(
	at org.apache.tiles.jsp.taglib.RenderTag.doEndTag(
	at org.apache.jsp.baseLayout_jsp._jspx_meth_tiles_005finsertAttribute_005f1(
	at org.apache.jsp.baseLayout_jsp._jspService(
	at org.apache.jasper.runtime.HttpJspBase.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.jasper.servlet.JspServletWrapper.service(
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(
	at org.apache.jasper.servlet.JspServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.ApplicationDispatcher.invoke(
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(
	at org.apache.catalina.core.ApplicationDispatcher.include(
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(
	at org.apache.jasper.runtime.PageContextImpl.doInclude(
	at org.apache.jasper.runtime.PageContextImpl.include(
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(
	at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(
	at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(
	at org.apache.tiles.impl.BasicTilesContainer.render(
	at org.apache.tiles.impl.BasicTilesContainer.render(
	at org.apache.tiles.impl.BasicTilesContainer.render(
	at org.apache.tiles.impl.BasicTilesContainer.render(

Open in new window

I am getting blank page as result.

I am clueless whats going wrong in this. Any help will be appreciable. Thanks in Advance
Who is Participating?
JeraldFernandoConnect With a Mentor Author Commented:
The error was with the jsp file. I dont know what is the real issue but what I did was I copied working jsp file in the tiles section and then used the contents of this error giving page to that one and miraculously it started working

@  Dravid
The Action word doesnt have anythig to do with the error. Thanks for the support.
JeraldFernandoAuthor Commented:
I managed to see what causes the error in the long list....

Caused by: org.apache.tiles.impl.CannotRenderException: JSPException including path '/Page1.jsp'.

Can you please help me on this
Sathish David Kumar NArchitectCommented:
is this ur calss name ??
Action">   why you put name like this its reserved word so change the name and try !
Sathish David Kumar NArchitectCommented:
But Action is the already defined clss in struts so it cause the problem . Any try to change the name . Dont use reserved words ...
JeraldFernandoAuthor Commented:
Work around which was of timely help
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.