This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes How can I achieve this in JSPs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How can I achieve this in JSPs?" Watch "How can I achieve this in JSPs?" New topic
Author

How can I achieve this in JSPs?

Mallika Kumar
Ranch Hand

Joined: Feb 15, 2001
Posts: 61
Hi,
I have two methods in my jsp page, which in turn call java beans, which call ejbs. I want both the methods to execute only if both of them return desired results. First method posts to a site, and the second method updates a table in the database. Now, if the post is unsuccessful, I'm not calling the update method. But if the post is successful, and the update fails, then I shouldn't be posting at all. I should be able to rollover the post. Is there a way to achieve this ?
Any response will be gladly appreciated.
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I achieve this in JSPs?
 
Similar Threads
Two EJB problem
How to synch data in Ldap and Oracle in a single transaction?
transaction in jsp
dopost() and doget() methods
Multiple Inheritance in java