Re: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta Reference Implementation

2004-01-06 Thread Jan Dirksen
Hi Craig,

i just want to try the struts-faces examples.
but i got compilation-error. is there something i
need...?
jwsdp-1.3 is on my box.

thanks

 --- Craig R. McClanahan [EMAIL PROTECTED]
schrieb:  
 
 I'm pleased to announce that the Proposed Final
 Draft version of the JavaServer
 Faces 1.0 Specification, and a corresponding Beta
 release of the Reference
 Implementation, is now available at:
 
  

http://java.sun.com/j2ee/javaserverfaces/download.html
 
 Please send any feedback and comments strictly about
 JavaServer Faces to
 [EMAIL PROTECTED].
 
 I'm also finishing up an update to the Struts-Faces
 Integration Library, and
 will be making it available (via nightly builds)
 very soon.  Feel free to ask
 any questions about how to use Struts and JavaServer
 Faces here on the
 STRUTS-USER list.
 
 Craig McClanahan
 
 

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

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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



RE: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta Reference Implementation

2004-01-06 Thread Matthias Wessendorf
hi jan,

perhaps you must change the sturcuture of build.xml

in my case:
i copied jsf-1.0 beta in to $jwsdp.home
and copied some specified lib into $jwsdp.home too.

e.g. jsp-api, servlet-api 

of course i copied jsf-libs and jstl-libs to WEB-INF/lib of example2
now tomcat started them up...

and perhaps you must change your user-name/password for tomcat! :-)

try this... 

greetings
matthias



-Original Message-
From: Jan Dirksen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 10:02 AM
To: Struts Users Mailing List
Subject: Re: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta
Reference Implementation


Hi Craig,

i just want to try the struts-faces examples.
but i got compilation-error. is there something i
need...?
jwsdp-1.3 is on my box.

thanks

 --- Craig R. McClanahan [EMAIL PROTECTED]
schrieb:  
 
 I'm pleased to announce that the Proposed Final
 Draft version of the JavaServer
 Faces 1.0 Specification, and a corresponding Beta
 release of the Reference
 Implementation, is now available at:
 
  

http://java.sun.com/j2ee/javaserverfaces/download.html
 
 Please send any feedback and comments strictly about JavaServer Faces 
 to [EMAIL PROTECTED].
 
 I'm also finishing up an update to the Struts-Faces Integration 
 Library, and will be making it available (via nightly builds)
 very soon.  Feel free to ask
 any questions about how to use Struts and JavaServer
 Faces here on the
 STRUTS-USER list.
 
 Craig McClanahan
 
 

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

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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


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



RE: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta Reference Implementation

2004-01-06 Thread Jan Dirksen
oh good morning...
thank you! :-)

okay i can deploy it via tomcat-manager

but when i start the jsf-cardemo
i got this error:

org.apache.jasper.JasperException: This absolute uri
(http://java.sun.com/jstl/core) cannot be resolved in
either web.xml or the jar files deployed with this
application

very strange.
the struts-jsf works, but not core jsf...

do anyone know?
i am using tomcat version 4.1.27
or must i use tc 5.X for JSF?




 --- Matthias Wessendorf
[EMAIL PROTECTED] schrieb:  hi jan,
 
 perhaps you must change the sturcuture of build.xml
 
 in my case:
 i copied jsf-1.0 beta in to $jwsdp.home
 and copied some specified lib into $jwsdp.home too.
 
 e.g. jsp-api, servlet-api 
 
 of course i copied jsf-libs and jstl-libs to
 WEB-INF/lib of example2
 now tomcat started them up...
 
 and perhaps you must change your user-name/password
 for tomcat! :-)
 
 try this... 
 
 greetings
 matthias
 
 
 
 -Original Message-
 From: Jan Dirksen [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 06, 2004 10:02 AM
 To: Struts Users Mailing List
 Subject: Re: JavaServer Faces 1.0 -- Proposed Final
 Draft Spec and Beta
 Reference Implementation
 
 
 Hi Craig,
 
 i just want to try the struts-faces examples.
 but i got compilation-error. is there something i
 need...?
 jwsdp-1.3 is on my box.
 
 thanks
 
  --- Craig R. McClanahan [EMAIL PROTECTED]
 schrieb:  
  
  I'm pleased to announce that the Proposed Final
  Draft version of the JavaServer
  Faces 1.0 Specification, and a corresponding Beta
  release of the Reference
  Implementation, is now available at:
  
   
 

http://java.sun.com/j2ee/javaserverfaces/download.html
  
  Please send any feedback and comments strictly
 about JavaServer Faces 
  to [EMAIL PROTECTED].
  
  I'm also finishing up an update to the
 Struts-Faces Integration 
  Library, and will be making it available (via
 nightly builds)
  very soon.  Feel free to ask
  any questions about how to use Struts and
 JavaServer
  Faces here on the
  STRUTS-USER list.
  
  Craig McClanahan
  
  
 

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

__
 
 Gesendet von Yahoo! Mail - http://mail.yahoo.de
 Logos und Klingeltöne fürs Handy bei
 http://sms.yahoo.de
 

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

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

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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



Implementing collection of HTML controls

2004-01-06 Thread Anindito De
Hi,

I have a collection (of type java.util.List) which I am passing to the jsp page as a 
bean. Each element of this collection represents an HTML control (radio/select etc.) 
that I need to show on the page. One of the attributes for these elements is the 
control name. I am using logic:iterate tag to iterate through the collection. 

Q is how can I assign the name to a control ? I know it is possible to assign a 
different name to each control using the indexed attribute. However this does not work 
as I have logic:iterate loop inside in the outer logic:iterate loop to implement the 
radio button options. [For each radio button element I have to again iterate through a 
collection of possible options for that radio button.]

Thanks in advance
Anindito

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



RE: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta Reference Implementation

2004-01-06 Thread Matthias Wessendorf
Hi again...

look at this:
http://java.sun.com/j2ee/javaserverfaces/docs/Deployment_Guide.html

there is a guide where you found infos on j2ee1.3-compilant
containers...

you have change some libs for the laglibs:
you can got them on jakarta taglibs:
http://jakarta.apache.org/taglibs/doc/standard-1.0-doc/intro.html

you need verison 1.0 of taglibs...


now it should work :-)

regards,

matthias

-Original Message-
From: Jan Dirksen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 10:33 AM
To: Struts Users Mailing List
Subject: RE: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta
Reference Implementation


oh good morning...
thank you! :-)

okay i can deploy it via tomcat-manager

but when i start the jsf-cardemo
i got this error:

org.apache.jasper.JasperException: This absolute uri
(http://java.sun.com/jstl/core) cannot be resolved in
either web.xml or the jar files deployed with this
application

very strange.
the struts-jsf works, but not core jsf...

do anyone know?
i am using tomcat version 4.1.27
or must i use tc 5.X for JSF?




 --- Matthias Wessendorf
[EMAIL PROTECTED] schrieb:  hi jan,
 
 perhaps you must change the sturcuture of build.xml
 
 in my case:
 i copied jsf-1.0 beta in to $jwsdp.home
 and copied some specified lib into $jwsdp.home too.
 
 e.g. jsp-api, servlet-api
 
 of course i copied jsf-libs and jstl-libs to
 WEB-INF/lib of example2
 now tomcat started them up...
 
 and perhaps you must change your user-name/password
 for tomcat! :-)
 
 try this...
 
 greetings
 matthias
 
 
 
 -Original Message-
 From: Jan Dirksen [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 06, 2004 10:02 AM
 To: Struts Users Mailing List
 Subject: Re: JavaServer Faces 1.0 -- Proposed Final
 Draft Spec and Beta
 Reference Implementation
 
 
 Hi Craig,
 
 i just want to try the struts-faces examples.
 but i got compilation-error. is there something i
 need...?
 jwsdp-1.3 is on my box.
 
 thanks
 
  --- Craig R. McClanahan [EMAIL PROTECTED]
 schrieb: 
  
  I'm pleased to announce that the Proposed Final
  Draft version of the JavaServer
  Faces 1.0 Specification, and a corresponding Beta
  release of the Reference
  Implementation, is now available at:
  
   
 

http://java.sun.com/j2ee/javaserverfaces/download.html
  
  Please send any feedback and comments strictly
 about JavaServer Faces
  to [EMAIL PROTECTED].
  
  I'm also finishing up an update to the
 Struts-Faces Integration
  Library, and will be making it available (via
 nightly builds)
  very soon.  Feel free to ask
  any questions about how to use Struts and
 JavaServer
  Faces here on the
  STRUTS-USER list.
  
  Craig McClanahan
  
  
 

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

__
 
 Gesendet von Yahoo! Mail - http://mail.yahoo.de
 Logos und Klingeltöne fürs Handy bei
 http://sms.yahoo.de
 

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

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

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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


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



RE: split table

2004-01-06 Thread Robert Taylor
The displaytag library will do what you want:

http://sourceforge.net/projects/displaytag/

robert

 -Original Message-
 From: Hari_s [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 06, 2004 12:50 AM
 To: Struts Users Mailing List
 Subject: Re: split table


 thank for your response derek...
 I mean it's split table into separate page,
  i have 100 data and i want display 10 data every pages...
 - Original Message -
 From: Derek Clarkson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, January 06, 2004 8:27 AM
 Subject: Re: split table


  On Tuesday 06 January 2004 12:21, Hari_s wrote:
   is it posible to split table with struts or jstl ?
 
  What do you mean by split table - two tables separated at some abitory
 point
  in the data ?
 
 
  --
  Regards,
  Derek Clarkson
 
  .O. Analyst/Programmer
  ..O Waterwerks Pty Ltd
  OOO Melbourne, Australia
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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



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



error

2004-01-06 Thread Nasrin Hafezparast
Hi,

 

I have an error occurring when I try and compile some java files in struts.

 

Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;

 

Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;

 

There are many more similar errors.

 

I have included the struts.jar file from the Jakarta-struts/lib folder in
the classpath.

I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application

I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile

 

This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?

 

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


RE: error

2004-01-06 Thread Matthias Wessendorf
hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse

it is deliverd with tomcat 
in $TOMCAT/common/lib (in case of using tomcat)

or
in j2ee.jar (in $J2EE_HOME/lib) 

add this to your classpath
and of course your struts-jarS!

do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error


Hi,

 

I have an error occurring when I try and compile some java files in
struts.

 

Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;

 

Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;

 

There are many more similar errors.

 

I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.

I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application

I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile

 

This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?

 

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


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



RE: error

2004-01-06 Thread Nasrin Hafezparast
Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm using
tomcat).

What did you mean by struts-jarS ? I added all the .jar files from struts to
my lib folder of my application. But no change in the errors.

I dont know what an IDE is - I'm quite new to struts and programming. I am
just using a command prompt to compile - which is what was written in the
book I am following to learn.


-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: 06 January 2004 12:13
To: 'Struts Users Mailing List'
Subject: RE: error

hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse

it is deliverd with tomcat 
in $TOMCAT/common/lib (in case of using tomcat)

or
in j2ee.jar (in $J2EE_HOME/lib) 

add this to your classpath
and of course your struts-jarS!

do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error


Hi,

 

I have an error occurring when I try and compile some java files in
struts.

 

Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;

 

Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;

 

There are many more similar errors.

 

I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.

I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application

I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile

 

This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?

 

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


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



RE: error

2004-01-06 Thread Andrew Hill
snip
I dont know what an IDE is - I'm quite new to struts and programming. I am
just using a command prompt to compile - which is what was written in the
book I am following to learn.
/snip

Me thinks you may be starting a little at the deep end in that case. You
would probably do better to get comfortable writing simple applications in
java before you get into the more complex stuff (such as servlets and
frameworks etc...).

An IDE is an integrated development environment. A very good ( free) one
is Eclipse.
(www.eclipse.org)
If your just starting out with Java then its good to learn to code without
an IDE first to get a feel for whats going on and how all the classpath
stuff works (as your discovering, it can be quite troublesome at times!!!),
but once your past the learning stage and writing real programs you will
find an IDE very helpful and a big time saver.

Which book are you reading?

-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 January 2004 20:29
To: 'Struts Users Mailing List'
Subject: RE: error


Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm using
tomcat).

