Solved

return codes from com.ibm.os390.security.PlatformReturned

Posted on 2004-08-24
1
487 Views
Last Modified: 2008-03-17
Hi,
   I need to use PlatformUser.authenticate method to authenticate users in RACF via a web page.  I need to display an error message when the userid or password is incorrect, and I also need to re-direct them to a different page when their password has expired.  I am trying to display the error codes from
PlatformReturned with the following simple code that I am using for testing:

String UserID = request.getParameter("UserID").trim().toUpperCase();
String Password = request.getParameter("PSWD").trim().toUpperCase();

PlatformReturned RACF_results = PlatformUser.authenticate(UserID, Password);
if (RACF_results == null) { out.println("Authentication successful"); }
else { out.println("RACF error = " + PlatformReturned.errno); }

but, I get the following error on the last line of code:

Can't make a static reference to nonstatic variable errno in class
com.ibm.os390.security.PlatformReturned.

Ultimately I just want to be able to determine if the userid or password is invalid and display a message, and redirect to a different page if the password has expired. Obviously I am going about this wrong and need help.

Thanks!



0
Comment
Question by:donz4
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 27

Accepted Solution

by:
rrz earned 200 total points
ID: 11882977
I don't know anything about   com.ibm.os390.security.PlatformReturned .
But, from the error message and the code you posted I will venture a guess.

>if (RACF_results == null) { out.println("Authentication successful"); }
Is that right ?  If success, then null is returned ?  So, if failure an object is returned ?
If, that is right then you should try  
else { out.println("RACF error = " + RACF_results.errno); }

rrz
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Display the newly inserted values 3 83
jersey maven project error 7 145
IE doesn't Invoke servlet in iframe 1 123
eclipse buid path vs tomcat lib path 10 38
This article discusses how to implement server side field validation and display customized error messages to the client.
In order to fulfill our mission of inspiring learning in the technology community, Experts Exchange is launching a Course of the Month program. Premium and Team Account members will have access to one course per month as a part of their membership, …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question