Author: prabath
Date: Fri Jan 25 10:09:27 2008
New Revision: 12926
Log:
error handling + a link to the home page
Removed:
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidinfocardloggedin.jsp
Modified:
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidloggedin.jsp
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidsubmit.jsp
Modified:
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidloggedin.jsp
==============================================================================
---
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidloggedin.jsp
(original)
+++
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidloggedin.jsp
Fri Jan 25 10:09:27 2008
@@ -98,6 +98,9 @@
</tr>
</table>
+<br/><br/>
+
+<a href="index.html">Back</a>
</body>
Modified:
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidsubmit.jsp
==============================================================================
---
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidsubmit.jsp
(original)
+++
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidsubmit.jsp
Fri Jan 25 10:09:27 2008
@@ -1,8 +1,10 @@
<[EMAIL PROTECTED]
import="org.wso2.solutions.identity.relyingparty.TokenVerifierConstants"%>
<[EMAIL PROTECTED]
import="org.wso2.solutions.identity.relyingparty.HTMLEncoder"%>
<[EMAIL PROTECTED] import="org.wso2.solutions.identity.IdentityConstants"%>
-<[EMAIL PROTECTED]
import="org.wso2.solutions.identity.openid.relyingparty.OpenIDAuthenticationRequest
"%>
-<[EMAIL PROTECTED]
import="org.wso2.solutions.identity.openid.relyingparty.OpenIDConsumer "%>
+<[EMAIL PROTECTED]
import="org.wso2.solutions.identity.openid.relyingparty.OpenIDAuthenticationRequest"%>
+<[EMAIL PROTECTED]
import="org.wso2.solutions.identity.openid.relyingparty.OpenIDConsumer"%>
+<[EMAIL PROTECTED]
import="org.wso2.solutions.identity.relyingparty.RelyingPartyException"%>
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
@@ -12,14 +14,26 @@
<body>
<%
- OpenIDAuthenticationRequest openIDAuthRequest = null;
- openIDAuthRequest = new OpenIDAuthenticationRequest();
- openIDAuthRequest.setReponse(response);
- openIDAuthRequest.setRequest(request);
-
openIDAuthRequest.setOpenIDUrl((String)request.getParameter("openIdUrl"));
- OpenIDConsumer.getInstance().doOpenIDAuthentication(openIDAuthRequest);
+ try
+ {
+ OpenIDAuthenticationRequest openIDAuthRequest = null;
+ openIDAuthRequest = new OpenIDAuthenticationRequest();
+ openIDAuthRequest.setReponse(response);
+ openIDAuthRequest.setRequest(request);
+
openIDAuthRequest.setOpenIDUrl((String)request.getParameter("openIdUrl"));
+
OpenIDConsumer.getInstance().doOpenIDAuthentication(openIDAuthRequest);
+ }
+ catch(RelyingPartyException e)
+ {
+ out.println(e.getMessage());
+ }
+
%>
+<br/><br/>
+
+<a href="index.html">Back</a>
+
</body>
</html>
_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev