Re: S2: What do you forward to after a response writer?
Thank you. I have it working now using separate
action and result classes.
BTW, this page
http://struts.apache.org/2.x/docs/romeresult.html
really helped, perhaps it is what you referred to
below.
Thanks again,
Scott
--- joey <[EMAIL PROTECTED]> wrote:
> You should define your custom result in a separate
> class,and you must
> register your result
> in your struts.xml,like this:
>
>
>
> and you can use it :
>
> I really thought you should read the document and
> source of "result".
> you can download it from struts2 website.
> regards
> joey
> On 3/26/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > Hmm, when I have this class
> >
> > public class PopulateGridAction extends
> ActionSupport
> > implements ParameterAware, Result
> >
> > With this method:
> >
> > public void execute(ActionInvocation invocation)
> > throws Exception
> >
> > It never gets called. Do I have to do something
> > special in my struts.xml? My logfiles says:
> >
> > 11:06:34,342 [[ACTIVE] ExecuteThread: '2' for
> queue:
> > 'weblogic.kernel.Default (self-tuning)'] DEBUG
> > xwork2.DefaultActionInvocation - Executing action
> > method = null
> >
> > I did not see any examples or documentation other
> than
> > the API pages.
> >
> > Thanks,
> >
> > Scott
> >
> > --- joey <[EMAIL PROTECTED]> wrote:
> >
> > > you can just register a custom result which
> > > implement com.opensymphony.xwork2.Result.
> > >
> > > Find detail in struts2 document.
> > >
> > >
> > > On 3/26/07, Scott Nesbitt
> <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > >
> > > > I am moving an app from S1 to S2 that has a
> > > > third-party grid component. In S1 it looked
> like
> > > > this:
> > > >
> > > > public ActionForward perform(
> > > > ActionMapping mapping,
> > > > ActionForm form,
> > > > HttpServletRequest req,
> > > > HttpServletResponse resp)
> > > > {
> > > > try
> > > > {
> > > > GetHandler myGetHandler = new
> > > GetHandler(resp,
> > > > null);
> > > > .
> > > > .
> > > > .
> > > > myGetHandler.writeToClient("ISO-8859-1",
> > > > resp.getWriter());
> > > > }
> > > >
> > > > return mapping.findForward("success");
> > > > }
> > > >
> > > > In S2 I am doing the following:
> > > >
> > > >
> > > > public class PopulateGridAction extends
> > > ActionSupport
> > > > implements ParameterAware,
> ServletResponseAware
> > > > {
> > > >
> > > > public String execute() throws Exception
> > > > {
> > > > HttpServletResponse resp =
> > > getServletResponse();
> > > > GetHandler myGetHandler = new
> > > GetHandler(resp,
> > > > null);
> > > > .
> > > > .
> > > > .
> > > > myGetHandler.writeToClient("ISO-8859-1",
> > > > resp.getWriter());
> > > >
> > > > return SUCCESS;
> > > > }
> > > >
> > > > In S1 it populated the grid fine, but in S2 it
> > > does
> > > > not send back the XML to the grid like it
> should.
> > > I
> > > > guess I do not know what I should specify in
> the
> > > S2
> > > > struts.xml file for the SUCCESS forward. I do
> not
> > > > want it to be the JSP that invoked the above
> code
> > > > because that reloads the grid, and I cannot
> > > specify
> > > > null.
> > > >
> > > > Thanks for any tips or pointers,
> > > >
> > > > Scott
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
>
> > > > No need to miss a message. Get email on-the-go
> > > > with Yahoo! Mail for Mobile. Get started.
> > > > http://mobile.yahoo.com/mail
> > > >
> > > >
> > >
> >
>
-
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
> >
> >
> >
> >
> >
>
> > Expecting? Get great news right away with email
> Auto-Check.
> > Try the Yahoo! Mail Beta.
> >
>
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2: What do you forward to after a response writer?
You should define your custom result in a separate class,and you must
register your result
in your struts.xml,like this:
and you can use it :
I really thought you should read the document and source of "result".
you can download it from struts2 website.
regards
joey
On 3/26/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:
Hmm, when I have this class
public class PopulateGridAction extends ActionSupport
implements ParameterAware, Result
With this method:
public void execute(ActionInvocation invocation)
throws Exception
It never gets called. Do I have to do something
special in my struts.xml? My logfiles says:
11:06:34,342 [[ACTIVE] ExecuteThread: '2' for queue:
'weblogic.kernel.Default (self-tuning)'] DEBUG
xwork2.DefaultActionInvocation - Executing action
method = null
I did not see any examples or documentation other than
the API pages.
Thanks,
Scott
--- joey <[EMAIL PROTECTED]> wrote:
> you can just register a custom result which
> implement com.opensymphony.xwork2.Result.
>
> Find detail in struts2 document.
>
>
> On 3/26/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > I am moving an app from S1 to S2 that has a
> > third-party grid component. In S1 it looked like
> > this:
> >
> > public ActionForward perform(
> > ActionMapping mapping,
> > ActionForm form,
> > HttpServletRequest req,
> > HttpServletResponse resp)
> > {
> > try
> > {
> > GetHandler myGetHandler = new
> GetHandler(resp,
> > null);
> > .
> > .
> > .
> > myGetHandler.writeToClient("ISO-8859-1",
> > resp.getWriter());
> > }
> >
> > return mapping.findForward("success");
> > }
> >
> > In S2 I am doing the following:
> >
> >
> > public class PopulateGridAction extends
> ActionSupport
> > implements ParameterAware, ServletResponseAware
> > {
> >
> > public String execute() throws Exception
> > {
> > HttpServletResponse resp =
> getServletResponse();
> > GetHandler myGetHandler = new
> GetHandler(resp,
> > null);
> > .
> > .
> > .
> > myGetHandler.writeToClient("ISO-8859-1",
> > resp.getWriter());
> >
> > return SUCCESS;
> > }
> >
> > In S1 it populated the grid fine, but in S2 it
> does
> > not send back the XML to the grid like it should.
> I
> > guess I do not know what I should specify in the
> S2
> > struts.xml file for the SUCCESS forward. I do not
> > want it to be the JSP that invoked the above code
> > because that reloads the grid, and I cannot
> specify
> > null.
> >
> > Thanks for any tips or pointers,
> >
> > Scott
> >
> >
> >
> >
> >
>
> > No need to miss a message. Get email on-the-go
> > with Yahoo! Mail for Mobile. Get started.
> > http://mobile.yahoo.com/mail
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2: What do you forward to after a response writer?
Hmm, when I have this class
public class PopulateGridAction extends ActionSupport
implements ParameterAware, Result
With this method:
public void execute(ActionInvocation invocation)
throws Exception
It never gets called. Do I have to do something
special in my struts.xml? My logfiles says:
11:06:34,342 [[ACTIVE] ExecuteThread: '2' for queue:
'weblogic.kernel.Default (self-tuning)'] DEBUG
xwork2.DefaultActionInvocation - Executing action
method = null
I did not see any examples or documentation other than
the API pages.
Thanks,
Scott
--- joey <[EMAIL PROTECTED]> wrote:
> you can just register a custom result which
> implement com.opensymphony.xwork2.Result.
>
> Find detail in struts2 document.
>
>
> On 3/26/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > I am moving an app from S1 to S2 that has a
> > third-party grid component. In S1 it looked like
> > this:
> >
> > public ActionForward perform(
> > ActionMapping mapping,
> > ActionForm form,
> > HttpServletRequest req,
> > HttpServletResponse resp)
> > {
> > try
> > {
> > GetHandler myGetHandler = new
> GetHandler(resp,
> > null);
> > .
> > .
> > .
> > myGetHandler.writeToClient("ISO-8859-1",
> > resp.getWriter());
> > }
> >
> > return mapping.findForward("success");
> > }
> >
> > In S2 I am doing the following:
> >
> >
> > public class PopulateGridAction extends
> ActionSupport
> > implements ParameterAware, ServletResponseAware
> > {
> >
> > public String execute() throws Exception
> > {
> > HttpServletResponse resp =
> getServletResponse();
> > GetHandler myGetHandler = new
> GetHandler(resp,
> > null);
> > .
> > .
> > .
> > myGetHandler.writeToClient("ISO-8859-1",
> > resp.getWriter());
> >
> > return SUCCESS;
> > }
> >
> > In S1 it populated the grid fine, but in S2 it
> does
> > not send back the XML to the grid like it should.
> I
> > guess I do not know what I should specify in the
> S2
> > struts.xml file for the SUCCESS forward. I do not
> > want it to be the JSP that invoked the above code
> > because that reloads the grid, and I cannot
> specify
> > null.
> >
> > Thanks for any tips or pointers,
> >
> > Scott
> >
> >
> >
> >
> >
>
> > No need to miss a message. Get email on-the-go
> > with Yahoo! Mail for Mobile. Get started.
> > http://mobile.yahoo.com/mail
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2: What do you forward to after a response writer?
you can just register a custom result which
implement com.opensymphony.xwork2.Result.
Find detail in struts2 document.
On 3/26/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:
I am moving an app from S1 to S2 that has a
third-party grid component. In S1 it looked like
this:
public ActionForward perform(
ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse resp)
{
try
{
GetHandler myGetHandler = new GetHandler(resp,
null);
.
.
.
myGetHandler.writeToClient("ISO-8859-1",
resp.getWriter());
}
return mapping.findForward("success");
}
In S2 I am doing the following:
public class PopulateGridAction extends ActionSupport
implements ParameterAware, ServletResponseAware
{
public String execute() throws Exception
{
HttpServletResponse resp = getServletResponse();
GetHandler myGetHandler = new GetHandler(resp,
null);
.
.
.
myGetHandler.writeToClient("ISO-8859-1",
resp.getWriter());
return SUCCESS;
}
In S1 it populated the grid fine, but in S2 it does
not send back the XML to the grid like it should. I
guess I do not know what I should specify in the S2
struts.xml file for the SUCCESS forward. I do not
want it to be the JSP that invoked the above code
because that reloads the grid, and I cannot specify
null.
Thanks for any tips or pointers,
Scott
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
S2: What do you forward to after a response writer?
I am moving an app from S1 to S2 that has a
third-party grid component. In S1 it looked like
this:
public ActionForward perform(
ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse resp)
{
try
{
GetHandler myGetHandler = new GetHandler(resp,
null);
.
.
.
myGetHandler.writeToClient("ISO-8859-1",
resp.getWriter());
}
return mapping.findForward("success");
}
In S2 I am doing the following:
public class PopulateGridAction extends ActionSupport
implements ParameterAware, ServletResponseAware
{
public String execute() throws Exception
{
HttpServletResponse resp = getServletResponse();
GetHandler myGetHandler = new GetHandler(resp,
null);
.
.
.
myGetHandler.writeToClient("ISO-8859-1",
resp.getWriter());
return SUCCESS;
}
In S1 it populated the grid fine, but in S2 it does
not send back the XML to the grid like it should. I
guess I do not know what I should specify in the S2
struts.xml file for the SUCCESS forward. I do not
want it to be the JSP that invoked the above code
because that reloads the grid, and I cannot specify
null.
Thanks for any tips or pointers,
Scott
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