What did you mean by struts-jarS ? I added all the .jar files from struts to
my lib folder of my application. But no change in the errors.

I dont know what an IDE is - I'm quite new to struts and programming. I am
just using a command prompt to compile - which is what was written in the
book I am following to learn.


-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: 06 January 2004 12:13
To: 'Struts Users Mailing List'
Subject: RE: error

hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse

it is deliverd with tomcat
in $TOMCAT/common/lib (in case of using tomcat)

or
in j2ee.jar (in $J2EE_HOME/lib)

add this to your classpath
and of course your struts-jarS!

do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error


Hi,



I have an error occurring when I try and compile some java files in
struts.



Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;



Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;



There are many more similar errors.



I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.

I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application

I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile



This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?



Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003



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



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



Re: error

2004-01-06 Thread Mark Lowe
Good man I hate IDE's (well xcode is okay but its not really an ide in 
same way as all that eclipse nonsense)..

Something you will need is ant or even make to build your project. I 
get the impression that you're compiling using javac and adding the 
classes to your class path.

If you look through the tomcat docs there's an example project using 
ant.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

This will take a few hours and you'll need to install ant, feel free to 
post me off the list if you want a hand with this as its not really a 
struts question

Cheers Mark

On 6 Jan 2004, at 13:28, Nasrin Hafezparast wrote:

Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm 
using
tomcat).

What did you mean by struts-jarS ? I added all the .jar files from 
struts to
my lib folder of my application. But no change in the errors.

I dont know what an IDE is - I'm quite new to struts and programming. 
I am
just using a command prompt to compile - which is what was written in 
the
book I am following to learn.

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: 06 January 2004 12:13
To: 'Struts Users Mailing List'
Subject: RE: error
hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse
it is deliverd with tomcat
in $TOMCAT/common/lib (in case of using tomcat)
or
in j2ee.jar (in $J2EE_HOME/lib)
add this to your classpath
and of course your struts-jarS!
do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error
Hi,



I have an error occurring when I try and compile some java files in
struts.


Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;



Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;



There are many more similar errors.



I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.
I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application
I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile



This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?


Thanks

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


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


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


RE: error

2004-01-06 Thread Matthias Wessendorf
hi,

IDE means integrated development environment
like eclipse.

jarS == all jar-files (you had done)

is . in classpath ???

mine comand-prompt works
%CLASSPATH% said:
.;C:\libs\struts\struts.jar;C:\libs\struts\commons-beanutils.jar ... and
so on

please check your classpath:
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
:-)



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 1:29 PM
To: 'Struts Users Mailing List'
Subject: RE: error


Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm
using tomcat).

What did you mean by struts-jarS ? I added all the .jar files from
struts to my lib folder of my application. But no change in the errors.

I don’t know what an IDE is - I'm quite new to struts and programming. I
am just using a command prompt to compile - which is what was written in
the book I am following to learn.


-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: 06 January 2004 12:13
To: 'Struts Users Mailing List'
Subject: RE: error

hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse

it is deliverd with tomcat 
in $TOMCAT/common/lib (in case of using tomcat)

or
in j2ee.jar (in $J2EE_HOME/lib) 

add this to your classpath
and of course your struts-jarS!

do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error


Hi,

 

I have an error occurring when I try and compile some java files in
struts.

 

Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;

 

Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;

 

There are many more similar errors.

 

I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.

I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application

I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile

 

This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?

 

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


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


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



[OT] WSAD Struts

2004-01-06 Thread Rouven Gehm
Just want to know if someone knows how to customize the templates for Actions and 
ActionForms, which are created by WSAD, when i
add a new action in the struts-config.xml.
As i now use Struts 1.2 Nightly Build, i get these annoying deprecated warnings
for e.g. ActionErrors, ActionError ...
I assume its somewhere in the plugins, but i haven't found it yet, and i don't have 
any knowledge on changing a plugin.

Thanx

Rouven


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



NullPointerException at ActionServlet.java:1003 using JRun4; work OK under Tomcat/JWSDP1.2

2004-01-06 Thread Tim Lucia
All,

I have a struts application using modules which deploys fine under
JWSDP1.2/Tomcat (5, I think), but when I deploy it under (trial edition
of) JRun4, I get 

java.lang.NullPointerException
at
org.apache.struts.action.ACtionServlet.parseModuleConfigFile(ActionServl
et.java:1003)
.
.
.

Peeking at the source, it looks like it's trying to read a config file,
presumably for my module.

Anyone seen this before?  How did you overcome this problem?

Thanks,
Tim


private void parseModuleConfigFile(
String prefix,
String paths,
ModuleConfig config,
Digester digester,
String path)
throws UnavailableException {

InputStream input = null;
try {
URL url = getServletContext().getResource(path);
InputSource is = new InputSource(url.toExternalForm()); //
## 1003 ###
input = getServletContext().getResourceAsStream(path);
is.setByteStream(input);
digester.parse(is);
getServletContext().setAttribute(Globals.MODULE_KEY +
prefix, config);

} catch (MalformedURLException e) {
handleConfigException(paths, e);
} catch (IOException e) {
handleConfigException(paths, e);
} catch (SAXException e) {
handleConfigException(paths, e);
} finally {
if (input != null) {
try {
input.close();
} catch (IOException e) {
throw new UnavailableException(e.getMessage());
}
}
}
}



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



Calendar control in Struts???

2004-01-06 Thread Vimaljebaraj Gnanarajnelson , Tidel Park - Chennai
Hi,

I am looking for calendar control in struts, though there are few of those
in js, i am trying for a page without any javascripts, so if anyone knows
how a calendar control can be implemented using struts(/any taglibs
available) without calling any javascripts let me know it.

Thnx,
vimal


RE: Calendar control in Struts???

2004-01-06 Thread Andrew Hill
Without javascript your choices are quite limited.

Your best bet is to just have a text entry box and a visible hint to the
user of the appropriate format to enter the date and reject invalid input.
(In fact if your UI has a lot of data entry to do this is the friendliest
choice for 'power' users...)

Another potential choice is to have 3 select fields for day month and year.
(You will of course need to validate that they dont choose things like 31
Feb etc...).

Not much you can do beyond that without using javascript though.

The lack of proper Numeric and Date fields is very much a glaring ommission
in html. (Esp numeric fields!). Fingers crossed that xforms will catch on!
sigh/


-Original Message-
From: Vimaljebaraj Gnanarajnelson , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 January 2004 23:00
To: Struts Users Mailing List
Subject: Calendar control in Struts???


Hi,

I am looking for calendar control in struts, though there are few of those
in js, i am trying for a page without any javascripts, so if anyone knows
how a calendar control can be implemented using struts(/any taglibs
available) without calling any javascripts let me know it.

Thnx,
vimal


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



RE: Warning: Page has Expired

2004-01-06 Thread Mike Jasnowski
Well, presumably your providing some navigation for the user to move forward
in the application, why not provide a suitable link (rather than relying on
the back button) to do this?

-Original Message-
From: Manjunath Bhat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 1:35 AM
To: Struts Users Mailing List
Subject: RE: Warning: Page has Expired


Thanks for the reply. I tried this but no luck.

Actually my web form contains some form fields plus a file upload
element. Some thing similar to online resume submission. So I have to
POST method inorder to achieve the result.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 5:49 PM
To: Struts Users Mailing List
Subject: Re: Warning: Page has Expired

Did you try to turn off expire? e.g.

%
response.setDateHeader (Expires, 0);
response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-store);
response.setDateHeader(max-age, 0);
response.setDateHeader(Expires, 0);
%

Regards,
Martin

