[jboss-dev-forums] [JBoss Web Development] - Getting output in jsp from PBEUtils

Mike schwery do-not-reply at jboss.com
Tue Aug 2 17:49:32 EDT 2011


Mike schwery [http://community.jboss.org/people/mschwery] created the discussion

"Getting output in jsp from PBEUtils"

To view the discussion, visit: http://community.jboss.org/message/618909#618909

--------------------------------------------------------------
In a jsp i'm calling PBEUtils to encrypt a password, but the class returns the encrypted password in the stderr.
For example in the jsp I have the following
String[] input = {"KJKdjkw1","50","nn32kF*vn3","fubar1234"};
PBEUtils.main(input);
The  output is 16:15:38,574 ERROR [STDERR] Encoded password: 2ELTO5EQXKjjCADxkwavrO
How do I grab it from the stderr?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/618909#618909]

Start a new discussion in JBoss Web Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2112]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110802/26bffeb7/attachment.html 


More information about the jboss-dev-forums mailing list