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 JSP and the fly likes Problem With Pages 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 » Java » JSP
Bookmark "Problem With Pages" Watch "Problem With Pages" New topic
Author

Problem With Pages

Pat Flickner
Ranch Hand

Joined: Nov 17, 2003
Posts: 173
I have two jsp's. The one is loaded with some buttons along with the report. The report uses SAS Connect to get the report of the cube. One of the buttons connects to Sybase to get any special information regarding the report. If that button is clicked, the call to Sybase seems to kill the call to SAS, so in order to view any more info on the report, you have to get completely out of the application and then go back in. Obviously a huge waste of time. Any ideas how I can avert this problem? Thanks
Pat
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You are saying if the one button is clicked, then the other one is clicked it kills the page.
You can use JavaScript to disable the buttons when one of the buttons is clicked. Then this would not happen.

You would just need to add an onclick call on the buttons
onclick="DisableButtons()"
Eric
Pat Flickner
Ranch Hand

Joined: Nov 17, 2003
Posts: 173
Thanks for the info, Eric. It's not going to help in this case because it turns out that the connection configuration was improperly set. I mentioned this issue to the developer, who of course said that shouldn't happen. He found his bug and the problem went away.
But thanks very much for the response. Actually, I need this info for something else I'm working on, so this is a huge help.
Regards,
Pat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem With Pages
 
Similar Threads
How to switch/break in - to certify or not?
how to cache the page to improve the performance
Stored Procedure Making Two different Server Database Call
Calling another Action
How to cache the page on the server side to improve the performance of application "back" button.