Seby Pappachan

Greenhorn
+ Follow
since Nov 02, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Seby Pappachan

Please ignore this post as i got the solution
15 years ago
Hi,

I have a JSP application running on Tomcat. I am planning to upgrade the application which will take a day or two. Instead of bringing down the application, i just want to display a maintenance page during this maintenance window. Is there any way to re-direct all the requests which are coming to the particular port to this maintenance page?


Thanks
Seby
15 years ago
Hi,

I have a requirement where i need to show a progress bar ( Or kind of GIF image) while the action class is querying the database.
In detail, when a user clicks on a link, corresponding action class is called and in return, the action class does query the DB - (this takes a couple of minutes and during this time i want to show the progress bar or kind of GIF image )- and direct the results to a JSP page.
Can anyone help me to implement this?


Thanks
Seby P.P.

Hi,

I am developing a tool for my team. This a tool which is used for monitoring purpose(restricted explanation). Even if "n" number of users are logged to the system, the data displayed to the users will be same irrespective of the users. These details are queried from the database and displayed to the user. But this data is not static always. This will be changing each one hour. Means, in the back end a scheduler is running which is updating the DB in every hour.

So, for a particular period of time (maximum 1 hour), the data will be constant. As per the current design, for each user i am querying the DB and displaying the details. This is nothing more than performance reduction.

I am using JSP to display the details. Is there any mechanism to query the db and put the data in cache or some where else(this should get updated in each hour) so that i can use those values without having a db connection?

Note : I do not want the details to be stored in text,xml,CSV etc.

Please let me know if you need further details.

Thanks
Seby
16 years ago
JSP
Hi,

I have a a java class in which some variables are declared. And i have one more JavaScript file in which i would like to reuse these variables(declared in Java Class) instead of declaring them again in the JavaScript file. Is it possible to import java codes in JavaScript file?

Thanks
Seby
Bear,

Thanks for the help!
Hi,

I have a JSP page, in which there is a link. When i click on the link, it will execute an ajax script and in turn the script will pass the request to a struts action class. The action class will perform some DB queries.

My question is that,

Can the action class have ArrayList as the return type?

I do not want to create a html (db result may vary in size from 10 rows to 100+ rows) in the action class and pass it as a string to the caller. I want to use the iterator in JSP page.

Thanks
Seby
Apologize Guys!

I put the comments at the wrong place
Thanks Eric & Amit!

Let me try the solution suggested by you. Will let you know the feed back.

Thanks
Seby
Hi, I am new to JavaRanch and even to Java

Can some one help me resolving the following query?

How can I display the server time in the client side (JSP) without the page being refreshed in each second?


Thanks in advance!

Seby
[ November 02, 2008: Message edited by: Seby Pappachan ]