This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "2 jsp buttons" Watch "2 jsp buttons" New topic
Author

2 jsp buttons

Tracy Zoller
Greenhorn

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
Sheriff

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: http://aspose.com/file-tools
 
subject: 2 jsp buttons
 
Similar Threads
2 jsp buttons
calling a java Script file into the Jsp
two dropdown menus
How to perform operations like insert,delete,add,move next etc in jsp page?
JSP error 500