- Original Message -
From: Manjunath Bhat [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, January 05, 2004 6:55 AM
Subject: Warning: Page has Expired


Hi

I have a page which calls an action. Depending on certain condition I
will forward it to suitable pages. After this steps if user clicks the
Browser's back button, it gives typical browser error Warning: Page has
Expired  (I am using IE). This happens especially after the validation
failure. How to overcome this problem?
I don't want to use GET method in html:form/

Thanks in advance

M Bhat


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



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



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



Re: [OT] WSAD Struts (Slight off topic)

2004-01-06 Thread Martin Gainty
Rouven:
I am looking for guidance on installing Websphere on a host supporting
Tomcat 4.x/5.x or installing Tomcat on host supporting Websphere
JAVA_HOME which is set to IBM JDK (1.31) for Websphere AppServer but any
version Tomcat does not install/start/display index.jsp properly with
installed IBM JDK
JAVA_HOME set to SUN_JDK (1.3x.1.4x) for Tomcat but Websphere does not
install/start with SUN_JDK
Are you able to install/run Tomcat AND Websphere environments successfully?
Which JDK works with both environments?
(Would appreciate discussing offline)
-Martin
- Original Message -
From: Rouven Gehm [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 9:32 AM
Subject: [OT] WSAD  Struts


 Just want to know if someone knows how to customize the templates for
Actions and ActionForms, which are created by WSAD, when i
 add a new action in the struts-config.xml.
 As i now use Struts 1.2 Nightly Build, i get these annoying deprecated
warnings
 for e.g. ActionErrors, ActionError ...
 I assume its somewhere in the plugins, but i haven't found it yet, and i
don't have any knowledge on changing a plugin.

 Thanx

 Rouven


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



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



RE: Warning: Page has Expired

2004-01-06 Thread Björn Ingimundarson
Only providing your own navigation links should not be considered enough. 
Many users like to use the back and forward buttons of their browsers and 
will become very frustrated when they see this Warning: page has expired 
message.

You can configure your controller and set the nocache attribute of the 
controller tag in the struts-config.xml file to false... 
.. something like

controller nocache=false /

Hope this helps... it did for me.

Regards
Bjossi






Mike Jasnowski [EMAIL PROTECTED] 
06.01.2004 15:14

Please respond to
Struts Users Mailing List [EMAIL PROTECTED]


To
Struts Users Mailing List [EMAIL PROTECTED]
cc

Subject
RE: Warning: Page has Expired








Well, presumably your providing some navigation for the user to move 
forward
in the application, why not provide a suitable link (rather than relying 
on
the back button) to do this?

-Original Message-
From: Manjunath Bhat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 1:35 AM
To: Struts Users Mailing List
Subject: RE: Warning: Page has Expired


Thanks for the reply. I tried this but no luck.

Actually my web form contains some form fields plus a file upload
element. Some thing similar to online resume submission. So I have to
POST method inorder to achieve the result.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 5:49 PM
To: Struts Users Mailing List
Subject: Re: Warning: Page has Expired

Did you try to turn off expire? e.g.

%
response.setDateHeader (Expires, 0);
response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-store);
response.setDateHeader(max-age, 0);
response.setDateHeader(Expires, 0);
%

Regards,
Martin

- Original Message -
From: Manjunath Bhat [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, January 05, 2004 6:55 AM
Subject: Warning: Page has Expired


Hi

I have a page which calls an action. Depending on certain condition I
will forward it to suitable pages. After this steps if user clicks the
Browser's back button, it gives typical browser error Warning: Page has
Expired  (I am using IE). This happens especially after the validation
failure. How to overcome this problem?
I don't want to use GET method in html:form/

Thanks in advance

M Bhat


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



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



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


ForwardSourceID:NT553E 


Re: struts help using logic:iterate

2004-01-06 Thread ngonqua
Hien,
Thank you for replying to my message.  I will try this way.  Since I'm new
on Struts, I thought there would be some other tag other than logic:iterate
tag to do the trick. Btw, I'm running weblogic 7.0 sp4.  Do you know if it
supports JSTL?



 If you make your Item class returns an Error object, you can avoid the
 errorCodeList, something like this:

 public class Item {

 private int id=0;
 private MyError error;

 /**
 * @return Returns the error.
 */
 public MyError getError() {
 return error;
 }

 /**
 * @param error The error to set.
 */
 public void setError(MyError error) {
 this.error = error;
 }

 /**
 * @return Returns the id.
 */
 public int getId() {
 return id;
 }

 /**
 * @param id The id to set.
 */
 public void setId(int id) {
 this.id = id;
 }

 /**
 * @param id
 */
 public Item(int id) {
 super();
 this.id = id;
 }
 }


 assume that you have MyError class defined as a JavaBean with two
 properties errorCode (int) and errorString (String).

 in your jsp:
 %

 java.util.Collection itemList = new java.util.ArrayList();

 hqn.Item item1 = new hqn.Item(1);
 item1.setError( new hqn.MyError(1, Error Description 1) );

 itemList.add( item1 );

 hqn.Item item2 = new hqn.Item(2);
 item2.setError( new hqn.MyError(2, Error Description 2) );

 request.setAttribute(itemList, itemList );

 %

 Using JSTL forEach tag:

 c:forEach items=${itemList} var=item
  Item ID= c:out value=${item.id}/BR
  Error Code: c:out value=${item.error.errorCode}/BR
  Error Desc: c:out value=${item.error.errorString}/BR
 /c:forEach

 Using logic:iterate tag:

 logic:iterate id=item name=itemList
 Item Id= bean:write name=item property=id/BR
 bean:define id=error name=item  property=error/
 Error Code: bean:write name=error property=errorCode/BR
 Error Desc: bean:write name=error property=errorString/BR
 /logic:iterate

 I'd recommend you to use JSTL.

 --hqn

 On Jan 5, 2004, at 4:39 PM, ngonqua wrote:

  I'm very new to struts so please be kindly.
  I have two Arraylist call itemList and errorCodeList.  The itemList
  contains list of Item object.  The item object has a property calls
  errorCode which returns an error code in int (1-50).  I want to
  display the error description associates to that error code.  How can
  I pass in the error code to the errorCodeList the get the error
  description.
 
  Item  Error Description
  -
  item1description1
  item2description2
  item3description1
  ..
  ..



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



RE: Calendar control in Struts???

2004-01-06 Thread Vimaljebaraj Gnanarajnelson , Tidel Park - Chennai
-yes, it is . rite now I am using js. My friend is byte struts freek and he
bet me to create a page without ant scripts :( . I think we have to develop
a tag for calendar control :)

your ideas r good :)

thnx,
vimal 

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 8:42 PM
To: Struts Users Mailing List
Subject: RE: Calendar control in Struts???

Without javascript your choices are quite limited.

Your best bet is to just have a text entry box and a visible hint to the
user of the appropriate format to enter the date and reject invalid input.
(In fact if your UI has a lot of data entry to do this is the friendliest
choice for 'power' users...)

Another potential choice is to have 3 select fields for day month and year.
(You will of course need to validate that they dont choose things like 31
Feb etc...).

Not much you can do beyond that without using javascript though.

The lack of proper Numeric and Date fields is very much a glaring ommission
in html. (Esp numeric fields!). Fingers crossed that xforms will catch on!
sigh/


-Original Message-
From: Vimaljebaraj Gnanarajnelson , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 January 2004 23:00
To: Struts Users Mailing List
Subject: Calendar control in Struts???


Hi,

I am looking for calendar control in struts, though there are few of those
in js, i am trying for a page without any javascripts, so if anyone knows
how a calendar control can be implemented using struts(/any taglibs
available) without calling any javascripts let me know it.

Thnx,
vimal


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


Mix protocols transparently in Struts

2004-01-06 Thread Alain Van Vyve
I would like to mix HTTP et HTTPS ...

A very intersting article 
http://www.javaworld.com/javaworld/jw-05-2002/jw-0510-struts_p.html
has been written about that subject but the solution described was designed 
in a Struts 1.0 environment ...

Does somebody has already adapted that solution in a Struts 1.1 environment ?

Thank you ...

Alain

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


Re: error

2004-01-06 Thread Mark Lowe
While I agree that there's quite a lot of ground to cover I think if 
java/jsp is a serious alternative to other web based technologies then 
there needs to be a way of introducing new folks to these technologies 
by getting things up and running and then start to learn stuff.

Post me off the list Nasrin if you need to get up and running. Seeing 
you've a academic email address I assume you've done some programming 
perhaps a bit of c or something, make as your build tool and/or 
familiar with the likes of perl.

If you're running windows then there's an Ant installer for windows 
users who are generally used to double clicking on stuff without to 
much cognition mediating the installation process.

Then you'll want to get the sample project in the tomcat documentation 
built with ant. This will let you put all the classpaths in an xml file 
and make life much simpler.

I assume you've installed tomcat or another container so I wont mention 
that. But if i'm wrong then just say so.

Cheers Mark

On 6 Jan 2004, at 15:00, Andrew Hill wrote:

snip
I dont know what an IDE is - I'm quite new to struts and programming. 
I am
just using a command prompt to compile - which is what was written in 
the
book I am following to learn.
/snip

Me thinks you may be starting a little at the deep end in that case. 
You
would probably do better to get comfortable writing simple 
applications in
java before you get into the more complex stuff (such as servlets and
frameworks etc...).

An IDE is an integrated development environment. A very good ( 
free) one
is Eclipse.
(www.eclipse.org)
If your just starting out with Java then its good to learn to code 
without
an IDE first to get a feel for whats going on and how all the classpath
stuff works (as your discovering, it can be quite troublesome at 
times!!!),
but once your past the learning stage and writing real programs you 
will
find an IDE very helpful and a big time saver.

Which book are you reading?

-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 January 2004 20:29
To: 'Struts Users Mailing List'
Subject: RE: error
Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm 
using
tomcat).

What did you mean by struts-jarS ? I added all the .jar files from 
struts to
my lib folder of my application. But no change in the errors.

I dont know what an IDE is - I'm quite new to struts and programming. 
I am
just using a command prompt to compile - which is what was written in 
the
book I am following to learn.

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: 06 January 2004 12:13
To: 'Struts Users Mailing List'
Subject: RE: error
hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse
it is deliverd with tomcat
in $TOMCAT/common/lib (in case of using tomcat)
or
in j2ee.jar (in $J2EE_HOME/lib)
add this to your classpath
and of course your struts-jarS!
do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error
Hi,



I have an error occurring when I try and compile some java files in
struts.


Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;



Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;



There are many more similar errors.



I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.
I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application
I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile



This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?


Thanks

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


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


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

RE: Calendar control in Struts???

2004-01-06 Thread Nicholson, Robb
Is it that you do not want JavaScript in the resulting HTML page that gets
rendered? Or that you simply don't want to write JavaScript code yourself?

I found a really nice pop-up calendar widget that is a tag library, so you
don't have to write code. But it does render JavaScript in the resulting
page to make it all work.

It is a taglib written around the JavaScript Toolbox.
(http://www.mattkruse.com/javascript/calendarpopup/ )

Google for the taglib.


-Original Message-
From: Vimaljebaraj Gnanarajnelson , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 10:30 AM
To: Struts Users Mailing List
Subject: RE: Calendar control in Struts???


-yes, it is . rite now I am using js. My friend is byte struts freek and he
bet me to create a page without ant scripts :( . I think we have to develop
a tag for calendar control :)

your ideas r good :)

thnx,
vimal 

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 8:42 PM
To: Struts Users Mailing List
Subject: RE: Calendar control in Struts???

Without javascript your choices are quite limited.

Your best bet is to just have a text entry box and a visible hint to the
user of the appropriate format to enter the date and reject invalid input.
(In fact if your UI has a lot of data entry to do this is the friendliest
choice for 'power' users...)

Another potential choice is to have 3 select fields for day month and year.
(You will of course need to validate that they dont choose things like 31
Feb etc...).

Not much you can do beyond that without using javascript though.

The lack of proper Numeric and Date fields is very much a glaring ommission
in html. (Esp numeric fields!). Fingers crossed that xforms will catch on!
sigh/


-Original Message-
From: Vimaljebaraj Gnanarajnelson , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 January 2004 23:00
To: Struts Users Mailing List
Subject: Calendar control in Struts???


Hi,

I am looking for calendar control in struts, though there are few of those
in js, i am trying for a page without any javascripts, so if anyone knows
how a calendar control can be implemented using struts(/any taglibs
available) without calling any javascripts let me know it.

Thnx,
vimal


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


RE: Mix protocols transparently in Struts

2004-01-06 Thread Robert Taylor
Take a look at http://struts.ditlinger.com/ , the Struts SSL Extension.

robert

 -Original Message-
 From: Alain Van Vyve [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 06, 2004 10:48 AM
 To: [EMAIL PROTECTED]
 Subject: Mix protocols transparently in Struts
 
 
 
 I would like to mix HTTP et HTTPS ...
 
 A very intersting article 
 http://www.javaworld.com/javaworld/jw-05-2002/jw-0510-struts_p.html
 has been written about that subject but the solution described 
 was designed 
 in a Struts 1.0 environment ...
 
 Does somebody has already adapted that solution in a Struts 1.1 
 environment ?
 
 Thank you ...
 
 Alain
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Mix protocols transparently in Struts

2004-01-06 Thread Manfred Wolff
Hi Alain.

I have today exactly the same problem and founded the same solution 
calles Struts SSL Switching Extension hosted at sourceforge:

http://sourceforge.net/projects/sslext/

This solution is from the same author so you don't have to copy and 
paste the code snibbles ;-). My first evaluation says: The solution may 
not adapted to the Struts 1.1 environment, it runs for 1.0 and 1.1 too. 
But in further version you have to make some changes. The configuration 
of the action-mapping is no longer described in the web.xml but in the 
struts-config.xml.

OLD web.xml:

servlet id=Servlet_1
...
   init-param
 param-namemapping/param-name
 param-valueorg.apache.struts.action.SecureActionMapping/param-value
   /init-param
 /servlet
NEW struts-config.xml
action-mappings
   type=org.apache.struts.action.SecureActionMapping
   action
   /action
/action-mappings
So you define a new action-mapping class for doing the mapping.

regards
Manfred Wolff
Alain Van Vyve wrote:

I would like to mix HTTP et HTTPS ...

A very intersting article 
http://www.javaworld.com/javaworld/jw-05-2002/jw-0510-struts_p.html
has been written about that subject but the solution described was 
designed in a Struts 1.0 environment ...

Does somebody has already adapted that solution in a Struts 1.1 
environment ?

Thank you ...

Alain

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
===
Dipl.-Inf. Manfred Wolff
---
phone neusta  : +49 421 20696-27
phone : +49 421 534522
mobil : +49 178 49 18 434
eFax  : +49 1212 6 626 63 965 33
---

Diese E-Mail enthält möglicherweise vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese 
Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.
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 unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



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


server hangs after finite number of requests

2004-01-06 Thread Heather Marie Buch

Hi all, 

If I submit the same page more than 8 times, my server dies and I have to
restart. For example, the first 8 times I enter the wrong password, struts
will simply return me to my original form with an error message. However,
the 9th time - the server hangs.

This also occurs if I enter the correct password, then press the
back button and return to the original login screen and submit again. I
can only repeat this 8 times. The server hangs on the 9th try.

I am using:

tomcat 4.1.12
httpd 2.0.43
mysql 3.23.53
struts 1.1

I am not even sure if this is a struts problem. I suspect it is because I
tried that back  button trick with a plain old servlet, and I was able to
do it more than 9 times.

Any help would be greatly appreciated! My boss wants users to be able to
try passwords more than 9 times!

Thanks,

Heather Buch



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



Re: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta Reference Implementation

2004-01-06 Thread Craig R. McClanahan
Quoting Jan Dirksen [EMAIL PROTECTED]:

 Hi Craig,
 
 i just want to try the struts-faces examples.
 but i got compilation-error. is there something i
 need...?
 jwsdp-1.3 is on my box.
 

Without knowing the details of your error messages, it's pretty difficult to
tell exactly what is going on, but most compilation problems are caused by not
setting up a build.properties file correctly.  The simplest way to do that is
to copy build.properties.sample to build.properties and modify the settings
as needed.

On the other hand, to simply execute the examples, you don't need to compile at
all -- just follow the instructions in the README.txt file to add jsf-api.jar
and jsf-impl.jar to the web application, and deploy it like any other.  (You'll
also have to remove the EA release of JavaServer Faces from JWSDP since the
current code uses the beta release).

 thanks

Craig


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



RE: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta Reference Implementation

