Usage Note 7387: Using JSP with ACL (Access Control)
If ACL is used with JSP, problems may occur. If "Prompt for application
username and password" is specified under the Prompts tab in the
connection customizer, the userid and password window displays on the
server, not the client. This property is
deferApplicationUserInfoUntilRuntime="true"
and can be seen as a property under the connection tag. This property
can be removed by simply removing it from the connection tag or changing
it in the connection customizer under the Prompts tab.
To circumvent any problems, create your own login page to capture the
username and password for ACL from the user and then pass these values
into the connection tag. Below is a simple example of HTML code to get
the username and password. The code queries the username and password
values and substitutes them into the Connection tag for
applicationUsername and applicationPassword.
1. Login html:
<%@taglib uri="http://www.sas.com/taglib/sasads" prefix="sasads"%>
<sasads:Form id="form1" action="viewmddb.jsp" >
Username: <sasads:TextEntry id="username" />
<br>
Password: <sasads:Password id="password" />
<br>
<sasads:PushButton id="pushButton1" text="Login" />
</sasads:Form>
2. snippet of code in JSP to get username and password passed from login
HTML and insert them in connection component:
<%
String username = request.getParameter( "username" );
String password = request.getParameter( "password" );
%>
<sasads:Connection id="connection" scope="session"
persistedName="<Custom Connection>"
serverArchitecture="PC" host="mypc" applicationUsername="<%=username%>"
applicationPassword="<%=password%>" />
Operating System and Release Information
| SAS System | SAS AppDev Studio | Microsoft Windows NT Workstation | 2.0 | | 8.2 TS2M0 | |
| Microsoft Windows 95/98 | 2.0 | | 8.2 TS2M0 | |
| Microsoft Windows 2000 Professional | 2.0 | | 8.2 TS2M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | |
| Topic: | Software Components ==> webAF
|
| Date Modified: | 2009-01-16 14:32:58 |
| Date Created: | 2002-04-24 13:11:21 |