0

JSP Page loading problem

asked 2010-02-15 02:46:44 +0800

shub gravatar image shub
51 1

I am dynamically calling jsp page, using include component. But the page is taking a lot of time to load. Two actions are performed on the load of the page. First is the query is fired and second is the page load. The time for the query being fired is ok. But the page is getting time to load.The total time for both this actions is nearly 20. How can i speed up the loading time of the page.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-02-16 20:04:09 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi, shub
Could you post your sample code ?
and which version of ZK do you used

link publish delete flag offensive edit

answered 2010-02-23 23:21:49 +0800

shub gravatar image shub
51 1

i am using zk 5 version.

public class ListTag implements Composer{
ResourceBundle bundle=ResourceBundle.getBundle("queries");
private Listbox listbox;
Include contentDiv;
public void doAfterCompose(Component win) throws Exception {

listbox=(Listbox)win.getFellow("submenu");

contentDiv=(Include)win.getFellow("contentDiv");

win.addEventListener("onNextPage",
new EventListener(){
@Override
public void onEvent(Event event) throws Exception {
Object str=listbox.getSelectedItem().getValue();
String query=bundle.getString("login.authentication.7");
java.util.Vector linkVector=com.ips.thind.dao.ConnectionFactory.runQuery(query,new Object[]{str});
java.util.ArrayList linkArray=ConvertClass.convert(linkVector,linkVector.size());
Include inc=(Include)Path.getComponent("/win/contentDiv");
inc.setSrc(linkArray.get(0).toString());
}
});
}
}

i am using this code to call the jsp page dynamically and set in the center of the border layout

link publish delete flag offensive edit

answered 2010-02-24 00:19:50 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

You can refer to this comment

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-02-15 02:46:44 +0800

Seen: 571 times

Last updated: Feb 24 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More