2004-01-06 Thread Craig R. McClanahan
Quoting Jan Dirksen [EMAIL PROTECTED]:

 oh good morning...
 thank you! :-)
 
 okay i can deploy it via tomcat-manager
 
 but when i start the jsf-cardemo
 i got this error:
 
 org.apache.jasper.JasperException: This absolute uri
 (http://java.sun.com/jstl/core) cannot be resolved in
 either web.xml or the jar files deployed with this
 application
 
 very strange.
 the struts-jsf works, but not core jsf...
 
 do anyone know?
 i am using tomcat version 4.1.27
 or must i use tc 5.X for JSF?
 

I've had my share of grief with 4.1, and always use 5.0 now.  There are some
potential workarounds to 4.1 problems listed on the JavaServer Faces release
notes and web pages.

One thing to note with *any* standalone Tomcat usage is that JavaServer Faces is
not built in the way it is with JWSDP, so you'll need to include all the
needed JAR files in your /WEB-INF/lib directory.  Don't even bother to try to
install JavaServer Faces into common/lib on Tomcat 4.1 -- it flat won't
work.

Craig


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



Re: server hangs after finite number of requests

2004-01-06 Thread Geeta Ramani
Heather:

Check any jdbc code you have.  If you don't close statements/result sets and/or
release connections that you have opened, then this sort of thing can happen.

Regards,
Geeta

Manfred Wolff wrote:

 Heather.

 Have you studied the tomcat logs?

 Manfred Wolff

 Heather Marie Buch wrote:

 Hi all,
 
 If I submit the same page more than 8 times, my server dies and I have to
 restart. For example, the first 8 times I enter the wrong password, struts
 will simply return me to my original form with an error message. However,
 the 9th time - the server hangs.
 
 This also occurs if I enter the correct password, then press the
 back button and return to the original login screen and submit again. I
 can only repeat this 8 times. The server hangs on the 9th try.
 
 I am using:
 
 tomcat 4.1.12
 httpd 2.0.43
 mysql 3.23.53
 struts 1.1
 
 I am not even sure if this is a struts problem. I suspect it is because I
 tried that back  button trick with a plain old servlet, and I was able to
 do it more than 9 times.
 
 Any help would be greatly appreciated! My boss wants users to be able to
 try passwords more than 9 times!
 
 Thanks,
 
 Heather Buch
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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


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



Its Safe to use the Action.ERROR_KEY ?

2004-01-06 Thread José Gustavo Zagato
Hi Folks !

I'd like to know if is a good practice to use the
Action.ERROR_KEY to access the errors at the request. I just want to
check if error already exists on the request.

Thank's !



  José Gustavo Zagato Rosa
System Analyst - Atos Origin
[EMAIL PROTECTED]


-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 6 de janeiro de 2004 13:54
To: Struts Users Mailing List
Subject: Re: server hangs after finite number of requests

Heather:

Check any jdbc code you have.  If you don't close statements/result sets
and/or
release connections that you have opened, then this sort of thing can
happen.

Regards,
Geeta

Manfred Wolff wrote:

 Heather.

 Have you studied the tomcat logs?

 Manfred Wolff

 Heather Marie Buch wrote:

 Hi all,
 
 If I submit the same page more than 8 times, my server dies and I
have to
 restart. For example, the first 8 times I enter the wrong password,
struts
 will simply return me to my original form with an error message.
However,
 the 9th time - the server hangs.
 
 This also occurs if I enter the correct password, then press the
 back button and return to the original login screen and submit
again. I
 can only repeat this 8 times. The server hangs on the 9th try.
 
 I am using:
 
 tomcat 4.1.12
 httpd 2.0.43
 mysql 3.23.53
 struts 1.1
 
 I am not even sure if this is a struts problem. I suspect it is
because I
 tried that back  button trick with a plain old servlet, and I was
able to
 do it more than 9 times.
 
 Any help would be greatly appreciated! My boss wants users to be able
to
 try passwords more than 9 times!
 
 Thanks,
 
 Heather Buch
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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


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




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



Re: Its Safe to use the Action.ERROR_KEY ?

2004-01-06 Thread David Erickson
I don't see why not.. considering Action.ERROR_KEY is a static so if it ever
changes your already referencing the new location.
-David

- Original Message - 
From: José Gustavo Zagato [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 11:17 AM
Subject: Its Safe to use the Action.ERROR_KEY ?


Hi Folks !

I'd like to know if is a good practice to use the
Action.ERROR_KEY to access the errors at the request. I just want to
check if error already exists on the request.

Thank's !



  José Gustavo Zagato Rosa
System Analyst - Atos Origin
[EMAIL PROTECTED]


-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 6 de janeiro de 2004 13:54
To: Struts Users Mailing List
Subject: Re: server hangs after finite number of requests

Heather:

Check any jdbc code you have.  If you don't close statements/result sets
and/or
release connections that you have opened, then this sort of thing can
happen.

Regards,
Geeta

Manfred Wolff wrote:

 Heather.

 Have you studied the tomcat logs?

 Manfred Wolff

 Heather Marie Buch wrote:

 Hi all,
 
 If I submit the same page more than 8 times, my server dies and I
have to
 restart. For example, the first 8 times I enter the wrong password,
struts
 will simply return me to my original form with an error message.
However,
 the 9th time - the server hangs.
 
 This also occurs if I enter the correct password, then press the
 back button and return to the original login screen and submit
again. I
 can only repeat this 8 times. The server hangs on the 9th try.
 
 I am using:
 
 tomcat 4.1.12
 httpd 2.0.43
 mysql 3.23.53
 struts 1.1
 
 I am not even sure if this is a struts problem. I suspect it is
because I
 tried that back  button trick with a plain old servlet, and I was
able to
 do it more than 9 times.
 
 Any help would be greatly appreciated! My boss wants users to be able
to
 try passwords more than 9 times!
 
 Thanks,
 
 Heather Buch
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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


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




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



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



RE: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta Reference Implementation

2004-01-06 Thread Jan Dirksen
Hi Craig,

thanks for replay!

the workarounds from matthias were helpful!!
(he told me the page with that workarounds you mean)

But after that, we decided to use Tomcat5
because of JSP2.0.

On JSF-Pages i also saw, that future versions
of JSF will take better advantage of JSP 2.0

greetings


 --- Craig R. McClanahan [EMAIL PROTECTED]
schrieb:  Quoting Jan Dirksen [EMAIL PROTECTED]:
 
  oh good morning...
  thank you! :-)
  
  okay i can deploy it via tomcat-manager
  
  but when i start the jsf-cardemo
  i got this error:
  
  org.apache.jasper.JasperException: This absolute
 uri
  (http://java.sun.com/jstl/core) cannot be resolved
 in
  either web.xml or the jar files deployed with this
  application
  
  very strange.
  the struts-jsf works, but not core jsf...
  
  do anyone know?
  i am using tomcat version 4.1.27
  or must i use tc 5.X for JSF?
  
 
 I've had my share of grief with 4.1, and always use
 5.0 now.  There are some
 potential workarounds to 4.1 problems listed on the
 JavaServer Faces release
 notes and web pages.
 
 One thing to note with *any* standalone Tomcat usage
 is that JavaServer Faces is
 not built in the way it is with JWSDP, so you'll
 need to include all the
 needed JAR files in your /WEB-INF/lib directory. 
 Don't even bother to try to
 install JavaServer Faces into common/lib on Tomcat
 4.1 -- it flat won't
 work.
 
 Craig
 
 

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

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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



Re: error

2004-01-06 Thread Khalid K.
Please post your program if possible.
It looks like you are missing the import statements. 
If you are using any type of IDE, it usually has an option like organize 
imports, if you are just using a text editor, then make sure to declare those 
import statements.

Khalid

 Hi,
 
  
 
 I have an error occurring when I try and compile some java files in struts.
 
  
 
 Package org.apache.struts.action does not exist
 
 Import org.apache.struts.action.ActionForm;
 
  
 
 Package javax.servlet.http does not exist
 
 Import javax.servlet.http.HttpServletResponse;
 
  
 
 There are many more similar errors.
 
  
 
 I have included the struts.jar file from the Jakarta-struts/lib folder in
 the classpath.
 
 I have added all the .tld files, web.xml and struts-config.xml in the
 WEB-INF folder of my application
 
 I have added the struts.jar file to the lib folder in my application
 
 In the classes folder I have put ApplicationResources.properties
 
 Web-inf/classes/com/example contains the java files I want to compile
 
  
 
 This is an example from a book I am learning from and I have followed
 everything exactly. Can anyone advise me on what I am doing wrong?
 
  
 
 Thanks
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
  
 


-- 
Khalid K.

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



Re: Its Safe to use the Action.ERROR_KEY ?

2004-01-06 Thread Kris Schneider
Sort of. If it changes *and* you recompile, then you'll get the new value.
That's one of the fun things about compile-time constants (static final),
they're essentially inlined. I imagine it's highly unlikely to change, however.

P.S.
Action.ERROR_KEY has been deprecated in favor of Globals.ERROR_KEY.

Quoting David Erickson [EMAIL PROTECTED]:

 I don't see why not.. considering Action.ERROR_KEY is a static so if it
 ever
 changes your already referencing the new location.
 -David
 
 - Original Message - 
 From: José Gustavo Zagato [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Tuesday, January 06, 2004 11:17 AM
 Subject: Its Safe to use the Action.ERROR_KEY ?
 
 
 Hi Folks !
 
 I'd like to know if is a good practice to use the
 Action.ERROR_KEY to access the errors at the request. I just want to
 check if error already exists on the request.
 
 Thank's !
 
 
 
   José Gustavo Zagato Rosa
 System Analyst - Atos Origin
 [EMAIL PROTECTED]

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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



Displaying messages as a result of failure

2004-01-06 Thread bort
Hi all

How do I present, to the user, customized messages in the case of an Action
failure?  For example, say a user fills and submits a form.  The form gets
validated, and control is passed onto the Action.  From within the action,
we have a success and failure forward.  In the case of a failure, I
forward the user back to the same page.  What I'd like to do now, however,
is to print out a customized message on this page, explaining what the
problem was.

I realize that this is a rather simple question... so please go easy on me!

TIA
bort




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



RE: Indexed Property in JSP - Solution

2004-01-06 Thread White, Susan
It took a while, but I got it. Here's the solution I found. Keep in mind
that dateOfBirth property is defined at the form level, not as an child
of acctParties.

  logic:iterate id=thisParty name='purchaseNewForm'
property='acctParties' indexId=idx
  tr valign=bottom
td align=left valign=top class=dkBlue11b
colspan=2
  Please enter the date of birth for
  bean:write name=thisParty
property=firstName/nbsp;
  logic:notEmpty name=thisParty
property=middleName
bean:write name=thisParty
property=middleName/nbsp;
  /logic:notEmpty
  bean:write name=thisParty
property=lastName/nbsp;(MM/DD/)
/td
  /tr
  tr
td colspan=2
!--This will not work-- html:text property='%= dateOfBirth[ + idx
+ ] %' size='10' maxlength='10'/
!--This will not work-- html:text property='dateOfBirth' size='10'
maxlength='10' indexed='true' /
!--This will work--  nested:text property='%= dateOfBirth[ + idx +
] %' size='10' maxlength='10' / 
/td
  /tr
  /logic:iterate

Susan White
Internet Trading / E-Commerce
T. Rowe Price Investment Technologies
410-345-3313
 


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



setting nested form values

2004-01-06 Thread Mark Lowe
Has anyone else had any problems setting nested bean values

Here's and example of what i mean..

public class DemoForm extends ActionForm {

	private ArrayList beanList;

public DemoForm() {
this.beanList = new ArrayList();
}
public Object[] getBeans() {
return beanList.toArray()
}

public void setBeans(ArrayList beanList) {
this.beanList = beanList;
}

public NestedBean getBean(int i) {
NestedBean bean = (NestedBean) beanList.get(i);
return bean;
}
//and so on
}
..

public class NestedBean {
private String foo;
public String getFoo() {
return foo;
}   

public void setFoo(String foo) {
this.foo = foo;
}
}
..
c:forEach var=bean items=${myForm.beans}
html:text name=bean property=foo indexed=true /
/c:forEach
The problem comes when i change values in the form element the values 
dont change  so i guess the jsp and the servlets aren't interacting. I 
work around by retrieving form the parameter map

String target = bean[+ i +].foo;
String value = request.getParameter(target).toString();
This works okay , but I'd really like to know wether i can do this 
without this hack.

Cheers Mark



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


Re: server hangs after finite number of requests

2004-01-06 Thread Heather Marie Buch

Manfred Wolff wrote:

 Heather.

 Have you studied the tomcat logs?

Yes, I have. This is the only thing that is remotely interesting. 
In localhost_log.2004-01-06.txt I get this:

2004-01-06 03:38:41 action: null
2004-01-06 03:40:08 action: null
2004-01-06 03:40:12 action: null
2004-01-06 03:40:14 action: null
2004-01-06 03:40:16 action: null
2004-01-06 03:40:18 action: null
2004-01-06 03:40:21 action: null
2004-01-06 03:40:23 action: null

(corresponding to the 8 times I try to log in). I don't really know where it is
coming from. I would like to know what is generating the above, so I could to in and 
modify the logging
statements to produce a bit more detail!

I also have log4j statements in my own code and have been testing this. But I
can't generate any error or anything beyond the normal output, 8 times.

What is interesting is that it always fails on the 9th try. I don't think it is
a matter of seconds either. I have tested over a longer period (10 minutes), but
it still gives me 8 requests before it hangs.

And Geeta Ramani - thanks. I will take another look at the jdbc stuff!

Best,

Heather Buch




 Manfred Wolff

 Heather Marie Buch wrote:

 Hi all,
 
 If I submit the same page more than 8 times, my server dies and I have to
 restart. For example, the first 8 times I enter the wrong password, struts
 will simply return me to my original form with an error message. However,
 the 9th time - the server hangs.
 
 This also occurs if I enter the correct password, then press the
 back button and return to the original login screen and submit again. I
 can only repeat this 8 times. The server hangs on the 9th try.
 
 I am using:
 
 tomcat 4.1.12
 httpd 2.0.43
 mysql 3.23.53
 struts 1.1
 
 I am not even sure if this is a struts problem. I suspect it is because I
 tried that back  button trick with a plain old servlet, and I was able to
 do it more than 9 times.
 
 Any help would be greatly appreciated! My boss wants users to be able to
 try passwords more than 9 times!
 
 Thanks,
 
 Heather Buch
































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



RE: NullPointerException at ActionServlet.java:1003 using JRun4; work OK under Tomcat/JWSDP1.2

2004-01-06 Thread Tim Lucia
I have solved this myself.  It appears that JRun4 considers
tim.web.xml as part of web.xml, and so it tried to load a config
file that did not exist.

(Any Struts developers reading?? -- Would it be possible in a future
release of Struts to actually say resource not found:
/WEB-INF/module/struts-config-module.xml rather then
NullPointerException?)

Tim


 -Original Message-
 From: Tim Lucia [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 06, 2004 10:00 AM
 To: 'Struts Users Mailing List'
 Subject: NullPointerException at ActionServlet.java:1003 
 using JRun4; work OK under Tomcat/JWSDP1.2
 
 
 All,
 
 I have a struts application using modules which deploys fine 
 under JWSDP1.2/Tomcat (5, I think), but when I deploy it 
 under (trial edition
 of) JRun4, I get 
 
 java.lang.NullPointerException
   at 
 org.apache.struts.action.ACtionServlet.parseModuleConfigFile(A
 ctionServl
 et.java:1003)
 .
 .
 .
 
 Peeking at the source, it looks like it's trying to read a 
 config file, presumably for my module.
 
 Anyone seen this before?  How did you overcome this problem?
 
 Thanks,
 Tim
 
 
 private void parseModuleConfigFile(
 String prefix,
 String paths,
 ModuleConfig config,
 Digester digester,
 String path)
 throws UnavailableException {
 
 InputStream input = null;
 try {
 URL url = getServletContext().getResource(path);
 InputSource is = new 
 InputSource(url.toExternalForm()); // ## 1003 ###
 input = getServletContext().getResourceAsStream(path);
 is.setByteStream(input);
 digester.parse(is);
 
 getServletContext().setAttribute(Globals.MODULE_KEY + prefix, config);
 
 } catch (MalformedURLException e) {
 handleConfigException(paths, e);
 } catch (IOException e) {
 handleConfigException(paths, e);
 } catch (SAXException e) {
 handleConfigException(paths, e);
 } finally {
 if (input != null) {
 try {
 input.close();
 } catch (IOException e) {
 throw new UnavailableException(e.getMessage());
 }
 }
 }
 }
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



Re: server hangs after finite number of requests

2004-01-06 Thread Anthony Martin
I've had something like that happen when I call
getDataSource(request).getConnection() and forget to close them.  After a
finite number of requests, the server appears to hang.  Actually, depending
on the settings, it will timeout.  But how you handle the exception could
prevent it from being properly reported.


On 1/6/04 11:38 AM, in article
[EMAIL PROTECTED], Heather Marie
Buch [EMAIL PROTECTED] wrote:

 
 Manfred Wolff wrote:
 
 Heather.
 
 Have you studied the tomcat logs?
 
 Yes, I have. This is the only thing that is remotely interesting.
 In localhost_log.2004-01-06.txt I get this:
 
 2004-01-06 03:38:41 action: null
 2004-01-06 03:40:08 action: null
 2004-01-06 03:40:12 action: null
 2004-01-06 03:40:14 action: null
 2004-01-06 03:40:16 action: null
 2004-01-06 03:40:18 action: null
 2004-01-06 03:40:21 action: null
 2004-01-06 03:40:23 action: null
 
 (corresponding to the 8 times I try to log in). I don't really know where it
 is
 coming from. I would like to know what is generating the above, so I could to
 in and modify the logging
 statements to produce a bit more detail!
 
 I also have log4j statements in my own code and have been testing this. But I
 can't generate any error or anything beyond the normal output, 8 times.
 
 What is interesting is that it always fails on the 9th try. I don't think it
 is
 a matter of seconds either. I have tested over a longer period (10 minutes),
 but
 it still gives me 8 requests before it hangs.
 
 And Geeta Ramani - thanks. I will take another look at the jdbc stuff!
 
 Best,
 
 Heather Buch
 
 
 
 
 Manfred Wolff
 
 Heather Marie Buch wrote:
 
 Hi all,
 
 If I submit the same page more than 8 times, my server dies and I have to
 restart. For example, the first 8 times I enter the wrong password, struts
 will simply return me to my original form with an error message. However,
 the 9th time - the server hangs.
 
 This also occurs if I enter the correct password, then press the
 back button and return to the original login screen and submit again. I
 can only repeat this 8 times. The server hangs on the 9th try.
 
 I am using:
 
 tomcat 4.1.12
 httpd 2.0.43
 mysql 3.23.53
 struts 1.1
 
 I am not even sure if this is a struts problem. I suspect it is because I
 tried that back  button trick with a plain old servlet, and I was able to
 do it more than 9 times.
 
 Any help would be greatly appreciated! My boss wants users to be able to
 try passwords more than 9 times!
 
 Thanks,
 
 Heather Buch



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



Need some Multibox help.

2004-01-06 Thread rgould
Hi everyone. 

I need some simple multibox help here.

I've gone through the example in the O Reilly book, and have thoroughly torn
apart the example at http://j2ee.lagnada.com/struts/multibox-example1.htm and I
cannot get mine to work.

The problem lies in the logic:iterate's id tag.

error:  [ServletException in:/WEB-INF/pages/WFSConfigContent.jsp] Cannot find
bean feature in any scope'

Where id=feature

Here's my code, which is mostly copied from the OReilly book.

logic:iterate id=feature name=wfsContentForm property=features
html:multibox property=selectedFeatures
bean:write name=feature/
/html:multibox
bean:write name=feature/
/logic:iterate

Is there something I have to do to instantiate a bean named 'feature'? in the
above example link, I can't find '_bean' referenced anywhere else.

Thanks!

Richard


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



RE: Need some Multibox help.

2004-01-06 Thread Tim Lucia
You most-definitely need to instantiate a bean named feature.  The
reason it Cannot find bean feature in any scope is because there is no
bean named feature in any scope.  In a real-world application, you would
probably do this in an action via getSession().setAttribute(feature,
new Feature(...)) or request.setAttribute(...).

Tim

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 06, 2004 8:17 PM
 To: Struts Users Mailing List
 Subject: Need some Multibox help.
 
 
 Hi everyone. 
 
 I need some simple multibox help here.
 
 I've gone through the example in the O Reilly book, and have 
 thoroughly torn apart the example at 
 http://j2ee.lagnada.com/struts/multibox- example1.htm and I 
 cannot get mine to work.
 
 The problem 
 lies in the logic:iterate's id tag.
 
 error:  [ServletException 
 in:/WEB-INF/pages/WFSConfigContent.jsp] Cannot find bean 
 feature in any scope'
 
 Where id=feature
 
 Here's my code, which is mostly copied from the OReilly book.
 
 logic:iterate id=feature name=wfsContentForm 
 property=features html:multibox property=selectedFeatures
   bean:write name=feature/
 /html:multibox
   bean:write name=feature/
 /logic:iterate
 
 Is there something I have to do to instantiate a bean named 
 'feature'? in the above example link, I can't find '_bean' 
 referenced anywhere else.
 
 Thanks!
 
 Richard
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



Re: weird

2004-01-06 Thread Otávio Augusto
Yeah, sorry for that question. After a lot of tests, i found the mistake. I've added a 
sintacticaly wrong field to my struts-config.xml.
Thanks for your support.

Otávio Augusto

On Mon, 5 Jan 2004 16:24:10 -0700
David Erickson [EMAIL PROTECTED] wrote:

 It looks to me like in your admin.jsp file you have something like
 logic:empty
 logic:redirect
 /logic:redirect
 /logic:empty
 
 Something is wrong with your redirect tag.. make sure you are giving it the
 correct parameters that are required etc... when all else fails use a
 debugger and find out where exactly the null pointer exception is coming
 from in the code.
 -David
 
 - Original Message - 
 From: Otávio Augusto [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 05, 2004 3:03 PM
 Subject: weird
 
 
 please, i got a weird problem with struts. I haven't done anything different
 from what i do hundres of times a day: edit something in an Action or
 FormAction file, change small things in a jsp...ant build, shutdown,
 startup...well, no matter what i do, it has never given me any problem. But
 sundenly all the browser returns to me is a tomcat erros messagem like this:
 
 java.lang.NullPointerException
 at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521)
 at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436)
 at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396)
 at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:294)
 at org.apache.jsp.admin_jsp._jspx_meth_logic_redirect_0(admin_jsp.java:153)
 at org.apache.jsp.admin_jsp._jspx_meth_logic_empty_0(admin_jsp.java:130)
 at org.apache.jsp.admin_jsp._jspService(admin_jsp.java:86)
 
 this message comes from a page where i have a logic:empty tag. it used to
 work just as i expected. but even the logon page does not work. it has
 nothing more than two fields and.. well, the last time i touched this page
 was one week ago. it does not work any more ;(
 This is the error i get when trying to access the logon page:
 
 org.apache.jasper.JasperException: Cannot find ActionMappings or
 ActionFormBeans collection
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
 54)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 I've already checked if any file is missing...but everything is there. just
 like 5 minutes ago, when everything was working fine.
 What may be the problem??
 Please, if someone can help me, do it. If i don't solve this, i'll be stuck
 in my tasks.
 
 Otávio Augusto
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Need some Multibox help.

