File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes 2 jsp buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "2 jsp buttons" Watch "2 jsp buttons" New topic

2 jsp buttons

Tracy Zoller

Joined: Dec 11, 2002
Posts: 4
I am writing code that returns many rows of data about individuals. Next to each row is an edit button followed by a delete button. I need the edit button when clicked to prompt the user as to whether they'd like to edit the existing record or if they'd like to add a new one. If they choose to edit the existing record they will go to edit record page, if they choose to add a new record they will be brought to the new record page. The delete button should ask the user "Are you sure you want to delete this record?" IF yes, dump the record into a separate deleted records table and if no, keep focus on original page.
The following is part of the code:

Can anyone help? Thank you in advance.
Jason Menard

Joined: Nov 09, 2000
Posts: 6450
Since it doesn't seem like you have anything framework specific there, you might want to try the JSP forum. Although looking at your problem you may actually want to go to the HTML/JavaScript forum. Are you wanting a dialog to pop up when you hit the edit/delete buttons, have another page pop open, or simply go to some other page?
In either of the first two options, that's the kind of thing the helpful people in the HTML/Javascript forum live for, so I wouldn't want to infringe on their raison d'etre.
I agree. Here's the link:
subject: 2 jsp buttons
It's not a secret anymore!