struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: ServletActionRedirectResult issue
Date Thu, 31 Jan 2008 17:30:17 GMT
I'm not sure I understand; in your annotation example you deliberately
provide a wrongly-named parameter, right? Why?

Dave

--- Luis Gervaso <luis.gervaso@gmail.com> wrote:

> My workaround
> 
> @Result(name="success",value="/jsp/tables/findAllTablesRedirect.jsp", type=
> ServletDispatcherResult.class)
> 
> /jsp/tables/findAllTablesRedirect.jsp:
> 
> <%
>
response.sendRedirect("/eventoos/tables/findAllTables.action?eid="+request.getParameter("eid")+"&etid="+request.getParameter("etid"));
> %>
> 
> regards
> 
> On Jan 31, 2008 5:49 PM, Luis Gervaso <luis.gervaso@gmail.com> wrote:
> 
> > Hi,
> >
> > When I try to configure un ServletActionRedirectResult i obtain
> >
> > Caused by:
> >
> > java.lang.NullPointerException
> > 	at
>
org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getUriFromActionMapping(DefaultActionMapper.java:466)
> >
> > 	at
>
org.apache.struts2.dispatcher.ServletActionRedirectResult.execute(ServletActionRedirectResult.java:184)
> > 	at
>
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
> >
> >
> >
> > using
> >
> >
> >
>
@Result(name="success",value="findAllTables",params={"namespace","/tables","eid","${eid}","etid","${etid}"},type=
> > ServletActionRedirectResult.class)
> > public class CreateTableAction extends BaseAction {
> >
> >     private Long eid;
> >     private Long etid;
> >
> > + getters / setters
> >
> > BUT using
> >
> >
> >
>
@Result(name="success",value="findAllTables",params={"namespace","/tables","eid","${eid}","etid7777WHATEVER","${etid}"},type=
> > ServletActionRedirectResult.class)
> >
> > works fine
> >
> > maybe a problem or bug in the implementation
> >
> > Regards
> >
> > --
> > -------------------------------------------
> > Luis Alberto Gervaso Martin
> > Java EE Architect & Instructor
> > C/ Cuenca 4A, 2ºB
> > Getafe (Madrid)
> > SPAIN
> > mobile: (+34) 627983344
> > luis.gervaso@gmail.com
> 
> 
> 
> 
> -- 
> -------------------------------------------
> Luis Alberto Gervaso Martin
> Java EE Architect & Instructor
> C/ Cuenca 4A, 2ºB
> Getafe (Madrid)
> SPAIN
> mobile: (+34) 627983344
> luis.gervaso@gmail.com
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message