File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Multiple Inheritance in java
How to synch data in Ldap and Oracle in a single transaction?
transaction in jsp
dopost() and doget() methods