Here is the
login page you obtain when logging into JDE 9.1 TR9.1.3 from a Windows CE OS:
This is
because, in the registry of the mobile device, you can find the key below:
\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\5.0\User Agent
The login
page presented to the user using mobile devices is stored in:
%MIDDLEWARE_HOME%\user_projects\domains\<domain_name>\servers\<managed_J2EE_name>\stage\<managed_server_name>\app\webclient.war\share\ppclogin.jsp
Two
modifications can made to this .jsp file in order to make the use of this
mobile device page easier:
First modification : Bypass the environment choice.
By default,
a transition page offering the choice of environment, is presented to the user
before typing the username and password, even if there is only one environment
to choose from and if the default environment is setup in the jas.ini.
In order to
avoid this extra choice and use the default environment setup in the jas.ini,
you need to make the following changes to the ppclogin.jsp:
Before:
String name
= "";
String defaultEnvironment =
(String)request.getAttribute("defaultEnvironment");
String environment = defaultEnvironment == null ? "" : defaultEnvironment ;
String role = "";
if (userInfo != null)
String defaultEnvironment =
(String)request.getAttribute("defaultEnvironment");
String environment = defaultEnvironment == null ? "" : defaultEnvironment ;
String role = "";
if (userInfo != null)
{
name = userInfo.getUserId();
environment = userInfo.getEnvironment();
role = userInfo.getRole();
}
name = userInfo.getUserId();
environment = userInfo.getEnvironment();
role = userInfo.getRole();
}
After:
String name = "";
String defaultEnvironment =
(String)request.getAttribute("defaultEnvironment");
String environment = defaultEnvironment == null ? "" : defaultEnvironment ;
String defaultRole = (String)request.getAttribute("defaultRole");
String name = "";
String defaultEnvironment =
(String)request.getAttribute("defaultEnvironment");
String environment = defaultEnvironment == null ? "" : defaultEnvironment ;
String defaultRole = (String)request.getAttribute("defaultRole");
String role = defaultRole == null ? "" :
defaultRole ;
if
(userInfo != null)
{
name = userInfo.getUserId();
environment =
userInfo.getEnvironment();
role = userInfo.getRole();
}
}
Second
modification: Focus on the user on
loading (in order to avoid clicking on the user box before typing it).
Make the
following changes to the ppclogin.jsp:
<script
language="JScript">
isFirstClick = true;
function submitIfFirstClick() {
if (isFirstClick)
{
isFirstClick = false;
isFirstClick = true;
function submitIfFirstClick() {
if (isFirstClick)
{
isFirstClick = false;
return true;
}
else {return false;}
}
function focusOnUser()
{
document.F1.<%=LoginDisplayManager.USERID%>.focus();
}
function
doClear()
{
document.F1.reset();
document.F1.<%=LoginDisplayManager.USERID%>.value
= "";
document.F1.<%=LoginDisplayManager.PASSWORD%>.value
= "";
focusOnUser();
<% if
(!environmentModeHidden){%>
document.F1.<%=LoginDisplayManager.ENVIRONMENT%>.value
= "";
document.F1.<%=LoginDisplayManager.ROLE%>.value
= "";
<%}%>
}
</script>
<title><%=resource.getString("JH_LOGINTITLE")%></title>
</HEAD>
<BODY
bgcolor=white onload="focusOnUser()">
In order to
manage menus that are presented to users when they are logged on, you need to
modify the PervasiveAppQuickLinks.xml
file that you can find in:
%MIDDLEWARE_HOME%\user_projects\domains\<domain_name>\servers\<managed_J2EE_name>\stage\<managed_server_name>\app\webclient.war\WEB-INF\classes:
<?xml
version="1.0" encoding="UTF-8"?>
<quick-links>
<quick-link
launchAction="launchForm"
appID="P564205"
formID="W564205D"
version="US56001"
description="Mobile
Picking"/>
</quick-links>