2004-01-06 Thread Saul Q Yuan
It could be the form bean wfsContentForm or it's features property doesn't
exist at the time you call the logic:iterate tag. Do you have your
logic:iterate tag inside a html:form tag and defined the approprite
mappings in struts-config?, the wfsContentForm bean will be created if yes.
Otherwise, make sure wfsContentForm exists in one of the scopes, request,
session etc.


Saul


- Original Message - 
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 8:16 PM
Subject: Need some Multibox help.


 Hi everyone.

 I need some simple multibox help here.

 I've gone through the example in the O Reilly book, and have thoroughly
torn
 apart the example at http://j2ee.lagnada.com/struts/multibox-example1.htm
and I
 cannot get mine to work.

 The problem lies in the logic:iterate's id tag.

 error:  [ServletException in:/WEB-INF/pages/WFSConfigContent.jsp] Cannot
find
 bean feature in any scope'

 Where id=feature

 Here's my code, which is mostly copied from the OReilly book.

 logic:iterate id=feature name=wfsContentForm property=features
 html:multibox property=selectedFeatures
 bean:write name=feature/
 /html:multibox
 bean:write name=feature/
 /logic:iterate

 Is there something I have to do to instantiate a bean named 'feature'? in
the
 above example link, I can't find '_bean' referenced anywhere else.

 Thanks!

 Richard


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


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



