Logoff JSP

Hi all,
I have a client server application. When user login data base filed get updates to �userlogin� b,coz other users must know how many and who is online. As usual there is a link to logoff and when clicked jsp file gets called and the database is updated to �userlogoff�
without clicking the logoff link if the user
1.     close the IE (Alt+F4 or close button)
or
2.     change the site(selecting a site from Favorites, IE history, IE search, or simply typing a address on the address bar or drag and drop a saved html link or a page)
3.     any other way
how can I call my jsp page to change the database?
Thank You

Hello Sameera,
I have read somewhere that the HttpSessionListener Interface can help you to do all this.
See the documentation on : http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html
I have not tried this but people implement this Interface to do what you are trying to achieve.
Hope this helps.
Thanks and regards,
Pazhanikanthan. P

Similar Messages

  • Partner application logoff not working

    We have a partner application registered with sso with custom login screen. The login works fine. We use the following code to logoff the partner application in logoff.jsp
    response.setHeader("Osso-Return-Url", "http://my.oracle.com" );
    response.sendError(470, "Oracle SSO");
    session.invalidate();
    but the logoff is not working properly. It is not invalidating the session and the logout http request is not going from the application server to the sso server.
    Are there any additional configurations for SSO logoff.Any help is appreciated.
    Thanks

    Hi
    The WF should also trigger if i add the Partner function in UI.If i change any Attribute the WF triggers but i dont want to change the attribute when i add the partner function.
    If i have only one event for WF that is Partner Change the WF will not trigger it for the 1st time when i save the UI. But next i come to the same saved doc and add a partner function then the Wf triggers.
    So this means that Partner change is active.
    the issue here is i need to trigger the WF on , the 1st time i save the UI, for which i wil be using Attribute Change and next time when i come back to saved doc the and add only the partner function and no changes are made to attributes the WF should again trigger.
    Thanks
    Tarmeem

  • How to use Portal Logoff even?

    Hello,
    i have a situation, where on click of a button in the webdynpro iView the user have to get logged off from the portal and and the portal default login page should appear.
    previously we had done this using exit plug..but after upgradation to 2004s its no more valid.
    so we tried with portal navigation using url iView.. I have created a url iView and inside that have given the url as "http://<<server>>/portglobal/web/logoff.jsp"
    and has used this code :
    String str = "ROLES://portal_content/<<remainging path>>;
    WDPortalNavigation.navigateAbsolute(
    str, WDPortalNavigationMode.SHOW_INPLACE, (String) null,  (String) null,  WDPortalNavigationHistoryMode.NO_DUPLICATIONS, (String) null,
      (String) null,null);
    but its not navigating. its still in the same window.
    when i did show in different window its saying iView not found. but the path is correct.
    can you suggest me any thing on this?

    use below code:
    com.sap.tc.webdynpro.services.sal.um.api.WDClientUser.forceLogoffClientUser(null);
    Raja T
    Message was edited by:
            Armin Reichert

  • How to do logoff with JSF effectively?

    Assumed I have a page called "myWeb.jsp" and there is a commandLink which links to the "logoff.jsp". The "logoff.jsp" looks as follow:
    <t:commandLink value="return to login" action="#{logoutBean.doLogout}"></t:commandLink>
    The doLogout is in a back bean "logoffbean.java" as follow:
    public String doLogout() {
    // Invalidate the current session and create a new one
    HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
    HttpSession session = request.getSession();
    session.invalidate();
    session = request.getSession(true);
    return "login";
    How can I do in the "myWeb.jsp" so that if one try to open the "myWeb.jsp" it will jump to the "login.jsp". And if one click the "back" on the browser after logoff it will jump to the "login.jsp" as well?

    Off the cuff, I'd say you might be able to implement a Filter that tests if the session is valid. If it is, then it forwards the request to the requested resource, otherwise, redirect the user to the login page.

  • JSF - Logoff

    I'm looking for the best way to provide security to a JSF app. With JSP, I could check the session object to determine is the user was still active or valid, and if not I could just forward them to my logoff.jsp page. How can I do this in JSF effectively?
    If I follow the JSF Navigation rules, then I can only navigate using action()'s, but this step comes after the constructor, the PVC's, and the ActionListeners. How can I check for the user to be logged in in the constructor and move directly to a navigation step for anything on my page?
    Are there any best practices on using INCLUDE's for security sake at the top of JSF pages?
    Thanks.

    You could use JAAS. Tomcat's Admin Web App does the same.
    you could use Realms (XML file, Database,...)
    provide on index.jsp something like:
    <form method="POST" action='<%= response.encodeURL("j_security_check") %>'  name="loginForm">
            <input type="text" name="j_username" size="16" id="username"/>
            <input type="password" name="j_password" size="16" id="password"/>
                   <input type="submit" value='logon>
    </form>use web.xml for protecting access:
      <security-constraint>
        <display-name>My WEB APP</display-name>
        <web-resource-collection>
          <web-resource-name>Protected Area</web-resource-name>
          <!-- Define the context-relative URL(s) to be protected -->
          <url-pattern>*.jsp</url-pattern>
          <url-pattern>*.jsf</url-pattern>
          <url-pattern>*.html</url-pattern>
        </web-resource-collection>
        <auth-constraint>
          <role-name>theRoleILikeToEnable</role-name>
        </auth-constraint>
      </security-constraint>
      <!-- Login configuration uses form-based authentication -->
      <login-config>
        <auth-method>FORM</auth-method>
        <realm-name>myRealm</realm-name>
        <form-login-config>
          <form-login-page>/index.jsp</form-login-page>
          <form-error-page>/error.jsp</form-error-page>
        </form-login-config>
      </login-config>
      <!-- Security roles referenced by this web application -->
      <security-role>
        <role-name>theRoleILikeToEnable</role-name>
      </security-role>Now your pages are save...
    okay, now you need logoff.
    use a button, like (<h:commandButton) and bind its action to a Backing Bean method
    #{controllerBean.logoff} inside of logoff do like:
    public String logoff(){
    // Invalidate the current session and create a new one
            HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest
            HttpSession session =  request.getSession();
            session.invalidate();
            session = request.getSession(true);
    return ("foo");
    }I guess this the simplest way. But you also could enhance JSF infrastructure ViewHandler e.g
    Or create a jsf component that checks the users. But each page must contain this tag (component)
    HTH.
    Matthias

  • How to track the same session using both jsp and servlets

    Hello, guys:
    "how to use jsp and servlet to track the same session",
    it seems to me my logoff.jsp never realize the session I established in my servlets.
    Here is how I set my session in my servlets:
    "     HttpSession session = req.getSession(true);
    session.setAttribute("userid",suserid);"
    Here is how I invalidate my session in my logoff.jsp
    " <%@ page language= "java" %>
    <%@ page import="javax.servlet.http.HttpSession" %>
    <%@ page session="false"%>
    Our Session id is : <%= session.getId() %>
    <% session.removeAttribute("userid");
    session.invalidate();
    %>
    Our Session id is : <%= session.getId() %>"
    but when I try to logoff using the logoff.jsp
    I always get following error message.
    "/home/jiao/jsp_webserver/tomcat/work/Standalone/localhost/syllabus/htmls/logoff_jsp.java:50: cannot resolve symbol
    symbol : variable session
    location: class org.apache.jsp.logoff_jsp
    out.print( session.getId() );"
    T.I.A.
    [Edited by: jiveadmin on Jun 18, 2003 10:32 AM]
    [Edited by: jiveadmin on Jun 18, 2003 10:33 AM]

    So,
    <%@ page session="false"%>
    That means the jsp never instantiates the build in session object.
    <%@ page session="true"%>
    means jsp will instantiates a session object if there are no existing ones
    how about I just delete the line,
    does that mean the jsp will find the existing session object for me?
    So I can do something like
    Our Session id is : <%= session.getId() %>
    <% session.removeAttribute("userid");
    session.invalidate();
    %>
    directly.
    T.I.A.

  • Problem in Using an URL in Exit Plug (NW 2004s SP12)

    Hi,
    I have a Webdynpro application to specify the terms and conditions for the users when they login to the portal for the first time.
    Upon Accepting the terms by the user, i used to loggoff the user and will redirect to the portal logon page again to relogin. (This was a requirment )
    I was using an exit plug with the URL pointing to loggoff.jsp which invalidates the session and redirect to the portal login page again. This was working fine in NW 2004.
    The code used to call the exit plug in the Window Interface view is,
    <b>wdThis.wdGetTermsandConditionsWindowInterfaceViewController().wdFirePlugToPortal("/globalportal/web/logoff.jsp");</b>
    When we upgarded into 2004s SP12 i am getting the folllowing error when firing the exit plug with the URL.
    <b>"The Exit Plug can not use an URL when used in Portal, use Portal Navigation instead"</b>
    We tried portal navigation as well, but seems that will work with PCD Objects only, where we need to redirect to the URL(logoff.jsp).
    I tried the HttpServletResponse.sendRedirect() as well, but the control remains in the TermsandConditions view only.
    <b>Code Used:
    WebCallback  webcallback = new WebCallback();
    HttpServletResponse response= webcallback.getResponse();
    response.sendRedirect(URL);</b>
    Please let me know if somebody faced this issue and the work around for this.
    My requirement is that upon clicking on the Accept button, i need to logoff the user by calling logoff.jsp will be destroy
    the session and redirect to portal login page.
    Please let me know the work around to call the URL in the view.
    Appreciate your reply.
    Thanks and Regards,
    Sekar

    Hi
    Try
    WDClientUser.forceLogoffClientUser(null);
    url - the URL of the page that is shown to the user after logoff was done. If the parameter is null, the redirect is done to the "LogoffURL" URL that can be specified in the application properties. If this URL is also not defined, a redirect to a Web Dynpro internal logoff page is done.
    So you may either accept default logoff-page (just text "Web Dynpro application terminated. Good bye!" or provide your own page via application properties).
    Next, it is impossible to just log-off to auth screen. It is necessary to set as log-off URL some application that requires authentication also.
    This way WD will first log-off user, then shows auth-screen and then login him again to the target application.
    So try the following:
    In NW IDE open your application properties, and add standard property "log-off URL", for example "/useradmin/userAdminServlet?userProfileView";
    Regards
    Ayyapparaj

  • Business Objects Customization Using Class file without net bean

    Hi,
    Any one please help me out.
    my requirement is like I want to use Business Objects SDK
    <%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise" %>
    above is example..
    in Class file of Java without using netbean.
    I try to do this with creating Batch file add all Jar file and set path and but its not working.
    Also can I Login Into business Objects through class file not using netbean(means from command prompt)
    and create user group into CMS.

    Please find following servlet code who dont understand my requirement.
    * GroupCreation.java
    * Created on September 2, 2008, 3:47 PM
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.crystaldecisions.enterprise.ocaframework.ServiceNames;
    import com.crystaldecisions.sdk.exception.SDKException;
    import com.crystaldecisions.sdk.framework.CrystalEnterprise;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.framework.ISessionMgr;
    import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
    import com.crystaldecisions.sdk.occa.managedreports.*;
    import com.crystaldecisions.sdk.occa.security.ILogonTokenMgr;
    import javax.servlet.http.Cookie;
    import com.crystaldecisions.sdk.occa.infostore.*;
    import com.crystaldecisions.sdk.occa.pluginmgr.*;
    import com.crystaldecisions.sdk.plugin.CeProgID;
    import com.crystaldecisions.sdk.plugin.desktop.user.*;
    import com.crystaldecisions.sdk.properties.*;
    import javax.servlet.http.HttpSession;
    * @author prashant.joshi
    * @version
    public class GroupCreation extends HttpServlet
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    HttpSession session = request.getSession(true);
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    String cms = request.getParameter("CMS");
    String username = request.getParameter("UserID");
    String password = request.getParameter("Password");
    String auth = request.getParameter("Aut");
    IEnterpriseSession enterpriseSession = null;
    try
    ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
    catch(SDKException e)
    out.println(e.getMessage());
    Exception failure = null;
    boolean loggedIn = true;
         // If no session already exists, logon using the specified parameters.
    if (enterpriseSession == null)
    try
    // Attempt logon. Create an Enterprise session
    // manager object.
    ISessionMgr sm = CrystalEnterprise.getSessionMgr();
    // Log on to BusinessObjects Enterprise
    enterpriseSession = sm.logon(username, password, cms, auth);
    catch (Exception error)
    loggedIn = false;
    failure = error;
    if (!loggedIn)
    // If the login failed, redirect the user to the start page.
    out.println("<SCRIPT language=\"javascript\"> " +
    " alert (\"Sorry - you could not be logged on to this server." +
    " Ensure that your user name and password, as well as the CMS name are correct." +
    "\"); </SCRIPT>");
    out.println("<META HTTP-EQUIV='refresh' CONTENT='0;URL=LogonPage.jsp'>");
    return;
    else
    try
    // Store the IEnterpriseSession object in the session.
    session.setAttribute("EnterpriseSession", enterpriseSession);
    // Create the IInfoStore object.
    IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore",
    ServiceNames.OCA_I_IINFO_STORE);
    // Store the IInfoStore object in the session using the
    // helper functions.
    session.setAttribute("InfoStore", iStore);
    // Create the IReportSourceFactory object.
    IReportSourceFactory reportSourceFactory = (IReportSourceFactory) enterpriseSession.getService("PSReportFactory");
    // Store the IReportSourceFactory object in the session
    // using the helper functions.
    session.setAttribute("ReportSourceFactory", reportSourceFactory);
    // Retrieve the logon token manager.
    ILogonTokenMgr logonTokenMgr = enterpriseSession.getLogonTokenMgr();
    // Retrieve a logon token and store it in the user's cookie
    // file for use later.
    Cookie cookie = new Cookie("LogonToken", logonTokenMgr.createLogonToken("", 60, 100));
    response.addCookie(cookie);
    // LOCUse the plugin manager and the UserGroup plugin to create a new
    // UserGroup object._ENDLOC_
    // LOCIf the infoStore object is not found then display an error message._ENDLOC_
    IInfoStore infoStore = (IInfoStore) session.getAttribute("InfoStore");
    // LOCIf the infoStore object is not found then display an error message._ENDLOC_
    if (infoStore == null)
    throw new Error("_LOC_InfoStore object not found. Please logon again._ENDLOC_");
    IPluginMgr pluginMgr = infoStore.getPluginMgr();
    //IPluginMgr pluginMgr2 = infoStore.getPluginMgr();
    IPluginInfo userGroupPlugin = pluginMgr.getPluginInfo("CrystalEnterprise.UserGroup");
    // IPluginInfo userGroupPlugin2 = pluginMgr.getPluginInfo("CrystalEnterprise.UserGroup");
    // LOCCreate a new InfoObjects collection._ENDLOC_
    IInfoObjects newInfoObjects1 = infoStore.newInfoObjectCollection();
    IInfoObjects newInfoObjects2 = infoStore.newInfoObjectCollection();
    // LOCAdd the UserGroup interface to the new InfoObjects collection._ENDLOC_
    newInfoObjects1.add(userGroupPlugin);
    newInfoObjects2.add(userGroupPlugin);
    // LOCGet the new UserGroup object from the collection._ENDLOC_
    IInfoObject iObject1 = (IInfoObject) newInfoObjects1.get(0);
    IInfoObject iObject2 = (IInfoObject) newInfoObjects2.get(0);
    // LOCOnce you have the new UserGroup object, set its properties._ENDLOC_
    iObject1.setTitle ("Single Home Group");
    iObject1.setDescription ("It is Single Home Group");
    iObject2.setTitle ("Multi home Group");
    iObject2.setDescription ("It is multi Home Group");
    // LOCRetrieve the ID of the InfoObject (user group)._ENDLOC_
    // objectID = iObject.getID();
    // LOCSave the new group to the CMS._ENDLOC_
    infoStore.commit (newInfoObjects1);
    infoStore.commit (newInfoObjects2);
    catch(Exception ex)
    // If the User group is already created.
    out.println("<SCRIPT language=\"javascript\"> " +
    " alert (\"Sorry - The User Group is already created Please enter another User Group." +
    "\");</SCRIPT>");
    out.println("<META HTTP-EQUIV='refresh' CONTENT='0;URL=LogonPage.jsp'>");
    return;
    // If the User is Logged on the Business objects
    out.println("<SCRIPT language=\"javascript\"> " +
    " alert (\"UserGroup get created in CMS.\"); </SCRIPT>");
    out.println("<META HTTP-EQUIV='refresh' CONTENT='0;URL=LogOff.jsp'>");
    out.close();
    /** Returns a short description of the servlet.
    public String getServletInfo() {
    return "Short description";
    // </editor-fold>
    when I paste above code in simple notepad as class file and run this file from command prompt
    it gives error like following 1 example I getting 46 errors for different Business Objects classes
    symbol : variable CrystalEnterprise
    location: class GroupCreation
    ISessionMgr sm = CrystalEnterprise.getSessionMgr();
    Please help me Out.
    Thank you.

  • How to use portal navigation context

    Hi,
    I have 4 roles in the portal.
    Out of these, one role name is invisible but iview in that role is visible on left side above detailed navigation.
    It is a URL iview, which contains link of another web dynpro iview A . (This path is set through navigateAbsolute).
    Now the problem I am facing is, if I am in any of the other three roles, accessing some application B  in the detailed navigation of that role, and after that if I click on the web dynpro iview A’s link in URL iview, though this application opens up in the content area, but still B remains highlighted. I want that the moment A link is clicked, that application should open up and at the same time role highlighted should be Home.
    While doing R&D, I came across navigation target and context target. Navigation target is the path of application you want to open and context target is the path which can be set some other value which will then be highlighted. 
    But I am not getting how to use it. I tried different ways, but not able to figure out.
    Can anyone please help in this regard.
    Thanks & regards,
    Anupreet

    Hi,
    Thats a good idea. I have a Button Click Event, and on Action of it, I am doing a set of operation based on some condition and at the end of the operation i need to redirect to the logoff.jsp
    <b>The LinkToURL in place of Button is not allowed</b>.The requirment is to have the button compulsory and i need to do those set of operation onclick of that button.
    <b>Still i can use LinkToURL as a hidden element and can call the logoff.jsp and the end of the above operations on click of that button. Is it possible to achive that...</b>Please share your thoughts.
    Appreciate your help.
    Thanks and Regards,
    Sekar

  • How to use Portal Navigation to redirect to the URL

    Hi ,
    I have a requirement where i need to log off the user which will invalidate the session and redirect the user to the Portal Login Page.
    <b>The logoff.jsp is in a path like /web/logoff.jsp in the server.</b>
    As there is a Problem with exit plug, I should use Portal Navigation (WDPortalNavigation API) to redirect to the log off page.
    <b>Please let me know how to call the above JSP using WDPortalNavigation.</b>
    Thanks and Regards,
    Sekar

    Hi,
    Thats a good idea. I have a Button Click Event, and on Action of it, I am doing a set of operation based on some condition and at the end of the operation i need to redirect to the logoff.jsp
    <b>The LinkToURL in place of Button is not allowed</b>.The requirment is to have the button compulsory and i need to do those set of operation onclick of that button.
    <b>Still i can use LinkToURL as a hidden element and can call the logoff.jsp and the end of the above operations on click of that button. Is it possible to achive that...</b>Please share your thoughts.
    Appreciate your help.
    Thanks and Regards,
    Sekar

  • Generate new browser window on using include directive/action tag in curren

    Hi Life line
    if i used jsp include directive/action taag inside my current jsp code it open new browser window but if i
    not use that include directive or action tag in my jsp source it properly display next jsp in
    same browser window
    how i can rid of this .i am confuse why it happens
    thanks
    Vivek Harnal

    1) on clicking view button it submit other page by
    script function()
    2) it work fine & display in same browser window if i
    am not incliudes jsp page after body tag .Your included JSP has a head and body of its own. If the including page has a head and body of its own, then the two will clash. Generally, it is best to make includes be fragments, ie, have no
    <html> <head> </head> <body> </body> </html> tags.
    3) included jsp use for standard menu based Header
    source of included page is
    <script type="text/javascript"
    src="menu_array.js"></script>
    <script type="text/javascript"
    src="mmenu.js"></script>
    <html>
    <script language=javascript>
    function show()
    // Master array in Menu_Array.js contains sub menu
    options available to super administrator
    // show the menu
    {     popup("master")
    function show1(){
    popup("requisition")
    function show2(){
    popup("purchase")
    function show3(){
    popup("receipt");
    function show4(){
    popup("reports");
    </script>
    <head>
    <link rel="stylesheet" type="text/css" href="css.css">
    <title>Procurement Automation System</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <base target="main">This means every link you click on will be sent to a new window or frame whose name is main. If no such window or frame exists, make one. If you do not want your links to bring you to a new window, you need to remove this <base target="main"> line.
    >
    >
    </head>
    <body bgcolor="#FFFFFF" text="#000000" leftmargin="0"
    topmargin="0" marginwidth="0" marginheight="0">
    <table width="982" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td><img src="images/header_inside.jpg" width="1004"
    height="106"></td>
    </tr>
    <tr>
    <td>
    <table width="1012" border="0" cellspacing="0"
    cellpadding="0" bgcolor="#a4c3cd">
    <tr>
    <td width="860" bgcolor="#a4c3cd">
    <table width="819" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td width="5"> </td>
    <td style='cursor: hand' width="113" ><b> </b><A
    onmouseover="javascript:show()"><b>Master
    Module</b></a>
    <td style='cursor: hand' width="142"><b> </b><A
    onmouseover="javascript:show1()"><b>Requisition
    Module</b></a></td>
    <td style='cursor: hand'
    width="149"><b> </b><A
    onmouseover="javascript:show2()"><b>Purchasing
    Module</b></a></td>
    <td style='cursor: hand'
    width="140"><b> </b><A
    onmouseover="javascript:show3()"><b>Receiving
    Module</b></a></td>
    <td style='cursor: hand' width="100"><b>
    </b><A
    onmouseover="javascript:show4()"><b>Reports</b></a></td></tr>
    </table>
    </td>
    <td align="left" width="148">
    <table border=0 cellspacing=0 bgcolor="#a4c3cd">
    <td width="24%" align="center" valign="middle"><a
    href="help.htm" ><img src="images/bt_help.gif"
    width="52" height="20" border="0"></a></td>
    <td width="4%" align="center" valign="middle"><img
    src="images/white_bar.gif" width="2" height="17"></td>
    <td width="32%" align="center" valign="middle"><a
    href="logoff.jsp" target="_self"><img
    src="images/bt_logout.gif" width="70" height="20"
    border="0"></a></td>
    <td width="8%"> </td>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </html>

  • Servlet invalidation / ending a session

    I am try to invalidate a session. After logging into the main screen i notice that the session object still contains data stored in javabeans that was input from the previous session.
    I tried to do a session.removeAttribute(Object) but that also does not work? is this a bug? i am using oc4j 1.0.2.2
    public class ControllerServlet extends HttpServlet {
         HttpSession session;
         public void service (HttpServletRequest req, HttpServletResponse res) throws
         ServletException,IOException {
         session = req.getSession();               
         session.invalidate();
         String cmd = req.getParameter("action");
         if (cmd.equals("Logout")) {
                   getServletContext().getRequestDispatcher("/eap/logoff.jsp").forward(req,res);
                   return;
              if (cmd.equals("New Eap Submission")) {
                   getServletContext().getRequestDispatcher("/eap/login.jsp").forward(req,res);
                   return;

    I did a quick testing here with 1.0.2.2 and could not duplicate this problem with the server using session.invalidate(). Actually this is a problem with browser cache and could duplicate the problem with IE when the browser setting was :"Check for newer version of stored pages: Automatically".
    Please do the following for IE and try :
    tools -> Internet options -> Temorary internet files settings ->
    Check for newer version of stored pages: Every visit to the page"
    On Netscape 4.74 I have the following settings which works fine:
    Advanced -> cache -> Every time or once per session
    hope this helps
    -Debu

  • Forms Server for Documentum

    Hello,
    I'm trying to setup a configuration where Adobe Forms are Integrated with the Documentum ECM platform.
    Designing, storing and publishing forms works well with Designer
    When trying to fill the form, it goes wrong. The URL that is called brings me to 'a page cannot be found'.
    Can someone help me where I can start to search for the reason.
    This is what I find in the logfiles:
    ==============
    7/20/05 11:40:49:932 CEST] 7f3d6e74 WebGroup I SRVE0180I: [webtopsp2.war] [/webtopsp2] [Servlet.LOG]: /wdk/system/logoff/logoff.jsp: init
    com.adobe.formconnector.web.controller.FrontController 2005-07-20 11:41:32,838 -- ERROR -- FrontController doProcess Failure....
    com.adobe.formconnector.dctm.GetFormException: ERRCODE:10003 Form Server for Documentum failure.
    at com.adobe.formconnector.dctm.action.GetFormAction.execute(Unknown Source)
    ============
    I can provide further details if necessary.
    Thanks in advance

    I think this should be posted in the Adobe LiveCycle Forms forum?
    http://www.adobeforums.com/cgi-bin/webx?14@@.2cce7b33
    Mike

  • Help needed in servlet sessions

    hi,
    I m having following servlet with the logon and logout request..
    and my problem is that I don't want 2session with same clientID
    means a client want to log in ( who is currently logged in with say ClientID=5)
    with same ClientID (=5) then he won't be able to do that.. and i m invalidating the session
    when client hits logout button ( i don't want to use session time out) but what if he just
    shut down his browser without logout. In that case i want to invalidate that session
    immediately (as it is necessary for first requirement) i.e. if the session resides in memory
    than client won't be able to log in again untill that session automatically invalidated...
    so help me!!!!
    thanks
    bhups
    some part of my code in which i m getting and invalidating session is given below.
    class myServlet extends HttpServlet{
    void doGet(req,res)
    Client _client=null;;
    HttpSession _session=req.getSession(false);
    if(_session!=null)
    client=(Client)session.getAttribute("_client");
    if(requestID.equals("Login"))
    String ClientID=req.getParameter("ClientID");
    String Password=req.getParameter("Password");
    String AuthenticationStatus=Authentication(ClientID,Password);
    if(AuthenticationStatus.equals("Authenticated"))
    _session=req.getSession(true);
    session.setAttribute("client",new Client(Integer.parseInt(ClientID),Password));
    res.sendRedirect("./inbox.html");
    else
    throw someException();
    if(requestID.equals("Logout"))
    if(_client!=null)
    _session.invalidate();
    res.sendRedirect("./login.html");
    class Client
    private int ClientID;
    private String Password;
    public Client(int cid,String password)
    ClientID=cid;
    Password=password;
    public int getClientID()
    return this.ClientID;
    }

    Hey this can be done using javascript
    U have to capture the window close event of the browser and for that event write a javascript function
    which calls the logout.jsp page or any other necessary servlets to do the logout process.
    a dummy example is given here
    someJsp.jsp
    <html>
    <head>
    <script>
                 function closeSession()
                                 window.navigate("logoff.jsp");
    </script>
    </head>
    <body onUnload="closeSession()">
    </body>
    </html>

  • What does it mean when the Page in Dreamweaver has a blue background?

    Good Day.  I am having a problem with one of my pages, and I'm not sure what the issue is.  Currently the only thing I can see different about it, is that when I load it into Dreamweaver, each section has a light blue background as though it was selected for something or has a special feature attached to it.  None of my other pages look this way when I load them.  Can someone help me understand what this is?  I have attached a screen shot so that you can see what I am talking about.  Thank you in advance for your assistance.

    Hey Nancy O, Nope that didn't fix it either. I thought it might be something like that, but I didn't know how to find that item. I'm sure it is still something like that. I have pasted the code here....it's very spaghetti-ish, so please forgive me. Also, there are several includes that are also included in the other pages that work fine. Now again, I'm sort of fishing here. I'm having a problem with this page not displaying the CSS information correctly and so far this blue "selection" is the only thing I can find different. I feel so stupid...But I do greatly appreciate everyone’s help.  Um...If I was supposed to import this or display it differently, please let me know....I'm not fully up on the forums etiquette
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.util.Calendar,java.util.Date,java.text.DateFormat,java.text.Simpl eDateFormat" errorPage="" %>
    <%@ include file="Connections/bormit.jsp" %>
    <%@ include file="MethodFormatPhoneNumber.jsp" %>
    <%@ include file="MethodFormatDollars.jsp" %>
    <%@ include file="MethodCalculateAge.jsp" %>
    <%@ include file="bormitShareCode.jsp" %>
    <%
    Date curDate = new Date();
    Calendar cal1 = Calendar.getInstance();
    cal1.setTime(curDate);
    long curTime = cal1.getTimeInMillis();
    String txtPrevPage = "" + request.getParameter("txtFromPage");
    String setFieldFocus = "";
    String regFirstName = "";
    String regMiddleName = "";
    String regLastName = "";
    String regSuffix = "";
    String regBirthday = "";
    String regHomePhone = "";
    String regWorkPhone = "";
    String regMobilePhone = "";
    String regEmailAddress = "";
    String regAddress1 = "";
    String regAddress2 = "";
    String regAddress3 = "";
    String regCity = "";
    String regStateId = "";
    String regZipCode = "";
    String regCountryId = "";
    String regNumChildren = "";
    String regMarried = "";
    String regServicePlan = "";
    String regEducation = "";
    String regOccupation = "";
    String regCurrentJob = "";
    String regEyeColor = "";
    String regHairColor = "";
    String regGender = "";
    String regHeightFeet = "";
    String regHeightInches = "";
    String regWeight = "";
    String regMeasureType = "";
    String regBloodType = "";
    String regPicture = "";
    String regStatus = "Pending";
    String regSSN = "";
    if(txtPrevPage.equals("/RegisterAccount.jsp")) {
    session.setAttribute("sesLoginId",request.getParameter("txtUserId"));
    regFirstName = "" + request.getParameter("txtFirstName");
    regMiddleName = "" + request.getParameter("txtMiddleName");
    regLastName = "" + request.getParameter("txtLastName");
    regBirthday = "" + request.getParameter("txtBirthday");
        setFieldFocus = "document.forms.createPerson.selectServicePlans.focus()"; 
    } else
    if(txtPrevPage.equals("/WBPersonInfo.jsp")) {
    regFirstName = "" + request.getParameter("txtFirstName");
    regMiddleName = "" + request.getParameter("txtMiddleName");
    regLastName = "" + request.getParameter("txtLastName");
    regSuffix = "" + request.getParameter("selectSuffix");
    String newBirthday = "" + request.getParameter("txtBirthday");
        regBirthday = newBirthday.replaceAll("/", "-");
    regHomePhone = "" + request.getParameter("txtHomePhone");
    regWorkPhone = "" + request.getParameter("txtWorkPhone");
    regMobilePhone = "" + request.getParameter("txtMobilePhone");
    regEmailAddress = "" + request.getParameter("txtEmailAddress");
    regAddress1 = "" + request.getParameter("txtAddressLine1");
    regAddress2 = "" + request.getParameter("txtAddressLine2");
    regAddress3 = "" + request.getParameter("txtAddressLine3");
    regCity = "" + request.getParameter("txtCity");
    regStateId = "" + request.getParameter("drpdwnState");
    regZipCode = "" + request.getParameter("txtZipCode");
    regCountryId = "" + request.getParameter("selectCountry");
    regNumChildren = "" + request.getParameter("txtNumChildren");
    regMarried = "" + request.getParameter("txtMarriage");
    regServicePlan = "" + request.getParameter("selectServicePlans");
    regEducation = "" + request.getParameter("selectEducation");
    regOccupation = "" + request.getParameter("selectOccupation");
    regCurrentJob = "" + request.getParameter("txtCurrentJob");
    regEyeColor = "" + request.getParameter("selectEyeColor");
    regHairColor = "" + request.getParameter("selectHairColor");
    regGender = "" + request.getParameter("selectGender");
    regHeightFeet = "" + request.getParameter("txtHeightFeet");
    regHeightInches = "" + request.getParameter("txtHeightInches");
    regWeight = "" + request.getParameter("txtWeight");
    regMeasureType = "" + request.getParameter("txtWeightType");
    regBloodType = "" + request.getParameter("selectBloodType");
    regPicture = "" + request.getParameter("txtPicture");
    regStatus = "" + request.getParameter("txtStatus");
    regSSN = "" + request.getParameter("txtSSN");
        setFieldFocus = "document.forms.createPerson.txtFirstName.focus()";  
    } else {
    txtPrevPage = "" + bormitServerPage;
        setFieldFocus = "document.forms.createPerson.txtFirstName.focus()";
    %>
    <%
    String getAcctAddress__MMCol_PersonsId = "0";
    if (session.getAttribute("sesPersonsId")  !=null) {getAcctAddress__MMCol_PersonsId = (String)session.getAttribute("sesPersonsId") ;}
    %>
    <%
    Driver DrivergetAcctAddress = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetAcctAddress = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetAcctAddress = ConngetAcctAddress.prepareStatement("SELECT addr_address_line1,        addr_address_line2,        addr_address_line3,        addr_city,        addr_state_id,        (SELECT stae_state_abbr           FROM states          WHERE stae_id = addr_state_id)           AS stateAbbr,        (SELECT zipc_zipcode           FROM zipcodes          WHERE zipc_id = addr_zip_code_id)           AS zipCode,        addr_zip_plus4,        addr_foreign_zip   FROM addressrefxr, addresses  WHERE     adxr_reference_id = ?        AND adxr_address_id = addr_id        AND addr_status = 1        AND adxr_status = 1        AND addressrefxr.adxr_table_name = 'persons'        AND adxr_type = (SELECT adty_id                           FROM addresstypes                          WHERE adty_desc = 'Home')");
    StatementgetAcctAddress.setObject(1, getAcctAddress__MMCol_PersonsId);
    ResultSet getAcctAddress = StatementgetAcctAddress.executeQuery();
    boolean getAcctAddress_isEmpty = !getAcctAddress.next();
    boolean getAcctAddress_hasData = !getAcctAddress_isEmpty;
    Object getAcctAddress_data;
    int getAcctAddress_numRows = 0;
    %>
    <% String MM_Response_Msg = "Add Personal Information from Page=" + txtPrevPage;
       String MM_Response_Error = " ";
       if(!getAcctAddress_hasData && (!txtPrevPage.equals("/RegisterAccount.jsp") && !txtPrevPage.equals("/WBCart.jsp") && !txtPrevPage.equals("/WBPersonInfo.jsp"))) {
          MM_Response_Msg = "Error Selecting Data. PrevPage=" + txtPrevPage;
       MM_Response_Error = "Address Information could not found in database. Personsid=" + getAcctAddress__MMCol_PersonsId;
    %>
    <%
    String WriteLogRecs__param_login_id = "0";
    if(session.getAttribute("sesLoginId") != null){ WriteLogRecs__param_login_id = (String)session.getAttribute("sesLoginId");}
    String WriteLogRecs__param_persons_id = "0";
    if(session.getAttribute("sesPersonsId") != null){ WriteLogRecs__param_persons_id = (String)session.getAttribute("sesPersonsId");}
    String WriteLogRecs__param_accounts_id = "0";
    if(session.getAttribute("sesAccountId") != null){ WriteLogRecs__param_accounts_id = (String)session.getAttribute("sesAccountId");}
    String WriteLogRecs__param_ip_address = "";
    if(request.getRemoteAddr() != null){ WriteLogRecs__param_ip_address = (String)request.getRemoteAddr();}
    String WriteLogRecs__param_serial_num = "0";
    if(request.getParameter("0") != null){ WriteLogRecs__param_serial_num = (String)request.getParameter("0");}
    String WriteLogRecs__param_module_name = "";
    if(bormitServerPage != null){ WriteLogRecs__param_module_name = (String)bormitServerPage;}
    String WriteLogRecs__param_msg = "";
    if(MM_Response_Msg != null){ WriteLogRecs__param_msg = (String)MM_Response_Msg;}
    String WriteLogRecs__param_error = "";
    if(MM_Response_Error != null){ WriteLogRecs__param_error = (String)MM_Response_Error;}
    String WriteLogRecs__param_mobile_module = "";
    %>
    <%
    Driver DrivergetMeasureTypes = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetMeasureTypes = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetMeasureTypes = ConngetMeasureTypes.prepareStatement("SELECT msty_id, msty_short_desc, msty_status, msty_abbr FROM bormit.measuretypes WHERE msty_status = 1 AND msty_isweight = 1");
    ResultSet getMeasureTypes = StatementgetMeasureTypes.executeQuery();
    boolean getMeasureTypes_isEmpty = !getMeasureTypes.next();
    boolean getMeasureTypes_hasData = !getMeasureTypes_isEmpty;
    Object getMeasureTypes_data;
    int getMeasureTypes_numRows = 0;
    %>
    <%
    Driver DrivergetHairColor = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetHairColor = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetHairColor = ConngetHairColor.prepareStatement("SELECT colr_color, colr_id FROM colors WHERE colr_ishaircolor is TRUE ORDER BY colr_color");
    ResultSet getHairColor = StatementgetHairColor.executeQuery();
    boolean getHairColor_isEmpty = !getHairColor.next();
    boolean getHairColor_hasData = !getHairColor_isEmpty;
    Object getHairColor_data;
    int getHairColor_numRows = 0;
    %>
    <%
    Driver DrivergetEyeColors = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetEyeColors = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetEyeColors = ConngetEyeColors.prepareStatement("SELECT colr_color, colr_id FROM colors WHERE colr_iseyecolor is TRUE ORDER BY colr_color");
    ResultSet getEyeColors = StatementgetEyeColors.executeQuery();
    boolean getEyeColors_isEmpty = !getEyeColors.next();
    boolean getEyeColors_hasData = !getEyeColors_isEmpty;
    Object getEyeColors_data;
    int getEyeColors_numRows = 0;
    %>
    <%
    Driver DrivergetEducation = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetEducation = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetEducation = ConngetEducation.prepareStatement("SELECT edlv_level, edlv_id FROM educationlevels");
    ResultSet getEducation = StatementgetEducation.executeQuery();
    boolean getEducation_isEmpty = !getEducation.next();
    boolean getEducation_hasData = !getEducation_isEmpty;
    Object getEducation_data;
    int getEducation_numRows = 0;
    %>
    <%
    Driver DrivergetStates = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetStates = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetStates = ConngetStates.prepareStatement("SELECT stae_state_abbr, stae_id, stae_majority FROM states ORDER BY stae_state_abbr");
    ResultSet getStates = StatementgetStates.executeQuery();
    boolean getStates_isEmpty = !getStates.next();
    boolean getStates_hasData = !getStates_isEmpty;
    Object getStates_data;
    int getStates_numRows = 0;
    %>
    <%
    Driver DrivergetOccupations = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetOccupations = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetOccupations = ConngetOccupations.prepareStatement("SELECT occp_short_desc, occp_id FROM bormit.occupations ORDER BY occp_short_desc");
    ResultSet getOccupations = StatementgetOccupations.executeQuery();
    boolean getOccupations_isEmpty = !getOccupations.next();
    boolean getOccupations_hasData = !getOccupations_isEmpty;
    Object getOccupations_data;
    int getOccupations_numRows = 0;
    %>
    <%
    Driver DrivergetServicePlans = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetServicePlans = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetServicePlans = ConngetServicePlans.prepareStatement("SELECT srpl_short_desc, srpl_amount, srpl_id FROM serviceplans WHERE srpl_status = 1  AND srpl_ispersonrate_plan is true ORDER BY srpl_short_desc");
    ResultSet getServicePlans = StatementgetServicePlans.executeQuery();
    boolean getServicePlans_isEmpty = !getServicePlans.next();
    boolean getServicePlans_hasData = !getServicePlans_isEmpty;
    Object getServicePlans_data;
    int getServicePlans_numRows = 0;
    %>
    <%
    String getAcctState__MM_Acct_State = "0";
    if (request.getParameter("drpdwnState") !=null) {getAcctState__MM_Acct_State = (String)request.getParameter("drpdwnState");}
    %>
    <%
    Driver DrivergetAcctState = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetAcctState = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetAcctState = ConngetAcctState.prepareStatement("SELECT stae_id, stae_state_abbr FROM bormit.states WHERE stae_id = ?");
    StatementgetAcctState.setObject(1, getAcctState__MM_Acct_State);
    ResultSet getAcctState = StatementgetAcctState.executeQuery();
    boolean getAcctState_isEmpty = !getAcctState.next();
    boolean getAcctState_hasData = !getAcctState_isEmpty;
    Object getAcctState_data;
    int getAcctState_numRows = 0;
    %>
    <%
    Driver DrivergetBloodTypes = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetBloodTypes = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetBloodTypes = ConngetBloodTypes.prepareStatement("SELECT blty_id, blty_short_desc FROM bormit.bloodtypes");
    ResultSet getBloodTypes = StatementgetBloodTypes.executeQuery();
    boolean getBloodTypes_isEmpty = !getBloodTypes.next();
    boolean getBloodTypes_hasData = !getBloodTypes_isEmpty;
    Object getBloodTypes_data;
    int getBloodTypes_numRows = 0;
    %>
    <%
    Driver DrivergetSuffixes = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetSuffixes = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetSuffixes = ConngetSuffixes.prepareStatement("SELECT sufx_id, sufx_desc FROM bormit.suffixes WHERE sufx_status = 1");
    ResultSet getSuffixes = StatementgetSuffixes.executeQuery();
    boolean getSuffixes_isEmpty = !getSuffixes.next();
    boolean getSuffixes_hasData = !getSuffixes_isEmpty;
    Object getSuffixes_data;
    int getSuffixes_numRows = 0;
    %>
    <%
    Driver DrivergetCountries = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetCountries = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetCountries = ConngetCountries.prepareStatement("SELECT cnty_id, cnty_name FROM bormit.countries WHERE cnty_status = 1 ORDER BY cnty_name");
    ResultSet getCountries = StatementgetCountries.executeQuery();
    boolean getCountries_isEmpty = !getCountries.next();
    boolean getCountries_hasData = !getCountries_isEmpty;
    Object getCountries_data;
    int getCountries_numRows = 0;
    %>
    <%
    String getAccountCountry__MM_Acct_Country = "648";
    if (request.getParameter("drpdwnCntry")  !=null) {getAccountCountry__MM_Acct_Country = (String)request.getParameter("drpdwnCntry") ;}
    %>
    <%
    Driver DrivergetAccountCountry = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetAccountCountry = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetAccountCountry = ConngetAccountCountry.prepareStatement("SELECT cnty_id, cnty_name FROM bormit.countries WHERE cnty_id = ?");
    StatementgetAccountCountry.setObject(1, getAccountCountry__MM_Acct_Country);
    ResultSet getAccountCountry = StatementgetAccountCountry.executeQuery();
    boolean getAccountCountry_isEmpty = !getAccountCountry.next();
    boolean getAccountCountry_hasData = !getAccountCountry_isEmpty;
    Object getAccountCountry_data;
    int getAccountCountry_numRows = 0;
    %>
    <%
    String getWrkAddress__MMWONumber = "0";
    if (session.getAttribute("sesWONumber") !=null) {getWrkAddress__MMWONumber = (String)session.getAttribute("sesWONumber");}
    %>
    <%
    Driver DrivergetWrkAddress = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetWrkAddress = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetWrkAddress = ConngetWrkAddress.prepareStatement("SELECT wkad_id,        wkad_wo_number,        wkad_address_line1,        wkad_address_line2,        wkad_address_line3,        wkad_city,        wkad_state_id,        (SELECT stae_state_abbr           FROM states          WHERE stae_id = wkad_state_id)           AS stateAbbr, wkad_zip_code_id,        (SELECT zipc_zipcode           FROM zipcodes          WHERE zipc_id = wkad_zip_code_id)           AS zipCode,               wkad_foreign_zip,        wkad_country_id FROM bormit.wrkaddresses WHERE wkad_wo_number = ?");
    StatementgetWrkAddress.setObject(1, getWrkAddress__MMWONumber);
    ResultSet getWrkAddress = StatementgetWrkAddress.executeQuery();
    boolean getWrkAddress_isEmpty = !getWrkAddress.next();
    boolean getWrkAddress_hasData = !getWrkAddress_isEmpty;
    Object getWrkAddress_data;
    int getWrkAddress_numRows = 0;
    %>
    <%
       if(!getWrkAddress_hasData && txtPrevPage.equals("/WBCart.jsp")) {
          MM_Response_Msg = "Error Selecting Data. PrevPage=" + txtPrevPage;
       MM_Response_Error = "Wrk Address Information could not found in database. WONumber=" + getWrkAddress__MMWONumber;
    %>
    <%
    Driver DriverWriteLogRecs = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConnWriteLogRecs = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    CallableStatement WriteLogRecs = ConnWriteLogRecs.prepareCall("{call bormit.writeLogRec(?,?,?,?,?,?,?,?,?)}");
    Object WriteLogRecs_data;
    WriteLogRecs.setString(1,WriteLogRecs__param_login_id);
    WriteLogRecs.setString(2,WriteLogRecs__param_persons_id);
    WriteLogRecs.setString(3,WriteLogRecs__param_accounts_id);
    WriteLogRecs.setString(4,WriteLogRecs__param_ip_address);
    WriteLogRecs.setString(5,WriteLogRecs__param_serial_num);
    WriteLogRecs.setString(6,WriteLogRecs__param_module_name);
    WriteLogRecs.setString(7,WriteLogRecs__param_msg);
    WriteLogRecs.setString(8,WriteLogRecs__param_error);
    WriteLogRecs.setString(9,WriteLogRecs__param_mobile_module);
    WriteLogRecs.execute();
    %>
    <%
    String getLoginName__MMLoginId = "0";
    if (session.getAttribute("sesLoginId") !=null) {getLoginName__MMLoginId = (String)session.getAttribute("sesLoginId");}
    %>
    <%
    Driver DrivergetLoginName = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetLoginName = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetLoginName = ConngetLoginName.prepareStatement("SELECT lpxr_logins_id, lpxr_persons_id, lpxr_status,pers_first_name, pers_middle_name, pers_last_name FROM bormit.loginspersonsxr,      persons WHERE lpxr_logins_id = ?  AND lpxr_persons_id = pers_id");
    StatementgetLoginName.setObject(1, getLoginName__MMLoginId);
    ResultSet getLoginName = StatementgetLoginName.executeQuery();
    boolean getLoginName_isEmpty = !getLoginName.next();
    boolean getLoginName_hasData = !getLoginName_isEmpty;
    Object getLoginName_data;
    int getLoginName_numRows = 0;
    %>
    <%
    int Repeat1__numRows = -1;
    int Repeat1__index = 0;
    getHairColor_numRows += Repeat1__numRows;
    %>
    <%
    int Repeat2__numRows = -1;
    int Repeat2__index = 0;
    getEducation_numRows += Repeat2__numRows;
    %>
    <%
    int Repeat3__numRows = -1;
    int Repeat3__index = 0;
    getEyeColors_numRows += Repeat3__numRows;
    %>
    <%
    int Repeat4__numRows = -1;
    int Repeat4__index = 0;
    getStates_numRows += Repeat4__numRows;
    %>
    <%
    int Repeat5__numRows = -1;
    int Repeat5__index = 0;
    getOccupations_numRows += Repeat5__numRows;
    %>
    <%
    int Repeat6__numRows = -1;
    int Repeat6__index = 0;
    getServicePlans_numRows += Repeat6__numRows;
    %>
    <%
    int Repeat7__numRows = -1;
    int Repeat7__index = 0;
    getBloodTypes_numRows += Repeat7__numRows;
    %>
    <%
    int Repeat8__numRows = -1;
    int Repeat8__index = 0;
    getCountries_numRows += Repeat8__numRows;
    %>
    <%
    int Repeat9__numRows = -1;
    int Repeat9__index = 0;
    getSuffixes_numRows += Repeat9__numRows;
    %>
    <%
    int Repeat10__numRows = -1;
    int Repeat10__index = 0;
    getMeasureTypes_numRows += Repeat10__numRows;
    %>
    <!-- Code to build the address output -->
    <%
    String inAddressLine1 = "";
    String inAddressLine2 = "";
    String inAddressLine3 = "";
    String inCity = "";
    String inStateId = "";
    String inState = "";
    String inZipCodeId = "";
    String inZipCode = "";
    String inCountryId = "";
    String inCountry = "";
    if(txtPrevPage.equals("/RegisterAccount.jsp")) {
       inAddressLine1 = "" + request.getParameter("txtAddressLine1");
       inAddressLine2 = "" + request.getParameter("txtAddressLine2");
       inAddressLine3 = "" + request.getParameter("txtAddressLine3");
       inCity = "" + request.getParameter("txtCity");
       inZipCode = "" + request.getParameter("txtZipCode");
       inCountry = "" + (((getAccountCountry_data = getAccountCountry.getObject("cnty_name"))==null || getAccountCountry.wasNull())?"":getAccountCountry_data);
       inStateId = "" + getAcctState__MM_Acct_State;
       inState = "" + (((getAcctState_data = getAcctState.getObject("stae_state_abbr"))==null || getAcctState.wasNull())?"":getAcctState_data);
       inCountryId = "" + getAccountCountry__MM_Acct_Country;
    } else
    if(txtPrevPage.equals("/WBCart.jsp")) {
       inAddressLine1 = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_address_line1"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inAddressLine2 = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_address_line2"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inAddressLine3 = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_address_line3"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inCity = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_city"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inZipCode = "" + (((getWrkAddress_data = getWrkAddress.getObject("zipCode"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inCountry = "" + (((getAccountCountry_data = getAccountCountry.getObject("cnty_name"))==null || getAccountCountry.wasNull())?"":getAccountCountry_data);
       inStateId = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_state_id"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inState = "" + (((getWrkAddress_data = getWrkAddress.getObject("stateAbbr"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inCountryId = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_country_id"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
    } else {
       inAddressLine1 = "" + (((getAcctAddress_data = getAcctAddress.getObject("addr_address_line1"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inAddressLine2 = "" + (((getAcctAddress_data = getAcctAddress.getObject("addr_address_line2"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inAddressLine3 = "" + (((getAcctAddress_data = getAcctAddress.getObject("addr_address_line3"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inCity = "" + (((getAcctAddress_data = getAcctAddress.getObject("addr_city"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inStateId = "" + (((getAcctAddress_data = getAcctAddress.getObject("addr_state_id"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inState = "" + (((getAcctAddress_data = getAcctAddress.getObject("stateAbbr"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inZipCode = "" + (((getAcctAddress_data = getAcctAddress.getObject("zipCode"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inCountryId = "" + getAccountCountry__MM_Acct_Country;
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Create Person Entry</title>
    <link type='text/css' href='/Spry-UI-1.7/css/Menu/basic/SpryMenuBasic.css' rel='stylesheet'>
    <link rel="stylesheet" type="text/css" href="bormit.css">
    <script type='text/javascript' src='/Spry-UI-1.7/includes/SpryDOMUtils.js'></script>
    <script type='text/javascript' src='/Spry-UI-1.7/includes/SpryDOMEffects.js'></script>
    <script type='text/javascript' src='/Spry-UI-1.7/includes/SpryWidget.js'></script>
    <script type='text/javascript' src='/Spry-UI-1.7/includes/SpryMenu.js'></script>
    <script type='text/javascript' src='/Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarKeyNavigationPlugin.js'></script>
    <script type='text/javascript' src='/Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarIEWorkaroundsPlugin.js'></script>
    <script type="text/javascript">
    function FillinAddress()
    var jsAddressLine1 = "<%=inAddressLine1%>";
    var jsAddressLine2 = "<%=inAddressLine2%>";
    var jsAddressLine3 = "<%=inAddressLine3%>";
    var jsCity = "<%=inCity%>";
    var jsZipCode = "<%=inZipCode%>";
    var stateId = '<%=inStateId%>';
    var countryId = '<%=inCountryId%>';
    var countryName;
    if(document.createPerson.cbKeepAddress.checked == true) {
       document.createPerson.txtAddressLine1.value = jsAddressLine1;
       document.createPerson.txtAddressLine2.value = jsAddressLine2;
       document.createPerson.txtAddressLine3.value = jsAddressLine3;
       document.createPerson.txtCity.value = jsCity;
       document.createPerson.txtZipCode.value = jsZipCode;   
       for (i=0; i<document.createPerson.selectCountry.length; i++){
           if (document.createPerson.selectCountry[i].value==countryId)
                  document.createPerson.selectCountry[i].selected  = true;
         countryName = document.createPerson.selectCountry[i].text;
       if(countryName == "United States") {
           for (i=0; i<document.createPerson.selectState.length; i++){
            var dashOffset = document.createPerson.selectState[i].value.indexOf('-');
                if (document.createPerson.selectState[i].value.substring(0,dashOffset)==stateId)
                     document.createPerson.selectState[i].selected  = true;
       } else {
        document.createPerson.selectState.disabled = true;
    } else {
           document.createPerson.txtAddressLine1.value = '';
           document.createPerson.txtAddressLine2.value = '';
           document.createPerson.txtAddressLine3.value = '';
           document.createPerson.txtCity.value = '';
           document.createPerson.txtZipCode.value = '';
    // Check the Users Age for Logins
    function checkUserAge()
    // We are expecting the input date to be in the format MM-DD-YYYY.
    var jsBirthday = document.createPerson.txtBirthday.value;
    var jsEmailAddress = document.getElementById("txtEmailAddress").value;
    var jsYear = "";
    var jsMonth = "";
    var jsDay = "";
    var jsIndex1 = jsBirthday.indexOf("-");
    var jsIndex2 = jsBirthday.indexOf("-", jsIndex1 + 1);
    var jsAge = "";
    var stateId = "";
    var stateMajority = 0;
    var returnValue = "true";
    if(jsIndex1 == 0) {
    alert("The Birthdate Entered is invalid.  Please try again");
    returnValue = false;
    } else {
       jsMonth = jsBirthday.substring(0, jsIndex1);
       jsDay = jsBirthday.substring(jsIndex1 + 1,jsIndex2);
       jsYear = jsBirthday.substring(jsIndex2 + 1);  
    if(jsMonth < 1 || jsMonth > 12) {
    alert("Birthday Month is invalid.  Please reenter");
    document.createPerson.txtBirthday.focus();
    returnValue = "false";
    } else
    if(jsDay < 1 || jsDay > 31) {
    alert("Birthday Day is invalid.  Please reenter");
    document.createPerson.txtBirthday.focus();
    returnValue = "false";
    } else
    if(jsYear.length != 4) {
    alert("Birthday Year is invalid.  Please reenter");
    document.createPerson.txtBirthday.focus();
    returnValue = "false";
    for(var i = 0; i < document.createPerson.selectState.length; i++) {
    if(document.createPerson.selectState[i].selected) {
      stateId = document.createPerson.selectState[i].value;
      var dashIndex = stateId.indexOf("-");
      stateMajority = stateId.substring(dashIndex + 1);
    if(stateMajority == null || stateMajority == "") {
    stateMajority = 18;
    jsAge = calculate_age(jsMonth, jsDay, jsYear);
    //alert("Birthday Year=" + jsYear + " Month=" + jsMonth + " Day=" + jsDay + " age=" + jsAge);
    if(jsAge > (stateMajority - 1)) {
        if(document.pressed != "Add" && (jsEmailAddress == null || (jsEmailAddress.length == 0 || jsEmailAddress.length == -1))) {
         document.getElementById("emailRequired").style.visibility='visible'; //show other options
         document.getElementById("txtSendEmail").value = '1';  // Set the Send email flag to yes.
         alert("This persons age is over the age of the Majority.  Therefore, they will have to decide if they will allow others to view their information.  Please enter an email address so that we may contact them.");
    } else
    if(jsEmailAddress == null || (jsEmailAddress.length == 0 || jsEmailAddress.length == -1)) {
         document.getElementById("emailRequired").style.visibility='visible'; //show other options
         document.getElementById("txtSendEmail").value = '1';  // Set the Send email flag to yes.
         alert("This persons age is over the age of the Majority.  Therefore, they will have to decide if they will allow others to view their information.  Please enter an email address so that we may contact them.");
      returnValue = "false";
    } else {
      //alert("document.pressed was Add and txtEmailAddress.length=" + document.getElementById("txtEmailAddress").length);
    } else {
    document.getElementById("emailRequired").style.visibility='hidden'; //show other options
    document.getElementById("txtSendEmail").value = '0'; // set the Send Email Flag to NO.
    return returnValue;
    // Function to Calculate Age
    function calculate_age(birth_month,birth_day,birth_year)
        today_date = new Date();
        today_year = today_date.getFullYear();
        today_month = today_date.getMonth();
        today_day = today_date.getDate();
        age = today_year - birth_year;
        if ( today_month < (birth_month - 1))
          age--;
        if (((birth_month - 1) == today_month) && (today_day < birth_day))
          age--;
      return age;
    </script>
    <SCRIPT TYPE="text/javascript">
    function SubmitDataCheck()
    var txtFirstName = document.createPerson.txtFirstName.value;
    var txtMiddleName = document.createPerson.txtMiddleName.value;
    var txtLastName = document.createPerson.txtLastName.value;
    var txtBirthday = document.createPerson.txtBirthday.value;
    var txtSSN = document.createPerson.txtSSN.value;
    var newSSN = "";
    var stateSelected = document.createPerson.selectState.selectedIndex;
    var srvPlanSelected = document.createPerson.selectServicePlans.selectedIndex;
    var country = document.createPerson.selectCountry.selectedIndex;
    var countrySel = document.getElementById("selectCountry");
    var countryText = countrySel.options[countrySel.selectedIndex].text;
    var returnval = false;
    var txtEmail=document.createPerson.txtEmailAddress.value;
    var atpos=txtEmail.indexOf("@");
    var dotpos=txtEmail.lastIndexOf(".");
    <%
    if(txtPrevPage.equals("/RegisterAccount.jsp") || txtPrevPage.equals("/WBCart.jsp") ){
    %>var returnToAcct = "yes";
    <%} else
    if(txtPrevPage.equals("/WBPersonInfo.jsp") ){
        %>var returnToAcct = "edit";
    <%} else {
    %>var returnToAcct = "no";
    <% } %>
    if(document.pressed == "  Cancel  ")
       var r=confirm("Are you sure you wish to exit?");
       if (r==true)
       { if(returnToAcct == "yes" )
             document.createPerson.action ="/LogOff.jsp";
             return true;
      } else
         if(returnToAcct == "edit" )
             document.createPerson.action ="/WBPersonInfo.jsp";
             return true;
          } else {
             document.createPerson.action ="/WBAccountInfo.jsp";
             return true;
       } else
           return false;
    if (txtEmail.length > 0 && (atpos<1 || dotpos<atpos+2 || dotpos+2>=txtEmail.length))
       alert("You have entered an invalid format for an e-mail address.  Please correct the e-mail address before continuing.");
       document.createPerson.txtEmailAddress.focus();
       return false;
    } else
    if (txtEmail.length == 0 && document.getElementById("txtSendEmail").value == 1) {
    alert("Because this persons is over the age of majority for the Country and State to which they live, the Email address is required.  Please enter an Email address before clicking the Add Button.");
    document.createPerson.txtEmailAddress.focus();
    return false;
    if(txtSSN.length == 0) {
    alert("The SSN must be entered.  Please reenter the last 4 characters of your SSN before proceeding.");
        document.forms.createPerson.txtSSN.focus()       
        return false;
    } else
    if(txtSSN.length > 0) {
    if(txtSSN.length > 8) {
      var asterickSSN = txtSSN.substring(0, 7);;
      if(asterickSSN == "***-**-") {
       // bypass this SSN Check.
      } else {
          var index1 = txtSSN.indexOf("-");
          if(index1 == -1) {
           newSSN = txtSSN;
        if(newSSN.length != 9) {
              alert("The SSN must be 9 characters long without editing.  If edited it should be 11 characters.  Please reenter a correct SSN before proceeding.");
                         document.forms.createPerson.txtSSN.focus()     
          return false;
                } else {
           // SSN Good to go....
       } else {
        var ssn1 = txtSSN.substring(0,index1);
        var index2 = txtSSN.indexOf("-", index1 + 1);
        var ssn2 = txtSSN.substring(index1 + 1, index2);
        var ssn3 = txtSSN.substring(index2 + 1);
        newSSN = ssn1 + ssn2 + ssn3;
        if(ssn1.length != 3 || ssn2.length != 2 || ssn3.length != 4) {
          alert("The SSN must be 9 characters long without editing.  If edited it should be 11 characters.  Please reenter a correct SSN before proceeding.");
                         document.forms.createPerson.txtSSN.focus()           
          return false;
    } else
        if(txtSSN.length < 4) {
      alert("The SSN must be 4 characters long.  Please reenter the last 4 characters of your SSN before proceeding.");
            document.forms.createPerson.txtSSN.focus()       
      return false;
    var returnvalue = checkUserAge();
    if(returnvalue == "false") {
    return false;
    if ( (txtFirstName != "") && (txtMiddleName != "") && (txtLastName != "")  && (txtSSN != "")
    &&  (country != "0")    &&  (txtBirthday != "")   && (srvPlanSelected != "0")
    && (countryText.equals("United States") && stateSelected != "0")
        //document.createPerson.action ="/MBWriteWrkPerson.jsp";
        return true;
    } else
       alert("All required fields must be entered before clicking on the Add Button");
       return false;
    // -->
    </SCRIPT>
    <script type="text/javascript">
    // Popup window code
    function newPopup(url) {
    popupWindow = window.open(
      url,'popUpWindow','height=500,width=500,left=250,top=150,resizable=yes,scrollbars=yes,too lbar=yes,menubar=no,location=no,directories=no,status=yes')
    </script>
    <script language="javascript" type="text/javascript" src="datetimepicker.js">
    //Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com
    //Script featured on JavaScript Kit (http://www.javascriptkit.com)
    //For this script, visit http://www.javascriptkit.com
    </script>
    </head>
    <body onLoad="<%=setFieldFocus%>" >
    <div align="center">
    <%@include file="bormitHeadersTop.shtml" %>
    <%
    String disAddrLine1 = "";
    String disAddrLine2 = "";
    String disAddrLine3 = "";
    String disAddrLine4 = "";
    String disAddrLine5 = "";
    String disAddrLine6 = "";
    String holdAddrLine1 = inAddressLine1;
    String holdAddrLine2 = inAddressLine2;
    String holdAddrLine3 = inAddressLine3;
    String holdAddrLine4 = inCity;
    String holdAddrLine5 = inState + ", " + inZipCode;
    String holdAddrLine6 = inCountry;
    if(holdAddrLine1.equals("") || holdAddrLine1.equals(" ") ){
    if(holdAddrLine2.equals("") || holdAddrLine2.equals(" ")) {
      if(holdAddrLine3.equals("") || holdAddrLine3.equals(" ") ){
       disAddrLine1 = holdAddrLine4;
       disAddrLine2 = holdAddrLine5;
       disAddrLine3 = holdAddrLine6;
      } else {
       disAddrLine1 = holdAddrLine3;
       disAddrLine2 = holdAddrLine4;
       disAddrLine3 = holdAddrLine5;
       disAddrLine4 = holdAddrLine6;
    } else {
            disAddrLine1 = holdAddrLine2;
         if(holdAddrLine3.equals("") || holdAddrLine3.equals(" ")) {
       disAddrLine2 = holdAddrLine4;
       disAddrLine3 = holdAddrLine5;
       disAddrLine3 = holdAddrLine6;
      } else { 
          disAddrLine2 = holdAddrLine3;
          disAddrLine3 = holdAddrLine4;
       disAddrLine4 = holdAddrLine5;
       disAddrLine5 = holdAddrLine6;
    } else {
    disAddrLine1 = holdAddrLine1;
    if(holdAddrLine2.equals("") || holdAddrLine2.equals(" ")) {
      if(holdAddrLine3.equals("") || holdAddrLine3.equals(" ")) {
       disAddrLine2 = holdAddrLine4;
       disAddrLine3 = holdAddrLine5;
       disAddrLine4 = holdAddrLine6;
      } else {
       disAddrLine2 = holdAddrLine3;
       disAddrLine3 = holdAddrLine4;
       disAddrLine4 = holdAddrLine5;
       disAddrLine5 = holdAddrLine6;
    } else {
            disAddrLine2 = holdAddrLine2;
         if(holdAddrLine3.equals("") || holdAddrLine3.equals("")) {
       disAddrLine3 = holdAddrLine4;
       disAddrLine4 = holdAddrLine5;
       disAddrLine5 = holdAddrLine6;
      } else { 
          disAddrLine3 = holdAddrLine3;
          disAddrLine4 = holdAddrLine4;
       disAddrLine5 = holdAddrLine5;
       disAddrLine6 = holdAddrLine6;
    %>
      <table width="1233" height="508" border="0" bordercolor="#0066CC" cellpadding="1" cellspacing="0" >
        <!--DWLayoutDefaultTable-->
        <tr>
          <td width="200" rowspan="7" valign="top" class="txtLabel">
          <table width="200" border="0" bordercolor="#99CC00" cellspacing="0" cellpadding="0" >
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
            <tr valign="middle">
              <td> </td>
              <td > </td>
            </tr>
            <tr valign="middle">
              <td width="40"> </td>
              <td width="154"> </td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" > </td>
              <td bgcolor="#FFFFFF" align="left"><font color="#000000">Account Address:</font></td>
            </tr>
            <tr>
              <td> </td>
              <td align="left"><font color="#FFFFFF"><%=disAddrLine1%></font></td>
            </tr>
            <tr>
              <td> </td>
              <td align="left"><font color="#FFFFFF"><%=disAddrLine2%></font></td>
            </tr>
            <tr>
              <td> </td>
              <td align="left"><font color="#FFFFFF"><%=disAddrLine3%></font></td>
            </tr>
            <tr>
              <td > </td>
              <td align="left"><font color="#FFFFFF"><%=disAddrLine4%></font></td>
            </tr>
            <tr>
              <td > </td>
              <td align="left"><font color="#FFFFFF"><%=disAddrLine5%></font></td>
            </tr>
            <tr>
              <td > </td>
              <td > </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
            </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
            <tr>
    <% if(txtPrevPage.equals((("/RegisterAccount.jsp"))) ) { %>
    <td> </td>
    <% } else { %>
              <td><img src="PatientRecs.png" width="37" height="34" alt="Enter Item"></td>
              <td align="left"><a href="/WBAccountInfo.jsp">Account Information</a></td>
    <% } %>
            </tr>
            <tr>
    <% if(txtPrevPage.equals((("/RegisterAccount.jsp"))) ) { %>
    <td> </td>
    <% } else { %>
              <td><img src="LoginImage.png" width="37" height="34" alt="Member List"></td>
              <td align="left"><a href="/WBLoginInfo.jsp">Member List</a></td>
    <% } %>
            </tr>
            <tr>
    <% if(txtPrevPage.equals((("/RegisterAccount.jsp"))) ) { %>
    <td> </td>
    <% } else { %>
              <td><img src="LogOff.png" width="37" height="34" alt="Log Off"></td>
              <td align="left"><a href="/LogOff.jsp">Log Off</a></td>
    <% } %>
            </tr>
          </table>
       <p> </p>
       <p> </p></td>
          <td width="45" height="250" ><input type="hidden" name="forspacing" value="English"></td>
          <td width="100%" rowspan="2" valign="top" align="left"> 
       <p><strong>Add Persons Information:</strong></p>
       <table width="100%" border="0" bordercolor="#CC3300" cellspacing="0" cellpadding="0">
       <tr>
         <td valign="top">
           <table width="100%" border="0" bordercolor="#00FF00" cellspacing="0" cellpadding="0">
           <tr>
             <td height="407">
                      <table width="837" border="0"  bordercolor="#FFFF33" cellspacing="0" cellpadding="0">
               <tr>
                 <td width="150" height="377" valign="top">
                          <%
            if(regPicture.equals("")) {
             %>
                          <img src="ImageNotAvail_CreatePerson.png" width="150" height="160" alt="Persons Pic"> 
                               <%
            } else {
             %>
                          <img src="<%=regPicture%>?<%=curTime%>" width="150" height="160" alt="Persons Pic"> 
                               <%
            %>
                          </td>
                          <td width="837" valign="top">
    <%
    String setProtected = "";
    String setTextColor = "width:100%";
    if(txtPrevPage.equals("/RegisterAccount.jsp") ) {
         setProtected = "READONLY";
      setTextColor = "width:100%;color:#999";
    // This can be used to reload the image after the user uploads a new one:
    // <INPUT TYPE="button" onClick="history.go(0)" VALUE="Refresh">
    if(txtPrevPage.equals("/WBPersonInfo.jsp") ) {
       %>
        <form name="createPerson" method="post" action="/MBUpdatePerson.jsp" onSubmit="return SubmitDataCheck()">
        <%
    } else {
        %>
        <form name="createPerson" method="post" action="/MBWritePerson.jsp" onSubmit="return SubmitDataCheck()">
    <%
    %>
                    <table width="837" height="100%" border="0" bordercolor="#0000CC" cellspacing="1" cellpadding="1">
                     <tr>
                       <td width="1%" height="19"><input type="hidden" name="txtFromPage" value="<%=txtPrevPage%>"><input type="hidden" name="txtServicePic" value="<%=regPicture%>"></td>
                       <td width="15%" height="19">First Name<font color="#FF0000">*</font>:</td>
                              <td width="29%" height="19">
                         <input <%=setProtected%> type="text" style="<%=setTextColor%>" name="txtFirstName" id="txtFirstName" tabindex=1 value="<%=regFirstName%>">
                        </td>
                       <td width="6%"> </td>
                       <td width="15%">Status:</td>
                       <td width="29%"><%=regStatus%></td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Middle Name<font color="#FF0000">*</font>:</td>
                       <td height="19">
                         <input <%=setProtected%>  type="text" style="<%=setTextColor%>" name="txtMiddleName" id="txtMiddleName" tabindex=2 value="<%=regMiddleName%>">
                       </td>
                       <td height="19"> </td>
                       <td height="19">Married Status:</td>
                       <td height="19">
                                  <%
             String selectedValue0 = "";
             String selectedValue1 = "";
             String selectedValue2 = "";
             String selectedValue3 = "";
             if(regMarried.equals("0")) {
              selectedValue0 = "selected";
             } else
             if(regMarried.equals("1")) {
              selectedValue1 = "selected";
             } else
             if(regMarried.equals("2")) {
              selectedValue2 = "selected";
             } else
             if(regMarried.equals("3")) {
              selectedValue3 = "selected";
             %>
                           <select name="selectMarriage" style="width:100%" id="selectMarriage" class="selectitems" tabindex=20>
                    <option>--Select Item--</option>
                   <option value="0" <%=selectedValue0%>>Single</option>
                   <option value="1" <%=selectedValue1%>>Married</option>
                   <option value="2" <%=selectedValue2%>>Divorced</option>
                   <option value="3" <%=selectedValue3%>>Live In Partner</option>
                             </select>
                         </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Last Name<font color="#FF0000">*</font>:</td>
                       <td height="19">
                         <label for="txtLastName"></label>
                         <input <%=setProtected%> type="text" style="<%=setTextColor%>"name="txtLastName" id="txtLastName" tabindex=3 value="<%=regLastName%>">
                       </td>
                       <td height="19"> </td>
                       <td height="19">Children(#):</td>
                       <td height="19">
                         <input type="text" name="txtNumChildren" style="width:99%" id="txtNumChildren" value="<%=regNumChildren%>" tabindex=21>
                         </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Suffix:</td>
                       <td height="19">
                                <select name="selectSuffix" id="selectSuffix" style="width:100%" class="selectitems" tabindex=4>  
                                <option>--Select Item--</option>
           <% while ((getSuffixes_hasData)&&(Repeat9__numRows-- != 0)) {
           String tableValue = "" + (((getSuffixes_data = getSuffixes.getObject("sufx_id"))==null || getSuffixes.wasNull())?"":getSuffixes_data);
           String sufSelected = "";
           if(tableValue.equals(regSuffix)) {
            sufSelected = "selected";
           } else {
            sufSelected = "";
           %>
                                <option value="<%=(((getSuffixes_data = getSuffixes.getObject("sufx_id"))==null || getSuffixes.wasNull())?"":getSuffixes_data)%>" <%=sufSelected%> ><%=(((getSuffixes_data = getSuffixes.getObject("sufx_desc"))==null || getSuffixes.wasNull())?"":getSuffixes_data)%> </option>
              <%
      Repeat9__index++;
      getSuffixes_hasData = getSuffixes.next();
    %>
                             </select></td>
                       <td height="19"> </td>
                       <td height="19"> </td>
                       <td height="19"> </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Keep Address<font color="#FF0000">**</font>:</td>
                       <td height="19">
                         <label for="txtAddressLine1">
                           <input type="checkbox" name="cbKeepAddress" id="cbKeepAddress" onClick="FillinAddress()" tabindex=5>
                         </label></td>
                       <td height="19"> </td>
                       <td height="19">Education:</td>
                       <td height="19">
                           <label for="selectEducation"></label>
                           <select name="selectEducation" id="selectEducation" style="width:100%" class="selectitems" tabindex=22>  
                                    <option>--Select Item--</option>
       <% while ((getEducation_hasData)&&(Repeat2__numRows-- != 0)) {
       String tableValue = "" + (((getEducation_data = getEducation.getObject("edlv_id"))==null || getEducation.wasNull())?"":getEducation_data);
       String eduSelected = "";
       if(tableValue.equals(regEducation)) {
        eduSelected = "selected";
       } else {
        eduSelected = "";
       %>
                <option value="<%=(((getEducation_data = getEducation.getObject("edlv_id"))==null || getEducation.wasNull())?"":getEducation_data)%>" <%=eduSelected%>><%=(((getEducation_data = getEducation.getObject("edlv_level"))==null || getEducation.wasNull())?"":getEducation_data)%></option>
              <%
      Repeat2__index++;
      getEducation_hasData = getEducation.next();
    %>
                             </select>
                         </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Address Line 1<font color="#FF0000">**</font>:</td>
                       <td height="19">
                         <label for="txtAddressLine2">
                           <input type="text" name="txtAddressLine1" style="width:100%" id="txtAddressLine1" value="<%=regAddress1%>" tabindex=6>
                         </label></td>
                       <td height="19"> </td>
                       <td height="19">Occupation:</td>
                       <td height="19">
                           <label for="selectOccupation"></label>
                           <select name="selectOccupation" id="selectOccupation" style="width:100%" class="selectitems" tabindex=23> 
                                    <option>--Select Item--</option>
        <% while ((getOccupations_hasData)&&(Repeat5__numRows-- != 0)) {
    String tableValue = "" + (((getOccupations_data = getOccupations.getObject("occp_id"))==null || getOccupations.wasNull())?"":getOccupations_data);
    String occSelected = "";
    if(tableValue.equals(regOccupation)) {
      occSelected = "selected";
    } else {
      occSelected = "";
    %>
        <option value="<%=(((getOccupations_data = getOccupations.getObject("occp_id"))==null || getOccupations.wasNull())?"":getOccupations_data)%>" <%=occSelected%>><%=(((getOccupations_data = getOccupations.getObject("occp_short_desc"))==null || getOccupations.wasNull())?"":getOccupations_data)%></option>
                <%
      Repeat5__index++;
      getOccupations_hasData = getOccupations.next();
    %>
                             </select>
                         </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Address Line 2:</td>
                       <td height="19">
                         <label for="txtAddressLine3">
                           <input type="text" name="txtAddressLine2" style="width:100%" id="txtAddressLine2" value="<%=regAddress2%>" tabindex=7>
                         </label></td>
                       <td height="19"> </td>
                       <td height="19">Current Job:</td>
                       <td height="19">
                         <label for="txtCurrentJob"></label>
                         <input type="text" name="txtCurrentJob" style="width:99%" id="txtCurrentJob" value="<%=regCurrentJob%>" tabindex=24>
                       </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Address Line 3:</td>
                       <td height="19">
                         <label for="txtCity">
                           <input type="text" name="txtAddressLine3" style="width:100%" id="txtAddressLine3" value="<%=regAddress3%>" tabindex=8>
                         </label></td>
                       <td height="19"> </td>
                       <td height="19"> </td>
                       <td height="19"> </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">City:</td>
                       <td height="19"><input type="text" name="txtCity" style="width:100%" id="txtCity" value="<%=regCity%>" tabindex=9>
                                </td>
                       <td height="19"> </td>
                       <td height="19">Eye Color:</td>
                       <td height="19"> <select name="selectEyeColor" id="selectEyeColor"  style="width:100%" class="selectitems" tabindex=25>
                         <option>--Select Item--</option>
                         <% while ((getEyeColors_hasData)&&(Repeat3__numRows-- != 0)) {
             String tableValue = "" + (((getEyeColors_data = getEyeColors.getObject("colr_id"))==null || getEyeColors.wasNull())?"":getEyeColors_data);
             String eyeSelected = "";
             if(tableValue.equals(regEyeColor)) {
              eyeSelected = "selected";
             } else {
              eyeSelected = "";
             %>
                         <option value="<%=(((getEyeColors_data = getEyeColors.getObject("colr_id"))==null || getEyeColors.wasNull())?"":getEyeColors_data)%>" <%=eyeSelected%>> <%=(((getEyeColors_data = getEyeColors.getObject("colr_color"))==null || getEyeColors.wasNull())?"":getEyeColors_data)%></option>
                         <%
      Repeat3__index++;
      getEyeColors_hasData = getEyeColors.next();
    %>
                         </select></td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">State:</td>
          

Maybe you are looking for