You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by dream weaver <dr...@yahoo.com> on 2003/06/20 19:28:21 UTC
how to show conformation massage box on client window?
Hi
Thanks for your respose. Sorry, I should make my
question more clear:
In my CustomDialog class, I already successfully using
javax.swing.JOptionPane and made a dialog box for
conformation massage. But it only shows on sever's
window, not on client. I think my problem is "How to
forward it to a JSP?"
The following code is in my delete action on sever
side, this is why only shows on sever's window:
final JFrame frame = new JFrame("Dialog");
final CustomDialog customDialog = new
CustomDialog(frame, poForm, mapping, request,
response, this);
customDialog.pack();
frame.pack();
frame.setVisible(true);
frame.setState(Frame.NORMAL);
can any ony give me more help? Thanks!
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: how to show conformation massage box on client window?
Posted by dream weaver <dr...@yahoo.com>.
Thanks, Mike, great help!!!
--- Mike Jasnowski <mj...@bea.com> wrote:
> Your delete action needs to return a forward defined
> for that delete action.
> In your struts-config for the delete action, define
> a <forward> element that
> looks like this:
>
> ...
> <forward name="delete-successful"
> path="/app/confirmation.jsp"/>
> ...
>
>
> at the end of your delete action (whatever method is
> being executed for the
> delete), you have a statement that looks like this:
>
> return
> actionMapping.findForward("delete-successful");
>
> This can be conditionalized of course where you
> might have a forward defined
> for unsuccessful delete attempts.
>
> Do not include swing based code in your delete
> action class. In the
> confirmation.jsp you can then put any
> message/markup desired.
>
>
> HTH,
> Mike Jasnowski
>
> -----Original Message-----
> From: dream weaver
> [mailto:dreamweaver_y03@yahoo.com]
> Sent: Friday, June 20, 2003 1:28 PM
> To: Struts Users Mailing List
> Subject: how to show conformation massage box on
> client window?
>
>
> Hi
> Thanks for your respose. Sorry, I should make my
> question more clear:
>
> In my CustomDialog class, I already successfully
> using
> javax.swing.JOptionPane and made a dialog box for
> conformation massage. But it only shows on sever's
> window, not on client. I think my problem is "How to
> forward it to a JSP?"
>
> The following code is in my delete action on sever
> side, this is why only shows on sever's window:
>
>
> final JFrame frame = new JFrame("Dialog");
> final CustomDialog customDialog = new
> CustomDialog(frame, poForm, mapping, request,
> response, this);
> customDialog.pack();
> frame.pack();
> frame.setVisible(true);
> frame.setState(Frame.NORMAL);
>
> can any ony give me more help? Thanks!
>
>
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: how to show conformation massage box on client window?
Posted by Mike Jasnowski <mj...@bea.com>.
Your delete action needs to return a forward defined for that delete action.
In your struts-config for the delete action, define a <forward> element that
looks like this:
...
<forward name="delete-successful" path="/app/confirmation.jsp"/>
...
at the end of your delete action (whatever method is being executed for the
delete), you have a statement that looks like this:
return actionMapping.findForward("delete-successful");
This can be conditionalized of course where you might have a forward defined
for unsuccessful delete attempts.
Do not include swing based code in your delete action class. In the
confirmation.jsp you can then put any
message/markup desired.
HTH,
Mike Jasnowski
-----Original Message-----
From: dream weaver [mailto:dreamweaver_y03@yahoo.com]
Sent: Friday, June 20, 2003 1:28 PM
To: Struts Users Mailing List
Subject: how to show conformation massage box on client window?
Hi
Thanks for your respose. Sorry, I should make my
question more clear:
In my CustomDialog class, I already successfully using
javax.swing.JOptionPane and made a dialog box for
conformation massage. But it only shows on sever's
window, not on client. I think my problem is "How to
forward it to a JSP?"
The following code is in my delete action on sever
side, this is why only shows on sever's window:
final JFrame frame = new JFrame("Dialog");
final CustomDialog customDialog = new
CustomDialog(frame, poForm, mapping, request,
response, this);
customDialog.pack();
frame.pack();
frame.setVisible(true);
frame.setState(Frame.NORMAL);
can any ony give me more help? Thanks!
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org