• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp page refresh problem  RSS feed

Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am developing jsp page using tag library. with the help of that tag library i am fetching the values from database and inserting into table tag. it giving me the same result as i expect but when i refresh the page the tag library part getting invisible. my code is as follows
jsp page-

<table border="0" id="table-menu-diplay">
<GB:Header sName="patient"/>

java file-

public class Library_Header extends TagSupport {

private static final long serialVersionUID = 1L;
org.apache.log4j.Logger log = Logger.getLogger(Library_Header.class);
pcs.commons.login.data.database.db_Config o_dbConfig = new pcs.commons.login.data.database.db_Config();
public String s_Name;
public String s_tag1="<td >";
public String s_tag2="
int i=2;
public int doStartTag() throws JspException {
try {
Srv_Connection o_connection = new Srv_Connection();
Connection o_conn = o_connection.getConnection();
String s_callHeader = o_dbConfig.getHeader();
CallableStatement o_call = o_conn.prepareCall(s_callHeader);
ParameterMetaData rs=o_call.getParameterMetaData();
JspWriter out = pageContext.getOut();
if(i<rs.getParameterCount() && o_call.getString(i)!=null)
} catch (Exception e) {
return SKIP_BODY;
public void setsName(String p_szInput){
public String getsName(){
return s_Name;

tld file-

Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button. And wow, I didn't think anybody used systems Hungarian notation anymore, and with really, really good reason.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!