You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Geeta Ramani <gr...@terralink.com> on 2004/06/23 17:23:03 UTC

RE: delete a record

Julia:

I think your question may not be too clear. First what do you mean by "delete a record in struts"? Strictly speaking, I believe Struts does not (should not) have code which properly belongs the business/database layer. So assuming that you want to show a confirmation page when your application successfully deletes a record in the database, all you have to do is forward the user to a success.jsp. Which is similar to what you always do in Struts. So what exactly is your problem? If you explain your problem more and/or show some code, maybe someone can help you out.

Regards,
Geeta

> -----Original Message-----
> From: Julia Weaver [mailto:dreamweaver_y03@yahoo.com]
> Sent: Wednesday, June 23, 2004 11:27 AM
> To: Struts Users Mailing List
> Subject: delete a record
> 
> 
> Hi,
> 
> Can anyone please tell me:
> How to do a confirmation when delete a record in
> struts? 
> 
> Thank you,
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

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


RE: delete a record

Posted by Michael McGrady <mi...@michaelmcgrady.com>.
This is not a struts issue.  You have a few choices.  JavaScript is a poor 
one, in my opinion.  Use two response objects: one to give them the option 
and the second to give them the option the second time.  Another way to do 
this is to archive the record instead of deleting it and only delete it 
upon confirmation.  You can archive the record by creating a boolean 
archive value in the record.  There are lots of solutions, of course.

At 08:41 AM 6/23/2004, Julia Weaver wrote:
>Thank you Geeta,
>
>What I want to do is when user click DELETE button,
>will show a pop-window with information "Are you sure
>you want to delete the record?", and with YES and NO
>buttons.
>
>
>
>
>
>--- Geeta Ramani <gr...@terralink.com> wrote:
> > Julia:
> >
> > I think your question may not be too clear. First
> > what do you mean by "delete a record in struts"?
> > Strictly speaking, I believe Struts does not (should
> > not) have code which properly belongs the
> > business/database layer. So assuming that you want
> > to show a confirmation page when your application
> > successfully deletes a record in the database, all
> > you have to do is forward the user to a success.jsp.
> > Which is similar to what you always do in Struts. So
> > what exactly is your problem? If you explain your
> > problem more and/or show some code, maybe someone
> > can help you out.
> >
> > Regards,
> > Geeta
> >
> > > -----Original Message-----
> > > From: Julia Weaver
> > [mailto:dreamweaver_y03@yahoo.com]
> > > Sent: Wednesday, June 23, 2004 11:27 AM
> > > To: Struts Users Mailing List
> > > Subject: delete a record
> > >
> > >
> > > Hi,
> > >
> > > Can anyone please tell me:
> > > How to do a confirmation when delete a record in
> > > struts?
> > >
> > > Thank you,
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Address AutoComplete - You start. We
> > finish.
> > > http://promotions.yahoo.com/new_mail
> > >
> > >
> >
>---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail:
> > user-help@struts.apache.org
> > >
> > >
> >
> >
>---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> >
> >
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Mail - 50x more storage than other providers!
>http://promotions.yahoo.com/new_mail
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org



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


RE: delete a record

Posted by Julia Weaver <dr...@yahoo.com>.
Thanks for everyone' suggestion...


		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

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


RE: delete a record

Posted by DG...@EvergreenInvestments.com.
http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=javascript+confirm

Dennis




Julia Weaver <dr...@yahoo.com> 
06/23/2004 11:41 AM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>


To
Struts Users Mailing List <us...@struts.apache.org>
cc

Subject
RE: delete a record






Thank you Geeta,

What I want to do is when user click DELETE button,
will show a pop-window with information "Are you sure
you want to delete the record?", and with YES and NO 
buttons. 





--- Geeta Ramani <gr...@terralink.com> wrote:
> Julia:
> 
> I think your question may not be too clear. First
> what do you mean by "delete a record in struts"?
> Strictly speaking, I believe Struts does not (should
> not) have code which properly belongs the
> business/database layer. So assuming that you want
> to show a confirmation page when your application
> successfully deletes a record in the database, all
> you have to do is forward the user to a success.jsp.
> Which is similar to what you always do in Struts. So
> what exactly is your problem? If you explain your
> problem more and/or show some code, maybe someone
> can help you out.
> 
> Regards,
> Geeta
> 
> > -----Original Message-----
> > From: Julia Weaver
> [mailto:dreamweaver_y03@yahoo.com]
> > Sent: Wednesday, June 23, 2004 11:27 AM
> > To: Struts Users Mailing List
> > Subject: delete a record
> > 
> > 
> > Hi,
> > 
> > Can anyone please tell me:
> > How to do a confirmation when delete a record in
> > struts? 
> > 
> > Thank you,
> > 
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Address AutoComplete - You start. We
> finish.
> > http://promotions.yahoo.com/new_mail 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> > 
> > 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



 
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



RE: delete a record

Posted by Julia Weaver <dr...@yahoo.com>.
Thank you Geeta,

What I want to do is when user click DELETE button,
will show a pop-window with information "Are you sure
you want to delete the record?", and with YES and NO 
buttons. 





--- Geeta Ramani <gr...@terralink.com> wrote:
> Julia:
> 
> I think your question may not be too clear. First
> what do you mean by "delete a record in struts"?
> Strictly speaking, I believe Struts does not (should
> not) have code which properly belongs the
> business/database layer. So assuming that you want
> to show a confirmation page when your application
> successfully deletes a record in the database, all
> you have to do is forward the user to a success.jsp.
> Which is similar to what you always do in Struts. So
> what exactly is your problem? If you explain your
> problem more and/or show some code, maybe someone
> can help you out.
> 
> Regards,
> Geeta
> 
> > -----Original Message-----
> > From: Julia Weaver
> [mailto:dreamweaver_y03@yahoo.com]
> > Sent: Wednesday, June 23, 2004 11:27 AM
> > To: Struts Users Mailing List
> > Subject: delete a record
> > 
> > 
> > Hi,
> > 
> > Can anyone please tell me:
> > How to do a confirmation when delete a record in
> > struts? 
> > 
> > Thank you,
> > 
> > 
> > 
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Address AutoComplete - You start. We
> finish.
> > http://promotions.yahoo.com/new_mail 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> > 
> > 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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