%@ page import="com.savvion.sbm.bpmportal.*" %>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@page import="com.savvion.sbm.bizlogic.util.Session"%>
<%@page import="com.savvion.sbm.bpmportal.bizsite.api.MyProfile"%>
<%= bizSite.getTime().toString() %>
<%
String loggedin = "";
String username = "ebms";
String passwd = "ebms";
String useris;
com.savvion.sbm.bpmportal.domain.BMUserBean bmbean = new com.savvion.sbm.bpmportal.domain.BMUserBean(username, passwd, false);
session.setAttribute("username",username);
session.setAttribute("password",passwd);
boolean b= bizSite.login(bmbean);
//out.println("Got BizSite Bean..."+b);
out.println("Got BizSite Bean..."+b);
if (b)
loggedin = "Yes";
else
loggedin = "";
useris=bmbean.getUserId();
out.println("");
out.println("useris = "+useris+"\n");
MyProfile userProfile = new MyProfile(useris);
out.println("First Name: "+ userProfile.getFirstName());
out.println("Email: "+ userProfile.getEmail());
%>