Problem With Passing Properties of DynaValidatorForm to the Business Tier

2004-01-06 Thread Caroline Jen
Hi, my program compiled OKay.  When I ran the
application, somehow, the properties of my
DynaValidatorForm are not passed from the action class
to the business tier and then to the data access tier.
 Please help me taking a look at what went wrong.   

It looks that the validation worked fine: 

form-bean
name=postForm
  
type=org.apache.struts.validator.DynaValidatorForm
   form-property
name=receiver
type=java.lang.String/
   form-property
name=sender
type=java.lang.String/
.
.
/form-bean
because when I intentionally left several of the text
fields blank and submitted my JSP form, an applet got
prompted showing something in those fields are
required.

In my action class (see below),  I used BeanUtils to
copy all the properties of the DynaValidatorForm to a
bean (ThreadBean): 

DynaActionForm postForm = ( DynaActionForm )form;
ThreadBean threadBean = new ThreadBean();
BeanUtils.copyProperties( threadBean, postForm );

I then added a number of properties with pre-defined
values to the ThreadBean in the Action class:

Timestamp now = DateUtil.getCurrentGMTTimestamp();
threadBean.setThreadCreationDate( now );
threadBean.setThreadViewCount( 0 );

I then called a method in a service class
ThreadHandler and passing threadBean as the parameter
of that method:

ThreadHandler thandler = new ThreadHandler();
threadID = thandler.insertThread( threadBean );

In the ThreadHandler class, I first tried to get the
values of those properties out of the ThreadBean.  It
looked to me that the values of those properties are
not retrieved and passed to the data access tier.

class ThreadHandler extends ThreadBean 
{
   int threadID = getThreadID();
   String receiver = getReceiver();
   String sender = getSender();
   Timestamp threadCreationDate =
getThreadCreationDate();
   int threadViewCount = getThreadViewCount();

   public ThreadHandler() {}

   MessageDAO md = new MySQLMessageDAO();

   public int insertThread( ThreadBean threadBean )
throws
MessageDAOSysException, ObjectNotFoundException
   {
  md.createThread( receiver, sender,   
   threadCreationDate, readViewCount
);

  .
  .

  return threadID;
   }
}



__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



RE: server hangs after finite number of requests

2004-01-06 Thread Andrew Hill
Ive found that limiting your connection pool to a single connection during
development can help pick such bugs up a lot quicker.

-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 7 January 2004 06:11
To: [EMAIL PROTECTED]
Subject: Re: server hangs after finite number of requests


I've had something like that happen when I call
getDataSource(request).getConnection() and forget to close them.  After a
finite number of requests, the server appears to hang.  Actually, depending
on the settings, it will timeout.  But how you handle the exception could
prevent it from being properly reported.


On 1/6/04 11:38 AM, in article
[EMAIL PROTECTED], Heather Marie
Buch [EMAIL PROTECTED] wrote:


 Manfred Wolff wrote:

 Heather.

 Have you studied the tomcat logs?

 Yes, I have. This is the only thing that is remotely interesting.
 In localhost_log.2004-01-06.txt I get this:

 2004-01-06 03:38:41 action: null
 2004-01-06 03:40:08 action: null
 2004-01-06 03:40:12 action: null
 2004-01-06 03:40:14 action: null
 2004-01-06 03:40:16 action: null
 2004-01-06 03:40:18 action: null
 2004-01-06 03:40:21 action: null
 2004-01-06 03:40:23 action: null

 (corresponding to the 8 times I try to log in). I don't really know where
it
 is
 coming from. I would like to know what is generating the above, so I could
to
 in and modify the logging
 statements to produce a bit more detail!

 I also have log4j statements in my own code and have been testing this.
But I
 can't generate any error or anything beyond the normal output, 8 times.

 What is interesting is that it always fails on the 9th try. I don't think
it
 is
 a matter of seconds either. I have tested over a longer period (10
minutes),
 but
 it still gives me 8 requests before it hangs.

 And Geeta Ramani - thanks. I will take another look at the jdbc stuff!

 Best,

 Heather Buch




 Manfred Wolff

 Heather Marie Buch wrote:

 Hi all,

 If I submit the same page more than 8 times, my server dies and I have
to
 restart. For example, the first 8 times I enter the wrong password,
struts
 will simply return me to my original form with an error message.
However,
 the 9th time - the server hangs.

 This also occurs if I enter the correct password, then press the
 back button and return to the original login screen and submit again.
I
 can only repeat this 8 times. The server hangs on the 9th try.

 I am using:

 tomcat 4.1.12
 httpd 2.0.43
 mysql 3.23.53
 struts 1.1

 I am not even sure if this is a struts problem. I suspect it is because
I
 tried that back  button trick with a plain old servlet, and I was able
to
 do it more than 9 times.

 Any help would be greatly appreciated! My boss wants users to be able to
 try passwords more than 9 times!

 Thanks,

 Heather Buch



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



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



dynamically add action ?

2004-01-06 Thread lixin chu
hi,
i would like to know if it is possible to dynamically
(without restart servlet engine) add Actions.

say for example, i have one struts based application
running. now i want to add one hyperlink in a JSPfile
which points to another struts based application
module. how do i do it ?

is there any existing soultion ?
thanks
li xin

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



How to show action errors on the JSP pages

2004-01-06 Thread satish ashok shukla
Hi All,
I am raisinng an action error through the action class and  added the entry to the 
resource file(properties file).
But to use the html:errors tag do I need to explicitly include the tld file. As I can 
see that file is part of the struts.jar.
However when I include this it conflicts with the dtd for the servlet 2.3 as I also 
need to use the servlet filter.
Any pointers in this direction will be useful.
I can see the error description when I include the tld in the jsp but then it 
conflictrs with the servlet 2.3 dtd(which I require for filter).

Regards,
Satish

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



Re: server hangs after finite number of requests

2004-01-06 Thread Anthony Martin
That's very good advice.  Another good thing to do is unplug the cable to
your network card during development to see what your application does under
those circumstances.

We use licensed database in our office, and I found all kinds of great bugs
by installing a single user license on the development environment.
Sometimes they pop up when you'd least expect.

Fault tolerance.  Fun stuff.


Anthony

-- 
Got a blog?  Post it:
http://www.martin-studio.com/weblog-index/

On 1/6/04 7:36 PM, in article
[EMAIL PROTECTED], Andrew Hill
[EMAIL PROTECTED] wrote:

 Ive found that limiting your connection pool to a single connection during
 development can help pick such bugs up a lot quicker.
 
 -Original Message-
 From: Anthony Martin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 7 January 2004 06:11
 To: [EMAIL PROTECTED]
 Subject: Re: server hangs after finite number of requests
 
 
 I've had something like that happen when I call
 getDataSource(request).getConnection() and forget to close them.  After a
 finite number of requests, the server appears to hang.  Actually, depending
 on the settings, it will timeout.  But how you handle the exception could
 prevent it from being properly reported.
 
 
 On 1/6/04 11:38 AM, in article
 [EMAIL PROTECTED], Heather Marie
 Buch [EMAIL PROTECTED] wrote:
 
 
 Manfred Wolff wrote:
 
 Heather.
 
 Have you studied the tomcat logs?
 
 Yes, I have. This is the only thing that is remotely interesting.
 In localhost_log.2004-01-06.txt I get this:
 
 2004-01-06 03:38:41 action: null
 2004-01-06 03:40:08 action: null
 2004-01-06 03:40:12 action: null
 2004-01-06 03:40:14 action: null
 2004-01-06 03:40:16 action: null
 2004-01-06 03:40:18 action: null
 2004-01-06 03:40:21 action: null
 2004-01-06 03:40:23 action: null
 
 (corresponding to the 8 times I try to log in). I don't really know where
 it
 is
 coming from. I would like to know what is generating the above, so I could
 to
 in and modify the logging
 statements to produce a bit more detail!
 
 I also have log4j statements in my own code and have been testing this.
 But I
 can't generate any error or anything beyond the normal output, 8 times.
 
 What is interesting is that it always fails on the 9th try. I don't think
 it
 is
 a matter of seconds either. I have tested over a longer period (10
 minutes),
 but
 it still gives me 8 requests before it hangs.
 
 And Geeta Ramani - thanks. I will take another look at the jdbc stuff!
 
 Best,
 
 Heather Buch
 
 
 
 
 Manfred Wolff
 
 Heather Marie Buch wrote:
 
 Hi all,
 
 If I submit the same page more than 8 times, my server dies and I have
 to
 restart. For example, the first 8 times I enter the wrong password,
 struts
 will simply return me to my original form with an error message.
 However,
 the 9th time - the server hangs.
 
 This also occurs if I enter the correct password, then press the
 back button and return to the original login screen and submit again.
 I
 can only repeat this 8 times. The server hangs on the 9th try.
 
 I am using:
 
 tomcat 4.1.12
 httpd 2.0.43
 mysql 3.23.53
 struts 1.1
 
 I am not even sure if this is a struts problem. I suspect it is because
 I
 tried that back  button trick with a plain old servlet, and I was able
 to
 do it more than 9 times.
 
 Any help would be greatly appreciated! My boss wants users to be able to
 try passwords more than 9 times!
 
 Thanks,
 
 Heather Buch
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



[OT] Shifting Resources

2004-01-06 Thread Mike Duffy
I'd like to share with the Strut's community my response to an editorial in the 
January 5, 2004
issue of InfoWorld:

Ephraim,

As a Java developer who believes that designing systems and writing code is an 
artistic endeavor,
I found your recent editorial (Shifting Resources) to be very interesting; however, 
you missed a
major point.  Software developers should not feel threatened by the possibility of 
outsourcing to
third world nations.  The relatively low-level functions that these technology 
sweatshops provide
will soon be automated out of existence by the next generation of software development 
tools. 
Developers who have low-level skills and fail to master the new development tools will 
be
obsolete, no matter where they live.

The next generation of tools will significantly increase the productivity of 
developers through
the implementation of attribute oriented programming.  We will be able to go from a 
detailed
designed specification to system implementation with very few key stokes for coding in 
between. 
Software designers will specify the attributes of the system, the tools will generate 
the code.  

