Hello,

Since so many people are having problems getting e-mail to work, I thought
I would share a patch of a hack for demonstration purposes.  This hack
pre-fills the secret key into the entryfield on the confirm registration
screen.  Obviously, this is not anything you would do on a production
system, but it certainly makes it easier to demo and test Jetspeed.  This
patch is for the 1.3 alpha 1 codebase.


cvs diff ConfirmRegistration.java (in directory 
C:\CVSWORK\Jetspeed-13a\jetspeed\src\java\org\apache\jetspeed\modules\screens\)
Index: ConfirmRegistration.java
===================================================================
RCS file: 
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/modules/screens/ConfirmRegistration.java,v
retrieving revision 1.4
diff -u -r1.4 ConfirmRegistration.java
--- ConfirmRegistration.java  2000/12/11 23:59:51  1.4
+++ ConfirmRegistration.java  2001/01/23 17:59:28
@@ -101,10 +101,30 @@

         Table table = new Table().setCellSpacing(0).setCellPadding(0).setBorder(0);

+// -------------------------------
+// @pvc start changes : hack the confirmation number into the entryfield for demo 
+purposes
+// -------------------------------
+
+// @pvc : new code
+org.apache.jetspeed.util.RecordExtractor recEx = new 
+org.apache.jetspeed.util.RecordExtractor (data);
+String secretkey = recEx.getConfirmValue ( username ) ;
+
+// @pvc : here's previous code which was replaced
+//        table.addElement ( new TR()
+//             .addElement ( new TD().addElement 
+(Localization.getString("CONFIRMREGISTRATION_SECRETKEYTITLE"))
+//             .addElement ( new TD().addElement ( new Input(Input.TEXT, "secretkey", 
+data.getParameters().getString("secretkey", "")))
+//                 .setAlign(AlignType.right))));
+//
+
         table.addElement ( new TR()
              .addElement ( new TD().addElement 
(Localization.getString("CONFIRMREGISTRATION_SECRETKEYTITLE"))
-             .addElement ( new TD().addElement ( new Input(Input.TEXT, "secretkey", 
data.getParameters().getString("secretkey", "")))
+             .addElement ( new TD().addElement ( new Input(Input.TEXT, "secretkey", 
+secretkey))
+             .addElement ( new TD().addElement ( "(Your secret key has been 
+pre-entered for this demo.)" ))
                  .setAlign(AlignType.right))));
+
+// -------------------------------
+// @pvc end changes
+// -------------------------------

         String buta = "submit1";
         String butb = "submit2";

*****CVS exited normally with code 1*****


______________________________________________________
Michael D. Harris - IBM Pervasive Computing - RTP, NC
E-Mail: [EMAIL PROTECTED] - IBM VNet: HARRISMD@IBMUSM27
Lotus Notes: Michael D Harris/Raleigh/IBM@IBMUS


"Barbara Kleinen" <[EMAIL PROTECTED]>@list.working-dogs.com> on
01/23/2001 11:04:16 AM

Please respond to "JetSpeed" <[EMAIL PROTECTED]>

Sent by:  <[EMAIL PROTECTED]>


To:   "Jetspeed ML" <[EMAIL PROTECTED]>
cc:
Subject:  no registration mail sent




Hi folks,

I installed Jetspeed with the new .war -file
(great improvement!)

And it seems to work fine, but the
email with a confirmation key is not sent.

There's another problem which may be connected:
When I try to change a password a Exception is thrown:
     Exception:  java.lang.ClassCastException: java.math.BigDecimal
     Stack Trace follows:
     java.lang.ClassCastException: java.math.BigDecimal
     at
org.apache.jetspeed.modules.actions.SendConfirmationEmail.doPerform(SendConf

irmationEmail.java:83)


Any hint where to look for further error-search?
I looked in many .log files but found nothing
suspicious.

(of course, there's a sendmail on the machine
wich is accessible from java - a feature I use
frequently.)

(By the way, the server runs on a SGI Origin 2000,
which is quite quick in compiling the pages :-)


- Barbara

B<=-----------------------------------------------
Barbara Kleinen,  [EMAIL PROTECTED]

Institut fuer Multimediale und Interaktive Systeme
Medizinische Universitaet zu Luebeck
Seelandstrasse 1a            Tel: +49.451.3909.515
D-23569 Luebeck              Fax: +49.451.3909.505
http://www.imis.mu-luebeck.de/kleinen



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]





--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to