aspose file tools*
The moose likes Struts and the fly likes how to delete rows in the backend based on value displayed in the front end in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to delete rows in the backend based on value displayed in the front end in struts2" Watch "how to delete rows in the backend based on value displayed in the front end in struts2" New topic
Author

how to delete rows in the backend based on value displayed in the front end in struts2

Jyothsna Panchagnula
Ranch Hand

Joined: Jul 11, 2005
Posts: 113
Hi all,

I have a question here.

I am displaying records in JSP using iterator tag.
now I have a hidden field to get the id of the record.
But the information I am displaying is join more than 2 tables.

my question if I every record displayed in JSP is associated with modify and delete buttons , then
how do I get the information of the whole record so that the record is deleted from the referenced table in the database?

Can any one please help me out;
Thanks,
Jyothsna
Jyothsna Panchagnula
Ranch Hand

Joined: Jul 11, 2005
Posts: 113
Its Urgent!!!

can any one post some response?


-Jyothsna
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You waited 50 minutes before posting a followup? Come on, be serious.

Read the EaseUp FAQ entry.

You're not even asking a Struts question--you're asking a DB question. We also don't know how you're accessing your DB, so it's impossible to answer.

Ask in a DB forum.
vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
Did you try passing the id of the record in modify/delete links.
Jyothsna Panchagnula
Ranch Hand

Joined: Jul 11, 2005
Posts: 113
Hi Visu,

I got it .I passed the values using param in <s:url> tag.



Thanks
Jyothsna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to delete rows in the backend based on value displayed in the front end in struts2