We are already seeing the emergence of these tools from both the corporate 
(IBM/Rational's model
driven development, Sun's Project Rave, and others) and open source (xDoclet most 
significantly)
communities.  At present, software development is on the same level as the automobile 
industry was
in the 1890s when teams of engineers individually crafted specialty systems using a 
limited set of
tools.  As the power of development tools increases, exponential gains in productivity 
will be
realized.  

Your editorial was correct in stressing the importance of design and management 
(getting the
attributes of the system correct is the essential first step).  In every industry, 
design is where
 the greatest value is added.  Your editorial was incorrect in predicting an increase 
in
outsourcing.  The low-level keyboarding monkey jobs are going, but they are not 
going overseas,
they're just going away.

The great danger in the near future will be that companies will be misguided by 
pinhead MBAs who
can not see beyond the bottom line at the end of the next quarter.  Companies that 
attempt to
slash costs by turning to outsourcing will be at a disadvantage when competing against 
companies
that invest in software designers who have mastered the latest generation of leading 
edge tools.

Mike Duffy
Austin, TX

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Tiles with XML and XSL

2004-01-06 Thread Tin Pham
Hi,

I am wondering if anybody here has mulled over the idea of using XML and XSL
with Tiles.

Right now I have a great application that makes use of Struts 1.1 with a
role based layout using Tiles. It uses the common layout we see everywhere,
header, dynamic menu, footer and of course body.

I started thinking that it would be nice to put all the content of the body
tile into an XML file. Just the content though. Including forms and buttons
might not be a good idea at this stage. Simpler would be better as my team
is still learning to be proficient with Struts.

Googled of course and did not find much.

The two approaches I am considering are,

1)
Change the reference in the tile definition of body=myContent.jsp to a kind
of composition servlet which recieves as paramaters, the xml and xslt file
to output as html (with this approach I would have to include the forms and
buttons).

2)
Make a reference to my xml and xslt server side using a custom tag in the
jsp page.

3)
Figure out a way to render this client side relying on the browser.


Any thoughts or links to resources would be greatly appreciated.




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



Velocity or JSP

2004-01-06 Thread lixin chu
Hi newbie question again:

i am buidling a web site which has some general
features, user login, role based security. no much GUI
on the pages though.

i would like to know if i should use Velocity or JSP ?
especially I would like to know:
1) do I still need Tiles to manage layout or Velocity
will provide that ?
2) any performance penalty to use Velocity ?

thanks in advance
li xin


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



forwarding request to Another Action class from Action Class

2004-01-06 Thread Sudhakar G
Hi Everybody,
   Can any one tell me how do I forward the request to other Action class
from the current Action class..


Thanks in Advance

Sudhakar





DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.

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



messages

2004-01-06 Thread Otávio Augusto
I'm able to send error messages to my jsp whenever needed. but how to i send 
confirmation messages (for instance Your mail has been sent) ? is there a way 
similar to the ActionErrors method?

thanks 


Otávio Augusto

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



Re: messages

2004-01-06 Thread hgosper
An easy way would be to have a field in the JSP that corresponds to a 
field in your ActionForm.
The you just put your message into the form field.

For instance I often display debugging information using a hidden field 
and I set write=true when I want to debug
eg I am running database queries and the record's id is not displayed on 
the JSP but I can display it for debugging with a line like:

html-el:hidden property=id value=${requestScope.myForm.id} write=true/
 
You could do something similar, and if you stick to using the form in this 
way you won't have messy parameters on the request.

HTH.

Heya






Otávio Augusto [EMAIL PROTECTED]
07/01/2004 02:47 AM
Please respond to Struts Users Mailing List

 
To: [EMAIL PROTECTED]
cc: 
Subject:messages


I'm able to send error messages to my jsp whenever needed. but how to i 
send confirmation messages (for instance Your mail has been sent) ? is 
there a way similar to the ActionErrors method?

thanks 


Otávio Augusto

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





RE: messages

2004-01-06 Thread Mohan Radhakrishnan
I just use ActionErrors for everything but I am guessing that it is
html:errors for errors
and html:messages for messages.

Mohan

-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 11:17 AM
To: [EMAIL PROTECTED]
Subject: messages


I'm able to send error messages to my jsp whenever needed. but how to i send
confirmation messages (for instance Your mail has been sent) ? is there a
way similar to the ActionErrors method?

thanks


Otávio Augusto

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


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



Re: messages

2004-01-06 Thread Otávio Augusto
That means there is an ActionMessages ?

Otávio Augusto

On Wed, 7 Jan 2004 11:41:08 +0530
Mohan Radhakrishnan [EMAIL PROTECTED] wrote:

 I just use ActionErrors for everything but I am guessing that it is
 html:errors for errors
 and html:messages for messages.
 
 Mohan
 
 -Original Message-
 From: Otávio Augusto [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 07, 2004 11:17 AM
 To: [EMAIL PROTECTED]
 Subject: messages
 
 
 I'm able to send error messages to my jsp whenever needed. but how to i send
 confirmation messages (for instance Your mail has been sent) ? is there a
 way similar to the ActionErrors method?
 
 thanks
 
 
 Otávio Augusto
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: messages

2004-01-06 Thread Camron G . Levanger
There is an ActionMessage Package, If i remember correctly.  I think 
Action Errors maybe even Extends it.

Camron G. Levanger
The Dreamlab
www.dreamlabmedia.com
(866) 890-3705
On Jan 6, 2004, at 11:11 PM, Otávio Augusto wrote:
That means there is an ActionMessages ?

Otávio Augusto

On Wed, 7 Jan 2004 11:41:08 +0530
Mohan Radhakrishnan [EMAIL PROTECTED] wrote:
I just use ActionErrors for everything but I am guessing that it is
html:errors for errors
and html:messages for messages.
Mohan

-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 11:17 AM
To: [EMAIL PROTECTED]
Subject: messages
I'm able to send error messages to my jsp whenever needed. but how to 
i send
confirmation messages (for instance Your mail has been sent) ? is 
there a
way similar to the ActionErrors method?

thanks

Otávio Augusto

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


smime.p7s
Description: S/MIME cryptographic signature


Re: dynamically add action ?

2004-01-06 Thread Manfred Wolff
li xin.

In my opinion it is no problem to add a jsp-file to a struts application 
at runtime. For this you don't need to restart the server. Changing the 
configuration at run time is not possible with the current 
implementation of struts. After a module is initialized the 
ActionServlet-class freezes the configuration. Before that you can add 
configurations such as actions, forwards etc. with the plug-in 
mechanism, because the init() method of the plugin has full access to 
the ModuleConfig.

You can override the ActionServlet Methode init() and don't freeze the 
moduleConfig. In this case you have the possibility to add actions and 
forwards to the configuration at run time.

Manfred

lixin chu wrote:

hi,
i would like to know if it is possible to dynamically
(without restart servlet engine) add Actions.
say for example, i have one struts based application
running. now i want to add one hyperlink in a JSPfile
which points to another struts based application
module. how do i do it ?
is there any existing soultion ?
thanks
li xin
__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
===
Dipl.-Inf. Manfred Wolff
---
phone neusta  : +49 421 20696-27
phone : +49 421 534522
mobil : +49 178 49 18 434
eFax  : +49 1212 6 626 63 965 33
---

Diese E-Mail enthält möglicherweise vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese 
Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.
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 unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



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


causing a problem in forward URL in struts-config.xml

2004-01-06 Thread Swaminathan Rajagopalan
Title:  causing a problem in forward URL in struts-config.xml






When I specify  in the URL for a forward in the action mapping, the XML does not get loaded.

How to solve the same?

Regards,

Swaminathan Rajagopalan,

Ph : (8520261) Extn: 55955

Mail : [EMAIL PROTECTED] 




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

Re: dynamically add action ?

2004-01-06 Thread lixin chu
Thanks !

I am very new to this web application world, just
wanted to clarify if I can do these in a running
Struts application without restart Tomcat:
1. Can I modify existing JSP files ?
   Yes, I have tried
2. Can I add new JSP files into existing folder ?
   I think so.
3. Can I create new folders for some new JSP files ?
4. Can I add new java class into an existing folder ?
5. Can I create a new folder for some new Java classes
?

thanks
li xin

--- Manfred Wolff [EMAIL PROTECTED] wrote:
 li xin.
 
 In my opinion it is no problem to add a jsp-file to
 a struts application 
 at runtime. For this you don't need to restart the
 server. Changing the 
 configuration at run time is not possible with the
 current 
 implementation of struts. After a module is
 initialized the 
 ActionServlet-class freezes the configuration.
 Before that you can add 
 configurations such as actions, forwards etc. with
 the plug-in 
 mechanism, because the init() method of the plugin
 has full access to 
 the ModuleConfig.
 
 You can override the ActionServlet Methode init()
 and don't freeze the 
 moduleConfig. In this case you have the possibility
 to add actions and 
 forwards to the configuration at run time.
 
 Manfred
 
 lixin chu wrote:
 
 hi,
 i would like to know if it is possible to
 dynamically
 (without restart servlet engine) add Actions.
 
 say for example, i have one struts based
 application
 running. now i want to add one hyperlink in a
 JSPfile
 which points to another struts based application
 module. how do i do it ?
 
 is there any existing soultion ?
 thanks
 li xin
 
 __
 Do you Yahoo!?
 Yahoo! Hotjobs: Enter the Signing Bonus
 Sweepstakes
 http://hotjobs.sweepstakes.yahoo.com/signingbonus
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
   
 
 
 -- 
 ===
 Dipl.-Inf. Manfred Wolff
 ---
 phone neusta  : +49 421 20696-27
 phone : +49 421 534522
 mobil : +49 178 49 18 434
 eFax  : +49 1212 6 626 63 965 33
 ---
 
 Diese E-Mail enth#37590;t m#39939;licherweise
vertrauliche
 und/oder rechtlich gesch#40695;zte Informationen.
Wenn
 Sie nicht der richtige Adressat sind oder diese
 E-Mail irrt#40688;lich erhalten haben, informieren
Sie
 bitte sofort den Absender und vernichten Sie diese
 Mail. Das unerlaubte Kopieren sowie die unbefugte
 Weitergabe dieser Mail ist nicht gestattet.
 
 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 unauthorised copying, disclosure or
 distribution of the material in this e-mail is
 strictly forbidden.
 
 
 

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


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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