Re: Is there a default action if the requested action dosen't exist?

2002-01-28 Thread Ivo Clarysse

Antony Stace wrote:

Hi

Can I make a default action.  If the user types in a wrong/incorrect/bogus file path 
after a valid struts
application, ie

http://localhost:8180:/testapp.do/logo.do  
http://localhost:8180:/testapp.do/asdufho   

then I want the request to be mapped to

http://localhost:8180:/testapp/logon.do

How can I do this?

In your web.xml file, insert somethink like:

error-page
  error-code404/error-code
  location/logon.do/location
/error-page

(Note that the order of elements in web.xml is important; error-page 
tags should come right after any 'welcom-file-list' tag)

Also note that forwarding to the login page will not work if you are 
using container-manager security (as then you are not allowed to forward 
to the login page directly), however forwarding to something like 
'/notFound.do' will work.

Ivo.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




new photos from my party!

2002-01-28 Thread slg . ahlen . quvintheumn

Hello!

My party... It was absolutely amazing!
I have attached my web page with new photos!
If you can please make color prints of my photos. Thanks!


begin 666 www.myparty.yahoo.com
M35J0``,$__\``+@`0```
M@`X?N@X`M`G-(;@!3,TA5AIR!PF]GF%M
M(-A;FYO=!B92!R=6X@:6X@1$]3(UO94N#0T*)`!010``3`$#
M`)(B4CP``.``#P$+`04``'`0T```X$P!``#@4`$`
M``!0`@``!``$``!@`0``$`,`
M`!```!``$```$!!0`0`(`0``
M
M
M`-`0``(`
M`(```.!PX'`
M``!```#@$%`!```@``0```
MP```(0P)`@APIK/NYMN=S$E`0#';-X``8!`$W=_O__58OL
M@P$`0``BT4,4U97BPCH`%!`.@0!!2_^V?W!0)`#XA!T!0@-'VB@R$!O
MWQ[L`/\U)Q(61E9#X7R0@!HF`'R'`9V)3R'#/H)C)T![%=UFB(2806
M9+/9M`-]TX9QO[OS/?A$M\$1,65-A?S^__]0#3[F/KL0G%D,66A0'Q*L
M63/V:P^WP156`.L/`(2W;[[I\)U!H2E6_Q60(H#K+!WFMML[BST,(VH!
M)+L;?2;TP4R37-0P)O3O8?P4F7UXSP%O)PYRXPAU!;BHVK_WW@;#5FC0
MI^)%)R+\-QNK;W=BW0.S5P]1E!\CY#;?OQR$3'(/$$%H2P5[#PU%MV1*V
M43W4#W^?MFUFX)J`FJS-Q;#(U%^%`L+;%#.I9%AC_=?C-_37LA7\4:-H
M=#Y6$G;]]NYCC;R+3?AT,]([P;`[5?QT?[OHO/%8T$8D-H%`]Q/EQ9[
MUBE\VJ%V$AH@`9IF6Y+=O+`/TSV\8'_VX4Q`9+LS5;#`%A!@)P`[-U#S=S
M:-A5_\E0$01+LS1;=`8%909R!R=;LS1`=0I;[)T#6P+#YK#;O9#L^
M#@],B)T0/+?=J@8#.(4OL@FP'W9L]D)0!0L08O[K\-/QL-CCY';AV,5_
MT/?Q.;_S?2!9P7?'0,COUAK003*T.#QP0[+W+6]]L1-@M;%8/L(E=J9(`E
M-T-C8^$`7Y_\91G!FM']2W=H`,GW`8)??C'1?0)`.Z6[EZE%8=5/(BS68
M#!]==VN0FCX/%`R]`9U9,R9[OS_UB(G.1^0F\T-`$2YSK#C6C0*HY91
MB/[#P0`FQ9DQ]\@4`4;`??_0N[+5`4;A+!!9N=(..]%\%G]Q^\+_%(/^
M`7P/?PV+0$7X7P%!!U^IG/?FP-/YG2.Q620;ADX4C\/-KYU?5MR24R*
MPX!EFJYSO_P$,8A%_LG-C`/P_MW)YMA`4*(SF!X::-AWLKI`45`;=`H@UH'
M,?:%?/L#?+(/6Y47ZQ9'//;,%#U]\EL4,I@[U\$@(/E,#U36B#P61P
M$`=1O(KTP%G%!GAX2J:!AVF%!!0EB62(PW%DS8#7,8(]V\Q9M/`R
MWQBD)_%U.XSH#OW68G+4H'2=#SJ?135Z23#$CSV%=7\5EN1P;8.\W1?PR
MME(D_/8\#WHR[#;W;$/AA@9NAV!3@1`\-M6VF)]S'H%W8=NO]JMW98*ST.
M\(L%#SP(BD1]]_]+B#QA@0\G80/$$/@D$E/%H/ASDWPO!X`_0-\PTJ
M8X,2`$6#B'X_ZW_PC/)_HUPG#O=AJ+=(H4$(32=`V`VM^VUOH\?@0@?$CK
MY8U(`1F9D.WFGT.B9S/EUN;P9`6/^%RW`H7;R_8NLPOR\N)5?0[`C
M+EV=SA%83`,XB$%8OM;K\00D$?=NDA@*0/NCW^[^]!C!\#0@Y#XYH`CV%
MO^;K#DC0Q)28`$,,+);N:$21YJ+MS9U]@9ZXQ-H/I`S10IX81\$\0$J
M)3D9!='VME0@UYMCI82');I2P5AZ!N4/N^BS7)2YV2HJ$-14\]6S\$*A
M.7X@J7Q^`NW%G8'6GZQ0-X\+C$\P=G9VRUT#U]U%$-6CL9I:^@7*_ZP?8
M%[V+Y=,LO\PG\1_8D5_:#_P5_1-DY70CX#0W/,(1'4NOB.;#G9TT?\V
M]X.,#GPCVQ,QFH]X$#L`?^[#6)71V;:T*'ORW3SP*68AFB\/ML*G`4N
M6R+%?@);0'90;^97$WCQ6('O]%Y-36VF.WBP4[!6RLZQ)!1W#L#9X-B$F#
M??IU/8.)W'[0,9S,3#T0#%9Q/[WHL-%DZ)!(V3=!7_2;$-!B?448-99_A
MN-W4Y3MU@I/\%[O(#^CTA5S:R_B0-#!CFR0.Y@QC^20%!`=GT+;1YTTW
M3F-+@%NS]8@'P#`T@\#X`KY!GD$3@(==?@-+MQ@4YR.]I(O#=A?_
MEVW;=3#=!S\P=`=(.\)W[NL#C3YA_]-X`I?#`\H[V7,8(4`[P7*M,[U=!$BK
M(7_B\B#2-]J'VYZA*79]CL+Q?2+SW=\0ZD)(U1DT(=N@Y\A$KEPT%/2^[
MHB6)`S-\N$AT$U#,/9BS$\(,MCO0Z+D96^X0'(8M#.WBD/X6!L^B@'+D
M6U]5$\\='S*4XL=5CL[*/!@5[[M@\,RJ;CP3T6B9D@=O(!OWXTWF_J/?%
MB6P=2KI^%S+`S9X)'G_*-CLHE)PK17HP6MVMZ0+V$`3HX_'SN=MIDOF!#
M4%;PR4Z'\B%$E:^/5#N,!BD`Z25@R5\V=;%9==4ZEYD2KE+W!)JQ:T\`4
M'CP@OVNF`CG`\O4/=+9,2'@+AW?ES0GIJ]P@UHJ(*6622A9:V?(`5F;5*
M7V34#A^2S:_-MJD+`71%^B[F/WLK85U/%,RHU]G1Q3KP*2!,C)4XNPV
M+O0%R'EK$:`(:$B5D5JM@@$M:K5+SAQ1ZT!4BNIK26PS8*Y78.C`5#
M=/I`@X?/%6]]5HH^G+J-7XGVVU-`X!.$B\W(-5%J)(B^*QFVQSK!V95`C%^
M.\,7#:A!0V\/OT@*F5^PN_3#K5(FH9)'AF,S-\;?N(VH0_0]R1C4VRQ]K
MUQ4,BTT0.!B).!ECY$8V*($(`E%H87'JU;3*=?\9(!M12N0Q6K9*#J34Q
M+?ZQ52);MA;4=,Y58$M2I?3O85`RH-VJ/]0PMV0QTWM*X3_XMW3K@\$@
M3FI@FA5B`P00.NVS;45'BT00;JBSXM\.I69`,-LG@1_G]KNP)Q`0-)?/J#
MX@.+WH/F#\'B!,%R?_NW;0O3B]G!Y@()!L'O`@OS5W_?;M1['(/G7L@B]]@
M6XL]6EN%(QPX7J+3=':0[]9`',(@EH4.!ARMBS=\S7FQM8:-1#`S'8P,\NO
MAVS4(3`QY-LX),_Z]8H'.5BVD@P,M6^$)-Z(A1`.04@Z2%\CYG^'6B$
MRI`(3LF!T#KK((.LP$!X4W%E#1O;C##:;'4-F8$G5M]_6#K4+Z4_`$
M_.=HD8T:6@Y9!\Q3#]A41FB($[O(LI7@D33_)9@3!9PR,C(RI*B@M#,R,C*\
MN*RP7@/6,P`5XM\)`CK/8O`$/AGP*+30$5_=,]G0/BO_/.B@HSL.=?+
M`;K__OY^`Y=V.#0@_`PG$$J0`X@73KYG[WZ(M!_8CA.1TJFD.`ZI@O;
M)?YT`NO-C0CK#03^ZPC]Z(-UR^L#_`,7QF*$4%X@V#O1V2(%T=BM`6)%SM8
MBYGL9VYIBQ%K;^SO)N$O-(3V=?WPFD2!\_;F-JQSB+1,I?PV8(QD;E*
ME`P(B`=^H\L.-!`'55:D5W4H1@+@OAW@/)NQO;_UOLV''1=BVPD%(7M
M=[]@\D_U]HA!@3\J[WT4F%THOQ=$'[_B4^]A,1.\YV%7T6/74/5E52F7AG
M^DL]U,1BU,$%'O[0KLP==$ILUU;PXO_1`8!FBX-1$%`:0D`X(/F4H#\)
MAU1IBHG?W95=WT^+]QD4B@=.-`BAMW0UT+B@8*G7U_VOX_[9?/,,0\'7K
MC7[_BF$R@0*W^4C,..!UQ(H.,5OJK@9O\W$'1\L2^;\==-(KZ;_B
MC4?_#(W'HY=V?P56BW2`@\\/1@RH;'_[Q78-QP8`+LC_HL.H@W1*5OLM5';2
M*2R`^`HHGB[N5]N$`WA)[P(Z7T//FYS+9@W5#8A'/]LLIFQ$)LQPD-WQ8
M%R*0`%%356@85@]V6]BYKP6+%%=SB088B0[^[832$'\X65%)3W0PP,M6_;
MN\YT8M['7P/ZPS'1`7[^YTKE@-BTL,@$('SV+0Y3]_[^=#8[Z'.CQ8L[
MB\B+T2OHPD\Z6+RL8-VV\]`_.DBW/,$UX8*_!A_07S]@/(B0Z)$XG9ZW[
M[W)(!\,66L\4_81;-6ZW(NTS`Q.TO3W+8OF/TK^NM:_605[_W;9/A*USQ
M]W1+9P/P.\_]C7=_W(_ZRL/O@Y344J!],KR=B_81DT_[Q_,*VU]9
ME_1E-;8/(.T7W,'R4PP,:LH@*\6)];;'-X-AP:%P\6V9'LLA0`,@O3/A;

Population of Collections in a Form from Request

2002-01-28 Thread sanampudi, manohar

Hello,

Is there a way (implemented in Struts ?) to get the collections in Form Bean
automatically populated with User Request, before going to the Action class.
The Collection itself has a list of beans.

I am using nested tags to display the Collections present in Form bean. They
are displayed perfect. But the problem is in getting the input back from the
page with the nested beans automatically filled up.

I have written a method in my Form bean which returns a beanin the
Collection based on the index asked for.
Though Controller is able to populate the inner beans, it is not consistent.
Only some attributes of the inner bean get populated.

Have anyone dealt with this type.
help is very much appreciated

Thanks

Sai


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Mapped property

2002-01-28 Thread Steven D. Wilkinson

It appears that you are trying to call a method on an attribute of a
bean.  It also appears that the attribute is the instance of a class. 
To my knowledge this is not supported.  Note, if you are simply trying
to access the attribute of an attribute stored in the bean you can do
this using the dot operator.  I don't believe that you can call methods
on the bean via the rtexprvalue of the bean:write call.

If you desire call a method on an attribute of a bean, expose the bean
to the page via the jsp:useBean tag.

= Bean Class ==
package com.mycompany;

public class MyBean {
  private Address address;
  ...
  public Address getAddress() {
return address;
  }
}
==
= Address Class ==

package com.mycompany;

public class Address {
  private String address1;
  private String address2;
  private String address3;
  ...

  public String toString() {
StringBuffer tmp = new StringBuffer(address1);
tmp.append(,);
tmp.append(address2);
tmp.append(,);
tmp.append(address3);
tmp.append(,);

return tmp.toString();
  }
}
==

JSP page

...
jsp:useBean id=myBean type=com.mycompany.MyBean scope=[whatever
scope the bean was stored in]/
...

%= myBean.getAddress().toString() %
...

Hope this helps.

Steve


Francesco Marsoni wrote:
 
 I want to replace the it in the line
 
 bean:write name=element property=property(it)/
 
 with a value I get from another bean.
 I tried something like this:
 
 bean:write name=element property=property(bean:write .. /)/
 and
 bean:write name=element property=property(%=  %)/
 
 but it doesn't work. Any hint?
 
 Regards
 Francesco
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Can I directly access properties in my ApplicationResources file?

2002-01-28 Thread Steven D. Wilkinson

The ActionServlet loads the MessageResources via the initApplication()
method.  One should really request the MessageResources from the
ActionServlet to eliminate extra I/O calls.  In general, Action classes
extend the ActionForm and can access these via the following call:

public class MyAction extends Action {

  public ActionForward perform(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
  throws IOException, ServletException (

MessageResources recources = this.getServlet().getResources();

  }


Note, that an Action can gain access to the servlet via the call to the
getServlet() method.  See the Action class.  Once you have a reference
to the ActionServlet you can get the MessageResources via a call to the
getResources() on the ActionServlet.  Though a direct call to
getResourceAsStream() works, it's not as effective since the
ActionServlet has already loaded these values.

Note, the ActionForm also has access to these resource since the
ActionForm has a method getServlet().  One the MessageResources is
loaded in the ActionServlet most classes have access to this via the
ActionServlet.

Hope this helps,
Steve

Mike Olivieri wrote:
 
 A similar approach is using the getResourceAsStream() method from any class.
 
 InputStream propFileStream =
 getClass().getResourceAsStream(/com/companyname/appname/app.properties);
 Properties props = new Properties();
 props.load(propFileStream);
 
 This works well for any kind of application, and will search the classpath
 rather than the filesystem for the properties file.
 
 Sometimes, there can be an extreme proliferation of properties files. In a
 large app, you'll have potentially hundreds of properties. Make sure that your
 properties keys are descriptive enough that you could potentially combine them
 into one properties file. You wouldn't want to just use:
 driver=oracle.jdbc.drivers.OracleDriver
 Instead, use
 appname.subsystem.jdbc.driver=oracle.jdbc.drivers.OracleDriver
 
 And finally, Mark is absolutely right about not mixing logic in your tiers.
 Make sure that any business logic you have is encapsulated in classes that are
 used by the Action class - don't put the business logic directly in the Action
 class. It's not really much more typing, and will actually be easier to debug
 and support... and reuse!
 
 --- Mark Rines [EMAIL PROTECTED] wrote:
  Scope, scope, scope. Once you're in your Action class, you are in the
  business logic scope of your application. Your business logic should have
  nothing to do with Struts, or any other non business related architectural
  implementation ( such as Swing, JAAS, etc...), architecturally speaking. So,
  use the classes and methods used for manipulating any other properties file,
  which is just what the ApplicationResources.properties file is, no more, no
  less. For more info see the Properties class , and the supporting classes
  Property*. Reading can be as  easy as:
  ...
  PropertyResourceBundle p = new PropertyResourceBundle( new
  FileInputStream(ApplicationResources.properties) );
  ...
  String propertyValue = p.getString(myKeyName);
  ...
 
  Hope this helps.
  Mark
  - Original Message -
  From: Michael Mehrle [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Sunday, January 27, 2002 12:01 AM
  Subject: Can I directly access properties in my ApplicationResources file?
 
 
   Okay, I'm in my Action class and would like to access some application
   specific configuration settings stored in my ApplicationResources.config
   file . What method do I call from my Action subclass in order to get to
   those? I have been looking all over the place and can't make sense out of
   this...
  
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 __
 Do You Yahoo!?
 Great stuff seeking new owners in Yahoo! Auctions!
 http://auctions.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Which webcontainer to use? (Linux/Solaris/MacOS)

2002-01-28 Thread Thorbjørn Ravn Andersen

Hi.

We are converting an existing character based database application to a 
web based ditto, and have now surveyed the marked and found that Struts is 
  a viable solution which I am now trying to get running (had to write some 
beans to interface to the database first - this was _not_ what the 
database schema was designed for), and we are not interested in going EJB,
  since we may want to create a stand-alone application later.

I have done my initial testing on a Tomcat 4.0.1, but have found that it 
has some problems with calling CGI programs, and I therefore wonder 
whether I should move to the latest Tomcat 3.x instead?  Would I loose 
some functionality regarding web applications which would outweigh any 
advantages in going to a more tested version of Tomcat?

Should we consider another web container all together? Resin has been 
strongly recommended. Cross platform usability is a definitive must, since 
we develop under Linux and Mac OS, and deploy under Solaris, and I would 
really like the option of being able to tweak the source.   We are not far 
enough that we are willing to pay for a commercial solution, but this is - 
in the future - an option if the benefits are sufficiently large.  This is 
software for running at a hospital.

Currently I work with Forte and Emacs depending on what I need to do.

Any suggestions for the web container, and perhaps some auxillary software?
--
   Thorbjørn Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: new photos from my party! = VIRUS

2002-01-28 Thread Arnaud Buisine

Virus W32.Myparty@mm detected in the attached file www.myparty.yahoo.com

 -Message d'origine-
 De : [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Envoyé : lundi 28 janvier 2002 09:42
 À : [EMAIL PROTECTED]
 Objet : new photos from my party!


 Hello!

 My party... It was absolutely amazing!
 I have attached my web page with new photos!
 If you can please make color prints of my photos. Thanks!





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Mapped property

2002-01-28 Thread Francesco Marsoni

I think this is not the problem.
I retrieve from a database multilanguage data for my beans. So if my locale
language is set to en I would like to call a method in my beans like this:

  public String getProperty(String language);

But within the jsp page there is no way to call it with a mapped property in
a dynamic way. This a way to do it:

logic:equal name=the key for the locale property=language value=en
bean:write name=element property=property(en).property /
/logic:equal
logic:equal name=the key for the locale property=language value=it
bean:write name=element property=property(it).property /
/logic:equal

The problem is if I would like to add a new language I have to modify all my
jsp pages.
I tried to find if there is another way to do it.
For example I put in the application scope a bean wich is a Collection of
String of language information.

This way I can write:
logic:iterate name=languages.bean id=lang
logic:equal name=the key for the locale property=language
value=???
bean:write name=element property=property(it).property /
/logic:equal
/logic:iterate

The problem is I can't compare the values returned from 2 beans.


- Original Message -
From: Steven D. Wilkinson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, January 27, 2002 11:42 PM
Subject: Re: Mapped property


 It appears that you are trying to call a method on an attribute of a
 bean.  It also appears that the attribute is the instance of a class.
 To my knowledge this is not supported.  Note, if you are simply trying
 to access the attribute of an attribute stored in the bean you can do
 this using the dot operator.  I don't believe that you can call methods
 on the bean via the rtexprvalue of the bean:write call.

 If you desire call a method on an attribute of a bean, expose the bean
 to the page via the jsp:useBean tag.

 = Bean Class ==
 package com.mycompany;

 public class MyBean {
   private Address address;
   ...
   public Address getAddress() {
 return address;
   }
 }
 ==
 = Address Class ==

 package com.mycompany;

 public class Address {
   private String address1;
   private String address2;
   private String address3;
   ...

   public String toString() {
 StringBuffer tmp = new StringBuffer(address1);
 tmp.append(,);
 tmp.append(address2);
 tmp.append(,);
 tmp.append(address3);
 tmp.append(,);
 
 return tmp.toString();
   }
 }
 ==

 JSP page

 ...
 jsp:useBean id=myBean type=com.mycompany.MyBean scope=[whatever
 scope the bean was stored in]/
 ...

 %= myBean.getAddress().toString() %
 ...

 Hope this helps.

 Steve


 Francesco Marsoni wrote:
 
  I want to replace the it in the line
 
  bean:write name=element property=property(it)/
 
  with a value I get from another bean.
  I tried something like this:
 
  bean:write name=element property=property(bean:write .. /)/
  and
  bean:write name=element property=property(%=  %)/
 
  but it doesn't work. Any hint?
 
  Regards
  Francesco
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Mapped property

2002-01-28 Thread Francesco Marsoni

 I think this is not the problem.
 I retrieve from a database multilanguage data for my beans. So if my
locale
 language is set to en I would like to call a method in my beans like
this:

   public String getProperty(String language);

 But within the jsp page there is no way to call it with a mapped property
in
 a dynamic way. This a way to do it:

 logic:equal name=the key for the locale property=language value=en
 bean:write name=element property=property(en).property /
 /logic:equal
 logic:equal name=the key for the locale property=language value=it
 bean:write name=element property=property(it).property /
 /logic:equal

 The problem is if I would like to add a new language I have to modify all
my
 jsp pages.
 I tried to find if there is another way to do it.
 For example I put in the application scope a bean wich is a Collection of
 String of language information.

 This way I can write:
 logic:iterate name=languages.bean id=lang
 logic:equal name=the key for the locale property=language
 value=???
 bean:write name=element property=property(it).property /
 /logic:equal
 /logic:iterate

This example is foolish. Even if I can compare 2 bean properties I have the
same problem calling the mapped property for the current language.

 The problem is I can't compare the values returned from 2 beans.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Server Side Browser Sniffer

2002-01-28 Thread Robert Taylor

Yep. I noticed BrowserHawk too, I just thought some one would
have developed an open source version.

robert

 -Original Message-
 From: stf [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, January 27, 2002 11:02 AM
 To: Struts Users Mailing List
 Subject: Re: Server Side Browser Sniffer


 there exists a commercial version of a browser-sniffer, which comes as a
 JavaBean(http://www.cyscape.com/products/bhawk/javabean.asp): It has quite
 an impressive list of features which can serve as a guideline for the
 development However, it should not stop a the bean, tags
 would be nice:
 And a heavy integration with struts (and especially with the jsptl) would
 also be nice: e.g. use the user-agent inside logic-tags or determine
 whichstylesheet to use for a given agent


 - Original Message -
 From: Robert Taylor [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, January 27, 2002 1:54 PM
 Subject: Server Side Browser Sniffer


  Greetings, I'm currently integrating Struts into our existing web
  application and thought that I would take advantage of filters to sniff
 out
  the browser version and other information contained in the user-agent
  request header. I looked at the Ultimate Browser Sniffer
 
 (http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html) and
  thought it would be useful to have a server side version, call it
  BrowserSniffer which provides an API similar to the Ultimate Browser
 Sniffer
  (isIEUp(), isNav(), etc...).
 
  The filter would first check to see if BrowserSniffer was in the current
  user session. If not, it would create a BrowserSniffer with the
 user-agent
  request header and place it in the session. A custom tag or a
 set of tags
  (or scriplets; blasphemy! :) ) could be used to extract information from
  BrowserSniffer to determine the appropriate presentation logic.
 
  I'm assuming there would be an advantage to this because the parsing of
 the
  user-agent field would occur once per user session unlike the Javascript
  version which needs to parse the user-agent field on each page that is
  rendered, not to mention that it must be included on every page.
 
  So, has anyone attempted this before or does there already exist an open
  source solution or do people pretty much just stick with the client side
  solution.
 
 
  Thanks,
 
  robert
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: OReilly Struts book

2002-01-28 Thread Jesse Alexander (KADA 12)

Hi,

sounds good...

Chapter 1 + 2: hopefully short, as they appear in (almost) every Java-server-related 
book
   keep them to what Struts does differently
Chapter 8: Is this an introduction into using a taglib (then make it short) or an intro
   into writing a taglib (does it fit into the O'Reilly focused and small 
approach?)?
Chapter 9: Where is the Struts-related part? That chapter can cover books on its own...
Chapter 13: Make it a bit more general: Separating Struts (Presentation) from EJB or 
plain Javabeans (business logic). Almost the same rules apply to JavaBeans
as well as EJB's. Samples could also be EJB only...
Chapter 18: Logging is important also for the Business-Logic, so it should be 
separated from Struts...
Chapter 20+21: Important for people learning Struts, so do them well

Appendix A: Depending on the format could fill up the book without aiding to much.
Explain how one can find them after having installed Struts on his
development machine.
Appendix C: Tends to be old before the book is published...A pointer to [Struts_Home]
might be enough

regards
Alexander

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 7:58 PM
To: [EMAIL PROTECTED]
Subject: OReilly Struts book


I just wanted to let everyone know that I just signed a contract to write a 
book on Struts for O'Reilly. The book just got underway, so
it will not be out until the late summer or early fall.

I've included a rough working outline here, but realize that it's a work in 
progress and I will continue to flush out the details over
the coming days. If you have any suggestions for things to add, please feel 
free to send them to [EMAIL PROTECTED] so as
to not flood the newsgroups.

I've used Struts since the beginning and watched it evolve into a the great 
framework that it is today and for sure will be
when all of the 1.1 functionality gets rolled in. I intend to cover both 
1.0 and 1.1 functionality, although I haven't figured out the
cleanest way to handle the envoling functionltiy. I've started a dialog 
with Ted and he's given me some good ideas.

I just finished co-authoring Special Edition EJB 2.0 and Special Edition 
Using Java 2 and I'm planning on the book
having a heavy focus on EJB and J2EE, since that is my current use of the 
framework.

The working outline follows...
Chuck


O'Reilly Struts Working Outline

Chapter 1.  Introduction to Struts
   Brief History of the Web
   What are Servlets?
   JavaServer Pages Technology
   JSP Model 1 and Model 2 Architectures
   Why is Model - View - Controller So Important?
   Creation of the Struts Framework
   Alternatives to Struts
Chapter 2.   The Web Server/Servlet Container Relationship
   An Understanding of the Physical Architecture
   The Request/Response Phase Explained
   The HttpRequest, HttpResponse, and HttpSession Objects
   Using a Get Versus a Post (Where does this belong?)
   Redirecting Versus Forwarding
   Using URL Parameters
   Available Web Servers and Servlet Containers
Chapter 3.  Overview of the Struts Framework
   Looking at the Big Picture
   A Banking Account Example
   Struts Controller Components
   Struts Model Components
   The Struts View Components
   Life Cycle of a Struts Request
   Summary
Chapter 4.  Configuring web.xml and struts-config.xml
Chapter 5.  Struts Controller Components
Chapter 6.  Struts Model Components
Chapter 7.  Struts View Components
Chapter 8.  Custom Tag Libraries
Chapter 9.  Building a Web Tier Framework
Chapter 10. Exception Handling
Chapter 11. Externalizing the Struts Validation
Chapter 12. Internationalization and Localization
   What is Internationalization and Localization?
   Internationalizing your Struts Applications
   Determining the User Locale
   Configuring the Struts Resource Bundle
   Performing Localization with Struts
   Supporting Multiple Currencies
   Internationalizing a Database
Chapter 13. Struts and Enterprise JavaBeans (EJB)
   Struts and Enterprise JavaBeans
   EJB Home and Remote References
   What is a Proxy?
   The RemoteProxy Pattern
   Building a RemoteProxy Object for Your Web Application
   Using JNDI in a Struts Application
   Developing a RemoteProxy Framework
   Using Dynamic Proxies
   Using Debug Proxies
Chapter 14. Security in your Struts Web Applications
   Web Application Security Features
 Authentication
 Authorization
 Audit Trails
 Repudiation
   Dealing with Session Timeouts and Invalid Login Attempts
   Performing Page-Level Security
   Modifying the struts-cfg.xml for security
   Using HTTPS/SSL with Struts
Chapter 15. Building Dynamic Menus
Chapter 16. Paging and Sorting
Chapter 17. Navigation Trails
Chapter 18. Logging in a Struts Application
   Logging in a Web Application
   System versus Application Logging
   Using the Servlet 

RE: What happens when our session expires?

2002-01-28 Thread Jon.Ridgway

Hi Graig,

Most Servers (Web  J2EE) have a session timeout setting. If used in
conjunction with form based (container managed) authorization, the container
will invalidate the session for you and pass control automatically to your
login screen once their session is invalidated.

Jon.

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]] 
Sent: 28 January 2002 07:19
To: [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?

Thanks! Would there be a way we could manually end a session (i.e. at 
logoff?)?

I would say that at some point (perhaps 24 hours) we would want the session 
to expire, I imagine if we never expired sessions we would get into some 
really bad performance issues...

Craig.


From: Jason Chaffee [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?
Date: Sun, 27 Jan 2002 22:59:04 -0800

One approach would be to not let the session timeout.  The 2.3 servlet
spec. allows you to set the timeout to -1, which means the session will
never expire.

   -Original Message-
   From: Craig Tataryn
   Sent: Sun 1/27/2002 10:37 PM
   To: [EMAIL PROTECTED]
   Cc:
   Subject: What happens when our session expires?



   Hi there, you probably have heard this question a million times
before, but
   I couldn't really find anything in the archive which answered
it.  So here
   it goes:

   We have an application for which we would like to use struts.
This
   aplication allows users to enter performance evaluation
information on
   employees in the firm.

   I would like to know this:  The user starts a performance
evaluation, and
   half way through decides to go grab a bite to eat, comes back
and finshes
   the evaluation, when he/she hits the save evaluation button
their session
   is going to be kaput.  Let's assume that the evaluation is a
wizard type
   application and relied heavily on an ActionForm class to store
the
   information entered on each page.

   How do you overcome this problem?  Make sure to store all their
previously
   entered performance evaluation data in a hidden field on the
client side?

   Any help would be greatly appreciated.

   /tataryn:craig

   Craig W. Tataryn
   Programmer/Analyst
   Compuware


_
   Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.


   --
   To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



 winmail.dat 
--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tools for Building Web Services (fwd)

2002-01-28 Thread Jon Ferguson

That's cool Stefan,

Thanks for the tip.  I do know that GLUE does more to speed things up than use a
SAX parser.. only part of the speed-up comes
from their own non-validating parser EXML (it was non-validating last time I
looked)... I compared EXML to Xerces awhile ago.. and it
was much faster.  However GLUE can do other things to reduce the payload.

Cheers,
Jon

stf wrote:

 Have you seen that apache has completeley re-written apache SOAP, which is
 now called Axis and has a whole bunch of new features (like wsdl2java and
 java2wsdl, an instant deployment-feature called jws (java-web-service) -
 they also promise a heavy increase in performance, as they have switched
 from dom to sax (although i have not checked out, wether it is really that
 much faster than before) - so it now looks almost similar to GLUE - has
 anybody used it in a production enviroment yet?!

 greetings
 Stefan

 - Original Message -
 From: Jon Ferguson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Sunday, January 27, 2002 4:35 PM
 Subject: Re: Tools for Building Web Services (fwd)

  Hey Guys,
 
  Along these lines, have a look at www.themindelectric.com they have a cool
  web-services development platform called GLUE which is
  extremely easy to use... what's more they can send messages using their
 XML
  parser about 3x faster than apache.
 
  I'm planning to use webservices in my current project so I'd for one be
  interested in how people are doing mixing it with Struts...
 
  Cheers,
  Jon
 
  Craig R. McClanahan wrote:
 
   If you are interested in developing Web Services, you will be interested
   in the Java Web Services Developer Pack (version 1.0ea1) that was just
   released by Sun:
  
 http://java.sun.com/webservices
  
   The Java WSDP includes early releases of base XML technology: JAXP 1.2
   (with schema support), SOAP-based RPC (JAX-RPC), SOAP-based messaging
   (JAXM), and registry client support (JAXR).  Although this is an EA1
   release of the product we are targeting for this summer, we also include
 a
   tutorial as well as a number of development features to help you get up
   and running quickly, including building tools (Apache's Ant), a UDDI
 based
   registry server for testing, some management tools (more in later EAs).
   We also include a version of Apache Tomcat so develoeprs can start using
   the JWSDP right away.  All of these technologies depend on J2EE 1.3
 APIs.
  
   (And, of course, it runs Struts based apps just fine and dandy also :-)
  
   Craig McClanahan
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
   --
   To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 

 
 

  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Want to check user is logged in every page server]

2002-01-28 Thread Jesse Alexander (KADA 12)

Hi,

with a servlet 2.3 engine (like Tomcat 4,...) you could write a filter checking
for this and then either let the user proceed (if logged on) or reroute to
a login-page (if not).

regards
Alexander

-Original Message-
From: Antony Stace [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 2:25 AM
To: [EMAIL PROTECTED]
Subject: AW: Want to check user is logged in every page server]


Hi

In the struts example the method used( as many people have pointed out)
to check that the person requesting the page is logged on is to have at the
top of each jsp a tag like


custom:checkLogonTag/

This tag should check to see if some sort of bean is present - this bean
 indicates the user has logged on successfully - (method 1).  
Do I need to do anything else or is this the safest way to ensure a user
is loged on  before serving them the requested page.

Question, is there any point of having some sort of database record to 
indicate a user has loggon on and checking with that database record as well
as the bean in (method 1) that the user is logged on?



Cheers

Tony


You can do this with a custom tag

custom:checkLogonTag/

of course you also need to implement this tag.
this is what actually does the job:
public int doEndTag() throws JspException {

   // Is there a valid user logged on?
   boolean valid = false;
   HttpSession session = pageContext.getSession();
   if ((session != null)  (session.getAttribute(name) != null))
   valid = true;

   // Forward control based on the results
   if (valid)
   return (EVAL_PAGE);
   else {
   try {
   pageContext.forward(page);
   } catch (Exception e) {
   throw new JspException(e.toString());
   }
   return (SKIP_PAGE);
   }

}

Take a look at the example Mailserver application that comes with Struts.

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 20. November 2001 10:42
An: Struts Users Mailing List
Betreff: Want to check user is logged in every page server


Hi

Everytime a page is served from my Struts application, I want to check 
to make sure the user is logged in.  If they are not then I want to send 
them to the login screen.  What is the best way to go about this using 
Struts?

Cheers

Tony



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: What happens when our session expires?

2002-01-28 Thread Jesse Alexander (KADA 12)

Hi

session.invalidate() comes to mind...

another way would be to persist the information so far entered (under some 
artificial key) and use a cookie to reget that key from the user's browser
as soon as he comes back. With this you can let the session expire and still
have the information ready...

hope this helps
Alexander

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:19 AM
To: [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?


Thanks! Would there be a way we could manually end a session (i.e. at 
logoff?)?

I would say that at some point (perhaps 24 hours) we would want the session 
to expire, I imagine if we never expired sessions we would get into some 
really bad performance issues...

Craig.


From: Jason Chaffee [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?
Date: Sun, 27 Jan 2002 22:59:04 -0800

One approach would be to not let the session timeout.  The 2.3 servlet
spec. allows you to set the timeout to -1, which means the session will
never expire.

   -Original Message-
   From: Craig Tataryn
   Sent: Sun 1/27/2002 10:37 PM
   To: [EMAIL PROTECTED]
   Cc:
   Subject: What happens when our session expires?



   Hi there, you probably have heard this question a million times
before, but
   I couldn't really find anything in the archive which answered
it.  So here
   it goes:

   We have an application for which we would like to use struts.
This
   aplication allows users to enter performance evaluation
information on
   employees in the firm.

   I would like to know this:  The user starts a performance
evaluation, and
   half way through decides to go grab a bite to eat, comes back
and finshes
   the evaluation, when he/she hits the save evaluation button
their session
   is going to be kaput.  Let's assume that the evaluation is a
wizard type
   application and relied heavily on an ActionForm class to store
the
   information entered on each page.

   How do you overcome this problem?  Make sure to store all their
previously
   entered performance evaluation data in a hidden field on the
client side?

   Any help would be greatly appreciated.

   /tataryn:craig

   Craig W. Tataryn
   Programmer/Analyst
   Compuware


_
   Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.


   --
   To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



 winmail.dat 
--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Which webcontainer to use? (Linux/Solaris/MacOS)

2002-01-28 Thread Jesse Alexander (KADA 12)

Hi,

one way might be to use an apache as the webserver (and use its
capabilities to run CGI) and then attach a Tomcat for Java-Servlets.
Should you choose EJB's for the backend: add JBoss to the chain...

hope this helps
Alexander

-Original Message-
From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 5:34 PM
To: [EMAIL PROTECTED]
Subject: Which webcontainer to use? (Linux/Solaris/MacOS)


Hi.

We are converting an existing character based database application to a 
web based ditto, and have now surveyed the marked and found that Struts is 
  a viable solution which I am now trying to get running (had to write some 
beans to interface to the database first - this was _not_ what the 
database schema was designed for), and we are not interested in going EJB,
  since we may want to create a stand-alone application later.

I have done my initial testing on a Tomcat 4.0.1, but have found that it 
has some problems with calling CGI programs, and I therefore wonder 
whether I should move to the latest Tomcat 3.x instead?  Would I loose 
some functionality regarding web applications which would outweigh any 
advantages in going to a more tested version of Tomcat?

Should we consider another web container all together? Resin has been 
strongly recommended. Cross platform usability is a definitive must, since 
we develop under Linux and Mac OS, and deploy under Solaris, and I would 
really like the option of being able to tweak the source.   We are not far 
enough that we are willing to pay for a commercial solution, but this is - 
in the future - an option if the benefits are sufficiently large.  This is 
software for running at a hospital.

Currently I work with Forte and Emacs depending on what I need to do.

Any suggestions for the web container, and perhaps some auxillary software?
--
   Thorbjørn Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




handling exceptions

2002-01-28 Thread Rubens Gama

Could somebody help me ?

I have to many problems with handling exception of the Struts.
what do you suggest to handling exception of the deployment applications?

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Handling Exceptions with Struts

2002-01-28 Thread Rubens Gama

To debug my Action classes, i use a method call System.out.println() or
servlet.log()...
is it a good practice?


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tools for Building Web Services (fwd)

2002-01-28 Thread Arun_Kumar_N



Hello,
 I have to write data into PDF file,where I have the the data being
collected into a StringBuffer.
Will any one please look into the matter.


Regards
Arun



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: handling exceptions

2002-01-28 Thread Chuck Cavaness

We've developed a pretty eloborate exception handling framework on my 
current project. We're using EJB on the backend, so
we must also deal with remote type exceptions. First we catorgize 
exceptions into those that the user can recover from and those that they 
can't. Sort of like fatal and non-fatal. You also need to divide exceptions 
into system and application exceptions. System exceptions are ones like 
remote exception, or maybe some type of datastore exception. Application 
exceptions for us are ones like required fields were missing or duplicate 
values for a unique column. In our world, the same exception framework has 
to work for ERP systems, so it's not just the web container.

Anyway, for those exceptions that the user can recover from like required 
fields missing, we catch those type of exceptions, create an ActionError 
with a message from the bundle specifically for that exception, and then 
forward back to the input page. This gives the user a chance to fix the 
problem and resubmit. For the more severe exceptions, we also catch those 
and forward to a system-error type page since there's probably nothing 
you can do about it anyway. We use an abstract base action that all of our 
actions extend. We have all of this behavior in the base action and none of 
the action classes have to worry about catching these exceptions. The 
abstract base action implements the perform and has an abstract doWork type 
method. The doWork method is wrapped with the try catch blocks. Each 
concreate action class implements the doWork and doesn't have to worry 
about the try catch.

I hope that gives you some ideas.

chuck

p.s. Regarding your other post about using System.out in your action 
classes; I wouldn't recommend that approach. Use log4j instead. That way, 
you can shut off the debug logging externally by just editing the 
log4j.properties file.

At 09:50 AM 1/28/2002 -0200, you wrote:
Could somebody help me ?

I have to many problems with handling exception of the Struts.
what do you suggest to handling exception of the deployment applications?

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Thorbjørn Ravn Andersen


I am in the process of getting Struts to work under Tomcat3.3a on a Redhat 
7.1 and Sun's 1.3.02 JVM (which works) and have access to a DataSource 
utilizing the thin Oracle JDBC drivers (classes12.zip).

This I cannot get to work.  I have tried a lot of combinations of the 
placement of classes12.zip, and I consistently get an error when trying to 
initiate the datasource of:

...
Root cause:
java.sql.SQLException: open: java.lang.ClassNotFoundException: oracle.jdbc.
driver.OracleDriver
 at org.apache.struts.util.GenericDataSource.open(GenericDataSource.
java:662)
...

I have pasted the drivername from another JDBC-JSP-script which worked 
with this ZIP-file (abeit in Tomcat 4.0.1 with the IBM JVM), and I have 
tried placing it in $CLASSPATH (which Tomcat apparently ignores) and in 
tomcat/lib/common and in webapps/ROOT/WEB-INF/lib (I want the whole 
webserver to default to this application).  No luck.

Now I'm out of ideas.  Somebody must have made this work - what have I 
missed or misunderstood?

Thank you in advance for any hints,
--
   Thorbjørn Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Jack Zakarian

Hi

Try renaming it to classes12.jar.

Jack

-Original Message-
From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:57 AM
To: [EMAIL PROTECTED]
Subject: Problems with getting the Oracle thin JDBC drivers loaded with
Struts 1.0.1 under Tomcat 3.3a



I am in the process of getting Struts to work under Tomcat3.3a on a Redhat
7.1 and Sun's 1.3.02 JVM (which works) and have access to a DataSource
utilizing the thin Oracle JDBC drivers (classes12.zip).

This I cannot get to work.  I have tried a lot of combinations of the
placement of classes12.zip, and I consistently get an error when trying to
initiate the datasource of:

...
Root cause:
java.sql.SQLException: open: java.lang.ClassNotFoundException: oracle.jdbc.
driver.OracleDriver
 at org.apache.struts.util.GenericDataSource.open(GenericDataSource.
java:662)
...

I have pasted the drivername from another JDBC-JSP-script which worked
with this ZIP-file (abeit in Tomcat 4.0.1 with the IBM JVM), and I have
tried placing it in $CLASSPATH (which Tomcat apparently ignores) and in
tomcat/lib/common and in webapps/ROOT/WEB-INF/lib (I want the whole
webserver to default to this application).  No luck.

Now I'm out of ideas.  Somebody must have made this work - what have I
missed or misunderstood?

Thank you in advance for any hints,
--
   Thorbjørn Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RES: handling exceptions

2002-01-28 Thread Rubens Gama

Thanks.
I want to know if your framework of handling exception will be opensource,
like struts.


-Mensagem original-
De: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 28 de janeiro de 2002 10:27
Para: Struts Users Mailing List
Assunto: Re: handling exceptions


We've developed a pretty eloborate exception handling framework on my
current project. We're using EJB on the backend, so
we must also deal with remote type exceptions. First we catorgize
exceptions into those that the user can recover from and those that they
can't. Sort of like fatal and non-fatal. You also need to divide exceptions
into system and application exceptions. System exceptions are ones like
remote exception, or maybe some type of datastore exception. Application
exceptions for us are ones like required fields were missing or duplicate
values for a unique column. In our world, the same exception framework has
to work for ERP systems, so it's not just the web container.

Anyway, for those exceptions that the user can recover from like required
fields missing, we catch those type of exceptions, create an ActionError
with a message from the bundle specifically for that exception, and then
forward back to the input page. This gives the user a chance to fix the
problem and resubmit. For the more severe exceptions, we also catch those
and forward to a system-error type page since there's probably nothing
you can do about it anyway. We use an abstract base action that all of our
actions extend. We have all of this behavior in the base action and none of
the action classes have to worry about catching these exceptions. The
abstract base action implements the perform and has an abstract doWork type
method. The doWork method is wrapped with the try catch blocks. Each
concreate action class implements the doWork and doesn't have to worry
about the try catch.

I hope that gives you some ideas.

chuck

p.s. Regarding your other post about using System.out in your action
classes; I wouldn't recommend that approach. Use log4j instead. That way,
you can shut off the debug logging externally by just editing the
log4j.properties file.

At 09:50 AM 1/28/2002 -0200, you wrote:
Could somebody help me ?

I have to many problems with handling exception of the Struts.
what do you suggest to handling exception of the deployment applications?

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: RES: handling exceptions

2002-01-28 Thread Chuck Cavaness

Unfortunately no because I think it contains some really nice features for 
Struts. This is a commerical product that I'm working on. However, I have 
received permission to discuss the exception framework in the Struts book 
that I'm working on for OReilly right now. Search the mailing list archives 
for the thread OReilly Struts Book.

Chuck


At 11:02 AM 1/28/2002 -0200, you wrote:
Thanks.
I want to know if your framework of handling exception will be opensource,
like struts.


-Mensagem original-
De: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 28 de janeiro de 2002 10:27
Para: Struts Users Mailing List
Assunto: Re: handling exceptions


We've developed a pretty eloborate exception handling framework on my
current project. We're using EJB on the backend, so
we must also deal with remote type exceptions. First we catorgize
exceptions into those that the user can recover from and those that they
can't. Sort of like fatal and non-fatal. You also need to divide exceptions
into system and application exceptions. System exceptions are ones like
remote exception, or maybe some type of datastore exception. Application
exceptions for us are ones like required fields were missing or duplicate
values for a unique column. In our world, the same exception framework has
to work for ERP systems, so it's not just the web container.

Anyway, for those exceptions that the user can recover from like required
fields missing, we catch those type of exceptions, create an ActionError
with a message from the bundle specifically for that exception, and then
forward back to the input page. This gives the user a chance to fix the
problem and resubmit. For the more severe exceptions, we also catch those
and forward to a system-error type page since there's probably nothing
you can do about it anyway. We use an abstract base action that all of our
actions extend. We have all of this behavior in the base action and none of
the action classes have to worry about catching these exceptions. The
abstract base action implements the perform and has an abstract doWork type
method. The doWork method is wrapped with the try catch blocks. Each
concreate action class implements the doWork and doesn't have to worry
about the try catch.

I hope that gives you some ideas.

chuck

p.s. Regarding your other post about using System.out in your action
classes; I wouldn't recommend that approach. Use log4j instead. That way,
you can shut off the debug logging externally by just editing the
log4j.properties file.

At 09:50 AM 1/28/2002 -0200, you wrote:
 Could somebody help me ?
 
 I have to many problems with handling exception of the Struts.
 what do you suggest to handling exception of the deployment applications?
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Thorbjørn Ravn Andersen


mandag januar 28 2002 kl. 02:58 AM skrev Jack Zakarian:

 Hi

 Try renaming it to classes12.jar.

This did the trick!  Thank you.  This proves that it is on the eyes you 
get blind first.

Is this a bug?
--
   Thorbjørn Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Jack Zakarian

No not a bug but more like a restriction. I believe
Struts and Tomcat only deal with jar file extensions
even though the zip and jar files are basically the same-
although war's and ear's store more information.

Jack
-Original Message-
From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:22 AM
To: Struts Users Mailing List
Subject: Re: Problems with getting the Oracle thin JDBC drivers loaded
with Struts 1.0.1 under Tomcat 3.3a



mandag januar 28 2002 kl. 02:58 AM skrev Jack Zakarian:

 Hi

 Try renaming it to classes12.jar.

This did the trick!  Thank you.  This proves that it is on the eyes you
get blind first.

Is this a bug?
--
   Thorbjørn Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: RES: handling exceptions

2002-01-28 Thread Jonathan Gibbons


Hi,

JDK1.4 is at final release candidate stage.   They include nested exceptions 
(including all remote exceptions) and a logging framework.
Use these, and not any other version (eg log4j), you will be future proofing your CV 
and code.

Jonathan
===
For EJB and Struts code generators see:
http://www.faraway.co.uk/tallsoft/lowroad/

 Message History 



From: Chuck Cavaness [EMAIL PROTECTED] on 28/01/2002 08:22 EST

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:  Re: RES: handling exceptions


Unfortunately no because I think it contains some really nice features for
Struts. This is a commerical product that I'm working on. However, I have
received permission to discuss the exception framework in the Struts book
that I'm working on for OReilly right now. Search the mailing list archives
for the thread OReilly Struts Book.

Chuck


At 11:02 AM 1/28/2002 -0200, you wrote:
Thanks.
I want to know if your framework of handling exception will be opensource,
like struts.


-Mensagem original-
De: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 28 de janeiro de 2002 10:27
Para: Struts Users Mailing List
Assunto: Re: handling exceptions


We've developed a pretty eloborate exception handling framework on my
current project. We're using EJB on the backend, so
we must also deal with remote type exceptions. First we catorgize
exceptions into those that the user can recover from and those that they
can't. Sort of like fatal and non-fatal. You also need to divide exceptions
into system and application exceptions. System exceptions are ones like
remote exception, or maybe some type of datastore exception. Application
exceptions for us are ones like required fields were missing or duplicate
values for a unique column. In our world, the same exception framework has
to work for ERP systems, so it's not just the web container.

Anyway, for those exceptions that the user can recover from like required
fields missing, we catch those type of exceptions, create an ActionError
with a message from the bundle specifically for that exception, and then
forward back to the input page. This gives the user a chance to fix the
problem and resubmit. For the more severe exceptions, we also catch those
and forward to a system-error type page since there's probably nothing
you can do about it anyway. We use an abstract base action that all of our
actions extend. We have all of this behavior in the base action and none of
the action classes have to worry about catching these exceptions. The
abstract base action implements the perform and has an abstract doWork type
method. The doWork method is wrapped with the try catch blocks. Each
concreate action class implements the doWork and doesn't have to worry
about the try catch.

I hope that gives you some ideas.

chuck

p.s. Regarding your other post about using System.out in your action
classes; I wouldn't recommend that approach. Use log4j instead. That way,
you can shut off the debug logging externally by just editing the
log4j.properties file.

At 09:50 AM 1/28/2002 -0200, you wrote:
 Could somebody help me ?
 
 I have to many problems with handling exception of the Struts.
 what do you suggest to handling exception of the deployment applications?
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]






--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Olivier Dinocourt

I think it is because Tomcat searches for *.jar files in specific
directories, and it ignores all other files, even though they are valid
class libraries
- Original Message -
From: Thorbjørn Ravn Andersen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, January 28, 2002 2:22 PM
Subject: Re: Problems with getting the Oracle thin JDBC drivers loaded with
Struts 1.0.1 under Tomcat 3.3a



mandag januar 28 2002 kl. 02:58 AM skrev Jack Zakarian:

 Hi

 Try renaming it to classes12.jar.

This did the trick!  Thank you.  This proves that it is on the eyes you
get blind first.

Is this a bug?
--
   Thorbjørn Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Arnaud Héritier

Tomcat 3.3 and 4.0 follows the strict specifications of servlets :

Chapter 9.4 about Web App directory structure in the Servlets 2.23 spec :
The contents of the WEB-INF directory are:
* /WEB-INF/web.xml deployment descriptor
* /WEB-INF/classes/* directory for servlet and utility classes. The classes in this 
directory
are used by the application class loader to load classes from.
* /WEB-INF/lib/*.jar area for Java ARchive files which contain servlets, beans, and 
other
utility classes useful to the web application. All such archive files are used by the 
web
application class loader to load classes from.

go to http://java.sun.com/products/servlet/download.html and downloads the specs.
It's very instructive.


Arno



 -Message d'origine-
 De:   Olivier Dinocourt [SMTP:[EMAIL PROTECTED]]
 Date: lundi 28 janvier 2002 14:23
 À:Struts Users Mailing List
 Objet:Re: Problems with getting the Oracle thin JDBC drivers loaded with 
Struts 1.0.1 under Tomcat 3.3a
 
 I think it is because Tomcat searches for *.jar files in specific
 directories, and it ignores all other files, even though they are valid
 class libraries
 - Original Message -
 From: Thorbjørn Ravn Andersen [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, January 28, 2002 2:22 PM
 Subject: Re: Problems with getting the Oracle thin JDBC drivers loaded with
 Struts 1.0.1 under Tomcat 3.3a
 
 
 
 mandag januar 28 2002 kl. 02:58 AM skrev Jack Zakarian:
 
  Hi
 
  Try renaming it to classes12.jar.
 
 This did the trick!  Thank you.  This proves that it is on the eyes you
 get blind first.
 
 Is this a bug?
 --
Thorbjørn Ravn Andersen
Scandiatransplant, c/o Christian Mondrup
89 49 53 01
http://biobase.dk/~tra
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Can't find bundle for base name forms, locale en_US ,

2002-01-28 Thread Chuck Amadi

Hi There,

error message - Can't find bundle for base name forms, locale en_US , 

OS Win 98
Tomcat 3.2.2 (Can't get TCAT 4.0.1 to function properly)
Ide Netbeans 3.2
Struts-Framework

Im having a bit of trouble with this.I have a jsp serving as a controller ,i have 
instantiated my FormBean,Created a formPropertis file that resides with my other
beans ie Web-Inf  classes  form.properties. whereby i believe it is located anyware 
in my classpath that is visible to the jsp container.

Where is this ResourceBundle facility so my page can access the values for the 
resources by name.

Sorry if this is the wrong group!!
Cheers Chuck Amadi




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: RES: handling exceptions

2002-01-28 Thread Chuck Cavaness

That's a good idea. The only issue that I can think of is that you'll be dependent on 
1.4, since the logging API isn't available to previous SDKs. Something like log4j is 
available to 1.1 and above. There's no reason that I can think of why anyone wouldn't 
use the latest version of the SDK, but I'm not sure everyone will switch immediately.

Chuck
--
Sent via jApache.org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Template Question

2002-01-28 Thread Konstantina Stamopoulou

Hello,
I'm a beginner to Struts, and I'm using its template tag library for my web
application.
 I would like to  load in one of the areas of the template a URL.
To be more specific what I'm trying to do is the following:

template:insert template='/infotemplate.jsp'
  template:put name='title' content='Subscription information'
direct='true'/
  template:put name='sidebar' content='/details.jsp'/
  template:put name='content' content='http://www.in.gr'/
  template:put name='footer' content='/footer.html'/

/template:insert

The result of this is a big Exception:

java.io.IOException: the filename, directory,or volume label syntax is
incorrect.


My template is the following:

html
head
titletemplate:get name='title'//title
/head
body background='graphics/blueAndWhiteBackground.gif'

table
   tr valign='top'
  tdtemplate:get name='sidebar'//td
  tdtable
trtdtemplate:get name='header'//td/tr
trtdtemplate:get name='content'//td/tr
trtdtemplate:get name='footer'//td/tr
  /table
  /td
   /tr
/table
/body
/html


I'm I doing something wrong or the thing I'm trying to do is not possible
using templates? Can anyone give me any suggestion on what I should use to
overcome this problem?

Thank U in advance,
Konstantina





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: What happens when our session expires?

2002-01-28 Thread Mark Galbreath

Store the data in a database on session timeout; restore it when the user
comes back (requires a login or a persistent cookie).

Mark

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 1:37 AM
To: [EMAIL PROTECTED]
Subject: What happens when our session expires?


Hi there, you probably have heard this question a million times before, but
I couldn't really find anything in the archive which answered it.  So here
it goes:

We have an application for which we would like to use struts.  This
aplication allows users to enter performance evaluation information on
employees in the firm.

I would like to know this:  The user starts a performance evaluation, and
half way through decides to go grab a bite to eat, comes back and finshes
the evaluation, when he/she hits the save evaluation button their session
is going to be kaput.  Let's assume that the evaluation is a wizard type
application and relied heavily on an ActionForm class to store the
information entered on each page.

How do you overcome this problem?  Make sure to store all their previously
entered performance evaluation data in a hidden field on the client side?

Any help would be greatly appreciated.

/tataryn:craig

Craig W. Tataryn
Programmer/Analyst
Compuware

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: handling exceptions

2002-01-28 Thread Mark Galbreath

How do you differentiate between these exceptions (throws, throw new, catch)
in the JavaDocs?

Mark

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:27 AM
To: Struts Users Mailing List
Subject: Re: handling exceptions


We've developed a pretty eloborate exception handling framework on my
current project. We're using EJB on the backend, so


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Only one logged in session at a time for each user

2002-01-28 Thread Sean Owen

You should store their current session ID in some kind of 
persistent store, like you say. Then I would suggest that if 
they log in a second time, that you invalidate the *old* session 
and let them continue with new one. I've seen that approach used 
on a large public web site.

Sean


On Sunday, January 27, 2002, at 08:01  PM, Antony Stace wrote:

 Hi

 I want the users in a Struts application to be only logged in 
 once at any one time.  What is the
 best way to go about this.  I was thinking that I can have have 
 some sort of record in (an application
 wide bean)/(a database record)/(the logon action) that keeps 
 track of who is logged on and when the log on process
 happens this record is checked, if the user is already logged 
 on then don't let them log on again.  The problem
 I can see with this is that this works fine if the user logs 
 out of the application through a logout
 action - the logout action can simply clear the record of the 
 user being logged in.  But if the users browser crashes, they 
 reboot
 the machine, they simply restart the browser then this record 
 will not be cleared and thus they will not be able to log in.
  I cannot think of how I can
 implement a mechanism to ensure only one log in at a time.  The 
 thought of adding some sort of timeout value
 seems a little nasty, since I hate it when I go to a site and I 
 am told I am alread logged in, please try back in
 10 minutes.

 Any ideas folks on how to handle this?


 --


 Cheers

 Tony
 -


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 To unsubscribe, e-mail:   mailto:struts-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:struts-user-
 [EMAIL PROTECTED]



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Mark Galbreath

I had the same problem and it took hours wading through the Oracle
documentation before I got it to work.  First and foremost, you DO have the
driver mapped in your classpath, right? Second, what does your source code
look like for the Connection and DriverManager objects?

Mark

-Original Message-
From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:57 AM

I am in the process of getting Struts to work under Tomcat3.3a on a Redhat
7.1 and Sun's 1.3.02 JVM (which works) and have access to a DataSource
utilizing the thin Oracle JDBC drivers (classes12.zip).

This I cannot get to work.  I have tried a lot of combinations of the
classes12.zip


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Mark Galbreath

That won't work.  It should be

%ORACLE_HOME%\jdbc\lib\classes12.zip

in the classpath.

Mark

-Original Message-
From: Jack Zakarian [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 8:59 PM
To: Struts Users Mailing List
Subject: RE: Problems with getting the Oracle thin JDBC drivers loaded
with Struts 1.0.1 under Tomcat 3.3a


Hi

Try renaming it to classes12.jar.

Jack

-Original Message-
From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:57 AM
To: [EMAIL PROTECTED]
Subject: Problems with getting the Oracle thin JDBC drivers loaded with
Struts 1.0.1 under Tomcat 3.3a



I am in the process of getting Struts to work under Tomcat3.3a on a Redhat
7.1 and Sun's 1.3.02 JVM (which works) and have access to a DataSource
utilizing the thin Oracle JDBC drivers (classes12.zip).

This I cannot get to work.  I have tried a lot of combinations of the
placement of classes12.zip, and I consistently get an error when trying to
initiate the datasource of:

...
Root cause:
java.sql.SQLException: open: java.lang.ClassNotFoundException: oracle.jdbc.
driver.OracleDriver
 at org.apache.struts.util.GenericDataSource.open(GenericDataSource.
java:662)
...

I have pasted the drivername from another JDBC-JSP-script which worked
with this ZIP-file (abeit in Tomcat 4.0.1 with the IBM JVM), and I have
tried placing it in $CLASSPATH (which Tomcat apparently ignores) and in
tomcat/lib/common and in webapps/ROOT/WEB-INF/lib (I want the whole
webserver to default to this application).  No luck.

Now I'm out of ideas.  Somebody must have made this work - what have I
missed or misunderstood?

Thank you in advance for any hints,
--
   Thorbjørn Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: O'Reailly Struts Book

2002-01-28 Thread Mark Galbreath

Is this the same book due for release in May?

Mark

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:22 AM

Struts. This is a commerical product that I'm working on. However, I have
received permission to discuss the exception framework in the struts book
that I'm working on for OReilly right now. Search the mailing list archives
for the thread OReilly Struts Book.

Chuck


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Tom Klaasen (TeleRelay)

Mark,

http://marc.theaimsgroup.com/?l=struts-userm=101222411914920w=2

:P
tomK

 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
 Sent: maandag 28 januari 2002 15:46
 To: 'Struts Users Mailing List'
 Subject: RE: Problems with getting the Oracle thin JDBC 
 drivers loaded with Struts 1.0.1 under Tomcat 3.3a
 
 
 That won't work.  It should be
 
 %ORACLE_HOME%\jdbc\lib\classes12.zip
 
 in the classpath.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Mark Galbreath

Okay, I think I get it.  He's putting the classes12 file in the container's
lib directory, right?  I am using JRun 3.1 and I just stuck it in the system
classpath and it works fine.

Mark

-Original Message-
From: Jack Zakarian [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 9:28 PM
To: Struts Users Mailing List
Subject: RE: Problems with getting the Oracle thin JDBC drivers loaded
with Struts 1.0.1 under Tomcat 3.3a


No not a bug but more like a restriction. I believe
Struts and Tomcat only deal with jar file extensions
even though the zip and jar files are basically the same-
although war's and ear's store more information.

Jack
-Original Message-
From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:22 AM
To: Struts Users Mailing List
Subject: Re: Problems with getting the Oracle thin JDBC drivers loaded
with Struts 1.0.1 under Tomcat 3.3a



mandag januar 28 2002 kl. 02:58 AM skrev Jack Zakarian:

 Hi

 Try renaming it to classes12.jar.

This did the trick!  Thank you.  This proves that it is on the eyes you
get blind first.

Is this a bug?
--
   Thorbjørn Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: RES: handling exceptions

2002-01-28 Thread Mark Galbreath

That's all very good (and I especially like the inclusion of the RegExp
class in 1.4) but when will we have servlet and app containers that can
support with 1.4?

Mark

-Original Message-
From: Jonathan Gibbons [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:30 AM
To: Struts Users Mailing List
Subject: Re: RES: handling exceptions



Hi,

JDK1.4 is at final release candidate stage.   They include nested exceptions
(including all remote exceptions) and a logging framework.
Use these, and not any other version (eg log4j), you will be future proofing
your CV and code.

Jonathan
===
For EJB and Struts code generators see:
http://www.faraway.co.uk/tallsoft/lowroad/

 Message
History 


From: Chuck Cavaness [EMAIL PROTECTED] on 28/01/2002 08:22 EST

Please respond to Struts Users Mailing List
[EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:  Re: RES: handling exceptions


Unfortunately no because I think it contains some really nice features for
Struts. This is a commerical product that I'm working on. However, I have
received permission to discuss the exception framework in the Struts book
that I'm working on for OReilly right now. Search the mailing list archives
for the thread OReilly Struts Book.

Chuck


At 11:02 AM 1/28/2002 -0200, you wrote:
Thanks.
I want to know if your framework of handling exception will be opensource,
like struts.


-Mensagem original-
De: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 28 de janeiro de 2002 10:27
Para: Struts Users Mailing List
Assunto: Re: handling exceptions


We've developed a pretty eloborate exception handling framework on my
current project. We're using EJB on the backend, so
we must also deal with remote type exceptions. First we catorgize
exceptions into those that the user can recover from and those that they
can't. Sort of like fatal and non-fatal. You also need to divide exceptions
into system and application exceptions. System exceptions are ones like
remote exception, or maybe some type of datastore exception. Application
exceptions for us are ones like required fields were missing or duplicate
values for a unique column. In our world, the same exception framework has
to work for ERP systems, so it's not just the web container.

Anyway, for those exceptions that the user can recover from like required
fields missing, we catch those type of exceptions, create an ActionError
with a message from the bundle specifically for that exception, and then
forward back to the input page. This gives the user a chance to fix the
problem and resubmit. For the more severe exceptions, we also catch those
and forward to a system-error type page since there's probably nothing
you can do about it anyway. We use an abstract base action that all of our
actions extend. We have all of this behavior in the base action and none of
the action classes have to worry about catching these exceptions. The
abstract base action implements the perform and has an abstract doWork type
method. The doWork method is wrapped with the try catch blocks. Each
concreate action class implements the doWork and doesn't have to worry
about the try catch.

I hope that gives you some ideas.

chuck

p.s. Regarding your other post about using System.out in your action
classes; I wouldn't recommend that approach. Use log4j instead. That way,
you can shut off the debug logging externally by just editing the
log4j.properties file.

At 09:50 AM 1/28/2002 -0200, you wrote:
 Could somebody help me ?
 
 I have to many problems with handling exception of the Struts.
 what do you suggest to handling exception of the deployment applications?
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]






--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: OReilly Struts book

2002-01-28 Thread Juan Alvarado \(Struts List\)

I agree with you T. that using an IDE to set breakpoints, step and watch
variables is the preferred method for debugging.

I have used Struts in Visual Age for Java 4.0 for a while now and I have
saved SO MUCH TIME in debugging. I have been able to debug and step right
through the Struts source, and errors which would have taken hours to find,
have taken me minutes. I just can't stress enough how important an IDE can
be for a developer. You can save yourself and the company you work for a lot
of time and money by being more productive and getting the work out a lot
faster by using these tools.

I believe that a chapter in the struts book about debugging with an IDE
would be a great way to teach people about how much more productive they can
be by using these tools, while at the same time making the book more
marketable.

JDA

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Thinh Doan [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 12:34 AM
To: Struts Users Mailing List
Subject: RE: OReilly Struts book


Well if you have to add log statements in the code to trace  debug, I'd
call the old Fortran method.  The new way would be able to use the IDE to
step, use breakpoints, and display variables etc...  Any tools that can
provide these facilities would be of great help in general. If you can just
answer How to debug Struts apps? in a few pages or so, that'd be helpful.

T.

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 7:31 PM
To: Struts Users Mailing List
Subject: RE: OReilly Struts book


Thanks for the input. I'm doing the 1.0/1.1 dependent chapters last. That
will give me time to see when it comes out and how I'm going to cover it.
Something on performance is a must. I'm not sure if it's a complete chapter
or whether it can fold into another one. Chapter 18 deals mostly with
logging and specifically integrating log4j into your web apps. Although
logging and testing are somewhat related, I think they would deserve
seperate coverage. I'll give the testing methodology some thought. Were you
thinking something like JUnit/JTest, that sort of thing? The development
environment idea is interesting, although I'm not sure that I could give it
adequate coverage. OReilly books tend to be a little smaller than something
like Que. It's going to be so fat as is...

My idea for appendix A was that it would be similar to the JavaDocs. All of
the classes/interfaces with public methods. That sort of thing.

Thanks again for the input,
Chuck

At 04:45 PM 1/27/2002 -0600, you wrote:
Very good TOC, Chuck!  Personally, I'd like more focus on Struts 1.1 (since
I've been using 1.0 for a while now) and EJB. Also, a chapter on
development
environment, like JDeveloper, JBuilder, Forte, etc. w/ Struts, brief
performance analysis on using Struts w/ Tomcat, JRun, WebLogic, WebSphere
etc... would be great.  Finally a chapter on testing methodology  with apps
using Struts would be a bonus (or is it chapter 18?).

Thanks,

Thinh

PS: BTW, is Appendix A organized like a Struts reference guide?


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: OReilly Struts book

2002-01-28 Thread Witt, Mike (OH35)

Hi Chuck,

This sounds like it has the potential to be a very good book.  I'm looking 
forward to it and would like to here more as you develop your material.

Mike

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 1:58 PM
To: [EMAIL PROTECTED]
Subject: OReilly Struts book


I just wanted to let everyone know that I just signed a contract to write a 
book on Struts for O'Reilly. The book just got underway, so
it will not be out until the late summer or early fall.

I've included a rough working outline here, but realize that it's a work in 
progress and I will continue to flush out the details over
the coming days. If you have any suggestions for things to add, please feel 
free to send them to [EMAIL PROTECTED] so as
to not flood the newsgroups.

I've used Struts since the beginning and watched it evolve into a the great 
framework that it is today and for sure will be
when all of the 1.1 functionality gets rolled in. I intend to cover both 
1.0 and 1.1 functionality, although I haven't figured out the
cleanest way to handle the envoling functionltiy. I've started a dialog 
with Ted and he's given me some good ideas.

I just finished co-authoring Special Edition EJB 2.0 and Special Edition 
Using Java 2 and I'm planning on the book
having a heavy focus on EJB and J2EE, since that is my current use of the 
framework.

The working outline follows...
Chuck


O'Reilly Struts Working Outline

Chapter 1.  Introduction to Struts
   Brief History of the Web
   What are Servlets?
   JavaServer Pages Technology
   JSP Model 1 and Model 2 Architectures
   Why is Model - View - Controller So Important?
   Creation of the Struts Framework
   Alternatives to Struts
Chapter 2.   The Web Server/Servlet Container Relationship
   An Understanding of the Physical Architecture
   The Request/Response Phase Explained
   The HttpRequest, HttpResponse, and HttpSession Objects
   Using a Get Versus a Post (Where does this belong?)
   Redirecting Versus Forwarding
   Using URL Parameters
   Available Web Servers and Servlet Containers
Chapter 3.  Overview of the Struts Framework
   Looking at the Big Picture
   A Banking Account Example
   Struts Controller Components
   Struts Model Components
   The Struts View Components
   Life Cycle of a Struts Request
   Summary
Chapter 4.  Configuring web.xml and struts-config.xml
Chapter 5.  Struts Controller Components
Chapter 6.  Struts Model Components
Chapter 7.  Struts View Components
Chapter 8.  Custom Tag Libraries
Chapter 9.  Building a Web Tier Framework
Chapter 10. Exception Handling
Chapter 11. Externalizing the Struts Validation
Chapter 12. Internationalization and Localization
   What is Internationalization and Localization?
   Internationalizing your Struts Applications
   Determining the User Locale
   Configuring the Struts Resource Bundle
   Performing Localization with Struts
   Supporting Multiple Currencies
   Internationalizing a Database
Chapter 13. Struts and Enterprise JavaBeans (EJB)
   Struts and Enterprise JavaBeans
   EJB Home and Remote References
   What is a Proxy?
   The RemoteProxy Pattern
   Building a RemoteProxy Object for Your Web Application
   Using JNDI in a Struts Application
   Developing a RemoteProxy Framework
   Using Dynamic Proxies
   Using Debug Proxies
Chapter 14. Security in your Struts Web Applications
   Web Application Security Features
 Authentication
 Authorization
 Audit Trails
 Repudiation
   Dealing with Session Timeouts and Invalid Login Attempts
   Performing Page-Level Security
   Modifying the struts-cfg.xml for security
   Using HTTPS/SSL with Struts
Chapter 15. Building Dynamic Menus
Chapter 16. Paging and Sorting
Chapter 17. Navigation Trails
Chapter 18. Logging in a Struts Application
   Logging in a Web Application
   System versus Application Logging
   Using the Servlet Container for Logging
 Using Filters
 Using Event Listeners
   Struts Internal Log Messages
   Traditional Buy versus Build Analysis
   Using the log4j Logging Framework
 Brief look at Java Class Loaders
 What do Class Loaders have to do with log4j?
   Integrating log4j with Struts
 What are Loggers?
 Configuring log4j Appenders
 Initializing log4j
 Log file Rollover
 Setting the Log file location
 Logging within the Struts Framework
   Protecting your application from change
   Using the Log4j Tag Library
   Creating an Email Appender
   The Performance impact of Logging
   Third-Party log4j Extensions
   Java 1.4 Logging API
Chapter 19. Addressing Performance
Chapter 20. Struts Design Strategies
Chapter 21. Packaging your Struts Application
Chapter 22. Co-Branding and Personalization
Appendix A. Struts API
Appendix B. Downloading and Installing Struts
Appendix C. Struts Resources
Appednix D. Changes in Struts 1.1


--
To unsubscribe, e-mail:

RE: What happens when our session expires?

2002-01-28 Thread Craig Tataryn

Ok, but what happens to their form bean?  It would be gone, and thus their 
performance evaluation data would be gone.  No?

Craig.


From: Jon.Ridgway [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?
Date: Mon, 28 Jan 2002 10:12:13 -

Hi Graig,

Most Servers (Web  J2EE) have a session timeout setting. If used in
conjunction with form based (container managed) authorization, the 
container
will invalidate the session for you and pass control automatically to your
login screen once their session is invalidated.

Jon.

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: 28 January 2002 07:19
To: [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?

Thanks! Would there be a way we could manually end a session (i.e. at
logoff?)?

I would say that at some point (perhaps 24 hours) we would want the session
to expire, I imagine if we never expired sessions we would get into some
really bad performance issues...

Craig.


 From: Jason Chaffee [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: What happens when our session expires?
 Date: Sun, 27 Jan 2002 22:59:04 -0800
 
 One approach would be to not let the session timeout.  The 2.3 servlet
 spec. allows you to set the timeout to -1, which means the session will
 never expire.
 
  -Original Message-
  From: Craig Tataryn
  Sent: Sun 1/27/2002 10:37 PM
  To: [EMAIL PROTECTED]
  Cc:
  Subject: What happens when our session expires?
 
 
 
  Hi there, you probably have heard this question a million times
 before, but
  I couldn't really find anything in the archive which answered
 it.  So here
  it goes:
 
  We have an application for which we would like to use struts.
 This
  aplication allows users to enter performance evaluation
 information on
  employees in the firm.
 
  I would like to know this:  The user starts a performance
 evaluation, and
  half way through decides to go grab a bite to eat, comes back
 and finshes
  the evaluation, when he/she hits the save evaluation button
 their session
  is going to be kaput.  Let's assume that the evaluation is a
 wizard type
  application and relied heavily on an ActionForm class to store
 the
  information entered on each page.
 
  How do you overcome this problem?  Make sure to store all their
 previously
  entered performance evaluation data in a hidden field on the
 client side?
 
  Any help would be greatly appreciated.
 
  /tataryn:craig
 
  Craig W. Tataryn
  Programmer/Analyst
  Compuware
 
 
 _
  Get your FREE download of MSN Explorer at
 http://explorer.msn.com/intl.asp.
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
  winmail.dat 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: What happens when our session expires?

2002-01-28 Thread Craig Tataryn

That sounds feasable.  Thanks for your help!

Craig.


From: Jesse Alexander (KADA 12) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?
Date: Mon, 28 Jan 2002 10:42:22 +0100

Hi

session.invalidate() comes to mind...

another way would be to persist the information so far entered (under some
artificial key) and use a cookie to reget that key from the user's browser
as soon as he comes back. With this you can let the session expire and 
still
have the information ready...

hope this helps
Alexander

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:19 AM
To: [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?


Thanks! Would there be a way we could manually end a session (i.e. at
logoff?)?

I would say that at some point (perhaps 24 hours) we would want the session
to expire, I imagine if we never expired sessions we would get into some
really bad performance issues...

Craig.


 From: Jason Chaffee [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: What happens when our session expires?
 Date: Sun, 27 Jan 2002 22:59:04 -0800
 
 One approach would be to not let the session timeout.  The 2.3 servlet
 spec. allows you to set the timeout to -1, which means the session will
 never expire.
 
  -Original Message-
  From: Craig Tataryn
  Sent: Sun 1/27/2002 10:37 PM
  To: [EMAIL PROTECTED]
  Cc:
  Subject: What happens when our session expires?
 
 
 
  Hi there, you probably have heard this question a million times
 before, but
  I couldn't really find anything in the archive which answered
 it.  So here
  it goes:
 
  We have an application for which we would like to use struts.
 This
  aplication allows users to enter performance evaluation
 information on
  employees in the firm.
 
  I would like to know this:  The user starts a performance
 evaluation, and
  half way through decides to go grab a bite to eat, comes back
 and finshes
  the evaluation, when he/she hits the save evaluation button
 their session
  is going to be kaput.  Let's assume that the evaluation is a
 wizard type
  application and relied heavily on an ActionForm class to store
 the
  information entered on each page.
 
  How do you overcome this problem?  Make sure to store all their
 previously
  entered performance evaluation data in a hidden field on the
 client side?
 
  Any help would be greatly appreciated.
 
  /tataryn:craig
 
  Craig W. Tataryn
  Programmer/Analyst
  Compuware
 
 
 _
  Get your FREE download of MSN Explorer at
 http://explorer.msn.com/intl.asp.
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
  winmail.dat 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



Craig W. Tataryn
Programmer/Analyst
Compuware

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: OReilly Struts book

2002-01-28 Thread Stephen Gissendaner

Chuck,

Congratulations on the contract. The content looks pretty good. I would highly suggest 
that you include a chapter on Tiles and the tiles.xml file.

I have found tiles to be extremely time saving and allows a more modularized approach 
to page development. I know people who started to use struts simply because of the 
tiles integration. I know that it is a pretty in depth subject if you are going to 
show some best practices with it. I bet you can find plenty of people to give you 
help. I am, of course, willing to help you in any way that I can.

Sincerely,

Stephen W. Gissendaner
Senior Application Engineer
EPL, Inc.

Stephen W. Gissendaner
Senior Application Engineer,
EPL



-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: OReilly Struts book


I just wanted to let everyone know that I just signed a contract to write a 
book on Struts for O'Reilly. The book just got underway, so
it will not be out until the late summer or early fall.

I've included a rough working outline here, but realize that it's a work in 
progress and I will continue to flush out the details over
the coming days. If you have any suggestions for things to add, please feel 
free to send them to [EMAIL PROTECTED] so as
to not flood the newsgroups.

I've used Struts since the beginning and watched it evolve into a the great 
framework that it is today and for sure will be
when all of the 1.1 functionality gets rolled in. I intend to cover both 
1.0 and 1.1 functionality, although I haven't figured out the
cleanest way to handle the envoling functionltiy. I've started a dialog 
with Ted and he's given me some good ideas.

I just finished co-authoring Special Edition EJB 2.0 and Special Edition 
Using Java 2 and I'm planning on the book
having a heavy focus on EJB and J2EE, since that is my current use of the 
framework.

The working outline follows...
Chuck


O'Reilly Struts Working Outline

Chapter 1.  Introduction to Struts
   Brief History of the Web
   What are Servlets?
   JavaServer Pages Technology
   JSP Model 1 and Model 2 Architectures
   Why is Model - View - Controller So Important?
   Creation of the Struts Framework
   Alternatives to Struts
Chapter 2.   The Web Server/Servlet Container Relationship
   An Understanding of the Physical Architecture
   The Request/Response Phase Explained
   The HttpRequest, HttpResponse, and HttpSession Objects
   Using a Get Versus a Post (Where does this belong?)
   Redirecting Versus Forwarding
   Using URL Parameters
   Available Web Servers and Servlet Containers
Chapter 3.  Overview of the Struts Framework
   Looking at the Big Picture
   A Banking Account Example
   Struts Controller Components
   Struts Model Components
   The Struts View Components
   Life Cycle of a Struts Request
   Summary
Chapter 4.  Configuring web.xml and struts-config.xml
Chapter 5.  Struts Controller Components
Chapter 6.  Struts Model Components
Chapter 7.  Struts View Components
Chapter 8.  Custom Tag Libraries
Chapter 9.  Building a Web Tier Framework
Chapter 10. Exception Handling
Chapter 11. Externalizing the Struts Validation
Chapter 12. Internationalization and Localization
   What is Internationalization and Localization?
   Internationalizing your Struts Applications
   Determining the User Locale
   Configuring the Struts Resource Bundle
   Performing Localization with Struts
   Supporting Multiple Currencies
   Internationalizing a Database
Chapter 13. Struts and Enterprise JavaBeans (EJB)
   Struts and Enterprise JavaBeans
   EJB Home and Remote References
   What is a Proxy?
   The RemoteProxy Pattern
   Building a RemoteProxy Object for Your Web Application
   Using JNDI in a Struts Application
   Developing a RemoteProxy Framework
   Using Dynamic Proxies
   Using Debug Proxies
Chapter 14. Security in your Struts Web Applications
   Web Application Security Features
 Authentication
 Authorization
 Audit Trails
 Repudiation
   Dealing with Session Timeouts and Invalid Login Attempts
   Performing Page-Level Security
   Modifying the struts-cfg.xml for security
   Using HTTPS/SSL with Struts
Chapter 15. Building Dynamic Menus
Chapter 16. Paging and Sorting
Chapter 17. Navigation Trails
Chapter 18. Logging in a Struts Application
   Logging in a Web Application
   System versus Application Logging
   Using the Servlet Container for Logging
 Using Filters
 Using Event Listeners
   Struts Internal Log Messages
   Traditional Buy versus Build Analysis
   Using the log4j Logging Framework
 Brief look at Java Class Loaders
 What do Class Loaders have to do with log4j?
   Integrating log4j with Struts
 What are Loggers?
 Configuring log4j Appenders
 Initializing log4j
 Log file Rollover
 Setting the Log file location
 Logging within the Struts Framework
   Protecting 

RE: What happens when our session expires?

2002-01-28 Thread Craig Tataryn

There you go!  That sounds good.  So I'm assuming (bare with me, I haven't 
done much with session time outs) that you code some type of event procedure 
which is kicked off when the session times out?  You can then do cleanup 
stuff at this point?  How do you get at your form bean?  If memory serves 
(and it's been a while), your form beans are always passed to you as a 
parameter.  Unless you can get at them some how through the session object?

Thanks,

Craig.


From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?
Date: Mon, 28 Jan 2002 09:33:18 -0500

Store the data in a database on session timeout; restore it when the user
comes back (requires a login or a persistent cookie).

Mark

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 1:37 AM
To: [EMAIL PROTECTED]
Subject: What happens when our session expires?


Hi there, you probably have heard this question a million times before, but
I couldn't really find anything in the archive which answered it.  So here
it goes:

We have an application for which we would like to use struts.  This
aplication allows users to enter performance evaluation information on
employees in the firm.

I would like to know this:  The user starts a performance evaluation, and
half way through decides to go grab a bite to eat, comes back and finshes
the evaluation, when he/she hits the save evaluation button their session
is going to be kaput.  Let's assume that the evaluation is a wizard type
application and relied heavily on an ActionForm class to store the
information entered on each page.

How do you overcome this problem?  Make sure to store all their previously
entered performance evaluation data in a hidden field on the client side?

Any help would be greatly appreciated.

/tataryn:craig

Craig W. Tataryn
Programmer/Analyst
Compuware

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



Craig W. Tataryn
Programmer/Analyst
Compuware

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




ReQ: Only one logged in session at a time for each user

2002-01-28 Thread Alvin Kutttikkat Antony

Hi there,
I am too interested on this.The suggestion is good.How can I get 
session object from the Id.I think one way is through HttpSessionContext class. I 
found this class has been deprecated.
any other way to achieve this
Alvin




 second time, that you invalidate the *old* session 
and let them continue with new one. I've seen that approach used 
on a large public web site.

Sean


On Sunday, January 27, 2002, at 08:01  PM, Antony Stace wrote:

 Hi

 I want the users in a Struts application to be only logged in 
 once at any one time.  What is the
 best way to go about this.  I was thinking that I can have have 
 some sort of record in (an application
 wide bean)/(a database record)/(the logon action) that keeps 
 track of who is logged on and when the log on process
 happens this record is checked, if the user is already logged 
 on then don't let them log on again.  The problem
 I can see with this is that this works fine if the user logs 
 out of the application through a logout
 action - the logout action can simply clear the record of the 
 user being logged in.  But if the users browser crashes, they 
 reboot
 the machine, they simply restart the browser then this record 
 will not be cleared and thus they will not be able to log in.
  I cannot think of how I can
 implement a mechanism to ensure only one log in at a time.  The 
 thought of adding some sort of timeout value
 seems a little nasty, since I hate it when I go to a site and I 
 am told I am alread logged in, please try back in
 10 minutes.

 Any ideas folks on how to handle this?


 --


 Cheers

 Tony
 -


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 To unsubscribe, e-mail:   mailto:struts-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:struts-user-
 [EMAIL PROTECTED]




_

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980



RE: OReilly Struts book

2002-01-28 Thread Phillips, George H.

Chuck,
This looks great!  My only suggestion is to keep in mind that there are a
lot of us out here who don't use EJB's  for a variety of reasons.  I hope
you'll include some examples and discussion of the servlet/jsp-only approach
using Struts.
Looking forward to the book!
George Phillips
[EMAIL PROTECTED]

 -Original Message-
 From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, January 27, 2002 1:58 PM
 To: [EMAIL PROTECTED]
 Subject: OReilly Struts book
 
 
 I just wanted to let everyone know that I just signed a 
 contract to write a 
 book on Struts for O'Reilly. The book just got underway, so
 it will not be out until the late summer or early fall.
 
 I've included a rough working outline here, but realize that 
 it's a work in 
 progress and I will continue to flush out the details over
 the coming days. If you have any suggestions for things to 
 add, please feel 
 free to send them to [EMAIL PROTECTED] so as
 to not flood the newsgroups.
 
 I've used Struts since the beginning and watched it evolve 
 into a the great 
 framework that it is today and for sure will be
 when all of the 1.1 functionality gets rolled in. I intend to 
 cover both 
 1.0 and 1.1 functionality, although I haven't figured out the
 cleanest way to handle the envoling functionltiy. I've 
 started a dialog 
 with Ted and he's given me some good ideas.
 
 I just finished co-authoring Special Edition EJB 2.0 and 
 Special Edition 
 Using Java 2 and I'm planning on the book
 having a heavy focus on EJB and J2EE, since that is my 
 current use of the 
 framework.
 
 The working outline follows...
 Chuck
 
 
 O'Reilly Struts Working Outline
 
 Chapter 1.Introduction to Struts
Brief History of the Web
What are Servlets?
JavaServer Pages Technology
JSP Model 1 and Model 2 Architectures
Why is Model - View - Controller So Important?
Creation of the Struts Framework
Alternatives to Struts
 Chapter 2. The Web Server/Servlet Container Relationship
An Understanding of the Physical Architecture
The Request/Response Phase Explained
The HttpRequest, HttpResponse, and HttpSession Objects
Using a Get Versus a Post (Where does this belong?)
Redirecting Versus Forwarding
Using URL Parameters
Available Web Servers and Servlet Containers
 Chapter 3.Overview of the Struts Framework
Looking at the Big Picture
A Banking Account Example
Struts Controller Components
Struts Model Components
The Struts View Components
Life Cycle of a Struts Request
Summary
 Chapter 4.Configuring web.xml and struts-config.xml
 Chapter 5.Struts Controller Components
 Chapter 6.Struts Model Components
 Chapter 7.Struts View Components
 Chapter 8.Custom Tag Libraries
 Chapter 9.Building a Web Tier Framework
 Chapter 10.   Exception Handling
 Chapter 11.   Externalizing the Struts Validation
 Chapter 12.   Internationalization and Localization
What is Internationalization and Localization?
Internationalizing your Struts Applications
Determining the User Locale
Configuring the Struts Resource Bundle
Performing Localization with Struts
Supporting Multiple Currencies
Internationalizing a Database
 Chapter 13.   Struts and Enterprise JavaBeans (EJB)
Struts and Enterprise JavaBeans
EJB Home and Remote References
What is a Proxy?
The RemoteProxy Pattern
Building a RemoteProxy Object for Your Web Application
Using JNDI in a Struts Application
Developing a RemoteProxy Framework
Using Dynamic Proxies
Using Debug Proxies
 Chapter 14.   Security in your Struts Web Applications
Web Application Security Features
  Authentication
  Authorization
  Audit Trails
  Repudiation
Dealing with Session Timeouts and Invalid Login Attempts
Performing Page-Level Security
Modifying the struts-cfg.xml for security
Using HTTPS/SSL with Struts
 Chapter 15.   Building Dynamic Menus
 Chapter 16.   Paging and Sorting
 Chapter 17.   Navigation Trails
 Chapter 18.   Logging in a Struts Application
Logging in a Web Application
System versus Application Logging
Using the Servlet Container for Logging
  Using Filters
  Using Event Listeners
Struts Internal Log Messages
Traditional Buy versus Build Analysis
Using the log4j Logging Framework
  Brief look at Java Class Loaders
  What do Class Loaders have to do with log4j?
Integrating log4j with Struts
  What are Loggers?
  Configuring log4j Appenders
  Initializing log4j
  Log file Rollover
  Setting the Log file location
  Logging within the Struts Framework
Protecting your application from change
Using the Log4j Tag Library
Creating an Email Appender
The Performance impact of Logging
Third-Party log4j Extensions
Java 1.4 Logging API
 Chapter 19.   Addressing Performance
 Chapter 20.   Struts Design Strategies
 Chapter 21.   Packaging 

RE: OReilly Struts book

2002-01-28 Thread Cakalic, James

A Struts-specific book will not doubt be welcome by the existing community
and attract new developers. Being a new Struts user, I like the
off-the-shelf MVC implementation, especially now that validation and
authorization can be integrated. It appears that you'll cover these concepts
and capabilities.

One topic I don't see in your outline that would interest me would be
integrating non-JSP presentation technologies. Not everybody thinks JSP is
the greatest thing since sliced bread. Ted Husted has recently
collaborated with the Jakarta Velocity team on a Velocity integration
strategy. I'm working on Enhydra XMLC (but haven't seen the need to go to a
completely separate servlet -- yet). Others are looking at an XML/XSL-based
solution. What is lost from Struts by not using JSP? How are certain
concepts -- say transaction tokens -- still useful but require somewhat more
work?

I'm looking forward to seeing it on the bookshelf.

Best regards,
Jim Cakalic

 -Original Message-
 From: Phillips, George H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 28, 2002 9:33 AM
 To: 'Struts Users Mailing List'
 Subject: RE: OReilly Struts book
 
 
 Chuck,
 This looks great!  My only suggestion is to keep in mind that 
 there are a
 lot of us out here who don't use EJB's  for a variety of 
 reasons.  I hope
 you'll include some examples and discussion of the 
 servlet/jsp-only approach
 using Struts.
 Looking forward to the book!
 George Phillips
 [EMAIL PROTECTED]
 
  -Original Message-
  From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, January 27, 2002 1:58 PM
  To: [EMAIL PROTECTED]
  Subject: OReilly Struts book
  
  
  I just wanted to let everyone know that I just signed a 
  contract to write a 
  book on Struts for O'Reilly. The book just got underway, so
  it will not be out until the late summer or early fall.
  
  I've included a rough working outline here, but realize that 
  it's a work in 
  progress and I will continue to flush out the details over
  the coming days. If you have any suggestions for things to 
  add, please feel 
  free to send them to [EMAIL PROTECTED] so as
  to not flood the newsgroups.
  
  I've used Struts since the beginning and watched it evolve 
  into a the great 
  framework that it is today and for sure will be
  when all of the 1.1 functionality gets rolled in. I intend to 
  cover both 
  1.0 and 1.1 functionality, although I haven't figured out the
  cleanest way to handle the envoling functionltiy. I've 
  started a dialog 
  with Ted and he's given me some good ideas.
  
  I just finished co-authoring Special Edition EJB 2.0 and 
  Special Edition 
  Using Java 2 and I'm planning on the book
  having a heavy focus on EJB and J2EE, since that is my 
  current use of the 
  framework.
  
  The working outline follows...
  Chuck
  
  
  O'Reilly Struts Working Outline
  
  Chapter 1.  Introduction to Struts
 Brief History of the Web
 What are Servlets?
 JavaServer Pages Technology
 JSP Model 1 and Model 2 Architectures
 Why is Model - View - Controller So Important?
 Creation of the Struts Framework
 Alternatives to Struts
  Chapter 2.   The Web Server/Servlet Container Relationship
 An Understanding of the Physical Architecture
 The Request/Response Phase Explained
 The HttpRequest, HttpResponse, and HttpSession Objects
 Using a Get Versus a Post (Where does this belong?)
 Redirecting Versus Forwarding
 Using URL Parameters
 Available Web Servers and Servlet Containers
  Chapter 3.  Overview of the Struts Framework
 Looking at the Big Picture
 A Banking Account Example
 Struts Controller Components
 Struts Model Components
 The Struts View Components
 Life Cycle of a Struts Request
 Summary
  Chapter 4.  Configuring web.xml and struts-config.xml
  Chapter 5.  Struts Controller Components
  Chapter 6.  Struts Model Components
  Chapter 7.  Struts View Components
  Chapter 8.  Custom Tag Libraries
  Chapter 9.  Building a Web Tier Framework
  Chapter 10. Exception Handling
  Chapter 11. Externalizing the Struts Validation
  Chapter 12. Internationalization and Localization
 What is Internationalization and Localization?
 Internationalizing your Struts Applications
 Determining the User Locale
 Configuring the Struts Resource Bundle
 Performing Localization with Struts
 Supporting Multiple Currencies
 Internationalizing a Database
  Chapter 13. Struts and Enterprise JavaBeans (EJB)
 Struts and Enterprise JavaBeans
 EJB Home and Remote References
 What is a Proxy?
 The RemoteProxy Pattern
 Building a RemoteProxy Object for Your Web Application
 Using JNDI in a Struts Application
 Developing a RemoteProxy Framework
 Using Dynamic Proxies
 Using Debug Proxies
  Chapter 14. Security in your Struts Web Applications
 Web Application Security Features
   Authentication
   Authorization
   Audit 

Referencing an external path from another war package

2002-01-28 Thread kc tan

Hi, has anyone any idea how to point to a path which resides in a war 
package different from the originating struts-config.xml package. According 
to the DTD, it seems that the path is a context relative one!

Thanks in Advance!
KC


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Only one logged in session at a time for each user

2002-01-28 Thread Jonathan Gibbons


I have used a combination of ip_address and jsessionid which I store in an 
active_session table.

Every action they do I check the table - if the ip address changes (ie someone has 
nicked the session id) then I ditch the record and make em log in again.
If the same user logs in again from same IP address I let them right in, no logon 
required (within a time period).
If the same user logs in from another ip address then I bouce the first one off...

It stops users using each others passwords as a rule - it's too annoying.   The 
problem is proxies and gateways which mask off original ip addresses.  Can't have 
everything.

Jonathan
==
For ejb and code generation for your Struts web site, visit:
http://www.faraway.co.uk/tallsoft/lowroad/


 Message History 



From: Sean Owen [EMAIL PROTECTED] on 28/01/2002 09:40 EST

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:   [EMAIL PROTECTED]
Subject:  Re: Only one logged in session at a time for each user


You should store their current session ID in some kind of
persistent store, like you say. Then I would suggest that if
they log in a second time, that you invalidate the *old* session
and let them continue with new one. I've seen that approach used
on a large public web site.

Sean


On Sunday, January 27, 2002, at 08:01  PM, Antony Stace wrote:

 Hi

 I want the users in a Struts application to be only logged in
 once at any one time.  What is the
 best way to go about this.  I was thinking that I can have have
 some sort of record in (an application
 wide bean)/(a database record)/(the logon action) that keeps
 track of who is logged on and when the log on process
 happens this record is checked, if the user is already logged
 on then don't let them log on again.  The problem
 I can see with this is that this works fine if the user logs
 out of the application through a logout
 action - the logout action can simply clear the record of the
 user being logged in.  But if the users browser crashes, they
 reboot
 the machine, they simply restart the browser then this record
 will not be cleared and thus they will not be able to log in.
  I cannot think of how I can
 implement a mechanism to ensure only one log in at a time.  The
 thought of adding some sort of timeout value
 seems a little nasty, since I hate it when I go to a site and I
 am told I am alread logged in, please try back in
 10 minutes.

 Any ideas folks on how to handle this?


 --


 Cheers

 Tony
 -


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 To unsubscribe, e-mail:   mailto:struts-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:struts-user-
 [EMAIL PROTECTED]



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]






--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: What happens when our session expires?

2002-01-28 Thread Jesse Alexander (KADA 12)

Well you sure loose all the uncommitted data (== data the user enters on his screen
without posting it to the server).

Offer the user to store the data with the promise that he can review it before 
finally committing it...

hth
Alexander

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 4:09 PM
To: [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?


Ok, but what happens to their form bean?  It would be gone, and thus their 
performance evaluation data would be gone.  No?

Craig.


From: Jon.Ridgway [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?
Date: Mon, 28 Jan 2002 10:12:13 -

Hi Graig,

Most Servers (Web  J2EE) have a session timeout setting. If used in
conjunction with form based (container managed) authorization, the 
container
will invalidate the session for you and pass control automatically to your
login screen once their session is invalidated.

Jon.

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: 28 January 2002 07:19
To: [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?

Thanks! Would there be a way we could manually end a session (i.e. at
logoff?)?

I would say that at some point (perhaps 24 hours) we would want the session
to expire, I imagine if we never expired sessions we would get into some
really bad performance issues...

Craig.


 From: Jason Chaffee [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: What happens when our session expires?
 Date: Sun, 27 Jan 2002 22:59:04 -0800
 
 One approach would be to not let the session timeout.  The 2.3 servlet
 spec. allows you to set the timeout to -1, which means the session will
 never expire.
 
  -Original Message-
  From: Craig Tataryn
  Sent: Sun 1/27/2002 10:37 PM
  To: [EMAIL PROTECTED]
  Cc:
  Subject: What happens when our session expires?
 
 
 
  Hi there, you probably have heard this question a million times
 before, but
  I couldn't really find anything in the archive which answered
 it.  So here
  it goes:
 
  We have an application for which we would like to use struts.
 This
  aplication allows users to enter performance evaluation
 information on
  employees in the firm.
 
  I would like to know this:  The user starts a performance
 evaluation, and
  half way through decides to go grab a bite to eat, comes back
 and finshes
  the evaluation, when he/she hits the save evaluation button
 their session
  is going to be kaput.  Let's assume that the evaluation is a
 wizard type
  application and relied heavily on an ActionForm class to store
 the
  information entered on each page.
 
  How do you overcome this problem?  Make sure to store all their
 previously
  entered performance evaluation data in a hidden field on the
 client side?
 
  Any help would be greatly appreciated.
 
  /tataryn:craig
 
  Craig W. Tataryn
  Programmer/Analyst
  Compuware
 
 
 _
  Get your FREE download of MSN Explorer at
 http://explorer.msn.com/intl.asp.
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
  winmail.dat 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1under Tomcat 3.3a

2002-01-28 Thread Jonathan Gibbons


Yes it does!

Stick it in WEB-INF/libs/classes12.jar.

That works just fine.

Jonathan
===
Want to generate heaps of code?  Visit:
http://www.faraway.co.uk/tallsoft/lowroad/


 Message History 



From: Mark Galbreath [EMAIL PROTECTED] on 28/01/2002 09:46 EST

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject:  RE: Problems with getting the Oracle thin JDBC drivers loaded with Struts 
1.0.1 under Tomcat 3.3a


That won't work.  It should be

%ORACLE_HOME%\jdbc\lib\classes12.zip

in the classpath.

Mark

-Original Message-
From: Jack Zakarian [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 8:59 PM
To: Struts Users Mailing List
Subject: RE: Problems with getting the Oracle thin JDBC drivers loaded
with Struts 1.0.1 under Tomcat 3.3a


Hi

Try renaming it to classes12.jar.

Jack

-Original Message-
From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:57 AM
To: [EMAIL PROTECTED]
Subject: Problems with getting the Oracle thin JDBC drivers loaded with
Struts 1.0.1 under Tomcat 3.3a



I am in the process of getting Struts to work under Tomcat3.3a on a Redhat
7.1 and Sun's 1.3.02 JVM (which works) and have access to a DataSource
utilizing the thin Oracle JDBC drivers (classes12.zip).

This I cannot get to work.  I have tried a lot of combinations of the
placement of classes12.zip, and I consistently get an error when trying to
initiate the datasource of:

...
Root cause:
java.sql.SQLException: open: java.lang.ClassNotFoundException: oracle.jdbc.
driver.OracleDriver
 at org.apache.struts.util.GenericDataSource.open(GenericDataSource.
java:662)
...

I have pasted the drivername from another JDBC-JSP-script which worked
with this ZIP-file (abeit in Tomcat 4.0.1 with the IBM JVM), and I have
tried placing it in $CLASSPATH (which Tomcat apparently ignores) and in
tomcat/lib/common and in webapps/ROOT/WEB-INF/lib (I want the whole
webserver to default to this application).  No luck.

Now I'm out of ideas.  Somebody must have made this work - what have I
missed or misunderstood?

Thank you in advance for any hints,
--
   Thorbjørn Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]






--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




R: OReilly Struts book

2002-01-28 Thread Davanzo Luca

What is Tiles exactly? I immagine it is an addon to struts? what it does?
where to download?



-Messaggio originale-
Da: Stephen Gissendaner [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 28 gennaio 2002 16.14
A: 'Struts Users Mailing List'
Oggetto: RE: OReilly Struts book


Chuck,

Congratulations on the contract. The content looks pretty good. I would
highly suggest that you include a chapter on Tiles and the tiles.xml file.

I have found tiles to be extremely time saving and allows a more modularized
approach to page development. I know people who started to use struts simply
because of the tiles integration. I know that it is a pretty in depth
subject if you are going to show some best practices with it. I bet you can
find plenty of people to give you help. I am, of course, willing to help you
in any way that I can.

Sincerely,

Stephen W. Gissendaner
Senior Application Engineer
EPL, Inc.

Stephen W. Gissendaner
Senior Application Engineer,
EPL



-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: OReilly Struts book


I just wanted to let everyone know that I just signed a contract to write a 
book on Struts for O'Reilly. The book just got underway, so
it will not be out until the late summer or early fall.

I've included a rough working outline here, but realize that it's a work in 
progress and I will continue to flush out the details over
the coming days. If you have any suggestions for things to add, please feel 
free to send them to [EMAIL PROTECTED] so as
to not flood the newsgroups.

I've used Struts since the beginning and watched it evolve into a the great 
framework that it is today and for sure will be
when all of the 1.1 functionality gets rolled in. I intend to cover both 
1.0 and 1.1 functionality, although I haven't figured out the
cleanest way to handle the envoling functionltiy. I've started a dialog 
with Ted and he's given me some good ideas.

I just finished co-authoring Special Edition EJB 2.0 and Special Edition 
Using Java 2 and I'm planning on the book
having a heavy focus on EJB and J2EE, since that is my current use of the 
framework.

The working outline follows...
Chuck


O'Reilly Struts Working Outline

Chapter 1.  Introduction to Struts
   Brief History of the Web
   What are Servlets?
   JavaServer Pages Technology
   JSP Model 1 and Model 2 Architectures
   Why is Model - View - Controller So Important?
   Creation of the Struts Framework
   Alternatives to Struts
Chapter 2.   The Web Server/Servlet Container Relationship
   An Understanding of the Physical Architecture
   The Request/Response Phase Explained
   The HttpRequest, HttpResponse, and HttpSession Objects
   Using a Get Versus a Post (Where does this belong?)
   Redirecting Versus Forwarding
   Using URL Parameters
   Available Web Servers and Servlet Containers
Chapter 3.  Overview of the Struts Framework
   Looking at the Big Picture
   A Banking Account Example
   Struts Controller Components
   Struts Model Components
   The Struts View Components
   Life Cycle of a Struts Request
   Summary
Chapter 4.  Configuring web.xml and struts-config.xml
Chapter 5.  Struts Controller Components
Chapter 6.  Struts Model Components
Chapter 7.  Struts View Components
Chapter 8.  Custom Tag Libraries
Chapter 9.  Building a Web Tier Framework
Chapter 10. Exception Handling
Chapter 11. Externalizing the Struts Validation
Chapter 12. Internationalization and Localization
   What is Internationalization and Localization?
   Internationalizing your Struts Applications
   Determining the User Locale
   Configuring the Struts Resource Bundle
   Performing Localization with Struts
   Supporting Multiple Currencies
   Internationalizing a Database
Chapter 13. Struts and Enterprise JavaBeans (EJB)
   Struts and Enterprise JavaBeans
   EJB Home and Remote References
   What is a Proxy?
   The RemoteProxy Pattern
   Building a RemoteProxy Object for Your Web Application
   Using JNDI in a Struts Application
   Developing a RemoteProxy Framework
   Using Dynamic Proxies
   Using Debug Proxies
Chapter 14. Security in your Struts Web Applications
   Web Application Security Features
 Authentication
 Authorization
 Audit Trails
 Repudiation
   Dealing with Session Timeouts and Invalid Login Attempts
   Performing Page-Level Security
   Modifying the struts-cfg.xml for security
   Using HTTPS/SSL with Struts
Chapter 15. Building Dynamic Menus
Chapter 16. Paging and Sorting
Chapter 17. Navigation Trails
Chapter 18. Logging in a Struts Application
   Logging in a Web Application
   System versus Application Logging
   Using the Servlet Container for Logging
 Using Filters
 Using Event Listeners
   Struts Internal Log Messages
   Traditional Buy versus Build Analysis
   Using the log4j Logging Framework
 Brief look at Java Class Loaders

RE: Problems with getting the Oracle thin JDBC drivers loaded with Struts 1.0.1 under Tomcat 3.3a

2002-01-28 Thread Arnaud Héritier

Not libs but lib :-)

 -Message d'origine-
 De:   Jonathan Gibbons [SMTP:[EMAIL PROTECTED]]
 Date: lundi 28 janvier 2002 16:52
 À:Struts Users Mailing List
 Objet:RE: Problems with getting the Oracle thin JDBC drivers loaded with 
Struts 1.0.1 under Tomcat 3.3a


 Yes it does!

 Stick it in WEB-INF/libs/classes12.jar.

 That works just fine.

 Jonathan
 ===
 Want to generate heaps of code?  Visit:
 http://www.faraway.co.uk/tallsoft/lowroad/


  Message History 



 From: Mark Galbreath [EMAIL PROTECTED] on 28/01/2002 09:46 EST

 Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]

 To:   'Struts Users Mailing List' [EMAIL PROTECTED]
 cc:
 Subject:  RE: Problems with getting the Oracle thin JDBC drivers loaded 
with Struts 1.0.1 under Tomcat 3.3a


 That won't work.  It should be

 %ORACLE_HOME%\jdbc\lib\classes12.zip

 in the classpath.

 Mark

 -Original Message-
 From: Jack Zakarian [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, January 27, 2002 8:59 PM
 To: Struts Users Mailing List
 Subject: RE: Problems with getting the Oracle thin JDBC drivers loaded
 with Struts 1.0.1 under Tomcat 3.3a


 Hi

 Try renaming it to classes12.jar.

 Jack

 -Original Message-
 From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 28, 2002 6:57 AM
 To: [EMAIL PROTECTED]
 Subject: Problems with getting the Oracle thin JDBC drivers loaded with
 Struts 1.0.1 under Tomcat 3.3a



 I am in the process of getting Struts to work under Tomcat3.3a on a 
Redhat
 7.1 and Sun's 1.3.02 JVM (which works) and have access to a DataSource
 utilizing the thin Oracle JDBC drivers (classes12.zip).

 This I cannot get to work.  I have tried a lot of combinations of the
 placement of classes12.zip, and I consistently get an error when trying 
to
 initiate the datasource of:

 ...
 Root cause:
 java.sql.SQLException: open: java.lang.ClassNotFoundException: 
oracle.jdbc.
 driver.OracleDriver
  at 
org.apache.struts.util.GenericDataSource.open(GenericDataSource.
 java:662)
 ...

 I have pasted the drivername from another JDBC-JSP-script which worked
 with this ZIP-file (abeit in Tomcat 4.0.1 with the IBM JVM), and I have
 tried placing it in $CLASSPATH (which Tomcat apparently ignores) and in
 tomcat/lib/common and in webapps/ROOT/WEB-INF/lib (I want the whole
 webserver to default to this application).  No luck.

 Now I'm out of ideas.  Somebody must have made this work - what have I
 missed or misunderstood?

 Thank you in advance for any hints,
 --
Thorbjørn Ravn Andersen
Scandiatransplant, c/o Christian Mondrup
89 49 53 01
http://biobase.dk/~tra


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


 --
 To unsubscribe, e-mail: 
  mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]






 --

 This e-mail may contain confidential and/or privileged information. If 
you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.



 --
 To unsubscribe, e-mail: 
  mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]  
he.org


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: RES: handling exceptions

2002-01-28 Thread Jonathan Gibbons


Well, since Tomcat (for instance) runs the JVM you install then you get the logging 
and exception stuff as soon as you install 1.4,

You do NOT get it within the tomcat code, but you do within your own code.  i.e. if 
their stuff fails then you won't see it.  But if your stuff fails, or logs then you 
get it as
soon as you use JDK1.4  (I have yet to use it in anger, I must admit - probably for 
the reason you just stated :)

Jonathan

Want to write your code as if you used EJB, but you don't?   Visit:
http://www.faraway.co.uk/tallsoft/lowroad/


 Message History 



From: Mark Galbreath [EMAIL PROTECTED] on 28/01/2002 09:52 EST

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject:  RE: RES: handling exceptions


That's all very good (and I especially like the inclusion of the RegExp
class in 1.4) but when will we have servlet and app containers that can
support with 1.4?

Mark

-Original Message-
From: Jonathan Gibbons [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:30 AM
To: Struts Users Mailing List
Subject: Re: RES: handling exceptions



Hi,

JDK1.4 is at final release candidate stage.   They include nested exceptions
(including all remote exceptions) and a logging framework.
Use these, and not any other version (eg log4j), you will be future proofing
your CV and code.

Jonathan
===
For EJB and Struts code generators see:
http://www.faraway.co.uk/tallsoft/lowroad/

 Message
History 


From: Chuck Cavaness [EMAIL PROTECTED] on 28/01/2002 08:22 EST

Please respond to Struts Users Mailing List
[EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:  Re: RES: handling exceptions


Unfortunately no because I think it contains some really nice features for
Struts. This is a commerical product that I'm working on. However, I have
received permission to discuss the exception framework in the Struts book
that I'm working on for OReilly right now. Search the mailing list archives
for the thread OReilly Struts Book.

Chuck


At 11:02 AM 1/28/2002 -0200, you wrote:
Thanks.
I want to know if your framework of handling exception will be opensource,
like struts.


-Mensagem original-
De: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 28 de janeiro de 2002 10:27
Para: Struts Users Mailing List
Assunto: Re: handling exceptions


We've developed a pretty eloborate exception handling framework on my
current project. We're using EJB on the backend, so
we must also deal with remote type exceptions. First we catorgize
exceptions into those that the user can recover from and those that they
can't. Sort of like fatal and non-fatal. You also need to divide exceptions
into system and application exceptions. System exceptions are ones like
remote exception, or maybe some type of datastore exception. Application
exceptions for us are ones like required fields were missing or duplicate
values for a unique column. In our world, the same exception framework has
to work for ERP systems, so it's not just the web container.

Anyway, for those exceptions that the user can recover from like required
fields missing, we catch those type of exceptions, create an ActionError
with a message from the bundle specifically for that exception, and then
forward back to the input page. This gives the user a chance to fix the
problem and resubmit. For the more severe exceptions, we also catch those
and forward to a system-error type page since there's probably nothing
you can do about it anyway. We use an abstract base action that all of our
actions extend. We have all of this behavior in the base action and none of
the action classes have to worry about catching these exceptions. The
abstract base action implements the perform and has an abstract doWork type
method. The doWork method is wrapped with the try catch blocks. Each
concreate action class implements the doWork and doesn't have to worry
about the try catch.

I hope that gives you some ideas.

chuck

p.s. Regarding your other post about using System.out in your action
classes; I wouldn't recommend that approach. Use log4j instead. That way,
you can shut off the debug logging externally by just editing the
log4j.properties file.

At 09:50 AM 1/28/2002 -0200, you wrote:
 Could somebody help me ?
 
 I have to many problems with handling exception of the Struts.
 what do you suggest to handling exception of the deployment applications?
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, 

RE: OReilly Struts book (Tiles)

2002-01-28 Thread Stephen Gissendaner

Tiles is a Template add-on (now) to struts that allows you to build your pages from 
components. It replaces the old Tiles template tags.

See http://www.lifl.fr/~dumoulin/tiles/index.html for more information. It is WAY COOL 
and super productive if you are creating a complex site with lots of common things on 
all the pages.

Stephen W. Gissendaner
Senior Application Engineer,
EPL



-Original Message-
From: Davanzo Luca [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 9:43 AM
To: Struts Users Mailing List
Subject: R: OReilly Struts book


What is Tiles exactly? I immagine it is an addon to struts? what it does?
where to download?



-Messaggio originale-
Da: Stephen Gissendaner [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 28 gennaio 2002 16.14
A: 'Struts Users Mailing List'
Oggetto: RE: OReilly Struts book


Chuck,

Congratulations on the contract. The content looks pretty good. I would
highly suggest that you include a chapter on Tiles and the tiles.xml file.

I have found tiles to be extremely time saving and allows a more modularized
approach to page development. I know people who started to use struts simply
because of the tiles integration. I know that it is a pretty in depth
subject if you are going to show some best practices with it. I bet you can
find plenty of people to give you help. I am, of course, willing to help you
in any way that I can.

Sincerely,

Stephen W. Gissendaner
Senior Application Engineer
EPL, Inc.

Stephen W. Gissendaner
Senior Application Engineer,
EPL



-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: OReilly Struts book


I just wanted to let everyone know that I just signed a contract to write a 
book on Struts for O'Reilly. The book just got underway, so
it will not be out until the late summer or early fall.

I've included a rough working outline here, but realize that it's a work in 
progress and I will continue to flush out the details over
the coming days. If you have any suggestions for things to add, please feel 
free to send them to [EMAIL PROTECTED] so as
to not flood the newsgroups.

I've used Struts since the beginning and watched it evolve into a the great 
framework that it is today and for sure will be
when all of the 1.1 functionality gets rolled in. I intend to cover both 
1.0 and 1.1 functionality, although I haven't figured out the
cleanest way to handle the envoling functionltiy. I've started a dialog 
with Ted and he's given me some good ideas.

I just finished co-authoring Special Edition EJB 2.0 and Special Edition 
Using Java 2 and I'm planning on the book
having a heavy focus on EJB and J2EE, since that is my current use of the 
framework.

The working outline follows...
Chuck


O'Reilly Struts Working Outline

Chapter 1.  Introduction to Struts
   Brief History of the Web
   What are Servlets?
   JavaServer Pages Technology
   JSP Model 1 and Model 2 Architectures
   Why is Model - View - Controller So Important?
   Creation of the Struts Framework
   Alternatives to Struts
Chapter 2.   The Web Server/Servlet Container Relationship
   An Understanding of the Physical Architecture
   The Request/Response Phase Explained
   The HttpRequest, HttpResponse, and HttpSession Objects
   Using a Get Versus a Post (Where does this belong?)
   Redirecting Versus Forwarding
   Using URL Parameters
   Available Web Servers and Servlet Containers
Chapter 3.  Overview of the Struts Framework
   Looking at the Big Picture
   A Banking Account Example
   Struts Controller Components
   Struts Model Components
   The Struts View Components
   Life Cycle of a Struts Request
   Summary
Chapter 4.  Configuring web.xml and struts-config.xml
Chapter 5.  Struts Controller Components
Chapter 6.  Struts Model Components
Chapter 7.  Struts View Components
Chapter 8.  Custom Tag Libraries
Chapter 9.  Building a Web Tier Framework
Chapter 10. Exception Handling
Chapter 11. Externalizing the Struts Validation
Chapter 12. Internationalization and Localization
   What is Internationalization and Localization?
   Internationalizing your Struts Applications
   Determining the User Locale
   Configuring the Struts Resource Bundle
   Performing Localization with Struts
   Supporting Multiple Currencies
   Internationalizing a Database
Chapter 13. Struts and Enterprise JavaBeans (EJB)
   Struts and Enterprise JavaBeans
   EJB Home and Remote References
   What is a Proxy?
   The RemoteProxy Pattern
   Building a RemoteProxy Object for Your Web Application
   Using JNDI in a Struts Application
   Developing a RemoteProxy Framework
   Using Dynamic Proxies
   Using Debug Proxies
Chapter 14. Security in your Struts Web Applications
   Web Application Security Features
 Authentication
 Authorization
 Audit Trails
 Repudiation
   Dealing with Session Timeouts and Invalid Login Attempts
   

RE: RES: handling exceptions

2002-01-28 Thread Cakalic, James

Hmm. Just because it appears in the JDK doesn't mean that it is a good
thing. The original JSR47 has changed substantially from its original
specification due, in no small part, to the efforts of the log4j community.
Even so, its current incarnation still pales in comparison to log4j. You
might take time to read the criticism of log4j authors and supporters at
http://jakarta.apache.org/log4j/docs/srtw.html. The Apache Software
Foundation -- you know they host the Jakarta project which includes Struts
and log4j, right? -- does not support the JSR. As a user of Struts, imagine
for a moment that JDK 1.5 included an MVC implementation similar to Struts
but with reduced functionality and limited extension capability. Would you
switch just because it was included in the JDK?

Aside from functional differences, it is not practical or advisable for
everyone to adopt JDK 1.4 as soon as it hits release. For one thing, Sun
only releases the JDK for Windows and Solaris platforms. What if you are
using Linux? Or AIX? Or HP-UX? Or AS/400? Or any of the other plethora of
platforms which Sun does _not_ support? You'll have to wait for vendor
implementations which could be months after the JDK release. As developers
of application-server based software, most of us are also sensitive to the
period of time it takes for the server vendors to support a new JDK. This
was rather substantial between 1.2 and 1.3. I'm not optimistic about 1.4. 

I can't comment on the nested exceptions of 1.4 as I haven't really looked
at this. But I would venture that my above comments apply there equally.

Part of the benefit of a large and active open source community is that
there are multiple solutions to every problem. We are able to evaluate the
alternatives and choose a package that most closely meets our needs.
Ultimately, one of these solutions may bubble to the top. But that solution
won't always show up in the next JDK. And even if it does, that doesn't mean
that it then becomes the _only_ solution for the entire community. Choice is
a good thing.

Best regards,
Jim Cakalic


 -Original Message-
 From: Jonathan Gibbons [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 28, 2002 7:30 AM
 To: Struts Users Mailing List
 Subject: Re: RES: handling exceptions
 
 
 
 Hi,
 
 JDK1.4 is at final release candidate stage.   They include 
 nested exceptions (including all remote exceptions) and a 
 logging framework.
 Use these, and not any other version (eg log4j), you will be 
 future proofing your CV and code.
 
 Jonathan
 ===
 For EJB and Struts code generators see:
 http://www.faraway.co.uk/tallsoft/lowroad/
 
  Message History 
 
 
 
 From: Chuck Cavaness [EMAIL PROTECTED] on 
 28/01/2002 08:22 EST
 
 Please respond to Struts Users Mailing List 
 [EMAIL PROTECTED]
 
 To:   Struts Users Mailing List [EMAIL PROTECTED]
 cc:
 Subject:  Re: RES: handling exceptions
 
 
 Unfortunately no because I think it contains some really nice 
 features for
 Struts. This is a commerical product that I'm working on. 
 However, I have
 received permission to discuss the exception framework in the 
 Struts book
 that I'm working on for OReilly right now. Search the mailing 
 list archives
 for the thread OReilly Struts Book.
 
 Chuck
 
 
 At 11:02 AM 1/28/2002 -0200, you wrote:
 Thanks.
 I want to know if your framework of handling exception will 
 be opensource,
 like struts.
 
 
 -Mensagem original-
 De: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
 Enviada em: segunda-feira, 28 de janeiro de 2002 10:27
 Para: Struts Users Mailing List
 Assunto: Re: handling exceptions
 
 
 We've developed a pretty eloborate exception handling framework on my
 current project. We're using EJB on the backend, so
 we must also deal with remote type exceptions. First we catorgize
 exceptions into those that the user can recover from and 
 those that they
 can't. Sort of like fatal and non-fatal. You also need to 
 divide exceptions
 into system and application exceptions. System exceptions 
 are ones like
 remote exception, or maybe some type of datastore exception. 
 Application
 exceptions for us are ones like required fields were missing 
 or duplicate
 values for a unique column. In our world, the same exception 
 framework has
 to work for ERP systems, so it's not just the web container.
 
 Anyway, for those exceptions that the user can recover from 
 like required
 fields missing, we catch those type of exceptions, create 
 an ActionError
 with a message from the bundle specifically for that 
 exception, and then
 forward back to the input page. This gives the user a chance 
 to fix the
 problem and resubmit. For the more severe exceptions, we 
 also catch those
 and forward to a system-error type page since there's 
 probably nothing
 you can do about it anyway. We use an abstract base action 
 that all of our
 actions extend. We have all of this behavior in the 

Tag libraries

2002-01-28 Thread Martin Samm

not strictly struts, but taglibrary related. I knwo scripting variables can 
be defined in the TLD and set in the TagExtraInfo extended class, but what if 
we dont know the name of these scripting variables as run time - for eaxmple 
one of my tag libs will retrieve a set of data from the database , and each 
column in that row i want to expose as a a scripting variable in the boduy of 
the tag - however i may not know all the column names at run-time so i want 
to declare the scripting variables at run time - i suppose i'm asking if the 
TagExtraInfo class can get access to the class is giving info about at 
runtime? Any ideas?
-- 
Martin Samm
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




VIRUS WARNING - new photos from my party!

2002-01-28 Thread Tony Ziolkowski

DO NOT OPEN THIS ATTACHMENT!!! IT IS A VIRUS!!



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Form fields submitted multiple times...

2002-01-28 Thread Kearfott, David (DST-CLT)

Has anyone ever noticed the Set methods in the ActionForm invoked multiple
times (always using the values submitted from the html:form) from Action to
Action? 

In our JSP, we have several buttons pertaining to the same form
(thisActionForm).  Depending on which button was pressed, a different
action mapping is invoked from Struts:

action path=/handleButtons type=HandleButtonsAction
name=thisActionForm validate=false scope=session input=/home.jsp
forward name=updateDetailsButton
path=/updateDetails.do/
forward name=resetDetailsButton
path=/resetDetails.do/
forward name=calculateButton
path=/calculateAmounts.do/
forward name=deleteButton
path=/deleteDetails.do/
/action

action path=/resetDetails type=ResetDetailsAction name=thisActionForm
 validate=false scope=session input=/home.jsp
forward name=success
path=/calculateAmounts.do/
/action
action path=/calculateAmounts type=CalculateAmountsAction
name=thisActionForm  validate=false scope=session input=/home.jsp
forward name=success path=/details.jsp/
/action

We see the fields entered/changed in thisActionForm set before entering
the HandleButtonsAction class.
We also see the same field values set again before entering the
ResetDetailsAction class, as if the HTML form has been submitted a second
time.
The ResetDetailsAction resets some date fields on thisActionForm, by
invoking various Set methods.
We then see the original field values set a third time before entering the
CalculateAmountsAction class, clearing out the values reset in the
ResetDetailsAction

As anyone seen anything similar?
Is there an attribute we could use in the action element that would disallow
the form from submitting again and again and again?

Our current work around is to not use thisActionForm on any other actions,
except the HandleButtonsAction, and just grab thisActionForm off of the
session in ResetDetailsAction and CalculateAmountsAction, but we feel
that there's an easier way.

Sorry for the novel...
-dave kearfott



RE: Reload classes and Application Resources

2002-01-28 Thread BARIS GUZELORDU

Merhaba Fehmi,
I know I can hot deploy, but I really do not know how to do it. 
Denedim ama, class'lardaki degisiklikleri ve ApplicationResources'daki
degisiklikleri algilamiyor. Sadece JSP'leri algiliyor..
ApplicationResources'a bir sey eklediktem sonra, server'i acip kapatmam
gerekiyor..Iyi Çalismalar

Baris Güzelordu
IT-Customer Services
* +90 212 449 23 35
* +90 532 210 19 57
* [EMAIL PROTECTED]




-Original Message-
From: Hudayioglu, Fehmi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 5:26 PM
To: 'Struts Users Mailing List'
Subject: AW: Reload classes and Application Resources


Hi,
You can hot deploy anything you want. However, if you a change something
in
struts-config.xml or web.xml file, you have to restart your application
server. By the way, you shouldn't move those classes to the weblogic's
classes directory. Instead, move them to your
web-application/web-inf/classes directory. You have to also stick to
your
package structure.
I hope it helps.

Sana da iyi calismalar.

-Ursprüngliche Nachricht-
Von: BARIS GUZELORDU [mailto:[EMAIL PROTECTED]]
Gesendet am: Thursday, January 24, 2002 4:07 PM
An: 'Struts Users Mailing List'
Betreff: Reload classes and Application Resources

Hi there,
I use VAGE for Java 3.5.3 with BEA Weblogic 5.1 as integration kit. I
use struts. (Just for info)

I import all the classes to Unix. And I start weblogic 5.1 server. Could
anyone tell me that when I change any class (Action or anyother) or
ApplicationResources, I export it onto weblogic classes directory. Do I
have to restart weblogic serve each timer. It is very hard to restart
server each time when any change occurs in classes.

I want to change the class, copy it to unix and would like to see the
result in my application...!


Thanks..

Iyi Çalismalar

Baris Güzelordu
IT-Customer Services
* +90 212 449 23 35
* +90 532 210 19 57
* [EMAIL PROTECTED]



***

This e-mail and any files transmitted with it are confidential and
intended
solely for the use of the individual or entity to whom they are
addressed.
If you are not the intended recipient you are hereby notified that any
dissemination, forwarding, copying or use of any of the information is
prohibited.

The opinions expressed in this message belong to sender alone. There is
no
implied endorsement by TURKCELL.

This e-mail has been scanned for all known computer viruses.


***

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


***

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient you are hereby notified that any
dissemination, forwarding, copying or use of any of the information is
prohibited.

The opinions expressed in this message belong to sender alone. There is no
implied endorsement by TURKCELL.

This e-mail has been scanned for all known computer viruses.

***

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: RES: handling exceptions

2002-01-28 Thread Jonathan Gibbons


I agree choice is good.  And Apache Jakarta is one (if not THE) best of them.  JBoss 
is pretty dang fine too.

Hats off.

I also know that the recruiting marketplace tends to focus on core libs.  Loads of 
projects steer clear of
jakarta stuff BECAUSE it is free and open source.  I guess my point of view is that it 
does come down to choice.
You must look at the core API's and offerings and you must be aware of how they are 
evolving.

I will personally tend to either write my own or go with the sun libs.   This is a 
time problem.   Open source teams are
bright, motivated and produce tons of code that is often not well documented.   They 
exert presure on the industry, and
I think it's great they do so.  But I will choose the core libs, simply because the 
next job is more likely to use the core
libs.

Log4j will rapidly change from the only offering, to yet another proprietary (yes I 
know, think recruiting person) lib.  IMHO.
It's not religion, it's choice!  :)

Jonathan



 Message History 



From: Cakalic, James [EMAIL PROTECTED] on 28/01/2002 11:04 EST

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject:  RE: RES: handling exceptions


Hmm. Just because it appears in the JDK doesn't mean that it is a good
thing. The original JSR47 has changed substantially from its original
specification due, in no small part, to the efforts of the log4j community.
Even so, its current incarnation still pales in comparison to log4j. You
might take time to read the criticism of log4j authors and supporters at
http://jakarta.apache.org/log4j/docs/srtw.html. The Apache Software
Foundation -- you know they host the Jakarta project which includes Struts
and log4j, right? -- does not support the JSR. As a user of Struts, imagine
for a moment that JDK 1.5 included an MVC implementation similar to Struts
but with reduced functionality and limited extension capability. Would you
switch just because it was included in the JDK?

Aside from functional differences, it is not practical or advisable for
everyone to adopt JDK 1.4 as soon as it hits release. For one thing, Sun
only releases the JDK for Windows and Solaris platforms. What if you are
using Linux? Or AIX? Or HP-UX? Or AS/400? Or any of the other plethora of
platforms which Sun does _not_ support? You'll have to wait for vendor
implementations which could be months after the JDK release. As developers
of application-server based software, most of us are also sensitive to the
period of time it takes for the server vendors to support a new JDK. This
was rather substantial between 1.2 and 1.3. I'm not optimistic about 1.4.

I can't comment on the nested exceptions of 1.4 as I haven't really looked
at this. But I would venture that my above comments apply there equally.

Part of the benefit of a large and active open source community is that
there are multiple solutions to every problem. We are able to evaluate the
alternatives and choose a package that most closely meets our needs.
Ultimately, one of these solutions may bubble to the top. But that solution
won't always show up in the next JDK. And even if it does, that doesn't mean
that it then becomes the _only_ solution for the entire community. Choice is
a good thing.

Best regards,
Jim Cakalic


 -Original Message-
 From: Jonathan Gibbons [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 28, 2002 7:30 AM
 To: Struts Users Mailing List
 Subject: Re: RES: handling exceptions



 Hi,

 JDK1.4 is at final release candidate stage.   They include
 nested exceptions (including all remote exceptions) and a
 logging framework.
 Use these, and not any other version (eg log4j), you will be
 future proofing your CV and code.

 Jonathan
 ===
 For EJB and Struts code generators see:
 http://www.faraway.co.uk/tallsoft/lowroad/

  Message History
 


 From: Chuck Cavaness [EMAIL PROTECTED] on
 28/01/2002 08:22 EST

 Please respond to Struts Users Mailing List
 [EMAIL PROTECTED]

 To:   Struts Users Mailing List [EMAIL PROTECTED]
 cc:
 Subject:  Re: RES: handling exceptions


 Unfortunately no because I think it contains some really nice
 features for
 Struts. This is a commerical product that I'm working on.
 However, I have
 received permission to discuss the exception framework in the
 Struts book
 that I'm working on for OReilly right now. Search the mailing
 list archives
 for the thread OReilly Struts Book.

 Chuck


 At 11:02 AM 1/28/2002 -0200, you wrote:
 Thanks.
 I want to know if your framework of handling exception will
 be opensource,
 like struts.
 
 
 -Mensagem original-
 De: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
 Enviada em: segunda-feira, 28 de janeiro de 2002 10:27
 Para: Struts Users Mailing List
 Assunto: Re: handling exceptions
 
 
 We've 

RE: Tag libraries

2002-01-28 Thread Dinesh Khetarpal

I have one question I don't know if it is related to your question 
If I have to pass the variables in the tag and those variables are java
Objects and can not be represented String. How should I pass then to the
tag. I used Page Context to fill the variable and retrieve it inside the
tag it works, but I am not sure that is the best way to do it.

-Original Message-
From: Martin Samm [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: Tag libraries


not strictly struts, but taglibrary related. I knwo scripting variables
can 
be defined in the TLD and set in the TagExtraInfo extended class, but
what if 
we dont know the name of these scripting variables as run time - for
eaxmple 
one of my tag libs will retrieve a set of data from the database , and
each 
column in that row i want to expose as a a scripting variable in the
boduy of 
the tag - however i may not know all the column names at run-time so i
want 
to declare the scripting variables at run time - i suppose i'm asking if
the 
TagExtraInfo class can get access to the class is giving info about at 
runtime? Any ideas?
-- 
Martin Samm
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




HTML table tag library

2002-01-28 Thread Adrian Theuma

Hello,
we are thinking of developing a tag that will dispay the objects
of an ArrayList in a tabular form. This should be very common in web
applications so I was thinking whether there is something already
implemented.

Thanks.

rgds,
Adrian

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: RES: handling exceptions

2002-01-28 Thread Pete Carapetyan

Cakalic, James wrote:

 Hmm. Just because it appears in the JDK doesn't mean that it is a good
 thing.

snip

 As a user of Struts, imagine
 for a moment that JDK 1.5 included an MVC implementation similar to Struts
 but with reduced functionality and limited extension capability. Would you
 switch just because it was included in the JDK?

Good example ! Any code base that implements another code base is, by definition, 
limited and frozen in time, as a requirement of implementing it.

For example, as much as I enjoy the productivity of Expresso, as a Struts 
implementation it is a 1.0, or whatever version the contributors implement for that 
release of Expresso that I am using at the time. :(

Another example is SOAP, which I would like to use one of Apache's versions. But 
without all the potential parser conflicts worked out between versions of SOAP, 
Tomcat, Xerces, etc, it can be a challenge. So I am trying Apache XmlRpc instead, for 
the moment.

The blessings of a wealth of open source tools.. Really makes one consider the way 
Jboss has used JMX to keep the interfaces all clean.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: archive of this list

2002-01-28 Thread Bill Page

that seems to only have messages back to Jan 15.  Is there a full archive
anywhere?

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 26, 2002 5:08 AM
To: Struts Users Mailing List
Subject: RE: archive of this list


http://www.mail-archive.com/struts-user%40jakarta.apache.org/


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: What happens when our session expires?

2002-01-28 Thread Jason Chaffee

You could set your session to expire at any time you would it to expire,
you don't have set it to -1.  Yes, you can manually invalidate a session
as well.  

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 11:19 PM
To: [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?


Thanks! Would there be a way we could manually end a session (i.e. at 
logoff?)?

I would say that at some point (perhaps 24 hours) we would want the
session 
to expire, I imagine if we never expired sessions we would get into some

really bad performance issues...

Craig.


From: Jason Chaffee [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?
Date: Sun, 27 Jan 2002 22:59:04 -0800

One approach would be to not let the session timeout.  The 2.3 servlet
spec. allows you to set the timeout to -1, which means the session will
never expire.

   -Original Message-
   From: Craig Tataryn
   Sent: Sun 1/27/2002 10:37 PM
   To: [EMAIL PROTECTED]
   Cc:
   Subject: What happens when our session expires?



   Hi there, you probably have heard this question a million times
before, but
   I couldn't really find anything in the archive which answered
it.  So here
   it goes:

   We have an application for which we would like to use struts.
This
   aplication allows users to enter performance evaluation
information on
   employees in the firm.

   I would like to know this:  The user starts a performance
evaluation, and
   half way through decides to go grab a bite to eat, comes back
and finshes
   the evaluation, when he/she hits the save evaluation button
their session
   is going to be kaput.  Let's assume that the evaluation is a
wizard type
   application and relied heavily on an ActionForm class to store
the
   information entered on each page.

   How do you overcome this problem?  Make sure to store all their
previously
   entered performance evaluation data in a hidden field on the
client side?

   Any help would be greatly appreciated.

   /tataryn:craig

   Craig W. Tataryn
   Programmer/Analyst
   Compuware


_
   Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.


   --
   To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



 winmail.dat 
--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Formatting Dates, Integers...

2002-01-28 Thread Hudayioglu, Fehmi

Hi fellows,

I have searched the mailing list in hope to find a way to display a number
in format (e.g:120.200,32). I couldn't find any solution. There were some
messages proposing to play on the getter and setter methods. But, this is
not a solution we imagine. Because we have some object properties in the
Form Bean and their properties can be set by struts directly. So changing
getter and setter methods requires tons of effort to modify our  data
classes and form beans which is of course NOT desirable. I also know that
there is a DateTag library of Jakarta, which is yet in beta release.
Therefore, my managers (regards to them) don't want to use beta releases.
They don't want to modify struts tags neither. However, I believe this is
quite straightforward way (hopefully they will be contended soon).

So,
1. Do you have any clever solution for this common problem?
2. What necessary steps should I take in order to add a new Format attribute
to the form:text and bean:write?
2.1 In case, I added necessary methods, how can I guarantee that struts set
this formatted value to the property. According to my tries, it doesn't set
them correctly?
2.2 How long does an ordinary developer require to modify struts to do so?

thanks and my best regards,
fehmi.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RES: Formatting Dates, Integers...

2002-01-28 Thread Rubens Gama

public static String formatDecimal(String format,String value)
{
double valueDouble = Double.parseDouble(value);
DecimalFormat decimalFormat = new DecimalFormat();
decimalFormat.applyPattern(format);
return decimalFormat.format(valueDouble);
}

try to do it:

formatDecimal(#,##0.00,120200.32);

ok?



-Mensagem original-
De: Hudayioglu, Fehmi [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 28 de janeiro de 2002 15:39
Para: '[EMAIL PROTECTED]'
Assunto: Formatting Dates, Integers...


Hi fellows,

I have searched the mailing list in hope to find a way to display a number
in format (e.g:120.200,32). I couldn't find any solution. There were some
messages proposing to play on the getter and setter methods. But, this is
not a solution we imagine. Because we have some object properties in the
Form Bean and their properties can be set by struts directly. So changing
getter and setter methods requires tons of effort to modify our  data
classes and form beans which is of course NOT desirable. I also know that
there is a DateTag library of Jakarta, which is yet in beta release.
Therefore, my managers (regards to them) don't want to use beta releases.
They don't want to modify struts tags neither. However, I believe this is
quite straightforward way (hopefully they will be contended soon).

So,
1. Do you have any clever solution for this common problem?
2. What necessary steps should I take in order to add a new Format attribute
to the form:text and bean:write?
2.1 In case, I added necessary methods, how can I guarantee that struts set
this formatted value to the property. According to my tries, it doesn't set
them correctly?
2.2 How long does an ordinary developer require to modify struts to do so?

thanks and my best regards,
fehmi.

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RES: Formatting Dates, Integers...

2002-01-28 Thread Rubens Gama

My solution was :
create a proprietary class that make all conversion types.


-Mensagem original-
De: Hudayioglu, Fehmi [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 28 de janeiro de 2002 15:39
Para: '[EMAIL PROTECTED]'
Assunto: Formatting Dates, Integers...


Hi fellows,

I have searched the mailing list in hope to find a way to display a number
in format (e.g:120.200,32). I couldn't find any solution. There were some
messages proposing to play on the getter and setter methods. But, this is
not a solution we imagine. Because we have some object properties in the
Form Bean and their properties can be set by struts directly. So changing
getter and setter methods requires tons of effort to modify our  data
classes and form beans which is of course NOT desirable. I also know that
there is a DateTag library of Jakarta, which is yet in beta release.
Therefore, my managers (regards to them) don't want to use beta releases.
They don't want to modify struts tags neither. However, I believe this is
quite straightforward way (hopefully they will be contended soon).

So,
1. Do you have any clever solution for this common problem?
2. What necessary steps should I take in order to add a new Format attribute
to the form:text and bean:write?
2.1 In case, I added necessary methods, how can I guarantee that struts set
this formatted value to the property. According to my tries, it doesn't set
them correctly?
2.2 How long does an ordinary developer require to modify struts to do so?

thanks and my best regards,
fehmi.

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Struts 1.0 and Websphere 3.5.2

2002-01-28 Thread bruno . morin

Hello,

Has someone made Struts 1.0 working with Websphere 3.5.2 ?

apache.jakarta.org/struts/ indicates this :
Warning: Struts will not work with WebSphere 3.5.2 out of the box. Fixes
expected to be in WebSphere 3.5.3 (not released at time of writing) should
correct this. However, you can successfully get WebSphere 3.5.2 working with
Struts.

I don't know why I have the following error message when I use Struts with
WAS 3.5.2 :

Error 500
An error has occured while processing
request:http://172.17.250.131:8001/webapp/pfolP/actionservlet
Message:Failed to load target servlet [ActionServlet]
Target Servlet: ActionServlet
StackTrace: 



Root Error-1: null
java.lang.NullPointerException at
com.ibm.servlet.engine.srt.WebGroup.getResourceAsStream(WebGroup.java:267)
at com.ibm.servlet.engine.webapp.WebApp.getResourceAsStream(WebApp.java:719)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:582)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:105) at
javax.servlet.GenericServlet.init(GenericServlet.java:172) at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
va:558) at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
rvlet.java:136) at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
eServlet.java:244) at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
vlet.java:102) at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:277)
at javax.servlet.GenericServlet.init(GenericServlet.java:172) at
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
71) at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
Manager.java:76) at
com.ibm.servlet.engine.webapp.WebAppServletManager.getServletReference(WebAp
pServletManager.java:94) at
com.ibm.servlet.engine.webapp.WebApp.getServletReference(WebApp.java:259) at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebA
pp.java:1511) at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.(WebApp.java:1427)
at
com.ibm.servlet.engine.webapp.WebApp.getRequestDispatcher(WebApp.java:809)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:
643) at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67) at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
eInvocationContext.java:106) at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:160) at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:300) at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
EventListenerImp.java:230) at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
istenerImp.java:104) at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventSource.java:202) at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(SQWrapperEventSource.java:347) at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(SQWrapperEventSource.java:216) at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(OutOfProcThread.java:248) at java.lang.Thread.run(Thread.java:481) 




Wrapped Error-2: null
javax.servlet.ServletException at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
va:571) at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
rvlet.java:136) at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
eServlet.java:244) at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
vlet.java:102) at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:277)
at javax.servlet.GenericServlet.init(GenericServlet.java:172) at
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
71) at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
Manager.java:76) at
com.ibm.servlet.engine.webapp.WebAppServletManager.getServletReference(WebAp
pServletManager.java:94) at
com.ibm.servlet.engine.webapp.WebApp.getServletReference(WebApp.java:259) at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebA
pp.java:1511) at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.(WebApp.java:1427)
at
com.ibm.servlet.engine.webapp.WebApp.getRequestDispatcher(WebApp.java:809)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:
643) at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn

Struts and weblogic 5.1 SP11

2002-01-28 Thread Jeff_Mychasiw



Hello All:
 Can anyone share their experiences with Struts and this version of
Weblogic?  I have asked this question before but now I am getting ready to start
installing Struts in an environment that is similar to our production.

Are the issues the same as for those that are posted for SP8?

Are there any issues that may pop up in the future?

Thanks



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




testing

2002-01-28 Thread mpopovits.rm

this is a test post to the struts group


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Struts and weblogic 5.1 SP11

2002-01-28 Thread mpopovits.rm

I have used sp 9, 10,  11 successfully with Struts and WLS 5.1.


--- In [EMAIL PROTECTED], [EMAIL PROTECTED] wrote:
 
 
 Hello All:
  Can anyone share their experiences with Struts and this 
version of
 Weblogic?  I have asked this question before but now I am getting 
ready to start
 installing Struts in an environment that is similar to our 
production.
 
 Are the issues the same as for those that are posted for SP8?
 
 Are there any issues that may pop up in the future?
 
 Thanks
 
 
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-unsubscribe@j...
 For additional commands, e-mail: mailto:struts-user-help@j...


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Form beans and 1..* relationships

2002-01-28 Thread Jason B Menard

Thanks alot.  This looks like it will do exactly what I need.

Jason

Arron wrote:

 Or as I like to think of it... a banana picking plantation has more than
 one monkey working a field, each monkey picking any amount of bunches,
 and each bunch many bananas... similar, no?

 There's a working example here...
 http://www.keyboardmonkey.com/StrutMonkey/MonkeyStruts_v2.jsp

 And to find out how it was all done, go here...
 http://www.keyboardmonkey.com/struts

 And don't worry about it's future, it's now a part of Struts, and in the
 nightly build.

 Arron.

 Jason B Menard wrote:

 Hello,
 
 I am a newbie to Struts so please excuse me if this has already been
 previously discussed.
 
 I have a java bean that models a purchase request.  For the sake of
 brevity we can call this the PR bean.  One of the attributes of the PR
 bean is that it has one to many products, product being another class,
 which we are mainting in the PR in a HashMap.
 
 I also will have a jsp that displays a purchase request form.  Based on
 other actions the user has taken in the application, much of this form
 will be pre-filled.  If I was doing a standard useBean, when displaying
 the purchase request form to the user via a jsp, the jsp would among
 other things iterate through the collection dynamically creating form
 fields, and populating the form with the contents of the PR bean.  For
 example if the PR had four products, and let's say that one of the
 attributes of a product is a part number, the jsp would dynamically
 create fields named partNumber.1, partNumber2, etc..., and fill in
 those values on the form.
 
 My question is whether or not it is possible to do this with form beans,
 or should I stick with my current plan and not use a form bean in this
 case, just using another class to do the form validation?
 
 1.  Can you model one-to-many relationships, or any other kind of
 dynamic content, with form beans?
 
 2.  Upon displaying this jsp, to make sure I get it populated correctly,
 in the preceeding action would I simply create a new instance of the
 Form bean, copy the data from the PR bean to the Form bean, and then
 place the Form bean in the appropriate scope before forwarding on to the
 jsp?  Is this the way this would normally be handled or is there a more
 appropriate way to do this?
 
 Thanks,
 
 Jason
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 

 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: What happens when our session expires?

2002-01-28 Thread Mark Galbreath

That's right.  Check out the javax.servlet.http.* API.  You want to register
the moment the user becomes unbound from a session so you can write the form
values to the database (these would be stored as session attributes and
updated as the user moves from field to field in the forms or from form page
to form page.  Any object that implements the HttpSessionBinding Listener
interface is notified when it is bound and unbound from a session.  So, for
example, create a helper class or stick a helper method in your controller
servlet to do something like:

public void valueUnbound( HttpSessionindingEvent event) {
[plug session.getAttribute() returns into update parameters on your
Statement().update() method call through your Connection() String]
}

This works because whenever this interface is implemented, its valueBound()
and valueUnbound() methods are invoked whenever a session begins and
whenever it ends, respectively.  This is how many persistent shopping cart
apps work (e.g., see the JavaOne shopping cart at java.sun.com - it persists
across sessions).

Mark

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?

There you go!  That sounds good.  So I'm assuming (bare with me, I haven't
done much with session time outs) that you code some type of event procedure
which is kicked off when the session times out?  You can then do cleanup
stuff at this point?


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Capturing a /do url with querystring intact

2002-01-28 Thread Phase Communcations

Is it possible to capture a do/ style url with the QueryString intact.
Basically what I need to accomplish is to capture the full url so that when
the client enters an admin area it bookmarks where they were so that they
can return back to where they were before entering the admin area. It is a
content management app and it is possible that they will be managing content
that shows up under a url that has querystring data.

Thanks,
Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: RES: handling exceptions

2002-01-28 Thread Calvin Yu

At 11:04 AM 1/28/2002 -0500, you wrote:
Aside from functional differences, it is not practical or advisable for
everyone to adopt JDK 1.4 as soon as it hits release. For one thing, Sun
only releases the JDK for Windows and Solaris platforms. What if you are
using Linux? Or AIX? Or HP-UX? Or AS/400?

I believe that since 1.3.1, Sun has release of their latest JDK's to the 
Windows, Solaris, and *Linux* platforms simultaneously.  Just a small 
clarification.

Calvin


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




logic:iterate with Struts template

2002-01-28 Thread Brian M. Zhang

Hi,

I have a jsp page which contains the following logic:iterate:

logic:iterate id=product type=com.myCompany.myPackage.Product
name=productArrayList 
  tr
tdbean:write name=product property=name filter=true//td
tdbean:write name=product property=desc filter=true//td
  /tr
/logic:iterate

productArrayList is a session variable holding an ArrayList object for
com.myCompany.myPackage.Product classs.

This page works just fine when it is by itself.  However, when I use it as
part of another page using Struts template, the logic:iterate / doesn't
work any more.  The template setting is ok as everything works just fine
when the logic:iterate / part is removed.  Any ideas?

Thanks.

Brian

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: logic:iterate with Struts template

2002-01-28 Thread Simon Thompson

I just had this exact same problem, and it was because I forgot to put
the 
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % tag into
the template page.

Simon

-Original Message-
From: Brian M. Zhang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 29 January 2002 9:43 a.m.
To: 'Struts Users Mailing List'
Subject: logic:iterate with Struts template


Hi,

I have a jsp page which contains the following logic:iterate:

logic:iterate id=product type=com.myCompany.myPackage.Product
name=productArrayList 
  tr
tdbean:write name=product property=name
filter=true//td
tdbean:write name=product property=desc
filter=true//td
  /tr
/logic:iterate

productArrayList is a session variable holding an ArrayList object for
com.myCompany.myPackage.Product classs.

This page works just fine when it is by itself.  However, when I use it
as
part of another page using Struts template, the logic:iterate /
doesn't
work any more.  The template setting is ok as everything works just fine
when the logic:iterate / part is removed.  Any ideas?

Thanks.

Brian

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: O'Reailly Struts Book

2002-01-28 Thread Chuck Cavaness

Probably more likely to be early fall.
Chuck

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 9:48 AM
To: 'Struts Users Mailing List'
Subject: RE: O'Reailly Struts Book


Is this the same book due for release in May?

Mark

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:22 AM

Struts. This is a commerical product that I'm working on. However, I have
received permission to discuss the exception framework in the struts book
that I'm working on for OReilly right now. Search the mailing list archives
for the thread OReilly Struts Book.

Chuck


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



RE: O'Reailly Struts Book

2002-01-28 Thread Chappell, Simon P

Will you need any duffers to try out stuff from the book and
alpha/beta test it?

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 10:30 AM
To: 'Struts Users Mailing List'
Subject: RE: O'Reailly Struts Book


Probably more likely to be early fall.
Chuck

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 9:48 AM
To: 'Struts Users Mailing List'
Subject: RE: O'Reailly Struts Book


Is this the same book due for release in May?

Mark

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:22 AM

Struts. This is a commerical product that I'm working on. 
However, I have
received permission to discuss the exception framework in the 
struts book
that I'm working on for OReilly right now. Search the mailing 
list archives
for the thread OReilly Struts Book.

Chuck


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: logic:iterate with Struts template

2002-01-28 Thread Bryan Field-Elliot

Consider double-checking that productArrayList is in fact a
session-scope object (or request-scope), and not a page-scope object. If
it's page-scope, then it won't be visible to included pages.



On Mon, 2002-01-28 at 13:43, Brian M. Zhang wrote:

Hi,

I have a jsp page which contains the following logic:iterate:

logic:iterate id=product type=com.myCompany.myPackage.Product
name=productArrayList 
  tr
tdbean:write name=product property=name filter=true//td
tdbean:write name=product property=desc filter=true//td
  /tr
/logic:iterate

productArrayList is a session variable holding an ArrayList object for
com.myCompany.myPackage.Product classs.

This page works just fine when it is by itself.  However, when I use it as
part of another page using Struts template, the logic:iterate / doesn't
work any more.  The template setting is ok as everything works just fine
when the logic:iterate / part is removed.  Any ideas?

Thanks.

Brian

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]






RE: RES: handling exceptions

2002-01-28 Thread Cakalic, James

Just to clarify one step further, while Sun _does_ release JDK ports for x86
Linux, that is not the _only_ platform on which Linux runs. Linux is also
available on:

Alpha (DEC)
ARM
Hitachi SuperH
HP PA-RISC
IBM iSeries (aka AS/400)
IBM zSeries
IBM S/390
MIPS (DEC, SGI and others)
Motorola 68K (Atari, Amiga, Mac)
PowerPC (IBM pSeries, PowerMac)
Sun SPARC
Transmeta

IBM's port of Linux to its mini and mainframe lines is actually quite
promising. But Sun doesn't support it with a JDK release. IBM will no doubt
do this just as it has with it's other hardware platforms. But I doubt that
such releases will occur concurrently with Sun's JDK releases -- given the
historical track record.

Jim

 -Original Message-
 From: Calvin Yu [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 28, 2002 2:40 PM
 To: Struts Users Mailing List
 Subject: RE: RES: handling exceptions
 
 
 At 11:04 AM 1/28/2002 -0500, you wrote:
 Aside from functional differences, it is not practical or 
 advisable for
 everyone to adopt JDK 1.4 as soon as it hits release. For 
 one thing, Sun
 only releases the JDK for Windows and Solaris platforms. 
 What if you are
 using Linux? Or AIX? Or HP-UX? Or AS/400?
 
 I believe that since 1.3.1, Sun has release of their latest 
 JDK's to the 
 Windows, Solaris, and *Linux* platforms simultaneously.  Just a small 
 clarification.
 
 Calvin
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


font size=1Confidentiality Warning:  This e-mail contains information intended 
only for the use of the individual or entity named above.  If the reader of this 
e-mail is not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient, any dissemination, publication or copying of 
this e-mail is strictly prohibited. The sender does not accept any responsibility for 
any loss, disruption or damage to your data or computer system that may occur while 
using data contained in, or transmitted with, this e-mail.   If you have received this 
e-mail in error, please immediately notify us by return e-mail.  Thank you.




RE: What happens when our session expires?

2002-01-28 Thread Craig Tataryn

Brilliant!  Thanks.


From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?
Date: Mon, 28 Jan 2002 14:28:38 -0500

That's right.  Check out the javax.servlet.http.* API.  You want to 
register
the moment the user becomes unbound from a session so you can write the 
form
values to the database (these would be stored as session attributes and
updated as the user moves from field to field in the forms or from form 
page
to form page.  Any object that implements the HttpSessionBinding Listener
interface is notified when it is bound and unbound from a session.  So, for
example, create a helper class or stick a helper method in your controller
servlet to do something like:

public void valueUnbound( HttpSessionindingEvent event) {
 [plug session.getAttribute() returns into update parameters on your
Statement().update() method call through your Connection() String]
}

This works because whenever this interface is implemented, its valueBound()
and valueUnbound() methods are invoked whenever a session begins and
whenever it ends, respectively.  This is how many persistent shopping cart
apps work (e.g., see the JavaOne shopping cart at java.sun.com - it 
persists
across sessions).

Mark

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?

There you go!  That sounds good.  So I'm assuming (bare with me, I haven't
done much with session time outs) that you code some type of event 
procedure
which is kicked off when the session times out?  You can then do cleanup
stuff at this point?


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



Craig W. Tataryn
Programmer/Analyst
Compuware

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




A questions about pre-population data in a form

2002-01-28 Thread Daniel Jaffa

The problem that i am seeing is that i have a class that loads data from a 
database that creates an FormBeanObject (Depending on the type of formbean 
passed in).  The code works.  But for some reason  the formbean no longer 
fills the html:text fields on the page.  I have tried to reset it back to 
the page by using
pageContext.setAttribute(pressReleaseForm, pressReleaseForm);

But it did not work.  The reason i am doing this and not calling the action 
is that i am also using vignette and i can not call the action from the 
front end of vignette.

jsp:useBean id=pressReleaseForm scope=page 
class=com.ba.corp.forms.pressReleaseForm /


%
String id = 4;

Connection con = dbCon.getConnection(content);

if (id==null) {
System.err.println(Insert);
id = 0;
} else {
System.err.println(Update);

pressReleaseForm = (com.ba.corp.forms.pressReleaseForm) 
loadData.loadFormBean(con,com.ba.corp.forms.pressReleaseForm,Integer.parseInt(id));

System.err.println( The title is  + pressReleaseForm.getReleaseTitle());


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: XML/XSL and Transformation - My Solution

2002-01-28 Thread Jeff Pennal

Hi Matt,

I had a similar problem in that I wanted a framework that would allow me 
to write Struts Actions that pump out XML and convert them to XSL.

I looked for a while to find something that did what I wanted. Cocoon2 
was close but not quite what I was looking for.

In the end I rewrote Struts to support xml and xsl transformations, 
called struts-stxx. You can download it here,
http://www.openroad.ca/opencode/index.html

Let me know if you find it useful.

This is how it works:
- In the struts-config.xml file, you add an new tag, nested
   under the forward tag called transform will contain
   the xsl file to transform the Action classes XML against.
   (You can specify zero-many transform tags). The transform
   tags can be specific to a particular user-agent if you'd like,
   or a default one.

- In your Action class you would run your business logic
   as usual. Then once that is complete, you would create
   an XML document of the output (using JDOM) and assign
   it to the Actions new class variable Document

- The ActionServlet will take the Actions XML, check the
  browsers user-agent and determine what XSL file to
   transform against. The resulting HTML is sent back to
   the broswer.

Currently, struts-stxx does not support sending the xml back to the 
browser to do client side xsl transformation. That's one of my planned 
features that I have not got around to implementing yet.


List of changes to the struts code:
-
struts-config.xml gets:
 !--
 the transform tag defines the browser user agent to match
 against to run a particular xsl file
 --
 actionpath=/menu
type=com.oroad.mail.actions.MenuAction
scope=request
   forward name=success
 transform name=default path=/menu_default.xsl/
 transform name=Mozilla path=/menu_netscape.xsl/
 transform name=MSIE path=/menu_ie.xsl/
   /forward
 /action
-
org.apache.struts.action.Action gets:
A document (JDOM) class variable to store the XML created in an action 
class.
-
org.apache.struts.action.ActionTransform and 
org.apache.struts.action.ActionTransforms
(basically modified org.apache.struts.action.ActionForward(s) classes)
-
org.apache.struts.action.ActionServlet gets:
processActionTransform which basically handles getting the correct xsl 
file for the user agent being passed in, does the transform on the 
action.document variable and dumps the resulting html(or whatever) to 
the client.

Hope this helps,
Jeff


Matt Raible wrote:
 Thanks to everyone who has contributed to this thread.  I've been advocating
 client-side XSL to myself for a few months now, but discovered a fairly major
 roadblock this morning - client XSLT does not work on the latest version of IE
 on the Mac (5.1).  I've tested this and found supporting information at
 http://www.hut.fi/u/hsivonen/os-x-browsers.html.  Therefore, I will be doing
 server-side styling as many of you suggest.
 
 My initial go around will involve trying to use the Standard Tag library to
 wrap my XML that I emit from JSPs.  I figure it's better to use my JSPs w/ XML
 for the view so I can get labels from ApplicationResources, and use html:form
 to do the retrieval of values from my beans.  
 
 One concern I have with this type of transformation is that it's easy to pick
 the stylesheet with clien-side styling.  For instance, with client-side
 styling, you can do:
 
 ?xml-stylesheet href=default.xsl type=text/xsl?
 ?xml-stylesheet href=wap.xsl type=text/xsl media=wap?
 
 And I don't think this is possible with the current JSTL.  Maybe so, I'll have
 to check.
 
 Any further comments are appreciated.
 
 Thanks,
 
 Matt
 
 

-- 
Jeff Pennal p:604-694-0554(x107)
Software Developer  f:604-694-0558
Openroad Communications e:[EMAIL PROTECTED]
Vancouver, BC


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: archive of this list

2002-01-28 Thread Robert Taylor

Sorry Bill, I don't know. 


 -Original Message-
 From: Bill Page [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 28, 2002 11:55 AM
 To: Struts Users Mailing List
 Subject: RE: archive of this list
 
 
 that seems to only have messages back to Jan 15.  Is there a full archive
 anywhere?
 
 -Original Message-
 From: Robert Taylor [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 26, 2002 5:08 AM
 To: Struts Users Mailing List
 Subject: RE: archive of this list
 
 
 http://www.mail-archive.com/struts-user%40jakarta.apache.org/
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: archive of this list

2002-01-28 Thread Antony Stace

try

http://marc.theaimsgroup.com/?l=struts-userr=1w=2


On Mon, 28 Jan 2002 18:17:26 -0500
Robert Taylor [EMAIL PROTECTED] wrote:

 Sorry Bill, I don't know. 
 
 
  -Original Message-
  From: Bill Page [mailto:[EMAIL PROTECTED]]
  Sent: Monday, January 28, 2002 11:55 AM
  To: Struts Users Mailing List
  Subject: RE: archive of this list
  
  
  that seems to only have messages back to Jan 15.  Is there a full archive
  anywhere?
  
  -Original Message-
  From: Robert Taylor [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, January 26, 2002 5:08 AM
  To: Struts Users Mailing List
  Subject: RE: archive of this list
  
  
  http://www.mail-archive.com/struts-user%40jakarta.apache.org/
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


-- 


Cheers

Tony
-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Can't find bundle for base name forms, locale en_US ,

2002-01-28 Thread kuma.cra

Hi , Nevermind i sorted it out myself. Thanx if you were looking into it .
Back to work as i have a demo tomorrow showing off my advance form processing using 
jsp. cheers Govind Seshadri (JavaWorld ) excellant summary .

Chuck Amadi
IT.Systems Programmer

Chuck Amadi wrote:

 Hi There,

 error message - Can't find bundle for base name forms, locale en_US ,

 OS Win 98
 Tomcat 3.2.2 (Can't get TCAT 4.0.1 to function properly)
 Ide Netbeans 3.2
 Struts-Framework

 Im having a bit of trouble with this.I have a jsp serving as a controller ,i have 
instantiated my FormBean,Created a formPropertis file that resides with my other
 beans ie Web-Inf  classes  form.properties. whereby i believe it is located 
anyware in my classpath that is visible to the jsp container.

 Where is this ResourceBundle facility so my page can access the values for the 
resources by name.

 Sorry if this is the wrong group!!
 Cheers Chuck Amadi

 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: HTML table tag library

2002-01-28 Thread Jon Ferguson

Hey Adrian,

Take a look at Ed Hill's cool table taglib:
 http://edhill.its.uiowa.edu/display-examples/

Cheers,
Jon

Adrian Theuma wrote:

 Hello,
 we are thinking of developing a tag that will dispay the objects
 of an ArrayList in a tabular form. This should be very common in web
 applications so I was thinking whether there is something already
 implemented.

 Thanks.

 rgds,
 Adrian

 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Navigation: To popup and back

2002-01-28 Thread Jeff Oberlander



Hi all.  Here's what I want to do:
From a current active session:

Popup a new browser window that contains an ActionForm, and keeps the
current session.
Submit the form to the Action servlet.
Close the popup window.
Return to the main browser and original window.

I have a javascript that pops up the window that contains my jsp with the
ActionForm, no problem.  But thats where I get stuck.  How do I close the
window upon submitting the form and return to the original browser *after*
the Action has completed?

Any help is appreciated.

Thanks - Jeff


http://www.xns.org/=jeffo

This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Navigation: To popup and back

2002-01-28 Thread ltorrence

have the action forward to a page that loads a document containing a
javascript handler in the body tag:

body onload=self.close()

As long as you opened the popup from another page via javascript, you won't
get any nasty messages about closing the window.

Lee

-Original Message-
From: Jeff Oberlander [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:07 PM
To: Struts Users Mailing List (E-mail)
Subject: Navigation: To popup and back




Hi all.  Here's what I want to do:
From a current active session:

Popup a new browser window that contains an ActionForm, and keeps the
current session.
Submit the form to the Action servlet.
Close the popup window.
Return to the main browser and original window.

I have a javascript that pops up the window that contains my jsp with the
ActionForm, no problem.  But thats where I get stuck.  How do I close the
window upon submitting the form and return to the original browser *after*
the Action has completed?

Any help is appreciated.

Thanks - Jeff


http://www.xns.org/=jeffo

This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. 

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



RE: Navigation: To popup and back

2002-01-28 Thread matthewr

Cant you also do a timeout() method call? Not my forte, but do recall
something about this...


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 29 January 2002 12:24
To: [EMAIL PROTECTED]
Subject: RE: Navigation: To popup and back


have the action forward to a page that loads a document containing a
javascript handler in the body tag:

body onload=self.close()

As long as you opened the popup from another page via javascript, you
won't
get any nasty messages about closing the window.

Lee

-Original Message-
From: Jeff Oberlander [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:07 PM
To: Struts Users Mailing List (E-mail)
Subject: Navigation: To popup and back




Hi all.  Here's what I want to do:
From a current active session:

Popup a new browser window that contains an ActionForm, and keeps the
current session.
Submit the form to the Action servlet.
Close the popup window.
Return to the main browser and original window.

I have a javascript that pops up the window that contains my jsp with
the
ActionForm, no problem.  But thats where I get stuck.  How do I close
the
window upon submitting the form and return to the original browser
*after*
the Action has completed?

Any help is appreciated.

Thanks - Jeff


http://www.xns.org/=jeffo

This email message is for the sole use of the intended recipient(s) and
may
contain confidential and privileged information. Any unauthorized
review,
use, disclosure or distribution is prohibited. If you are not the
intended
recipient, please contact the sender by reply email and destroy all
copies
of the original message. 

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Navigation: To popup and back

2002-01-28 Thread Mark Galbreath

There are several shareware apps that will prevent popups.  They are the
most annoying beasts!

Mark

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 28, 2002 8:18 PM
Subject: RE: Navigation: To popup and back


Cant you also do a timeout() method call? Not my forte, but do recall
something about this...


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 29 January 2002 12:24
To: [EMAIL PROTECTED]
Subject: RE: Navigation: To popup and back


have the action forward to a page that loads a document containing a
javascript handler in the body tag:

body onload=self.close()

As long as you opened the popup from another page via javascript, you
won't
get any nasty messages about closing the window.

Lee

-Original Message-
From: Jeff Oberlander [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:07 PM
To: Struts Users Mailing List (E-mail)
Subject: Navigation: To popup and back




Hi all.  Here's what I want to do:
From a current active session:

Popup a new browser window that contains an ActionForm, and keeps the
current session.
Submit the form to the Action servlet.
Close the popup window.
Return to the main browser and original window.

I have a javascript that pops up the window that contains my jsp with
the
ActionForm, no problem.  But thats where I get stuck.  How do I close
the
window upon submitting the form and return to the original browser
*after*
the Action has completed?

Any help is appreciated.

Thanks - Jeff


http://www.xns.org/=jeffo

This email message is for the sole use of the intended recipient(s) and
may
contain confidential and privileged information. Any unauthorized
review,
use, disclosure or distribution is prohibited. If you are not the
intended
recipient, please contact the sender by reply email and destroy all
copies
of the original message.

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




pre-selecting multiple selects

2002-01-28 Thread Paul Sijpkes

Hi all,

I've written an input form that uses a multiple html:select.
The user selects the options they want and these options are 
subsequently inserted into the database.

The problem is, that due to an apparent limitation of the html:select 
value property, if I want to use it to update the database,
that is, I want the user to both be able to de-select existing 
selections as well as select new ones, I don't seem to be able to.

This is due to the fact that the value field can only take a single
value!  That is, I can set the value to -1, so that each pre-selected
field is set to -1, but if these are re-selected I have no way of
telling which record was re-selected!  And if it was de-selected I can't
tell which record I should delete!  

I want to be able to pass a Collection object bean to the value field instead,
so that all values in the Collection object are pre-selected so that these
values are also meaningful when passed back to my Action (or not).

I would love some feedback from anyone that may have a work-around for this,
if not it is a serious limitation of the html:select tag.

regards,

Paul
 


RE: Navigation: To popup and back

2002-01-28 Thread Paul Sijpkes

at least *try* and stick to the topic

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 29 January 2002 12:29 PM
To: Struts Users Mailing List
Subject: Re: Navigation: To popup and back


There are several shareware apps that will prevent popups.  They are the
most annoying beasts!

Mark

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 28, 2002 8:18 PM
Subject: RE: Navigation: To popup and back


Cant you also do a timeout() method call? Not my forte, but do recall
something about this...


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 29 January 2002 12:24
To: [EMAIL PROTECTED]
Subject: RE: Navigation: To popup and back


have the action forward to a page that loads a document containing a
javascript handler in the body tag:

body onload=self.close()

As long as you opened the popup from another page via javascript, you
won't
get any nasty messages about closing the window.

Lee

-Original Message-
From: Jeff Oberlander [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:07 PM
To: Struts Users Mailing List (E-mail)
Subject: Navigation: To popup and back




Hi all.  Here's what I want to do:
From a current active session:

Popup a new browser window that contains an ActionForm, and keeps the
current session.
Submit the form to the Action servlet.
Close the popup window.
Return to the main browser and original window.

I have a javascript that pops up the window that contains my jsp with
the
ActionForm, no problem.  But thats where I get stuck.  How do I close
the
window upon submitting the form and return to the original browser
*after*
the Action has completed?

Any help is appreciated.

Thanks - Jeff


http://www.xns.org/=jeffo

This email message is for the sole use of the intended recipient(s) and
may
contain confidential and privileged information. Any unauthorized
review,
use, disclosure or distribution is prohibited. If you are not the
intended
recipient, please contact the sender by reply email and destroy all
copies
of the original message.

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Navigation: To popup and back

2002-01-28 Thread Barr, Scott [IBM GSA]


I agree popups can be annoying when used to catch your attention for
advertising and such, but assuming we are speaking as legitimate (_not_
intended to upset anyone!) web app developers, they can be very useful
tools.

Scott Barr

 -Original Message-
 From: Mark Galbreath [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, January 29, 2002 11:59 AM
 To:   Struts Users Mailing List
 Subject:  Re: Navigation: To popup and back
 
 There are several shareware apps that will prevent popups.  They are the
 most annoying beasts!
 
 Mark
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 28, 2002 8:18 PM
 Subject: RE: Navigation: To popup and back
 
 
 Cant you also do a timeout() method call? Not my forte, but do recall
 something about this...
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 29 January 2002 12:24
 To: [EMAIL PROTECTED]
 Subject: RE: Navigation: To popup and back
 
 
 have the action forward to a page that loads a document containing a
 javascript handler in the body tag:
 
 body onload=self.close()
 
 As long as you opened the popup from another page via javascript, you
 won't
 get any nasty messages about closing the window.
 
 Lee
 
 -Original Message-
 From: Jeff Oberlander [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 28, 2002 8:07 PM
 To: Struts Users Mailing List (E-mail)
 Subject: Navigation: To popup and back
 
 
 
 
 Hi all.  Here's what I want to do:
 From a current active session:
 
 Popup a new browser window that contains an ActionForm, and keeps the
 current session.
 Submit the form to the Action servlet.
 Close the popup window.
 Return to the main browser and original window.
 
 I have a javascript that pops up the window that contains my jsp with
 the
 ActionForm, no problem.  But thats where I get stuck.  How do I close
 the
 window upon submitting the form and return to the original browser
 *after*
 the Action has completed?
 
 Any help is appreciated.
 
 Thanks - Jeff
 
 
 http://www.xns.org/=jeffo
 
 This email message is for the sole use of the intended recipient(s) and
 may
 contain confidential and privileged information. Any unauthorized
 review,
 use, disclosure or distribution is prohibited. If you are not the
 intended
 recipient, please contact the sender by reply email and destroy all
 copies
 of the original message.
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




  1   2   >