Jump to content

sdawar

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

2 Neutral

About sdawar

  • Rank
    Newbie
  • Birthday 02/13/1988

Profile Information

  • Gender
    Male
  • Location
    delhi
  1. Hi All,I have an application in which user registration takes place. After providing a userId and password, if the user continues with the application ,he is logged in automatically.Now, if after getting logged in , he directly hits the welcome page url or say any other url from the application, without logging out. He should be landed to the welcome page or should be logged out.Issue is how to invalidate the session when he hits any other url in the same browser window.I am using struts.Pls help
  2. Hi,I have to add a new class in my project in which I have to query the database using hibernate. private SessionFactory sessionFactory; public boolean validatePlanTerminated(String productPlanKey) { StringBuffer hqlQuery = new StringBuffer("SELECT "); hqlQuery.append("count(pr_criteria.criteria_key) as COUNT from pr_criteria,pr_plan_criteria " ); hqlQuery.append(" where plan_key = '"+productPlanKey+"' and pr_criteria.criteria_key=pr_plan_criteria.criteria_key "); hqlQuery.append(" and pr_criteria.end_date is not null"); Session session = sessionFactory.getCurrentSession(); //sessionFactory = new Configuration().configure().buildSessionFactory(); int count = Integer.parseInt((session.createSQLQuery(hqlQuery.toString()).uniqueResult()).toString()); if (count > 0) { return true; } return false; } I am getting a null pointer exception at this lineSession session = sessionFactory.getCurrentSession();Please help!!
  3. I have auto cursor focus event to be triggered when data is entered in a field.The issue is in the table when the cursor focuses to next field, that field doesnt come into view. the user can not see what he is entering in the field. This problem is for IE7, this wrks fine on mozilla. the horizontal bar scrolls automatically in mozilla but not in IE7, hence causing the problem.Please help me resolving this.
×
×
  • Create New...