This example creates a simple pagelet that displays information from the proxy, including setting values.
<%@ page language='java' import='com.bea.alui.proxy.*' %> <% String Att1 = 'no setting'; String Att2 = 'no setting'; String sessionVariable = 'no setting'; //get the idk IProxyContext proxyContext = ProxyContextFactory.getInstance().createProxyContext(request, response); IProxyRequest proxyRequest = proxyContext.getProxyRequest() IProxyUser proxyUser = proxyRequest.getUser(); String userName = proxyUser.getUserName(); int userID = proxyUser.getUserID(); Att1 = proxyRequest.getSetting('Att1') Att2 = proxyRequest.getSetting('Att2'); sessionVariable = proxyRequest.getSetting('sessionVar'); byte[] payload = proxyRequest.getPayload().getText(); String payloadStr = new String(payload) %> <p>User name: <%=userName%><br/> User ID: <%=userID%><br/> Attribute 1: <%=Att1%><br/> Attribute 2: <%=Att2%><br/> Session variable: <%=sessionVariable%><br/> Payload: <textarea name=xml cols=80 rows=6> <%=payloadStr%> </textarea> </p>