[OT] WSAD problems with Struts

2004-03-26 Thread Oliver Thiel
Hi,


I read that some of you had some problems to run 
Struts apps on WSAD and as I run into that problem
too i wanted to know how you solved it!

I as far as I understand some turned of different validations
including the on concerning Struts, but where couldn't 
fide the right place to do that!

And are their any outher traps that has to be solved?



Thank and have a nice weekend
Oliver

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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



Re: [OT] WSAD problems with Struts

2004-03-26 Thread Oliver Thiel
Hi,


I have to use: WebSphere Studio Application Developer (Windows)  Version:
5.1.0

I developed my app with the StrutsStudio, as it is not that complex. But
know I have 
to run it on WSAD and run into different problems:

a. WSAD did not like the validation.XML 
   (so deleted it cause I did not use it anyway)

b. I use iBatis for the DB stuff and iBatis needs a newer JDOM version. 
   (so I integrated that and the coresponding DTDs for iBatis, as I was 
not able to referenc it from the net)

so far everything seams to work, but know I got some straing error messages,

that i did not define my ibatis xml  files correctly?!?

But the same app works fine on a Tomcat-Server!


I read in Hubert Rabago mail:
 Just as I suspected.  I'm forced to use WSAD where I work, 
 and I've turned
 off a whole bunch of validations by it, including Struts.  It 
 complains of a
 lot of things that either it doesn't know about or it's just 
 plain wrong
 about.  Fortunately, I only have to run the app there, and 
 not have to do any
 serious coding with it.  My teammates aren't as fortunate, though.


And thought that this could be a way to solve my problem, but did 
not find the right spot to enabel the validation.



Greetings
Oliver




DAMM I allways thougt that using Java would enable me 
to create  a *.war fiel and run it on any Java-application Server! 



 Oliver,
 
 What version of WSAD are you running? What problems are you having 
 specifically?
 
 Validation is controlled through the menu option Window  Preferences  
 Validation
 
 Susan Bradeen
 
 Oliver Thiel [EMAIL PROTECTED] wrote on 03/26/2004 08:09:34 AM:
 
  Hi,
  
  
  I read that some of you had some problems to run 
  Struts apps on WSAD and as I run into that problem
  too i wanted to know how you solved it!
  
  I as far as I understand some turned of different validations
  including the on concerning Struts, but where couldn't 
  fide the right place to do that!
  
  And are their any outher traps that has to be solved?
  
  
  
  Thank and have a nice weekend
  Oliver
  
  -- 
  +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz 
 +++
  100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
  
  
  -
  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]
 

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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



struts-faces bug?

2004-03-10 Thread Oliver
Hi,

After spending hours with error-searching and reading
other forums and mailinglists, I am at a loss.
I think there is an error in the struts-faces library.
I am using Tomcat 5.0.19, JSF1.0 reference implementation from Sun
and struts-faces.jar from 6.3.04. The JSF examples work 
trouble free, but as soon as I want to use the struts-faces.jar
with my struts app. I get the following Exception:

2004-03-10 19:22:32 StandardContext[/myApp]Error configuring application
listener of class org.apache.struts.faces.taglib.LifecycleListener
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1677)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:900)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1350)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1230)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
at java.lang.Class.getConstructor0(Class.java:1922)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3722)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4270)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
66)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:320)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:657)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)

Thanks for your proposals and help
Greetings
Oliver


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



RE: struts-faces bug?

2004-03-10 Thread Oliver
Hi,

I just read:
http://forum.java.sun.com/thread.jsp?forum=427thread=500294tstart=30trang
e=15
New version solved problem!

greetings
Oliver

 -Ursprüngliche Nachricht-
 Von: Oliver [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 10. März 2004 19:42
 An: [EMAIL PROTECTED]
 Betreff: struts-faces bug?
 
 Hi,
 
 After spending hours with error-searching and reading other 
 forums and mailinglists, I am at a loss.
 I think there is an error in the struts-faces library.
 I am using Tomcat 5.0.19, JSF1.0 reference implementation 
 from Sun and struts-faces.jar from 6.3.04. The JSF examples 
 work trouble free, but as soon as I want to use the 
 struts-faces.jar with my struts app. I get the following Exception:
 
 2004-03-10 19:22:32 StandardContext[/myApp]Error configuring 
 application listener of class 
 org.apache.struts.faces.taglib.LifecycleListener
 java.lang.IncompatibleClassChangeError: Implementing class
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
   at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.
 java:123)
   at
 org.apache.catalina.loader.WebappClassLoader.findClassInternal
 (WebappClassLo
 ader.java:1677)
   at
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappC
 lassLoader.jav
 a:900)
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
 lassLoader.jav
 a:1350)
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
 lassLoader.jav
 a:1230)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
   at java.lang.Class.getDeclaredConstructors0(Native Method)
   at 
 java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
   at java.lang.Class.getConstructor0(Class.java:1922)
   at java.lang.Class.newInstance0(Class.java:278)
   at java.lang.Class.newInstance(Class.java:261)
   at
 org.apache.catalina.core.StandardContext.listenerStart(Standar
 dContext.java:
 3722)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext
 .java:4270)
   at
 org.apache.catalina.core.ContainerBase.addChildInternal(Contai
 nerBase.java:8
 66)
   at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
 java:850)
   at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
   at
 org.apache.catalina.core.StandardHostDeployer.install(Standard
 HostDeployer.j
 ava:320)
   at
 org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
   at
 org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:657)
   at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476)
   at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
   at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf
 ig.java:394)
   at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
 ifecycleSuppor
 t.java:166)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
   at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
   at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
   at
 org.apache.catalina.core.StandardService.start(StandardService
 .java:519)
   at
 org.apache.catalina.core.StandardServer.start(StandardServer.j
 ava:2345)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.java:39
 )
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessorImpl
 .java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
   at 
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
 
 Thanks for your proposals and help
 Greetings
 Oliver
 
 
 -
 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]



[OFFLIST]

2004-02-17 Thread Oliver Thiel
Hi JC,


Here you can finde the Display Taglib:
http://www.displaytag.org/index.jsp
This one is quite nice too:
http://htmltable.yuriy-zubarev.com/jsp/index.jsp 
I answere you offlist because otherwise their would be too much comments
Like: try use google.


Oliver

-Ursprüngliche Nachricht-
Von: Gagné Jean-Christian [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 17. Februar 2004 14:09
An: 'Struts Users Mailing List'
Betreff: RE: [SPAM] - Display TagLib  Struts - Found word(s) list error
e-mail in the Text body.

Sorry to ask this, but where do you get the Display Taglib ?  The url
mentionned [www.displaytaglib.org] is not found.

JC

 -Message d'origine-
 De : Unmesh Nadkarni [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 17 février 2004 09:13
 À : 'Struts Users Mailing List'
 Objet : [SPAM] - Display TagLib  Struts - Found word(s) list error
 e-mail in the Text body.
 
 
 I have started working successfully on the Display TagLib in Struts.
 There are no issues except that the export to .xls, .csv format gives
 following errors in Tomcat. 
 
 Exception:
 javax.servlet.ServletException:org.apache.commons.collections.
 IteratorUt
 ils.arrayIterator
 
 Root cause:
 java.lang.NoSuchMethodError:org.apache.commons.collections.Ite
 ratorUtils
 .arrayIterator
 
 Any leads to the same would be useful.
 
 Thanks and Regards
 
 Unmesh N
 
 -Original Message-
 From: Oliver Thiel [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, February 15, 2004 6:00 PM
 To: Struts Users Mailing List
 Subject: Re: [OT] Display TagLib  Struts
 
 I allready got it working! But anyway thanks for your replay. 
 The only thing that does not for for me are the export types
 - I can (automatically) create the links (XML Excel CVS)
 But i always get a linke to a *.jsp instead of e.g. an *.xls file.
 
 Have you/someone also experience something like that? If so 
 how do you solved it?
 
 
 Thanks 
 Oliver 
 
 
  I'm using Display TagLib, now for testing purposes only but ...
  
  All you have to do is to prepare list of beans with getter 
 and setter
  method, and then defining columns by property names.
  
  Documentation is good, so I don't know what you expecting now.
  
  Only one bug i saw till now, if cell value has  character in it.
 But i
  will work with that
  
  So, what kind of error you have, what you want to do ??
  - Original Message -
  From: Oliver Thiel [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, February 14, 2004 11:38 AM
  Subject: [OT] Display TagLib  Struts
  
  
   Hi,
  
  
   did anyone use the Display TagLib [www.displaytaglib.org]?
   And can guide my - BETTER - send me some sample code
   on how to use it with struts! I got the examples running in
   my struts app - using the provided TestList's, but as soon as
   I start creating my one from a resultSet I got some strange
   errors. So it would be nice if someone could send me some
   code how he/she did it!
  
  
   Thanks and have a nice weekend ...
   Oliver
  
   --
   GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99
 EUR/Monat...)
   jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
 http://www.gmx.net/derspiegel
  +++
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  
 --
   Dla tych, co chca sie zaKOCHAC...  http://link.interia.pl/f17c0
  
  
  
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -- 
 GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 
 EUR/Monat...)
 jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ 
 http://www.gmx.net/derspiegel
 +++
 
 
 -
 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: [OT] Display TagLib Struts

2004-02-15 Thread Oliver Thiel
I allready got it working! But anyway thanks for your replay. 
The only thing that does not for for me are the export types
- I can (automatically) create the links (XML Excel CVS)
But i always get a linke to a *.jsp instead of e.g. an *.xls file.

Have you/someone also experience something like that? If so 
how do you solved it?


Thanks 
Oliver 


 I'm using Display TagLib, now for testing purposes only but ...
 
 All you have to do is to prepare list of beans with getter and setter
 method, and then defining columns by property names.
 
 Documentation is good, so I don't know what you expecting now.
 
 Only one bug i saw till now, if cell value has  character in it. But i
 will work with that
 
 So, what kind of error you have, what you want to do ??
 - Original Message -
 From: Oliver Thiel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, February 14, 2004 11:38 AM
 Subject: [OT] Display TagLib  Struts
 
 
  Hi,
 
 
  did anyone use the Display TagLib [www.displaytaglib.org]?
  And can guide my - BETTER - send me some sample code
  on how to use it with struts! I got the examples running in
  my struts app - using the provided TestList's, but as soon as
  I start creating my one from a resultSet I got some strange
  errors. So it would be nice if someone could send me some
  code how he/she did it!
 
 
  Thanks and have a nice weekend ...
  Oliver
 
  --
  GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
  jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel
 +++
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  --
  Dla tych, co chca sie zaKOCHAC...  http://link.interia.pl/f17c0
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


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



Re: persistent data storage - the right way

2004-02-15 Thread Oliver Thiel
Hi,


you can use iBatis [http://www.ibatis.com/] and 
take a look at this example/tutorial: 
http://www.reumann.net/do/struts/ibatisLesson1
(using: Struts - DAO - iBatis )


I think this is what your looking for.
Oliver


 hello,
 
 i have been looking (in vain) for a description how to implement database
 access in struts correctly. i would like to use the DAO (data access
 object)
 pattern in combination with datasources for connection pooling. however, i
 am having a hard way figuring out how to implement the whole and to
 decouple
 my actions from knowing about the implementation of the DB.
 
 the example application bundled with struts uses a plugin to set up
 everything in the application context - is this the right way to go about
 things? i am planning on using postgresql for the moment but would like to
 foresee possible changes in the future.
 
 any examples or pointers in the right direction would be very much
 appreciated.
 
 thanks,
 
 Ben.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


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



[OT] Display TagLib Struts

2004-02-14 Thread Oliver Thiel
Hi,


did anyone use the Display TagLib [www.displaytaglib.org]?
And can guide my - BETTER - send me some sample code
on how to use it with struts! I got the examples running in 
my struts app - using the provided TestList's, but as soon as
I start creating my one from a resultSet I got some strange 
errors. So it would be nice if someone could send me some
code how he/she did it! 


Thanks and have a nice weekend ...
Oliver 

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


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



Re: Using a java.util.List with a HTML:SELECT

2004-02-13 Thread Oliver Thiel
Hi, 

You can try something like this:

1. Instead of return r --- request.setAttribute(formprop,r);

2. In your JSP 
select name=formprop
logic:iterate id=field name=formprop
  option value=bean:write name=field
property=formprop[]/bean:write name=field property=formprop[]//option
/logic:iterate 
/select   

If you want your property|value pair to be different, 
you should use a HashMap.


Oliver



 
 is it possible to use a java.util.List object with an HTML:SELECT control.
 
 import java.util.List;
 import java.util.ArrayList;
 
 public final class Roles extends Ojbect {
 public Roles() {}
 public static List getRoles() {
  List r = new ArrayList();
  r.add(ADMIN);
  r.add(SUPERADMIN);
  r.add(CLERK);
  r.add(SUPERCLERK);
  return r;
 }
 }
 
 in jsp 
 
 i would use
 html:form action=. 
 html:select property=formprop
 
 !-- what goest inside the html:select aattribute --
 html:options..
 
 html:select
 /html:form
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


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



Re: Dynamic generation of forms out of a config table in a database

2004-02-11 Thread Oliver Thiel
Hi Tom


I use a quite similar approach, beside that I don`t use DynaActionForms,
cause I read about some drawbacks (e.g. performence). Never the less what I did
is I added a validation table (id/regexp). 
In my config-table I connect every form item to a regular expression. I then
use IBatis to build a HashMap (table item – regular expression) now I can
use the ActionErrors validate() methode in my
Form class to check if their are any errors. Advantage: Form class acts as a
kind of DMZ. But as you use DynaActionForms you should check your Forms in
your Action class, using the same approach.


Hope that helps you a bit ...
Oliver


 Hi all,
 
 In my application i want to generate dynamic forms, that means the number
 of
 controls placed on the forms depends on the entries in a config-tabel of a
 database.
 That means I can add a textbox to a database by adding a record to the
 config-table. Additionally i can show different forms to different users
 by
 adding roles to the config-table. 
 The generation of the forms should be done by a servlet that converts
 xml-strings to forms...
 Does struts give any support for validation of such forms
 (DynaActionForms)
 and handle parameters via getXXX and setXXX
 
 Or is the only way to do validation in such a form via javascript
 and to handle parameter via request.getParameter(...
 
 Tank you 
 Regards
 Tom
 

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


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



AW: [OT] - Request against Session

2004-02-11 Thread Oliver Thiel
Hi Pani,


I store the registration values in a DTO/VTO and put them in
session scope. For the registration process the session is 
(called: REGISTER:), when the registration process is completed 
I invalid this session and create a new session (called: USER), 
which is necessary to see the other pages.


Hope that helps
Oliver




-Ursprüngliche Nachricht-
Von: Pani R [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Februar 2004 21:11
An: Struts Users Mailing List
Betreff: [OT] - Request against Session

Hi:

I have a very basic question which is related to a User Registration
Process. Lets assume the user registration process spans across 4 pages.
User is obviously not logged in to the system and apparently viewing all
the content belonging to the public. 

Now, when the un-logged user tries to register, where am I suppose to
store the Registration Values, Session or Request? Which one will be the
better approach and why?

I'm trying to store it in Request as I thought the Session should be
created only after completion of the User Registration process
(obviously I create a session and log him in). But, again, when I try to
pass the Java object through hidden fields, I get null in my action
class. Is there any specific way of pass Jabva Objects in Hidden Fields?

I appreciate any response.

Regards,
Pani




Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default
.asp?SRC=lycos10

-
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: Struts and XSL ?

2004-02-09 Thread Oliver Thiel
Hi Andrew,


StrutsCX is Struts with XSLT - as alternative to JSP. StrutsCX overcomes the
limitations of the Struts Framework by enabling you to utilize XML, XSLT,
and XPath technologies instead of its standard JavaServer Pages.
http://it.cappuccinonet.com/strutscx/index.php

I just took a quick look at it  and it looked quite promising at least it
offers some
documentation and some examples. But I did not had the time to implement it
yet - so I cannt tell you if it's worth it.


Oliver

 
 Hi,
 
 Does anyone have any recommendation for add-ons to Struts that replace JSP
 rendering (or co-exist with) with XML/XSL transforms to produce the UI?
 I've found a link to Stxx http://stxx.sourceforge.net/ but are there any
 alternatives?  
 
 I'd be interested in knowing if anyone has gone down this route, what you
 chose and how you got on with it.
 
 Thanks,
 
 Andrew
 -- 
 Andrew Bate
 Serco Justice
 Direct Line: (01452) 880433
 Email: [EMAIL PROTECTED]
 
 
 This e-mail and any attachments may contain confidential and/or privileged
 material; it is for the intended addressee(s) only.  If you are not a
 named
 addressee, you must not use, retain or disclose such information.
 
 Serco cannot guarantee that the e-mail or any attachments are free from
 viruses.
 
 The views expressed in this e-mail are those of the originator and do not
 necessarily represent the views of Serco.
 
 Nothing in this e-mail shall bind Serco in any contract or obligation.
 
 Serco Group plc.  Registered in England and Wales.  No: 2048608
 Registered Office:  Serco House, 16 Bartley Wood Business Park, Bartley
 Way,
 Hook, Hampshire, RG27 9UY, United Kingdom.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


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



Struts Tag

2004-02-09 Thread Oliver Thiel
Hi,


does anyone know a tag like logic:Match or logic:equals
beside that it should be able to handel more than one property!


thanks
Oliver

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


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



SOLVED RE: Struts Tag

2004-02-09 Thread Oliver Thiel
Thanks Shirishchandra and Tim! The JSLT Tag works fine for me.
 
  does anyone know a tag like logic:Match or logic:equals 
  beside that it should be able to handel more than one property!
 
 Use the JSTL c:if test=... tag. You can use a quite complex expression
 involving as many variables as you like.
 
 --
 Tim Slattery
 [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


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



AW: Orkut

2004-02-09 Thread Oliver Thiel
... me too ... thanks!



-Ursprüngliche Nachricht-
Von: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 10. Februar 2004 00:22
An: Struts Users Mailing List
Betreff: RE: Orkut

add me too :-)

-R

-Original Message-
From: Babu, Bharathi [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 6:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Orkut


Please add me.

-Original Message-
From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 09, 2004 3:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Orkut


Can some one add me to the list please??

Thanks,
Sree

 [EMAIL PROTECTED] 02/09/04 02:11PM 
Hi,

Can someone please add me to Orkut
Thanks in advance

Cheers, Matthias




-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 09, 2004 6:33 PM
To: 'Struts Users Mailing List'
Subject: RE: Orkut


Hello, Please add me to Orkut.
Thanks


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Sunday, February 08, 2004 8:16 PM
To: [EMAIL PROTECTED] 
Subject: Orkut

If you want to join Struts in Orkut Social Network send me an e-mail 
saying so.

.V
(if you do not know what it is don't worry)


-
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]


-
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]



logic:notMatch - TagLib

2004-02-08 Thread Oliver Thiel
Hi  @all,
 
 
I iterate over a HashMap (mapped) to create my (register) form. 
 
logic:iterate id=field name=mapped
input type=text name=field(bean:write name=field property=key
/)  value=bean:write name=field property=value /
/logic:iterate
 
Now I want some of the input fields to be text and some
to be password. 
 
logic:iterate id=field name=mapped
logic:match name=field value=password
input type=password name=field(bean:write name=field
property=key /)  value=bean:write name=field property=value
/
/logic:match
logic:match name=field value=conf_pwd
input type=password name=field(bean:write name=field
property=key /)  value=bean:write name=field property=value
/
/logic:match
logic:notMatch name=field value=password value=conf_pwd
input type=text name=field(bean:write name=field property=key
/)  value=bean:write name=field property=value /
/logic:notMatch
/logic:iterate
 
But this does not work! It prints out an two input field for password!
One of type text and one of type password!
Is their a better/correct way to archive this? Or an other tag I can
use?
 
 
Thanks 
Oliver


Global Variable - SetupServlet

2004-02-05 Thread Oliver Thiel
Hi all,
 
 
I wrote a struts app with database 'driven' forms using iBatis.
For this purpose I wrote a 'SetupServlet' which creates some
LinkedHashMaps e.g.  register == {username=, password=, ..}
and sets them into the Servlet Context
servletContext.setAttribute(register, register);
 
In the reset() Methode of my RegisterForm.java I do something like that:

 
public class RegisterForm extends ActionForm {
   
  Map register = new LinkedHashMap();
   :
  public void reset(ActionMapping arg0, HttpServletRequest arg1) {

register = servletContext.getAttribute(register);
arg1.setAttribute(regiser,fields);
} 
}
 
And in my register.jsp:
logic:iterate id=field name=fields
TR
TD width=40%bean:write name=field property=key/:/TD
TDinput type=text name=field(bean:write name=field
property=key /)  value=bean:write name=field property=value
/ class=Feld/TD   
/TR
/logic:iterate
 
Until this point anything works fine I see the form and I can insert
data .
BUT I can also see the INSERTED data from another machine - as if they
where written into the ServletContext?!?
 
What am I doing wrong? OR: What can I do against this really BAD effect?
Oliver
 


REPOST: Global Variable - SetupServlet

2004-02-05 Thread Oliver Thiel
My mail client seams to make trouble, so I repost my mail. SORRY if you
get it twice!
 
-Ursprüngliche Nachricht-
Von: Oliver Thiel [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 5. Februar 2004 17:06
An: '[EMAIL PROTECTED]'
Betreff: Global Variable - SetupServlet 
 
Hi all,
 
 
I wrote a struts app with database ‘driven’ forms using iBatis.
For this purpose I wrote a ‘SetupServlet’ which creates some
LinkedHashMaps e.g.  register == {username=, password=, ….}
and sets them into the Servlet Context
servletContext.setAttribute(register, register);
 
In the reset() Methode of my RegisterForm.java I do something like that:

 
public class RegisterForm extends ActionForm {
   
  Map register = new LinkedHashMap();
   :
  public void reset(ActionMapping arg0, HttpServletRequest arg1) {

register = servletContext.getAttribute(register);
arg1.setAttribute(regiser,fields);
} 
}
 
And in my register.jsp:
logic:iterate id=field name=fields
TR
TD width=40%bean:write name=field property=key/:/TD
TDinput type=text name=field(bean:write name=field
property=key /)  value=bean:write name=field property=value
/ class=Feld/TD   
/TR
/logic:iterate
 
Until this point anything works fine I see the form and I can insert
data …
BUT I can also see the INSERTED data from another machine – as if they
where written into the ServletContext?!?
 
What am I doing wrong? OR: What can I do against this really BAD effect?
Oliver
 


SOLVED AW: Global Variable - SetupServlet

2004-02-05 Thread Oliver Thiel
YES that was quite obvious! But some how I over looked it!
But now it works ... THANKS 2 Alexander

Regards
Oliver

-Ursprüngliche Nachricht-
Von: Jesse Alexander (KAID 11)
[mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 5. Februar 2004 18:33
An: 'Struts Users Mailing List'
Betreff: RE: Global Variable - SetupServlet

Well,

you do not seem to copy the register-object. Therefor you basically
address
the same object via the servlet-context AND the request. That means that

everything you do with the object addressed in request1, you do to the 
object you have in the servlet context. 
Then you fetch that global object and give it to request2... where 
(should be obvious why, by now) you will see the stuff done in
request1...

hth
Alexander

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 5. Februar 2004 17:06
To: [EMAIL PROTECTED]
Subject: Global Variable - SetupServlet 


Hi all,
 
 
I wrote a struts app with database 'driven' forms using iBatis.
For this purpose I wrote a 'SetupServlet' which creates some
LinkedHashMaps e.g.  register == {username=, password=, ..}
and sets them into the Servlet Context
servletContext.setAttribute(register, register);
 
In the reset() Methode of my RegisterForm.java I do something like that:

 
public class RegisterForm extends ActionForm {
   
  Map register = new LinkedHashMap();
   :
  public void reset(ActionMapping arg0, HttpServletRequest arg1) {

register = servletContext.getAttribute(register);
arg1.setAttribute(regiser,fields);
} 
}
 
And in my register.jsp:
logic:iterate id=field name=fields
TR
TD width=40%bean:write name=field property=key/:/TD
TDinput type=text name=field(bean:write name=field
property=key /)  value=bean:write name=field property=value
/ class=Feld/TD   
/TR
/logic:iterate
 
Until this point anything works fine I see the form and I can insert
data .
BUT I can also see the INSERTED data from another machine - as if they
where written into the ServletContext?!?
 
What am I doing wrong? OR: What can I do against this really BAD effect?
Oliver
 

-
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]



AW: Navigating back

2004-02-01 Thread Oliver Thiel
Hi Sudhakar,
 
 
If you can/want use JavaScript:
html:link href=javascript:history.back() titleKey=back.title
previous page /html:link
 
 
Oliver
 
-Ursprüngliche Nachricht-
Von: Namasivayam, Sudhakar (Cognizant)
[mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 1. Februar 2004 11:30
An: [EMAIL PROTECTED]
Betreff: Navigating back
 
 
Hi , 
 What is the simplest way to navigate back? 
Like 
On exception on any page I forward to a error page and then i want a
link in the error page that forwards back to the previous page.
Thanks and regards, 
Sudhakar 


AW: action executed and input ignored (?)

2004-02-01 Thread Oliver Thiel
Hi Timo,


If you want to load search.jsp just call it from another jsp with
html:link href=search.jspSearch/html:link (or use a global
forward or what ever you like ...)

In your search.jsp you probably should have something like that:
html:form action=search.do
:
:
/html:form
which calls the action. And in your struts-conf.xml you already defined
the search.jsp to be the input for this action.


Hope that'll fix it!
Oliver



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 1. Februar 2004 14:11
An: [EMAIL PROTECTED]
Betreff: action executed and input ignored (?)

Hi!

action
path=/search
type=f4t.view.SearchAction
attribute=searchForm
scope=request
input=/search.jsp
name=searchForm
validate=false
forward name=failure path=/failure.jsp /
forward name=display path=/display.jsp /
exception type=java.lang.Exception
path=/failure.jsp/
/action

This did work once. I did something trivial I don't remember and now 
visiting /search.do does immediately call SearchAction.execute() and
does not 
load search.jsp.

I don't see the wood for the tree - can somebody help please?

Thanks in advance!
Timo


-
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]



session timeout -- time limit

2004-01-30 Thread Oliver Thiel
Hi all,


where can I set a time limit for a session?
I want the session's to be invalid after 10
minutes! How can i archive this?



Thanks 
Oliver 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail


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



[SOLVED] RE: session timeout -- time limit

2004-01-30 Thread Oliver Thiel
Thanks! Matthias and Alvaro. 

 i think yes...
 (perhaps you need a special session.life-time (e.g. for admin...))
 
 from dtd:
 The session-timeout element defines the default session timeout
 interval for all sessions created in this web application. The
 specified timeout must be expressed in a whole number of minutes.
 If the timeout is 0 or less, the container ensures the default
 behaviour of sessions is never to time out.
 
 note: all sessions in this web-app...
 
 so you can overwrite it with setMaxInactiveInterval()
 if user bigBoss logged in... :-)
 
 
 cheers,
 
 
 
 -Original Message-
 From: Anirudh Jayanth [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 30, 2004 11:48 AM
 To: 'Struts Users Mailing List'
 Subject: RE: session timeout -- time limit
 
 
 
 session.setMaxInactiveInterval(int interval); would this override the
 session-timeout set in the web.xml for the application??
 
 
 -Original Message-
 From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 30, 2004 4:04 PM
 To: 'Struts Users Mailing List'
 Subject: RE: session timeout -- time limit
 
 
 session.setMaxInactiveInterval(int interval);
 
 Specifies the time, in seconds, between client requests before the
 servlet container will invalidate this session. A negative time
 indicates the session should never timeout
 
 
 
 -Original Message-
 From: Oliver Thiel [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 30, 2004 11:31 AM
 To: [EMAIL PROTECTED]
 Subject: session timeout -- time limit
 
 
 Hi all,
 
 
 where can I set a time limit for a session?
 I want the session's to be invalid after 10
 minutes! How can i archive this?
 
 
 
 Thanks 
 Oliver 
 
 -- 
 +++ GMX - die erste Adresse für Mail, Message, More +++
 Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail
 
 
 -
 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]
 

-- 
+++ Mailpower für Multimedia-Begeisterte: http://www.gmx.net/topmail +++
250 MB Mailbox, 1 GB Online-Festplatte, 100 FreeSMS. Jetzt kostenlos testen!


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



DynaBean -HashMap

2004-01-25 Thread Oliver Thiel
Hi all,
 
 
I created some sort of mapBacked form. First I defined my DynaBean in
the Struts config.
Then I call an Action which fills the HashMap with data. Then I display
the form (JSP) and
forward it to an DynaActionForm and try to validate it.
 
BUT I'm not able to get the data! 
 
 
ANY IDEAS - what I do wrong?
Oliver
 
 
 
 
Struts-config.xml
form-bean name=mapForm type=struts.form.mapForm /
form-property name=mappedForm type=java.util.HashMap /
form-property name=static type=java.lang.String /
/form-beans
 
Action:
HashMap mapForm = new HashMap();
mapForm.put(username, );
mapForm.put(email, );
mapForm.set(mapForm, mapForm);
 
JSP:
logic:iterate id=mapForm name=mapForm
TR
  TD width=40%bean:write name=mapForm property=key/:/TD
  TDinput type=text name=fbean:write name=mapForm
property=key /  value=bean:write name=mapForm property=value
/ class=Feld/TD /TR
/logic:iterate   
 
FORM:
String static  = (String)this.get(static);
HashMap mappedForm = (HashMap)this.get(mappedForm);
String username = (String) mappedForm.get(username);


LDAP + DataSource

2004-01-23 Thread Oliver Thiel
Hi all,
 
 
Is it possible to set up a DataSource for LDAP?
If yes how can I do this? And how do I retrieve a
connection?
 
 
Thanks
Oliver
 
 


AW: LDAP + DataSource

2004-01-23 Thread Oliver Thiel
THANKS Jiri that's what I was searching for.
THANKS Ian for the nice explanation on LDAP ;) OK, maybe may question
was not very precise - sorry!


But anyway thanks to both of you!
Oliver

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 23. Januar 2004 16:49
An: Struts Users Mailing List
Betreff: Re: LDAP + DataSource

Hallo,
generally, it is right.
but, there exist jdbc driver for ldap (for example,
http://www.octetstring.com/products/jdbcldapdriver/). I do not use it,
becouse I
am using the classical way (java ldap packages from novell), but I was
view the
samples of jdbc way and I thing if you use it (jdbc), you can create
datasource.

But as I wrote, I am using the classic way to access LDAP.

Best regards
Jiri

 LDAP, as the name implies, is a Directory Access Protocol.  As such,
you
 cannot use JDBC to establish connections.  However, java does provide
an
 analagous interface for accessing Naming and Directory Services (LDAP,
DNS,
 etc) known as the Java Naming and Directory Interface (JNDI).
 
 A good starting point to learn more about JNDI is 'Developing a White
Pages
 Service with LDAP and JNDI' by Budi Kurniawan
 (http://www.onjava.com/pub/a/onjava/2001/05/21/jndi.html)
 
 
 HTH,
 Ian
 
 
 


  
 Oliver Thiel

  
 thiel.oliver@   To:
 [EMAIL PROTECTED]  
 gmx.de  cc:

  
  Subject: LDAP +
DataSource  
  
 01/23/2004

  
 07:55 AM

  
 Please respond

  
 to Struts

  
 Users Mailing

  
 List

  


  


  
 
 
 
 
 Hi all,
 
 
 Is it possible to set up a DataSource for LDAP?
 If yes how can I do this? And how do I retrieve a
 connection?
 
 
 Thanks
 Oliver
 
 
 
 
 
 
 
 
 This transmission may contain information that is privileged,
confidential
 and/or exempt from disclosure under applicable law. If you are not the
 intended recipient, you are hereby notified that any disclosure,
copying,
 distribution, or use of the information contained herein (including
any
 reliance thereon) is STRICTLY PROHIBITED. If you received this
transmission
 in error, please immediately contact the sender and destroy the
material in
 its entirety, whether in electronic or hard copy format. Thank you.
 
 
 -
 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]



AW: bean:message WITH bean:write ?!?

2004-01-20 Thread Oliver Thiel
Hi Jimmy,


Could you please send me your extension of the bean:message tag!
If you already send it through the 'struts user mailing list' please
send it direct to me: [EMAIL PROTECTED] Because some times I did
not receive all messages from the list. 


Thanks in advanced 
Oliver


-Ursprüngliche Nachricht-
Von: Mark Nichols [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 19. Januar 2004 13:03
An: Struts Users Mailing List
Betreff: Re: bean:message WITH bean:write ?!?

Jimmy,

I would be interested in seeing your extension of the bean:message tag.

Thanks,

Mark

--
Science is what we understand well enough to explain to a computer. 
Art is everything else.
-- Donald Knuth
On Jan 19, 2004, at 2:34 AM, VAN BROECK Jimmy wrote:

 Hi,

 for the moment there isn't a solution for that in Struts.

 You can two things with bean:message. That is provide a static key or 
 define a dynmic key. but you cannot combine the two.

 What i have done is to extend the bean:message tag to implement this 
 kind of functionality.

 Let me know if you are interested in the code. Its just a quick hack 
 of the struts code.

 Greetings
 Jimmy


 -Original Message-
 From: Oliver Thiel [mailto:[EMAIL PROTECTED]
 Sent: maandag 19 januari 2004 9:14
 To: [EMAIL PROTECTED]
 Subject: bean:message WITH bean:write ?!?


 Hi all,


 In my HashMap (which defines the form) I save something like that:
 setField(username, oliver); Know I want to the output of the 
 message
 to be dynamic.

 For a static version this works fine:
 bean:message key=form.username/

 For a dynamic version I think I need some thing like that: 
 bean:message
 key=form.bean:write name=field property=key //

 But the code above does not work! Has anyone an idea?


 THX
 Oliver



 STRICTLY PERSONAL AND CONFIDENTIAL
 This message may contain confidential and proprietary material for the

 sole use of the intended recipient. Any review or distribution by 
 others is strictly prohibited. If you are not the intended recipient 
 please contact the sender and delete all copies.

 Ce Message est uniquement destiné aux destinataires indiqués et peut 
 contenir des informations confidentielles. Si vous n'êtes pas le 
 destinataire, vous ne devez pas révéler le contenu de ce message ou en

 prendre copie. Si vous avez reçu ce message par erreur, veuillez en 
 informer l'expéditeur, ou La Poste immédiatement, avant de le 
 supprimer.

 Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan 
 vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan 
 mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u 
 dit bericht per vergissing heeft ontvangen, gelieve er de afzender of 
 De Post onmiddellijk van op de hoogte te brengen en het bericht 
 vervolgens te verwijderen.


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



bean:message WITH bean:write ?!?

2004-01-19 Thread Oliver Thiel
Hi all,
 
 
In my HashMap (which defines the form) I save something like that:
setField(username, oliver); Know I want to the output of the message
to be dynamic.
 
For a static version this works fine:
bean:message key=form.username/
 
For a dynamic version I think I need some thing like that: bean:message
key=form.bean:write name=field property=key //
 
But the code above does not work! Has anyone an idea?
 
 
THX
Oliver
 


AW: bean:message WITH bean:write ?!?

2004-01-19 Thread Oliver Thiel
Hi Jimmy,


Of course I'm interested in seeing your extension of the bean:message
tag!

Thanks
Oliver

-Ursprüngliche Nachricht-
Von: Mark Nichols [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 19. Januar 2004 13:03
An: Struts Users Mailing List
Betreff: Re: bean:message WITH bean:write ?!?

Jimmy,

I would be interested in seeing your extension of the bean:message tag.

Thanks,

Mark

--
Science is what we understand well enough to explain to a computer. 
Art is everything else.
-- Donald Knuth
On Jan 19, 2004, at 2:34 AM, VAN BROECK Jimmy wrote:

 Hi,

 for the moment there isn't a solution for that in Struts.

 You can two things with bean:message. That is provide a static key or 
 define a dynmic key. but you cannot combine the two.

 What i have done is to extend the bean:message tag to implement this 
 kind of functionality.

 Let me know if you are interested in the code. Its just a quick hack 
 of the struts code.

 Greetings
 Jimmy


 -Original Message-
 From: Oliver Thiel [mailto:[EMAIL PROTECTED]
 Sent: maandag 19 januari 2004 9:14
 To: [EMAIL PROTECTED]
 Subject: bean:message WITH bean:write ?!?


 Hi all,


 In my HashMap (which defines the form) I save something like that:
 setField(username, oliver); Know I want to the output of the 
 message
 to be dynamic.

 For a static version this works fine:
 bean:message key=form.username/

 For a dynamic version I think I need some thing like that: 
 bean:message
 key=form.bean:write name=field property=key //

 But the code above does not work! Has anyone an idea?


 THX
 Oliver



 STRICTLY PERSONAL AND CONFIDENTIAL
 This message may contain confidential and proprietary material for the

 sole use of the intended recipient. Any review or distribution by 
 others is strictly prohibited. If you are not the intended recipient 
 please contact the sender and delete all copies.

 Ce Message est uniquement destiné aux destinataires indiqués et peut 
 contenir des informations confidentielles. Si vous n'êtes pas le 
 destinataire, vous ne devez pas révéler le contenu de ce message ou en

 prendre copie. Si vous avez reçu ce message par erreur, veuillez en 
 informer l'expéditeur, ou La Poste immédiatement, avant de le 
 supprimer.

 Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan 
 vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan 
 mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u 
 dit bericht per vergissing heeft ontvangen, gelieve er de afzender of 
 De Post onmiddellijk van op de hoogte te brengen en het bericht 
 vervolgens te verwijderen.


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



Collection problem - for dynamic content with MapBackedForms

2004-01-16 Thread Oliver Thiel
Hi all!
 
 
I still try to implement a ,real' dynamic form. So far I can build the
Form dynamically. Perform the validation dynamically. All changes can be
made by adding or deleting a database field. So you don't have to edit
the jsp or java files to change the form. But at the moment this things
are still static:
 
MESSAGE=KEY
TYPE=TEXT 
MAXLENGTH=20 
CLASS=FELD
 
logic:iterate id=field name=mapped
tr
  tdbean:write name=field property=key/:/td
  tdinput TYPE=TEXT MAXLENGTH=20 name=field(bean:write
name=field property=key/ 
   ) value=bean:write name=field property=value /
CLASS=FELD/td   
/tr
/logic:iterate  
 
I tried to implement Maps which keep the values, but I did not manage to
iterate them properly. I also tried to use a list of maps which kept the
values, but there I had problems to define the Set- and Get- Methods
properly. 
 
 
The values I need to store are:
MESSAGE=KEY
NAME=VALUE   (Get-/Set-)
TYPE=TEXT 
MAXLENGTH=20 
CLASS=FELD
 
 
Has any one a good suggestion which Collection I could use? And or has
someone done something comparable and can provide my some sample code? 
 
 
Have a nice weekend
Oliver
 


Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread Oliver Thiel
Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app. 
The StrutsStudio uses Ant to build the WAR file. If I deploy my app 
in Tomcat anything works fine, but I am not able to use my WAR file 
within the WAServer from IBM. There I always get a massage that 
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



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



AW: Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread Oliver Thiel
Thanks for your replay!


But that was not exactly what I was looking for ;)
Maybe my description wasn't clear enough!
So I'll try again:

1. I can create a WAR file using ANT (see Appendix: ANT)
2. I can deploy it in Tomcat
3. I can not deploy it in WebSphere!
   Error message: missing DTD ~ deployment descriptor
   Although I defined my web.xml correct (I think - see Appendix:
web.xml)

I searched the IBM website for a document which describes the process of
migrating a tomcat app 2 WebSphere, but I could not find any.

Again:
Has anyone done that before?
Or/And has anyone a HowTo which explains the process?



Thanks
Oliver 



Appendix: web.xml
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;


Appendix: ANT

!-- Create binary distribution --
target name=war depends=build
  mkdir dir=${build.dir}/
  war
basedir=../
warfile=${build.dir}/${project.distname}.war
webxml=web.xml
exclude name=WEB-INF/${build.dir}/**/
exclude name=WEB-INF/src/**/
exclude name=WEB-INF/*exadel*/
exclude name=WEB-INF/*.pex/
exclude name=WEB-INF/*.rex/
exclude name=WEB-INF/web.xml/
   /war

/target

target name=deploy depends=war
   delete file=${deploy.dir}/${project.distname}.war/
   delete dir=${deploy.dir}/${project.distname}/
   copy file=${build.dir}/${project.distname}.war
todir=${deploy.dir}/
/target 

-Ursprüngliche Nachricht-
Von: Srivastava, Ravi Prakash [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 12:05
An: 'Struts Users Mailing List'
Betreff: RE: Tomcat -- IBM WebSphere Application Server 4.x

Hi,

U can make war file through the the java command jar -cvf xyz.war *.*,
it will take all the files from the current root and make a war.
Now u can deploy this war file to ur WAS.

exam :

c:\app\*.jsp
c:\app\imapp\*

Note : imapp is the java package name.

go to c:\app\jar -cvf app.war *.*

Thanx

-Original Message-
From: Jaap van der Molen [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:24 PM
To: Struts Users Mailing List
Subject: RE: Tomcat -- IBM WebSphere Application Server 4.x




Out of the box, WAS wants an EAR file (Enterprise Application aRchive)
and
not a WAR file. You could create a new 'default' EAR project and add the
web
project to that ear. Then deolpy the EAR on WAS. Unfortunately, this
sounds
simplerer than it really is. Are you deploying on WAS from WSAD or do
you
use a standalone WAS server. The Admin tool should help you in the
latter
case.

I have heard people deploying WAR directly on WAD, but I don't know this
myself. Perhaps the IBM website can help you out.

re Jaap

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Tomcat -- IBM WebSphere Application Server 4.x


Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app.
The StrutsStudio uses Ant to build the WAR file. If I deploy my app
in Tomcat anything works fine, but I am not able to use my WAR file
within the WAServer from IBM. There I always get a massage that
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver


--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



-
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]
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to
this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or
any
action or omission taken by you in reliance on it, is prohibited and may
be
unlawful.  Please immediately contact the sender if you have received
this
message in error. Thank you.

-
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]



AW: AW: Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread Oliver Thiel
THANKS MIKE! I`ll try that on monday. Hopefully this'll
solve the problem! 



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 16:20
An: Struts Users Mailing List
Betreff: Re: AW: Tomcat -- IBM WebSphere Application Server 4.x

aka :

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

not :
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

Mike 





Oliver Thiel [EMAIL PROTECTED] 
16/01/04 14:18
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
AW: Tomcat -- IBM WebSphere Application Server 4.x






Thanks for your replay!


But that was not exactly what I was looking for ;)
Maybe my description wasn't clear enough!
So I'll try again:

1. I can create a WAR file using ANT (see Appendix: ANT)
2. I can deploy it in Tomcat
3. I can not deploy it in WebSphere!
   Error message: missing DTD ~ deployment descriptor
   Although I defined my web.xml correct (I think - see Appendix:
web.xml)

I searched the IBM website for a document which describes the process of
migrating a tomcat app 2 WebSphere, but I could not find any.

Again:
Has anyone done that before?
Or/And has anyone a HowTo which explains the process?



Thanks
Oliver 



Appendix: web.xml
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
 

Appendix: ANT

!-- Create binary distribution --
target name=war depends=build
  mkdir dir=${build.dir}/
  war
basedir=../
warfile=${build.dir}/${project.distname}.war
webxml=web.xml
exclude name=WEB-INF/${build.dir}/**/
exclude name=WEB-INF/src/**/
exclude name=WEB-INF/*exadel*/
exclude name=WEB-INF/*.pex/
exclude name=WEB-INF/*.rex/
exclude name=WEB-INF/web.xml/
   /war

/target

target name=deploy depends=war
   delete file=${deploy.dir}/${project.distname}.war/
   delete dir=${deploy.dir}/${project.distname}/
   copy file=${build.dir}/${project.distname}.war
todir=${deploy.dir}/
/target 

-Ursprüngliche Nachricht-
Von: Srivastava, Ravi Prakash [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 12:05
An: 'Struts Users Mailing List'
Betreff: RE: Tomcat -- IBM WebSphere Application Server 4.x

Hi,

U can make war file through the the java command jar -cvf xyz.war *.*,
it will take all the files from the current root and make a war.
Now u can deploy this war file to ur WAS.

exam :

c:\app\*.jsp
c:\app\imapp\*

Note : imapp is the java package name.

go to c:\app\jar -cvf app.war *.*

Thanx

-Original Message-
From: Jaap van der Molen [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:24 PM
To: Struts Users Mailing List
Subject: RE: Tomcat -- IBM WebSphere Application Server 4.x




Out of the box, WAS wants an EAR file (Enterprise Application aRchive)
and
not a WAR file. You could create a new 'default' EAR project and add the
web
project to that ear. Then deolpy the EAR on WAS. Unfortunately, this
sounds
simplerer than it really is. Are you deploying on WAS from WSAD or do
you
use a standalone WAS server. The Admin tool should help you in the
latter
case.

I have heard people deploying WAR directly on WAD, but I don't know this
myself. Perhaps the IBM website can help you out.

re Jaap

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Tomcat -- IBM WebSphere Application Server 4.x


Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app.
The StrutsStudio uses Ant to build the WAR file. If I deploy my app
in Tomcat anything works fine, but I am not able to use my WAR file
within the WAServer from IBM. There I always get a massage that
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver


--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



-
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]
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to
this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or
any
action or omission taken by you in reliance on it, is prohibited

AW: All values null after Validate

2004-01-15 Thread Oliver Thiel
Hi Søren,


IF you use [extends ActionForm] you can use:

input type=text name=username value=bean:write name=basicForm
property=username / (in your jsp)

OR:

IF you use [extends ValidatorForm] you can use:

html:text property=username/ (in your jsp)
 

Hope that helps
Oliver

-Ursprüngliche Nachricht-
Von: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 15. Januar 2004 11:16
An: [EMAIL PROTECTED]
Betreff: All values null after Validate

Hi.
I am using struts and I am doing a form validate.

When the user types in more than on thing and one of them fails
validation, all the values is returned blank.

Is there anyway to keep the values when validate error?

BR

Soren


-
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]



Real Dynamic Forms - Using DynaBeans MapBackedForms

2004-01-12 Thread Oliver Thiel
Hi @all,
 
 
I am relative new to Strut, but I have to | want to do a struts project
for my studies at the university of applied science.  I try to build a
'real' dynamic registration form using DynaBeans and Maps (all HashMaps
will be filled by a database call later).
 
What I have so far is:
 
CreateFormAction.java:
 
DynaActionForm mappedForm2 = (DynaActionForm) form;
HashMap mappedForm = new HashMap();
 
mappedForm.put(username, test);
mappedForm.put(email, [EMAIL PROTECTED]);
mappedForm.put(password, xyz);
mappedForm.put(conf_pwd, xyz);
 
mappedForm2.set(mappedForm, mappedForm);
request.setAttribute(mappedForm2, mappedForm2);
 
 
 
struts-config.xml
 
form-bean dynamic=true name=mappedForm2
type=org.apache.struts.action.DynaActionForm
form-property name=mappedForm type=java.util.HashMap/
form-property name=getEmail size=20 type=java.lang.String/
/form-bean
 
 
 
mappedForm.jsp
 
!-- TYPE:INPUT --
bean:define id=values name=mappedForm2 property=mappedForm
type=java.util.HashMap/
logic:iterate id=mappedForm name=mappedForm2 property=mappedForm
TR
TD width=40%bean:write name=mappedForm
property=key/:/TD
TDinput type=text name=bean:write name=mappedForm
property=key /  
 value=bean:write name=mappedForm property=value /
class=Feld/TD
/TR
  /logic:iterate
  !-- TYPE:CHECKBOX -- 
TR 
TDhtml:checkbox styleClass=Check property=getEmail
//TD
TDbean:message key=form.getMail//TD
/TR
 
 
mappedForm.java (extends DynaActionForm)
 
String getEmail= (String)this.get(getEmail);
In the mappedForm.java I can only access the getMail value! 
 
Questions:
1.  How can I access the values from the map in my mappedForm
validate() method? To validate them I want to use another Map, filed
with Regular Expressions?
2.  Can I use more than one Map? Cause I also want the (input
type=text) to be dynamic too, so that I can switch between text and
password for example.
3.  How can I out print a 'dynamic' bean massage?
Something like that: bean:message key=bean:write name=mappedForm
property=value/ / But this does not work!
4.  Is their a better way in Struts to do this?
5.  Has any one done something like that before and can provide my
some examples or code snippets?
 
 
Thanks in advanced 
Oliver
 
 


iterate DynaActionForm values from a HashMap

2004-01-10 Thread Oliver Thiel
Hi all,
 
I have some troubles out print some DynaActionForm values from a map -
using the iterate tag! Can anyone help me?
 
 
Thanks
Oliver
 
 
CreateForm:
 
DynaActionForm mappedForm2 = (DynaActionForm) form;
HashMap mappedForm = new HashMap();
 
mappedForm.put(username, );
mappedForm.put(email, );
mappedForm.put(password, );
mappedForm.put(conf_pwd, );
 
mappedForm2.set(mappedForm, mappedForm);
request.setAttribute(mappedForm2, mappedForm2);
 
 
 
struts-config.xml
 
form-bean dynamic=true name=mappedForm2
type=org.apache.struts.action.DynaActionForm
form-property name=mappedForm type=java.util.HashMap/
/form-bean
 
 
mappedForm.jsp
 
bean:define id=values name=mappedForm2 property=mappedForm
type=java.util.HashMap/ 
   logic:iterate id=mappedForm name=mappedForm2
property=mappedForm
TD width=40%bean:message key=bean:write name=
mappedForm  property= mappedForm2/ //TD
TDinput type=bean:write name= mappedForm property=
mappedForm/ //TD 
/logic:iterate
 
 
 
 WHAT I GET:
 
{username=,email=,password=,conf_pwd=}
{username=,email=,password=,conf_pwd=}
{username=,email=,password=,conf_pwd=}
{username=,email=,password=,conf_pwd=}
 
 
 
WHAT I TRY TO GET:
 
TD width=40%User name*:/TD
TDinput type=text name= username  class=Feld value=/TD 
 
 


AW: iterate DynaActionForm values from a HashMap

2004-01-10 Thread Oliver Thiel
Thank's Mark!  

There are just two things left I need to know!

1.
Do you also know how I can archive something like that?
bean:message key=bean:write name=mappedForm property=value/ /

(- I want to dynamically print out the messages from the resource
properties!)

2.
Do you know any good resource on that?


Thanks again 
Oliver


-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 10. Januar 2004 17:16
An: Struts Users Mailing List
Betreff: Re: iterate  DynaActionForm values from a HashMap

This might work as you have things, but there are more elegant ways of 
achieving what you want.

input name=bean:write name=mappedForm property=key / 
type=text


On 10 Jan 2004, at 15:51, Oliver Thiel wrote:

 Hi all,

 I have some troubles out print some DynaActionForm values from a map -
 using the iterate tag! Can anyone help me?


 Thanks
 Oliver


 CreateForm:

 DynaActionForm mappedForm2 = (DynaActionForm) form;
 HashMap mappedForm = new HashMap();

 mappedForm.put(username, );
 mappedForm.put(email, );
 mappedForm.put(password, );
 mappedForm.put(conf_pwd, );

 mappedForm2.set(mappedForm, mappedForm);
 request.setAttribute(mappedForm2, mappedForm2);



 struts-config.xml

 form-bean dynamic=true name=mappedForm2
 type=org.apache.struts.action.DynaActionForm
 form-property name=mappedForm type=java.util.HashMap/
 /form-bean


 mappedForm.jsp

 bean:define id=values name=mappedForm2 property=mappedForm
 type=java.util.HashMap/ 
logic:iterate id=mappedForm name=mappedForm2
 property=mappedForm
 TD width=40%bean:message key=bean:write name=
 mappedForm  property= mappedForm2/ //TD
 TDinput type=bean:write name= mappedForm property=
 mappedForm/ //TD
 /logic:iterate



  WHAT I GET:

 {username=,email=,password=,conf_pwd=}
 {username=,email=,password=,conf_pwd=}
 {username=,email=,password=,conf_pwd=}
 {username=,email=,password=,conf_pwd=}



 WHAT I TRY TO GET:

 TD width=40%User name*:/TD
 TDinput type=text name= username  class=Feld value=/TD




-
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]



AW: ServletMapping for ActionServlet and firewalls

2004-01-08 Thread Oliver Thiel
Hi Matthias, 


Book: Struts Fast Track
Major contributions by: Vic Cekvenich
Copyright: 2002 BaseBeans Engineering
Page: 74
NOTE: Noticed that I modified the url-pattern for the “action”
servlet-name to “/do/*”. Struts normally has the “/*.do”
pattern for the action servlet but I’ve had difficulties with firewalls
using the default Struts pattern so we’ll use the “/do/*” pattern
throughout this book as a work-around.

Personal experience: Some companies set their firewalls to just 
accept *.htm, *.html, *.jsp, ... (common web formats) on port 80, so
that any other file format will be blocked.


Oliver

-Ursprüngliche Nachricht-
Von: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 7. Januar 2004 18:41
An: [EMAIL PROTECTED]
Betreff: ServletMapping for ActionServlet and firewalls

Hi,

i have in mind, that the mapping
*.do
for our actionServlet is sometime a problem...

better should be:
/do/*

but i can´t find anything in web...

does anyone had some experiences on it?

regads,
Matthias


Matthias Weßendorf
Aechterhoek 18
D-48282 Emsdetten
Email: mailto:[EMAIL PROTECTED]
URL: http://www.wessendorf.net


-
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]



AW: *.do mapping using JRun

2004-01-01 Thread Oliver Thiel
Hi Mike,


Have you updated the web.xml file?

!-- Action Servlet Mapping --
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

According to the 'Fast Track Struts' book by Vic Cekvenich
the “/*.do” pattern for the action servlet could cause difficulties with
firewalls! So he suggests to use the “/do/*” pattern

!-- Action Servlet Mapping --
servlet-mapping
servlet-nameaction/servlet-name
url-pattern/do/*/url-pattern
/servlet-mapping


Hope that helps
Oliver


-Ursprüngliche Nachricht-
Von: Mike Steigerwald [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 2. Januar 2004 04:12
An: 'Struts Users Mailing List'
Betreff: *.do mapping using JRun

Hi, all,

I'm a struts newbie trying to learn with struts-example. I've got it
working
great locally with Tomcat, but I'm struggling to deploy it on my ISP's
JRun
server.

I can't seem to figure out some configuration property to get JRun to
understand the *.do mapping. All of my .jsp links work great, but I get
404
errors for any link such as:

editRegistration.do?action=Create

I'm sure the solution is obvious, but I'm going blind scouring the
documentation. Thanks in advance for any help.


-
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] Stress Test Tool

2004-01-01 Thread Oliver Thiel
Did anyone know a good tool for stress testing a struts app? I already
tried dieseltest_1_0_21, jakarta-jmeter-1.9.1, jspider-0.5.0-dev,
Microsoft Web Application Stress Tool but none of these tools fits my
needs.
 
Why is search for a stress test tool?
1.  I wrote a simple registration form, which enters data in a
database and LDAP and than confirms the registration process.
2.  I wrote this registration forms in various ways e.g. using a
simple ActionForm, DynaBeans, MapBackedForm (+ DB), etc.
3.  And also I changed the model class to use iBatis, Hibernet or
Pollmann.
4.  Know I want to validate how they behave in a 'real live'
environment.
 
Any suggestions are appreciated?
Oliver
 


bean:write AND logic:iterate

2003-12-27 Thread Oliver Thiel
Hi @ll;
 
 
In my Form I define an Array, which contains some message resource keys.
I'm able to print out the values,
but what I want to archive is that it prints out the value from the
application resource properties and also I 
wanted to use an logic:iterate to print them out, so it should be
something like that:
 
logic:iterate id= keyAry  name= keyAry 
tr align=left
td
bean:message key=bean:write name= keyAry property= keyIndexed /
/
/td
/logic:iterate
  
 
Thanks
Oliver
 
What works so far:
 
IndexedFom.java
 
private String keyAry[]   = { form.uid, form.email, form.password,
form.conf_pwd, form.getEmail};
 
public String getKeyIndexed(int index) { 
return keyAry[index]; 
}

public void setKeyIndexed(int index, String value) { 
keyAry[index] = value; 
}
 
 
indexedFom.jsp
 
jsp:useBean id=keyAry class=struts.form.indexedForm/
bean:write name= keyAry property=keyIndexed[1]/br
 
 
RESULT: form.email


bean:write AND logic:iterate

2003-12-27 Thread Oliver Thiel
Hi,
 
 
In my Form I define an Array, which contains some message resource keys.
I'm able to print out the values,
but what I want to archive is that it prints out the value from the
application resource properties and also I 
wanted to use an logic:iterate to print them out, so it should be
something like that:
 
logic:iterate id= keyAry  name= keyAry 
tr align=left
td
bean:message key=bean:write name= keyAry property= keyIndexed /
/
/td
/logic:iterate
  
 
Thanks
Oliver
 
What works so far:
 
IndexedFom.java
 
private String keyAry[]   = { form.uid, form.email, form.password,
form.conf_pwd, form.getEmail};
 
public String getKeyIndexed(int index) { 
return keyAry[index]; 
}

public void setKeyIndexed(int index, String value) { 
keyAry[index] = value; 
}
 
 
indexedFom.jsp
 
jsp:useBean id=keyAry class=struts.form.indexedForm/
bean:write name= keyAry property=keyIndexed[1]/br
 
 
RESULT: form.email
 


Antwort: Re: Tiles and i18n

2003-12-19 Thread Oliver Wulff




I do it like this:

definition name=.inputOrgEinheit.body page=/layout/bodyTwoColumns.jsp
put name=subtitle value=orgeinheit.title /


tiles:importAttribute name=subtitle/
h2fmt:message key=${subtitle}//h2




   
  Marino A.   
  Jonsson An:   [EMAIL PROTECTED]
  [EMAIL PROTECTED]Kopie:  
  otmail.com  Thema:Re: Tiles and i18n
  Gesendet von:
  news 
  [EMAIL PROTECTED]
  rg  
   
   
  19.12.2003 17:03 
  Bitte antworten  
  an Struts Users 
  Mailing List
   
   




Just use the title-value from the tiles definition as a key to access the
real value in the resource bundle :)

cheers,
Marinó

Patrick Cheng [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,

I know that Tiles support i18n by allowing multiple tiles definition
files with standard java language file extension such as _en_US , _fr
etc.
My Master Layout file contains other pages such as the navbars, body
etc. and the ONLY single piece of information it needs to show is the
TITLE (title/title).
But then the title would be different for each body.
I have set a tile attribute saying the title is 'blahblahblah', but it's
the actual value, not referencing the resource.
I want it to be i18n-capable by using msg resource bundle.

Question 1: is there a way to reference the msg resource bundle in tiles
layout jsp?
Question is: do i HAVE to create multiple tiles definitions to cater the
i18n title?

Thanks in advance,
Patrick.




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









*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Re: Possible to add or change Validatorrules at runtime?

2003-12-18 Thread Oliver Thiel
Hi Martin,

I try achieve something comparable. But I did not use the
xml validation, cause as far as I know you have to reload 
the xml files - which means you have to change the web.xml 
timestamp so that the server is aware of the change and 
reloads . bla bla. 


Here you are two articles dealing with dynamic forms:

Torsten Wünsch:
Javamagazin 10.2003 - Mit Struts 1.1 dynamische Eingabefelder erstellen

Sharad Acharya:
Part I:
http://www.fawcette.com/javapro/2003_11/online/dynamic_sacharya_11_11_03/
Part II:
http://www.fawcette.com/javapro/2003_11/online/dynamic_sacharya_11_17_03/


Maybe this’ll help you!
Oliver



PS Both only have a week validation. So if you have a good idea how 
 to improve it, please let me know


 Hi all,
 
 I will write a application with fully dynamic htmlforms
 which i can configure at runtime. For each of the fields 
 of such a form I will define a type (String,Number...) and
 Constraints like in the validator.xml (range etc.).
 
 My question is, is it possible to add form and fielddefinitions 
 to the validator at runtime?
  
 greetings,
 Martin
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



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



AW: Flash Flex w/ Struts article

2003-12-17 Thread Oliver Thiel
Read the article ;)
http://blueprints.macromedia.com/PetMarket/flashstore.html


Doesn't look to bad ... 
Oliver


-Ursprüngliche Nachricht-
Von: Daniel Joshua [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 17. Dezember 2003 09:11
An: 'Struts Users Mailing List'
Betreff: RE: Flash Flex w/ Struts article

is there a sample Flash Flex w/ Strut application on the web?

currious what a RIA looks like...


Regards,
Daniel


-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich
Sent: Wednesday, 17 December, 2003 3:07 PM
To: [EMAIL PROTECTED]
Subject: Flash Flex w/ Struts article


http://www.macromedia.com/devnet/flex/articles/struts.html

Is this for real? YES!

Point of Struts is MVC, so some people do JSP, Velocity... other do 
Hibrenate or iBatis... one thing remains.
(note how they did not support Spring, or WebWork or XYZ).

Flex is XML like, used to be Royale ( and my guess the product that 
resulted when MacroMedia rummored to break of from JSF).

(This is diffrent than PetStore http://blueprints.macromedia.com , I 
also realy like the Components from Flash Pro 2004 such as Tree, Grid, 
Calendar that bind to any SOAP like source)

If you want Rich UI that runs on Linux, OSX, PocketPC, Windoze and of 
loads UI rendering to each client thus giving scalability!
If you are bidding projects, and your bid shows clients the richer UI, 
guess who wins the gig?
And it's Struts, something you know.


.V



-
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]



JSTL, local, fmt:get

2003-12-14 Thread Oliver Wulff




I wrote an Action class which changes the local according the language the
user has choosen from a listbox:
setLocale(request, Locale.ENGLISH);

Now, I migrated the struts tag library 'bean' to JSTL 'fmt'. Unfortunately,
changing the language doesn't affect the fmt tags:
snippet of my jsp:
fmt:setBundle
basename=com.zurich.chz.omnibus.berechtigung.ApplicationResources/
fmt:message key=search.title/

What am I doing wrong?






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Re: What goes where?

2003-12-13 Thread Oliver Meyn
Hi Eric,

On Sat, 2003-12-13 at 16:16, Eric SCHULTZ wrote:
 As I understand struts.jar needs to remain in the WEB-INF/lib directory; I
 assume struts-legacy.jar should stay there too.  But can all my commons jars
 go in the common/lib directory?  Should those not already in common/lib go
 in shared/lib?
 
 I realise some people advocate putting everything the app needs in its
 WEB-INF/lib directory; and I agree with that if I have version dependancies,
 but I don't.  And I already have to put my JDBC drivers in common/lib to use
 Tomcat's JNDI datasources so I've already started down that path.
 
I'm not sure what the real answer is, but the fact that you're using
JNDI apparently reduces your choices a bit.  The JNDI-DataSources-Howto
explicitly says to put all your commons connection pooling stuff in
common/lib and not WEB-INF/lib.  Where that leaves some of the other
apparently common (and commons-) things isn't clear to me.

HTH,
Oliver


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



AW: XML Resource Bundle

2003-12-12 Thread Oliver Thiel
Hi Chris,

Take a look at: http://it.cappuccinonet.com/strutscx/index.php 

StrutsCX is Struts with XSLT - as alternative to JSP. StrutsCX overcomes
the limitations of the Struts Framework by enabling you to utilize XML,
XSLT, and XPath technologies instead of its standard JavaServer Pages.

They have a sample application displaying Korean characters:
http://it.cappuccinonet.com/strutscx/samples.php?target=samples


Hopefully this'll help you
Oliver

-Ursprüngliche Nachricht-
Von: Christopher Jones (DHL UK) [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 12. Dezember 2003 16:23
An: [EMAIL PROTECTED]
Betreff: XML Resource Bundle

Hello,

I would like to leverage Struts' use of Resource Bundles for I18N. I
would like to use an XMLResourceBundle so that it is not limited to
ISO-8859-1 encoding and supports character sets like Simplified
Chinese etc without needing to write out the Unicode notation
(\u).  Has anyone used XMLResourceBundles with Struts and if yes
then how?

Thanks
Chris


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



AW: [OT] Best HTML book for Beginners

2003-12-12 Thread Oliver Thiel
Hi Craig,

I would recommend:
creative html design.2 (2nd Edition)
by Lynda Weinman (Author), William Weinman (Author)
http://www.htmlbook.com/
An easy to read step-by-step guide. 

Another opportunity would be the video ;)
Learning HTML CD-ROM  
http://www.lynda.com/products/videos/htmlcd/


Oliver

-Ursprüngliche Nachricht-
Von: Craig Tataryn [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 12. Dezember 2003 22:33
An: [EMAIL PROTECTED]
Betreff: [OT] Best HTML book for Beginners

Bought my uncle a domain name for Christmas and I want to get him an
HTML 
book to compliment it.  For the absolute beginner, is there a book you
would 
recommend over all others?

Thanks,

Craig W. Tataryn

P.S. reply to my tiles question :)

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*   
http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin
.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca


-
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]



AW: Handle dynamic contents using map backed form

2003-12-11 Thread Oliver Thiel
Hi @all,
Sharad's approach worked well form me. In fact I implemented something 
comparable (after I found the idea in the javamagazin.de ;) But I still
could not figure out, how to do the necessary validation. I already have

some basic Stuff like:

HashMap valueMap = new HashMap();
Enumeration param = request.getParameterNames();
while(param.hasMoreElements()){
String elm = (String)param.nextElement();
valueMap.put(elem,request.getParameter(elem));
if(elem.indexOF(DynDataFormHandler.ITEM_KEY_BEGIN)!=-1){

validateIsNumeric(request.getParameter(elm),elm);
}
} 

in the Action Class. But what I really need, as I us this for a
registration form, is (pre-) validation for email, zip, telephone ...

Has anyone an idea how to solve this problem? Sharad how do you handle
validation in your approach?


Thanks
Oliver Thiel
 

-Ursprüngliche Nachricht-
Von: Sharad Acharya [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 11. Dezember 2003 05:47
An: [EMAIL PROTECTED]
Betreff: Handle dynamic contents using map backed form

Hi all;
From Ted and others comments, it looks like some of you are trying to 
implement forms that should handle 'real' dynamic contents. In my recent

project, I had pleasure to work handling dynamic contents in which the 
contents to render were not available until the time to render. 
DynaActionForm does not help because we need to fix form attributes in 
configuration element. Sooo the solution? we implemented map backed
forms. I 
have discussed the technique in my recent JavaPro article, which you can

read online in the following links:

Part I:
http://www.fawcette.com/javapro/2003_11/online/dynamic_sacharya_11_11_03
/

Part II:
http://www.fawcette.com/javapro/2003_11/online/dynamic_sacharya_11_17_03
/

If you have any question about my approach, please let me know.

Thanks

Sharad Acharya



From: Ted Husted [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: When HashMap will replace ActionForm ?
Date: Wed, 10 Dec 2003 13:01:55 -0500

As mentioned, you can use a map-backed ActionForm to store whatever
fields 
you need without defining them elsewhere.

http://tinyurl.com/ymkr

You do need to code the forms a little differently, and your forms
still 
need to know what properties/entries to ask for.

Personally, I would strongly recommnend using DynaActionForms. The
overhead 
of defining the elements in the configuration is negligable in
practice, 
and it clearly defines which properties are used with which forms.

In practice, what really costs projects time is miscommunication. For 
example, is the entry name in the Map userName or username? With 
DynaActionForms all the entry names are documented in the
configuration. 
Otherwise, you will have to document them elsewhere and redo what has 
already been done.

I *am* a big fan of using Maps for Contexts, especially between
application 
layers, and with the Commons Chain influence, we're sure to see more of

that. The thing about DynaActionForms is that you get the agility of a
Map 
with the documentation of a JavaBean.

HTH, Ted.


Antony Paul wrote:
but it prints the form field name like this map(username). I want to
get 
the
key as name of form field. here username. possible ?

rgds
Antony Paul.

- Original Message -
From: Fullam, Jonathan [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 7:30 PM
Subject: RE: When HashMap will replace ActionForm ?



That's where a map-backed Hashmap is useful.

-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 6:02 AM
To: Struts Users Mailing List
Subject: Re: When HashMap will replace ActionForm ?


I know that but one have to define 10 to 30 elements in
struts-config.xml
for that. With a hash map one have to say whether it is needed ot
not. It
could be accessed like DynaValidator form. And my requirement is to
store
simple text field values.

rgds
Antony Paul.

- Original Message -
From: Kalra, Ashwani [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 4:05 PM
Subject: RE: When HashMap will replace ActionForm ?



DynaValidator forms stores data in Hashmap internally if you dont
want

to

define norma action forms.





-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 2:40 PM
To: struts
Subject: When HashMap will replace ActionForm ?


Hi,
   Is there any move to support HashMap in place of
ActionForm ?. I dont
want to start any argument. I have read a lot on ActionForm in
this archive.

rgds
Antony Paul.

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

getServletContext() throws null pointer

2003-12-10 Thread Oliver Meyn
Hi,

I've put an object into the ServletContext with an init servlet started
on load via web.xml.  Accessing it with my main Action works fine, but
when I try to use another servlet (extend HttpServlet) to
getServletContext() it throws a null pointer exception (doesn't just
return null - goes straight to the exception).  From the javadoc on
ServletContext I'm led to believe that all servlets in the app share the
same ServletContext, so I'm confused.  I'm attempting this lookup in the
constructor of the servlet - does it have to happen in a doGet or such? 
Any ideas?

Also, is there some way of accessing the ServletContext without being a
Servlet?

Thanks very much,
Oliver


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



RE: getServletContext() throws null pointer

2003-12-10 Thread Oliver Meyn
On Wed, 2003-12-10 at 12:12, Trieu, Danny wrote:
 Constructor is the answer to your problem.  There are no guarantee that the
 servlet that set the data will be loaded before the servlet that accessing
 it.
 
I'm attempting to make that guarantee but I can see how the servlets
might not care.  Further testing reveals that the contructor is not the
problem, though, since putting the lookup in a separate function called
after construction also fails.  Other thoughts?

Thanks,
Oliver


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



Re: getServletContext() throws null pointer

2003-12-10 Thread Oliver Meyn
On Wed, 2003-12-10 at 12:18, Richard Yee wrote:
 Oliver,
 Are you overriding init(ServletConfig config) in your
 init servlet? If so, did you call super.init(config)
 before you tried accessing the ServletContext?
 
I'm not overriding init(config) but I am overriding init().  I hadn't
been calling super.init() but gave that a shot and no change.  I am able
to access the ServletContext (and the init-ed object) from both my
controlling Action and from a jsp - just not from another servlet.  I
must be missing something simple yet fundamental...

Thanks,
Oliver



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



Re: getServletContext() throws null pointer

2003-12-10 Thread Oliver Meyn
On Wed, 2003-12-10 at 12:50, Claire Wall wrote:
 as i understand it, in order to retrieve the servlet context, you need to
 use the ServletConfig to retrieve it like so:
 
 config.getServletContext()
 
 
 this sounds similar to a problem that i had where i was trying to log
 something from a servlet, just used the log() method and it through an
 exception pretty much like the one you are experiencing. however, by putting
 config.getServletContext().log() it threw no exceptions...
 
Hmm.  It appears that the ServletConfig is only accessible to the init()
of a given servlet.  Within the init() I can getServletConfig() and it
appears not to be null, and I can getServletConfig.getServletContext()
but that IS null.  So no exception but a null context that leaves me in
about the same boat.  Calling getServletContext() directly within the
init() also gives me null. This happens with and without a call to
super.init().

This can't be that hard.  Is there some extra step to tying an arbitrary
servlet to a webapp context apart from calling it from within that
context (eg Action within context calls the new servlet)?

Thanks,
Oliver


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



Re: getServletContext() throws null pointer

2003-12-10 Thread Oliver Meyn
On Wed, 2003-12-10 at 12:55, Richard Yee wrote:
 Oliver,
 In the last email I sent, I should have asked if you
 overrode the init(ServletConfig) method in the servlet
 that is having the null pointer exception, not your
 init servlet.
 
Oh I see - sorry but before testing Claire's hypothesis I hadn't touched
the init() methods.

Thanks,
Oliver


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



I18N, Tiles definition

2003-12-09 Thread Oliver Wulff




I've defined a tile called title in a tile definition which is a language
dependend string. Therefore, I though I could set the key (webapp.title) of
the resource bundle as a value:
definition name=.mainLayout path=/layout/classicLayout.jsp
put name=title  value=webapp.title /
put name=header value=/top_menu.jsp /
put name=menu   value=/toc.jsp /
put name=footer value=/footer.jsp /
put name=body   value=/welcome.jsp /
  /definition

I tried to read it in the classicLayout.jsp like this:
fmt:message key=tiles:insert attribute=title//

but it doesn't work.
Can't I easily use the keys of a resource bundle for language dependend
strings in the tile definition?
I have no solution to solve my problem.


Regards
Oliver






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Tiles, Definition inheritence

2003-12-08 Thread Oliver Wulff




Hi

I'm quite new to Tiles and I've got the following problem:

I've defined the following default definition:
definition name=.mainLayout path=/layout/classicLayout.jsp
  put name=title  value=Berechtigung WEB with Tiles /
  put name=header value=/top_menu.jsp /
  put name=menu   value=/toc.jsp /
  put name=footer value=/footer.jsp /
  put name=body   value=/welcome.jsp /
/definition

The classicLayout.jsp hasn't been changed (Struts examples).

Additionally, I've defined the following Definition:
definition name=.showOrgEinheit extends=.mainLayout
  put name=input value=/getOrgEinheit.jsp /
  put name=result value=/showOrgEinheit.jsp /
  put name=body value=/layout/bodyTwoColumns.jsp /
/definition

The bodyTwoColumns looks like this:
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %

table border=0 width=100% cellspacing=5
tr
  td width=50% align=left
tiles:insert attribute='input'/
  /td
  td width=50% align=left
tiles:insert attribute='result' /
  /td
/tr
/table

My struts action forwards to the definition .showOrgEinheit but I get the
following error:
[ServletException in:/layout/bodyTwoColumns.jsp] Error - Tag Insert : No
value found for attribute 'input'.'

Can anybody help me, please? Thank you a lot.

Cheers
Oliver






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Antwort: RE: Tiles, Definition inheritence

2003-12-08 Thread Oliver Wulff




Wouldn't it make sense that the inserted tiles has access to the tiles
context either?
I think, my requirement is quite common. I think that the main layout of a
web application won't change but the body tile contains sometimes one tile
or is splitted in an upper- and lower-part or a left- and a right-part.
It's a little bit unhandy to copy the classicLayout.jsp to another layout
jsp and add the input- and result-part. Therefore, layout code is
duplicated.

Does my requirement contradict the design of tiles?

**
Oliver Wulff
Zürich Versicherungs-Gesellschaft
IA4, CoC Middleware
Postfach, 8085 Zürich
Telefon: +41- 1 628 58 07
Fax: +41 - 1 623 58 07
E-Mail: mailto:[EMAIL PROTECTED]



   
  List Mailbox   
  [EMAIL PROTECTED]An:   Struts Users Mailing List 
[EMAIL PROTECTED]
  om  Kopie:  
   Thema:RE: Tiles, Definition 
inheritence
  08.12.2003 15:10 
  Bitte antworten  
  an Struts Users 
  Mailing List
   
   




Only the template definition called can 'see' the Tiles context and access
the attributes.  In your case the classicLayout.jsp can use the input and
result attributes.  If the bodyTwoColumns.jsp is to be your layout then
changing classicLayout.jsp to have the two columns format would be the best
solution.  You could also pass the attributes from the template to the
input
jsps but that becomes difficult to extend or change because you have
explicit variables you are creating in your template jsp for other jsps to
use.

Cal
www.calandva.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Oliver Wulff
Sent: Monday, December 08, 2003 6:16 AM
To: [EMAIL PROTECTED]
Subject: Tiles, Definition inheritence




Hi

I'm quite new to Tiles and I've got the following problem:

I've defined the following default definition:
definition name=.mainLayout path=/layout/classicLayout.jsp
  put name=title  value=Berechtigung WEB with Tiles /
  put name=header value=/top_menu.jsp /
  put name=menu   value=/toc.jsp /
  put name=footer value=/footer.jsp /
  put name=body   value=/welcome.jsp /
/definition

The classicLayout.jsp hasn't been changed (Struts examples).

Additionally, I've defined the following Definition:
definition name=.showOrgEinheit extends=.mainLayout
  put name=input value=/getOrgEinheit.jsp /
  put name=result value=/showOrgEinheit.jsp /
  put name=body value=/layout/bodyTwoColumns.jsp /
/definition

The bodyTwoColumns looks like this:
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %

table border=0 width=100% cellspacing=5
tr
  td width=50% align=left
tiles:insert attribute='input'/
  /td
  td width=50% align=left
tiles:insert attribute='result' /
  /td
/tr
/table

My struts action forwards to the definition .showOrgEinheit but I get the
following error:
[ServletException in:/layout/bodyTwoColumns.jsp] Error - Tag Insert : No
value found for attribute 'input'.'

Can anybody help me, please? Thank you a lot.

Cheers
Oliver






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


-
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]









*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe

RE: Tiles, fixed height, scrollbar

2003-12-08 Thread Oliver Wulff




Do you have a small example?
I tried it in this way div height=200 but it didn't work. Should a
scrollbar be shown?

I also tried the following div class=list and the definition in the css
file
div.list {
height: 100px;
}
But it doesn't work either.

Oliver

**

I use divs to create a tabbed interface, with a tile per tab for the
content.  The divs can have a fixed height.

--
Voytek Jarnot
Quantum materiae materietur marmota monax si marmota monax materiam possit
materiari?


 -Original Message-
 From: Oliver Wulff [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 25, 2003 9:15 AM
 To: [EMAIL PROTECTED]
 Subject: Tiles, fixed height, scrollbar






 Hi all

 Currently, I'm using frames to split my web page. Some frames have a
 dynamic content with a scrollbar to scroll through the content of the
 frame.

 Can I achieve the same with tiles? Can I fix the height of a
 tile? If there
 is more data to display will a scrollbar be shown?

 Regards
 Oliver Wulff






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Re: Having trouble with html:form tag - Using 1.1

2003-12-07 Thread Oliver Wulff




Hi Jim

Remove your second servlet mapping in your web.xml. I had the same problem.
I've defined two mappings:
servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern*.do/url-pattern
/servlet-mapping

servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern/home/url-pattern
/servlet-mapping

As soon as I have removed the second mapping the form action is correct and
not the webapp context anymore.

Very strange!!!

Cheers
Oliver






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Tiles, fixed height, scrollbar

2003-11-25 Thread Oliver Wulff




Hi all

Currently, I'm using frames to split my web page. Some frames have a
dynamic content with a scrollbar to scroll through the content of the
frame.

Can I achieve the same with tiles? Can I fix the height of a tile? If there
is more data to display will a scrollbar be shown?

Regards
Oliver Wulff

**
Oliver Wulff
Zürich Versicherungs-Gesellschaft
IA4, CoC Middleware
Postfach, 8085 Zürich
Telefon: +41- 1 628 58 07
Fax: +41 - 1 623 58 07
E-Mail: mailto:[EMAIL PROTECTED]






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Re: MySql BasicDataSource Connection

2003-11-20 Thread Oliver Meyn
Hi All,

After a similar struggle to the original poster I managed to get the
BasicDataSource to work, but I wonder about the properties you're
setting below - the javadoc on BasicDataSource doesn't mention maxCount
or minCount (I gather maxActive and minIdle are their equivalents) so
are those lines doing anything in your config?  It's a bit tricky to
test, but of course a useful feature.

Thanks,
Oliver

On Mon, 2003-11-17 at 23:11, Gede Indrawan wrote:
 I use data-source defintion below and no problem with it
   data-source type=org.apache.commons.dbcp.BasicDataSource
set-property property=driverClassName
 value=org.gjt.mm.mysql.Driver/
set-property property=url value=jdbc:mysql://localhost/telkomsel/
set-property property=maxCount value=5/
set-property property=minCount value=1/
set-property property=username value=root/
set-property property=password value=blahblah/
   /data-source



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



AW: Life after Marriage

2003-09-16 Thread Oliver Reflé
do i know you from somewhere ?

-Ursprüngliche Nachricht-
Von: Shamanth [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 16. September 2003 11:57
An: [EMAIL PROTECTED]
Betreff: Life after Marriage






  lifeaftermarriage.jpg  


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
 
  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
 


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



AW: Begineer to struts

2003-09-11 Thread Oliver Reflé
IT seems that you have not all needed struts jar files in your
application
class path. Check if you have struts.jar in your WEB-INF/lib folder

Oliver

-Ursprüngliche Nachricht-
Von: Mahavir [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 11. September 2003 09:13
An: [EMAIL PROTECTED]
Betreff: Begineer to struts


Hi Friends

i am begineer to struts.I am using Tomcat ver 3.2.3 and 
JDK1.4.i am getting the errors which ihave mentioned below 
plz help me to solve these problems.

i started today only with  a simple example which i found 
on the internet

My JSp File is

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %

html
head
title
bean:message key=index.title/
/title
/head
body
h2BookView/h2
/body
/html

My ApplicatinoResources.properties file is

index.title=Struts Tutorial

And My Web.xml file is

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app

servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class

init-param
param-nameapplication/param-name
param-valueApplicationResources/param-value
/init-param

init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param

init-param
param-namedebug/param-name
param-value2/param-value
/init-param

init-param
param-namedetail/param-name
param-value2/param-value
/init-param

init-param
param-namevalidate/param-name param-valuetrue/param-value
/init-param



/servlet

!-- Standard Action Servlet Mapping --

servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping

!-- The Welcome File List --
welcome-file-list
welcome-fileindex.jsp/welcome-file
welcome-fileindex.html/welcome-file
/welcome-file-list
!-- Struts Tag Library Descriptor --
taglib
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/struts-bean.tld/taglib-location
/taglib

taglib
taglib-uri/WEB-INF/struts-html.tld/taglib-uri
taglib-location/WEB-INF/struts-html.tld/taglib-location
/taglib

taglib
taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
taglib-location/WEB-INF/struts-logic.tld/taglib-location
/taglib

taglib
taglib-uri/WEB-INF/struts-template.tld/taglib-uri
taglib-location/WEB-INF/struts-template.tld/taglib-location
/taglib

/web-app


And struts-config.xml file is like

?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 
1.0//EN http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
struts-config/struts-config

i had placed all the files at suitable locations

When i brose the jsp page i got the following error

[ERROR] MessageResourcesFactory - 
-MessageResourcesFactory.createFactory java.l
ang.ClassNotFoundException: 
org.apache.struts.util.PropertyMessageResourcesFacto
ryjava.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResou
rcesFactory
 at java.net.URLClassLoader$1.run(Compiled Code)
 at 
java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Compiled 
Code)
 at java.lang.ClassLoader.loadClass(Compiled Code)
 at 
sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
 at java.lang.ClassLoader.loadClass(Compiled Code)
 at 
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
a:207)
 at 
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageR
esourcesFactory.java:192)
 at 
org.apache.struts.util.MessageResources.getMessageResources(MessageRe
sources.java:576)
 at 
org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:134)
 at 
org.apache.struts.util.MessageResources.getMessageResources(MessageRe
sources.java:576)
 at 
org.apache.struts.taglib.bean.MessageTag.clinit(MessageTag.java:256
)
 at 
_0002fBookView_0002ejspBookView_jsp_5._jspService(_0002fBookView_0002
ejspBookView_jsp_5.java:59)
 at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspSer
vlet.java:130)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
vlet.java:282)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:4
29)
 at 
org.apache.jasper.servlet.JspServlet.service(Compiled 
Code)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
05)
 at 
org.apache.tomcat.core.Handler.service(Handler.java:287

AW: problem in getproperties.

2003-09-09 Thread Oliver Reflé
Why don't you put your property file to your application classpath, and
use ResourceBundle.getBundle(bundlename);

Oliver

-Ursprüngliche Nachricht-
Von: deepaksawdekar [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 9. September 2003 14:58
An: Struts Users Mailing List
Betreff: problem in getproperties.


I am using following code to access the property from properties file in
my action class. Code snippet is as follows... .. InputStream in =
ClassLoader.getSystemResourceAsStream( propertyFilePath);
properties.load(in);
value = properties.getProperty(key);


When I write the main in action class it works fine
but when i copied the same code to execute method, the code does not
load the propertyfilepath file properly even though in both the case
class path and location of file is same. 

Am i doing something wrong.


Deepak 

-
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.512 / Virus Database: 309 - Release Date: 19.08.2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
 


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



Re: Java Question

2003-08-24 Thread Oliver Reflé
Hi,
you are declaring your stmt variable twice. This is not allowed.
Just use name stmt.

Check below to find the error

Olli
  
  package net.reumann;
  
  import java.io.*;
  import java.util.ArrayList;
  import javax.servlet.*;
  import javax.servlet.http.*;
  import java.sql.*;
  import javax.sql.*;
  import net.reumann.*;
  import org.apache.struts.action.Action;
  import org.apache.struts.action.ActionForward;
  import org.apache.struts.action.ActionMapping;
  import org.apache.struts.action.ActionForm;
  import org.apache.log4j.*;
  import org.apache.commons.beanutils.BeanUtils;
  
  
  public class OrgIdService implements Serializable {
  
  //Declare and initialize variables
  Connection conn = null;
  Statement stmt = null;
  ResultSet rs = null;
  ArrayList facilList = new ArrayList();
  
  //The execute() method of OrgIdService is called by OrgIdAction to
  execute a query against the SS Test DB
  public ArrayList execute(DataHash beanHash) {
  
  //Get mode from DataHash
  int mode = beanHash.getMode();
  
  try{
  switch (mode)   {
  case 0:
  
  Class.forName(oracle.jdbc.driver.OracleDriver);
  conn =
 
 DriverManager.getConnection(jdbc:oracle:thin:@sources:1521:TEST,Test123
  4,Test1234);

//here you declare stmt
  Statement stmt =
  conn.createStatement();


  ResultSet rs =
  stmt.executeQuery(SELECT DISTINCT FACIL_ID FROM FACILITY);
  
  //Read ResultSet into instance of
  FacilBean and add to facilList Array object
  while (rs.next()) {
  FacilBean facil = new
  FacilBean();
  
  facil.setFacilId(rs.getString(FACIL_ID));
  facilList.add(facil);
  }
  
  //Close ResultSet and Connection
  objects
  rs.close();
  conn.close();
  case 1:
  //Extract the facilId from the
  DataHash to query the FACILITY table
  String facilId = (String)
  beanHash.get(FacilId);
  
  
  Class.forName(oracle.jdbc.driver.OracleDriver);
  conn =
 
 DriverManager.getConnection(jdbc:oracle:thin:@sources:1521:TEST,Test123
  4,Test1234);

here again
  Statement stmt =
  conn.createStatement();


  ResultSet rs =
  stmt.executeQuery(SELECT FACIL_ID, FACIL_NAME, FACIL_NAME_SHORT, ORG_ID
  FROM FACILITY WHERE FACIL_ID = ' + facilId + ');
  
  //Read ResultSet into instance of
  FacilBean and add to facilList Array object
  while (rs.next()) {
  FacilBean facil = new
  FacilBean();
  
  facil.setFacilId(rs.getString(FACIL_ID));
  
  facil.setFacilName(rs.getString(FACIL_NAME));
  
  facil.setFacilName(rs.getString(FACIL_NAME_SHORT));
  
  facil.setOrgId(rs.getString(ORG_ID));
  facilList.add(facil);
  }
  
  //Close ResultSet and Connection
  objects
  rs.close();
  conn.close();
  default:
  return null;
  }//end Switch
  }//end try
  catch (Exception e) {
  return null;
  e.printStackTrace();
  }//end catch
  
  //Return facilList Array Object to OrgIdAction
  return facilList;
  }//end Execute () method
  }//end class
 

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


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



AW: Quick Java question..

2003-08-22 Thread Oliver Reflé
Or you simple pass in an array of arguments
public void myMethod(String[] args){}

Then you can handle as much Strings as you want
-Ursprüngliche Nachricht-
Von: Michael Thompson [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 22. August 2003 01:08
An: Struts Users Mailing List
Betreff: Re: Quick Java question..


Or wait till 1.5 ;)

http://developer.java.sun.com/developer/community/chat/JavaLive/2003/jl0
729.html

*Neal Gafter*: Then there's autoboxing/unboxing and varargs. Boxing 
allows you to use a primitive int instead of a |java.lang.Integer|, and 
unboxing does the reverse. varargs allows you to declare a method that 
takes a variable number of arguments, which are automatically packed up 
into an array before being passed to the method.


--m


Alex Shneyderman wrote:

You can make your parms Object []
This way you can pass as many params as you want.
Of course you will need to keep track of what element is what.

Maybe Java 1.5 will have the feature you are looking for :-)

Alex.

  

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 6:51 PM
To: 'Struts Users Mailing List'
Subject: RE: Quick Java question..

sorry, dude, but param arguments are evaluated at compile time.  The


best
  

you could do is overload the method.

Mark

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 6:00 PM
To: Struts Mailing List
Subject: Quick Java question..


Hey as I've been building my actions I was thinking it could be useful


for
  

me to have a method that does some database querying, but I would like


to
  

give the user the ability to narrow down that query with as many input

fields as he needs.  Is there a way to write a method that takes a


non-set
  

amount of arguments?  (Other than just passing the method a growable 
array.. which is a viable alternative)

Ie

public String myfunction(String a, String b, String c on down the


line
  

indefinitly)

?
I thought I had seen this done somewhere somehow but I may be wrong. 
Thanks!


-
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]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
 


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



AW: [OT] RE: J2EE certified

2003-08-18 Thread Oliver Reflé
I think that Mark was totally aware that you are not a white cause he
can easily recognize this cause of your mail. I normally also check my 
wonderful magic sphere to check that. 

I read a few of your stuff, and it seems that you are really very
impolite.
Maybe check your own stuff before blaming other people on the list and
come
with such bullshit like your last mail.

-Ursprüngliche Nachricht-
Von: message message [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 18. August 2003 14:52
An: [EMAIL PROTECTED]
Betreff: RE: [OT] RE: J2EE certified



Who wants to know about your theory about girls or beer.
I already you know that the majority of you are Racist , low life scum.



From: message message [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [OT] RE: J2EE certified
Date: Mon, 18 Aug 2003 16:47:47 +0400

Why not filter you out.
Perhaps because you are white.
Or perhaps you represent certain interests.




From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OT] RE: J2EE certified
Date: Mon, 18 Aug 2003 08:05:44 -0400

Just filter out this message message character; he's been 
argumentative
and
arrogant since he joined a couple of weeks ago.

Mark

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 16, 2003 6:08 AM
To: Struts Users Mailing List
Subject: Re: [OT] RE: J2EE certified


Before you guys on this thread go really overboard with tit-for-tat 
arguments, perhaps you should consider whether that type of discussion

fits in on a list where people are on first name terms, helpfulness 
and consideration are the order of the day, and secretiveness is 
generally considered unnecessary.

It's only through such an attitude shared by all the listers here that

such a high volume list can remain so productive.

All the best,
Adam


On 08/16/2003 11:47 AM message message wrote:
 
  I should also inform you that I am writing my own product that 
  includes marketing. It is none of your business what the product 
  is.
 
  From: message message [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List 
  [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: [OT] RE: J2EE certified
  Date: Sat, 16 Aug 2003 13:37:43 +0400
 
 
  There is nothing wonky here apart from your postings.
  A discussion is going on about verify applications and the 
  consequences.
 
  I hardly consider you to be qualified to express an opinion on my 
  posting.
 
  To make comments or express opinions about my postings is a 
  qualification you gave yourself but I do not recognise it.
 
 
  From: Alen Ribic [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List 
  [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Re: [OT] RE: J2EE certified
  Date: Sat, 16 Aug 2003 08:41:45 +0200
 
  Just create a noise box and dump things like this in it. Does the

  job well. ;)
 
  Subjects aint standardised anyway. Some read [OT] other [OFF 
  TOPIC], [???nothing???], etc. I can't really filter this so I 
  just read first 1 or two threads and decide if it's relevant info

  to the reason I subscribed to this mailinglist. ;)
 
  ciao
 
  --Alen
 
 
  - Original Message -
  From: Micael [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED];

  [EMAIL PROTECTED]
  Sent: Saturday, August 16, 2003 8:34 AM
  Subject: [OT] RE: J2EE certified
 
 
   This discussion has gotten a little wonky.  Let me suggest you 
   add
  [OT] to
   this stuff.
  
   At 02:09 AM 8/16/2003 +0400, message message wrote:
  
   Also if somebody logged on Sun Microsystems' mailing list 
   using
  tomcat or
   JBOSS,
   I guess he/she would be treated some hostility because he 
   could write applications using J2EE without  paying for the 
   J2EE compliancy fee.
   
   From: message message [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
  [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: RE: J2EE certified
   Date: Sat, 16 Aug 2003 00:14:02 +0400
   
   
   There was a dispute by IBM over the specification so IBM's
  websphere 3.5
   wasn't j2ee compliant ?
   
   From: Brian Lee [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
  [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: RE: J2EE certified
   Date: Fri, 15 Aug 2003 13:32:47 -0400
   
   The main advantage is marketing. Since only a few apps are
  verified,
  you
   can tell your clients My product is j2ee verified by sun, 
   but
  company
  x
   is not. Who knows what it will do?
   
   Not much of an advantage. But remember all the fud that bea
  threw back
   when IBM didn't certify their app server?
   
   In my opinion it's not that essential, but then one of my 
   current clients is verifying a couple of their major 
   products.
   
   BAL
   
   From: message message [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List

AW: Including header and footer

2003-08-14 Thread Oliver Reflé
This works, but you should have a look on tiles in Struts1.1. They are
doing exactly this.

-Ursprüngliche Nachricht-
Von: Kommineni, Sateesh (IndSys) [mailto:[EMAIL PROTECTED]

Gesendet: Donnerstag, 14. August 2003 08:43
An: Struts Users Mailing List
Betreff: Including header and footer


Hi ,

   Does including a Header and footer in JSP pages using
   %include file=header.jspi%

  will cause any problems ..

  I tried including a header file and for the image paths in the Header
file Framework is looking for an Action Mapping..
  How to resolve this..

Thanks
Sateesh


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information. If
the reader of this message is not the intended recipient, you are
notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system.


-
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.504 / Virus Database: 302 - Release Date: 24.07.2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003
 


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



AW: Class Not Found Exception with Tiles controllClass

2003-08-08 Thread Oliver Reflé
Is your Controller Class NewsController included in your applications
library / classes path ?

-Ursprüngliche Nachricht-
Von: Jerry Jalenak [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 6. August 2003 22:42
An: '[EMAIL PROTECTED]'
Betreff: Class Not Found Exception with Tiles controllClass


I'm getting a 'Class not found' exception when I try to use a
controllerClass in a Tiles definition

snip

definition
name=membersolutions.portalLayout.splitscreen
path=/WEB-INF/tiles/commonLayouts/portalLayoutSplit.jsp 
put name=title value=LabOne, Inc. -
MemberSolutions /
put name=stylesheet value=memberSolutions /
put name=topFrame
value=/WEB-INF/tiles/commonLayouts/static/topframe.jsp /
put name=leftFrame value= /
put name=rightFrame value=disclaimer.controller
/
put name=bottomFrame
value=/WEB-INF/tiles/commonLayouts/static/bottomframe.jsp /
/definition 

!--  --
definition

controllerClass=com.labone.membersolutions.framework.tiles.controller.NewsC
ontroller
name=disclaimer.controller
path=/WEB-INF/tiles/commonLayouts/static/disclaimer.jsp/

/snip

The NewsController looks like this...

snip

package com.labone.membersolutions.framework.tiles.controller;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.tiles.ComponentContext;
import org.apache.struts.tiles.Controller;

public class NewsController implements Controller
{
public void perform(ComponentContext cc, HttpServletRequest request,
HttpServletResponse response, ServletContext sc)
{
request.setAttribute(MemberSolutionsNews, this is the
daily news);
}
}

/snip

I can't see the problem; I've checked the archives for similar issues but
didn't find anything.  I'm using Struts 1.1 Final.  Any ideas?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[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]



AW: Struts 1.1 and Tiles

2003-07-30 Thread Oliver Reflé
I added the line buit i still got the same error

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Siva
Gesendet: Mittwoch, 30. Juli 2003 10:55
An: Struts Users Mailing List
Betreff: Re: Struts 1.1 and Tiles


I feel you need to specify the tiles processor in the struts-config.

Please add the following line in your struts-config.xml file

controller processorClass =
org.apache.struts.tiles.TilesRequestProcessor/

Siva


Oliver Reflé wrote:

 Hi fellows,
 At the moment I am working on tiles. But I have a big problem to get 
 this stuff running. It seems that the Tiles plugin is not taking the 
 forward from the Action . Below you find my config:

 struts-config.xml (Action Mapping  Plugin):

   action-mappings
 action type=de.refle.TestAction path=/test
 forward name=success path=.view.peniguins/
 /action
   /action-mappings

   plug-in className=org.apache.struts.tiles.TilesPlugin 
 set-property property=definitions-config 
 value=/WEB-INF/tiles-defs.xml/
   /plug-in

 tiles-defs.xml:

 tiles-definitions
 definition name=.basic.layout path=/jsp/basicLayout.jsp
 put name=title value=Default Title/
 put name=header value=/jsp/header.jsp/
 put name=menu value=/jsp/menu.jsp/
 put name=content value=/jsp/defaultContentPage.jsp/
 put name=footer value=/jsp/footer.jsp/ /definition

 definition name=.view.pengiuns extends=.basic.layout
 put name=title value=Welcome to the Store/
 put name=content value=/jsp/viewPinguins.jsp/ /definition 
 /tiles-definitions

 basicLayout.jsp:

 %@ taglib uri=http://jakarta.apache.org/struts/struts-tiles.tld;
 prefix=tiles % html headtitletiles:getAsString 
 name=title//title/head body
 tiles:get name=header/br/
 tiles:get name=menu/tiles:get name=content/br/
 tiles:get name=footer/br/
 /body
 /html

 viewPinguins.jsp: contains only a simple text nothing else

 Action:

 public class TestAction extends Action{

 public ActionForward execute(ActionMapping actionMapping, 
 ActionForm actionForm,
  HttpServletRequest 
 httpServletRequest, HttpServletResponse httpServletResponse)
  throws java.lang.Exception {

 System.out.println(Now in Action);
 return actionMapping.findForward(success);
 }

 }

 When i call now the Action with http://localhost:8080/do/test i go 
 Now in Action printed and then i get a page not found error.

 HTTP ERROR: 404 /tiles/.view.penguins Not Found 
 RequestURI=/tiles/do/test

 Maybe you have an idea ? Thx in advance
 Oliver Reflé

 Software Architekt _

 jaron.DIRECT GmbH
 Performance Marketing Solutions

 Hanauer Landstraße 196a
 D-60314 Frankfurt am Main

 Fon: + 49 (069) 40 58 66 - 0
 Fax: + 49 (069) 40 58 66 - 29

 Email:mailto:[EMAIL PROTECTED]

 Internet www.jaron.de __

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003


 --
 COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
 --
 1. GMX TopMail - Platz 1 und Testsieger!
 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. 
 e-Post

 -
 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.504 / Virus Database: 302 - Release Date: 24.07.2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003
 


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



AW: AW: Struts 1.1 and Tiles

2003-07-30 Thread Oliver Reflé
I found the error :( It was my netbeans. It added name.jsp.jsp to my jsp
names. This was why 
it didn't work. 

Sorry for that.
Olli

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Siva
Gesendet: Mittwoch, 30. Juli 2003 11:06
An: Oliver Reflé
Cc: 'Struts Users Mailing List'
Betreff: Re: AW: Struts 1.1 and Tiles


r u able to access .basic.layout ??




Oliver Reflé wrote:

 I added the line buit i still got the same error

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Im Auftrag von 
 Siva
 Gesendet: Mittwoch, 30. Juli 2003 10:55
 An: Struts Users Mailing List
 Betreff: Re: Struts 1.1 and Tiles

 I feel you need to specify the tiles processor in the struts-config.

 Please add the following line in your struts-config.xml file

 controller processorClass = 
 org.apache.struts.tiles.TilesRequestProcessor/

 Siva

 Oliver Reflé wrote:

  Hi fellows,
  At the moment I am working on tiles. But I have a big problem to get

  this stuff running. It seems that the Tiles plugin is not taking the

  forward from the Action . Below you find my config:
 
  struts-config.xml (Action Mapping  Plugin):
 
action-mappings
  action type=de.refle.TestAction path=/test
  forward name=success path=.view.peniguins/
  /action
/action-mappings
 
plug-in className=org.apache.struts.tiles.TilesPlugin 
  set-property property=definitions-config 
  value=/WEB-INF/tiles-defs.xml/
/plug-in
 
  tiles-defs.xml:
 
  tiles-definitions
  definition name=.basic.layout path=/jsp/basicLayout.jsp
  put name=title value=Default Title/
  put name=header value=/jsp/header.jsp/
  put name=menu value=/jsp/menu.jsp/
  put name=content value=/jsp/defaultContentPage.jsp/
  put name=footer value=/jsp/footer.jsp/ /definition
 
  definition name=.view.pengiuns extends=.basic.layout
  put name=title value=Welcome to the Store/
  put name=content value=/jsp/viewPinguins.jsp/ 
  /definition /tiles-definitions
 
  basicLayout.jsp:
 
  %@ taglib uri=http://jakarta.apache.org/struts/struts-tiles.tld;
  prefix=tiles % html headtitletiles:getAsString 
  name=title//title/head body
  tiles:get name=header/br/
  tiles:get name=menu/tiles:get name=content/br/
  tiles:get name=footer/br/
  /body
  /html
 
  viewPinguins.jsp: contains only a simple text nothing else
 
  Action:
 
  public class TestAction extends Action{
 
  public ActionForward execute(ActionMapping actionMapping, 
  ActionForm actionForm,
   HttpServletRequest 
  httpServletRequest, HttpServletResponse httpServletResponse)
   throws java.lang.Exception {
 
  System.out.println(Now in Action);
  return actionMapping.findForward(success);
  }
 
  }
 
  When i call now the Action with http://localhost:8080/do/test i go 
  Now in Action printed and then i get a page not found error.
 
  HTTP ERROR: 404 /tiles/.view.penguins Not Found 
  RequestURI=/tiles/do/test
 
  Maybe you have an idea ? Thx in advance
  Oliver Reflé
 
  Software Architekt _
 
  jaron.DIRECT GmbH
  Performance Marketing Solutions
 
  Hanauer Landstraße 196a
  D-60314 Frankfurt am Main
 
  Fon: + 49 (069) 40 58 66 - 0
  Fax: + 49 (069) 40 58 66 - 29
 
  Email:mailto:[EMAIL PROTECTED]
 
  Internet www.jaron.de __
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003
 
 
  --
  COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
  --
  1. GMX TopMail - Platz 1 und Testsieger!
  2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
  3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 
  8. e-Post
 
  
  -
  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.504 / Virus Database: 302 - Release Date: 24.07.2003


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.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.504 / Virus Database: 302 - Release Date: 24.07.2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003

AW: Running Struts 1.0.2 in WebLogic 7.0

2003-07-30 Thread Oliver Reflé
Hi,
is the struts.jar file in the CLASSPATH of your web ? You have to copy
it
to WEB-INF/lib, then it should work.

Oliver

-Ursprüngliche Nachricht-
Von: souravm [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 30. Juli 2003 15:27
An: Struts Users Mailing List
Betreff: Running Struts 1.0.2 in WebLogic 7.0


Hi All,

I've deployed struts 1.0.2 in WebLogic 7.0. 
Now when I'm trying to access a JSP which uses Struts ActionForm I'm
getting NoClassDefFoundError :

 -

Jul 30, 2003 6:54:13 PM IST Error HTTP 101017
[ServletContext(id=460784
7,name=mizuhoapplicationweb.war,context-path=/mizuhoapp)] Root cause of
ServletE xception
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:390)
at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:152)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:43)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
at
jsp_servlet._jsps.__namazusearch._jspService(__namazusearch.java:142)

at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:945)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:332)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:376)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Req
uestDispatcherImpl.java:341)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:721)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:251)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionSer
vlet.java:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:159
6)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:945)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:332)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5363)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:721)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3043)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)



Any solution for this problem will be highly appreciated.

Regards,
Sourav

-
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.504 / Virus Database: 302 - Release Date: 24.07.2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003
 


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



Re: confirm unsubscribe from struts-user@jakarta.apache.org

2003-07-10 Thread Michael Oliver

Michael Oliver
CTO/Matrix Intermedia
7391 S. Bullrider Ave.
Tucson, AZ 85747
Office (520)574-1150
Cell (518)378-6154


 Hi! This is the ezmlm program. I'm managing the
 [EMAIL PROTECTED] mailing list.

 I'm working for my owner, who can be reached
 at [EMAIL PROTECTED]

 To confirm that you would like

[EMAIL PROTECTED]

 removed from the struts-user mailing list, please send an empty reply
 to this address:

[EMAIL PROTECTED]

 Usually, this happens when you just hit the reply button.
 If this does not work, simply copy the address and paste it into
 the To: field of a new message.

 or click here:
   mailto:[EMAIL PROTECTED]

 I haven't checked whether your address is currently on the mailing list.
 To see what address you used to subscribe, look at the messages you are
 receiving from the mailing list. Each message has your address hidden
 inside its return path; for example, [EMAIL PROTECTED] receives messages
 with return path:
 struts-user-return-number[EMAIL PROTECTED]

 Some mail programs are broken and cannot handle long addresses. If you
 cannot reply to this request, instead send a message to
 [EMAIL PROTECTED] and put the entire address
 listed above into the Subject: line.


 --- Administrative commands for the struts-user list ---

 I can handle administrative requests automatically. Please
 do not send them to the list address! Instead, send
 your message to the correct command address:

 To subscribe to the list, send a message to:
[EMAIL PROTECTED]

 To remove your address from the list, send a message to:
[EMAIL PROTECTED]

 Send mail to the following for info and FAQ for this list:
[EMAIL PROTECTED]
[EMAIL PROTECTED]

 Similar addresses exist for the digest list:
[EMAIL PROTECTED]
[EMAIL PROTECTED]

 To get messages 123 through 145 (a maximum of 100 per request), mail:
[EMAIL PROTECTED]

 To get an index with subject and author for messages 123-456 , mail:
[EMAIL PROTECTED]

 They are always returned as sets of 100, max 2000 per request,
 so you'll actually get 100-499.

 To receive all messages with the same subject as message 12345,
 send an empty message to:
[EMAIL PROTECTED]

 The messages do not really need to be empty, but I will ignore
 their content. Only the ADDRESS you send to is important.

 You can start a subscription for an alternate address,
 for example [EMAIL PROTECTED], just add a hyphen and your
 address (with '=' instead of '@') after the command word:
 [EMAIL PROTECTED]

 To stop subscription for this address, mail:
 [EMAIL PROTECTED]

 In both cases, I'll send a confirmation message to that address. When
 you receive it, simply reply to it to complete your subscription.

 If despite following these instructions, you do not get the
 desired results, please contact my owner at
 [EMAIL PROTECTED] Please be patient, my owner is a
 lot slower than I am ;-)

 --- Enclosed is a copy of the request I received.

 Return-Path: [EMAIL PROTECTED]
 Received: (qmail 84773 invoked from network); 10 Jul 2003 15:57:25 -
 Received: from unknown (HELO MAIL2.visionsys.com) (168.215.102.106)
   by daedalus.apache.org with SMTP; 10 Jul 2003 15:57:25 -
 Received: (qmail 5550 invoked from network); 10 Jul 2003 16:31:20 -
 Received: from localhost (HELO matrix-media.com) (127.0.0.1)
   by localhost with SMTP; 10 Jul 2003 16:31:20 -
 Received: from 64.65.253.188
 (SquirrelMail authenticated user [EMAIL PROTECTED]) by
 mail.matrix-media.com with HTTP;
 Thu, 10 Jul 2003 12:31:20 -0400 (EDT)
 Message-ID:
 [EMAIL PROTECTED] Date:
 Thu, 10 Jul 2003 12:31:20 -0400 (EDT)
 Subject:
 From: Michael Oliver [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 X-Priority:
 Reply-To: [EMAIL PROTECTED]
 X-Mailer: SquirrelMail (version 1.2.7)
 MIME-Version: 1.0
 Content-Type: text/plain; charset=iso-8859-1
 Content-Transfer-Encoding: 8bit
 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N




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



Re: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died

2003-06-27 Thread Michael Oliver
Oh well, out of my realm.

Michael Oliver
CTO/Matrix Intermedia
7391 S. Bullrider Ave.
Tucson, AZ 85747
Office (520)574-1150
Cell (518)378-6154


Ted Husted said:
 This author, like the fabled cat, is also sadly dead, but a novel by The
  Dean is not the one I had in mind.

 And here's another clue: Our sadly deceased cat is not mentioned in the
 title (but is mentioned on the dust jacket).

 -Ted.


 Jarnot Voytek Contr AU HQ/SC wrote:
 Heinlein?  Cat who walks through walls?


-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 11:51 AM
To: [EMAIL PROTECTED]
Subject: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died


I'm pleased to report that a unanimous majority of the Struts
Committers
have voted to release Struts 1.1 on or after Sunday June 29, 2003.

=:) !!!

But, sadly, my elderly cat has died of liver failure.

=:(

Unsurprisingly, this news is a thinly veiled segue to ...

[Yet Another Quote Trivia Contest]

Which of our favorite Science Fiction authors wrote a novel
in which a
key character was a cat that, sadly, died?

A signed Struts in Action goes to the first lucky subscriber to email
 the corrected title and author to me directly at [EMAIL PROTECTED]

-Ted.


 --
 Ted Husted,
 Struts in Action http://husted.com/struts/book.html



 - 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]



New Struts Project on SourceForge.net

2003-06-20 Thread Michael Oliver
I have started a new Struts related project on SourceForge.net for a core
Payroll Application.  If you are interested please come by and have a
look.

http://sourceforge.net/projects/payroll4struts/

Michael Oliver
CTO/Matrix Intermedia
7391 S. Bullrider Ave.
Tucson, AZ 85747
Office (520)574-1150
Cell (518)378-6154






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



javascript and Struts

2003-04-04 Thread Oliver Reflé
Hi Guys,
i have a strange problem. Maybe you can help me. I would like to submit a
form when a select box value
has changed.Here is the code like i try it:

html:form action=/updateCampaign?target=update method=POST
table
trtdbDatenfeld/b/tdtdbWert/b/td/tr
trtdKampagnenname:/tdtd
html:select property=campaignName onchange=document.submit()
html:option value=/
html:options collection=campaignList property=label/
/html:select
/td/tr

...

I also trid javascript:{document.forms[0].submit()} etc. but nothing worked.
When i try this now on
a normal HTML form it works. But with the struts form i get the message.
Method not supported by object.

But i cannot imagine why this happens, cause javascript is executed on
client side and there the code
is the same.

So do you have any idea ??

Thx in advance


javascript and Struts

2003-04-04 Thread Oliver Reflé
Hi Guys,
i have a strange problem. Maybe you can help me. I would like to submit a
form when a select box value
has changed.Here is the code like i try it:

html:form action=/updateCampaign?target=update method=POST
table
trtdbDatenfeld/b/tdtdbWert/b/td/tr
trtdKampagnenname:/tdtd
html:select property=campaignName onchange=document.submit()
html:option value=/
html:options collection=campaignList property=label/
/html:select
/td/tr

...

I also trid javascript:{document.forms[0].submit()} etc. but nothing worked.
When i try this now on
a normal HTML form it works. But with the struts form i get the message.
Method not supported by object.

But i cannot imagine why this happens, cause javascript is executed on
client side and there the code
is the same.

So do you have any idea ??

Thx in advance


AW: javascript and Struts

2003-04-04 Thread Oliver Reflé
yes this i also tried. and : forms[0].submit() and simply submit()

In my opinion also the last must work cause the select element is
ebedded in the form. But nothing works.

-Ursprüngliche Nachricht-
Von: Stephen Smithstone [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 4. April 2003 13:34
An: Struts Users Mailing List
Betreff: Re: javascript and Struts


have u tried document.forms[ 0 ].submit( ) ???

On Friday 04 April 2003 12:31 pm, Oliver Reflé wrote:
 Hi Guys,
 i have a strange problem. Maybe you can help me. I would like to submit a
 form when a select box value
 has changed.Here is the code like i try it:

 html:form action=/updateCampaign?target=update method=POST
 table
 trtdbDatenfeld/b/tdtdbWert/b/td/tr
 trtdKampagnenname:/tdtd
 html:select property=campaignName onchange=document.submit()
 html:option value=/
 html:options collection=campaignList property=label/
 /html:select
 /td/tr

 ...

 I also trid javascript:{document.forms[0].submit()} etc. but nothing
 worked. When i try this now on
 a normal HTML form it works. But with the struts form i get the message.
 Method not supported by object.

 But i cannot imagine why this happens, cause javascript is executed on
 client side and there the code
 is the same.

 So do you have any idea ??

 Thx in advance


-
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: deprecation error moving from Tomcat 4.0.4 to 4.1.18?

2003-03-26 Thread Oliver Meyn
Thank you Michael!

Of course it's something perfectly obvious that I should have tried as step
one, but that would certainly have been too easy, and besides, I had too
much hair anyway.  *sigh*

Thanks again,
Oliver

 -Original Message-
 From: Michael Santos [mailto:[EMAIL PROTECTED]
 Sent: March 25, 2003 23:13
 To: Struts Users Mailing List
 Subject: Re: deprecation error moving from Tomcat 4.0.4 to 4.1.18?


 OK, to me it seems to be something related to Tomcat. Try using
 jsp:include
 page=%= includePage.toString() % flush=true / instead.

 []s
 --
 Michael Nascimento Santos
 Sun Certified Programmer for the Java 2 Platform
 Sun Certified Programmer for the Java 2 Platform 1.4
 Sun Certified Web Component Developer for J2EE
 Moderador SouJava - www.soujava.org.br

 - Original Message -
 From: Oliver Meyn [EMAIL PROTECTED]
 To: STRUTS [EMAIL PROTECTED]
 Sent: Tuesday, March 25, 2003 6:33 PM
 Subject: deprecation error moving from Tomcat 4.0.4 to 4.1.18?


  Hi all,
 
  Code that has worked fine under Struts 1.1 rc1 in Tomcat 4.0.4 is now
  failing in 4.1.18 (j2sdk1.4.1_02).  Other servlets made the
 switch ok, but
  when I try to jsp:include page=%= a bean value % / the page fails
 with
  a somewhat cryptic error as below:
 
  [ERROR]
  org.apache.jasper.JasperException: Unable to compile class for JSP
 
  An error occurred at line: 39 in the jsp file: /data/statistics.jsp
 
  Generated servlet error:
  [javac] Compiling 1 source file
 
  C:\jakarta-tomcat-4.1.18\removed\data\statistics_jsp.java:136:
 
 include(javax.servlet.http.HttpServletRequest,javax.servlet.http.H
 ttpServlet
  Response,java.lang.String,javax.servlet.jsp.JspWriter,boolean) in
  org.apache.jasper.runtime.JspRuntimeLibrary cannot be applied to
 
 (javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServ
 letRespons
  e,java.lang.Object,javax.servlet.jsp.JspWriter,boolean)
JspRuntimeLibrary.include(request, response,
 includePage , out,
  true);
 ^
  An error occurred at line: 39 in the jsp file: /data/statistics.jsp
  Generated servlet error:
  Note:
 C:\jakarta-tomcat-4.1.18\removed\data\statistics_jsp.java uses or
  overrides a deprecated API.
  Note: Recompile with -deprecation for details.
  1 error
  [/ERROR]
 
  This is the code that generates it:
  [CODE]
  logic:present name=statsNavBean
  bean:define id=includePage name=statsNavBean property=bodyPage /
  jsp:include page=%= includePage % flush=true /
  /logic:present
  [/CODE]
 
  The bean:define line is #39 referenced in the error, but I think it must
 be
  miscounting since if I remove the jsp:include line it works fine (well,
  compiles fine).
 
  Any ideas on what's causing this?  Is there a newer version of
 some spec I
  should be writing to for 4.1.18 as opposed to 4.0.4?
 
  I know the includePage is coming back correctly because just printing it
 out
  shows that it is correct.  One of the possibilities for includePage is a
  trivial Coming Soon page, and if I define some variable foo =
  comingsoon.jsp (same as passed back) and place it in the
 include instead
  of includePage, it _works fine_.  This must be something in the
 interaction
  of the bean and the include, but I can't figure it out.
 
  Hoping it's something obvious,
  Oliver
 
  ps same error on Linux/Apache
 
  
  Oliver Meyn
  [EMAIL PROTECTED]
  Things should be made as simple as possible, but no simpler. - Albert
  Einstein
 
 
  -
  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]



deprecation error moving from Tomcat 4.0.4 to 4.1.18?

2003-03-25 Thread Oliver Meyn
Hi all,

Code that has worked fine under Struts 1.1 rc1 in Tomcat 4.0.4 is now
failing in 4.1.18 (j2sdk1.4.1_02).  Other servlets made the switch ok, but
when I try to jsp:include page=%= a bean value % / the page fails with
a somewhat cryptic error as below:

[ERROR]
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 39 in the jsp file: /data/statistics.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\jakarta-tomcat-4.1.18\removed\data\statistics_jsp.java:136:
include(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServlet
Response,java.lang.String,javax.servlet.jsp.JspWriter,boolean) in
org.apache.jasper.runtime.JspRuntimeLibrary cannot be applied to
(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletRespons
e,java.lang.Object,javax.servlet.jsp.JspWriter,boolean)
  JspRuntimeLibrary.include(request, response,  includePage , out,
true);
   ^
An error occurred at line: 39 in the jsp file: /data/statistics.jsp
Generated servlet error:
Note: C:\jakarta-tomcat-4.1.18\removed\data\statistics_jsp.java uses or
overrides a deprecated API.
Note: Recompile with -deprecation for details.
1 error
[/ERROR]

This is the code that generates it:
[CODE]
logic:present name=statsNavBean
bean:define id=includePage name=statsNavBean property=bodyPage /
jsp:include page=%= includePage % flush=true /
/logic:present
[/CODE]

The bean:define line is #39 referenced in the error, but I think it must be
miscounting since if I remove the jsp:include line it works fine (well,
compiles fine).

Any ideas on what's causing this?  Is there a newer version of some spec I
should be writing to for 4.1.18 as opposed to 4.0.4?

I know the includePage is coming back correctly because just printing it out
shows that it is correct.  One of the possibilities for includePage is a
trivial Coming Soon page, and if I define some variable foo =
comingsoon.jsp (same as passed back) and place it in the include instead
of includePage, it _works fine_.  This must be something in the interaction
of the bean and the include, but I can't figure it out.

Hoping it's something obvious,
Oliver

ps same error on Linux/Apache


Oliver Meyn
[EMAIL PROTECTED]
Things should be made as simple as possible, but no simpler. - Albert
Einstein


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



RE: [AXIS4STRUTS]Generating XML from Struts JSP

2003-01-28 Thread Mike Oliver
Craig, Excellent!  

That leads to the not so trivial, for Axis4Struts to work as envisioned,
the Axis stubs and WSDL will be generated from a class with at least one
method similar to: (other overloaded methods probable)

Public String StrutsExecute(String strutsURL, 
NameValuePair[] strutsFormData,
NameValuePair[] strutsServerHeaders){
//Construct HttpClient
//get connection to struts server
//create and populate a post from strutsURL, strutsFormData 
//  and strutsServer headers
//execute the post method 
//return responseXml
}

A trivial example of a struts-config.xml element to register an action
to be called from Axis4Struts to get the current registration record
from the struts example and reuse of a Struts action class without any
modifications:

action path=/AxisEditRegistration 
   type=org.apache.struts.webapp.example.EditRegistrationAction 
   attribute=registrationForm scope=request validate=false
   forward name=success path=/AxisRegistration.jsp / 
/action

The AxisRegistration.jsp would be very similar to the original
registration.jsp, something like the following without the html
formatting tags:

  %@ page contentType=text/xml %
  %@ taglib prefix=bean uri=http://jakarta.apache.org/struts/bean;
%
  %@ taglib prefix=logic uri=http://jakarta.apache.org/struts/logic;
%
  registrationForm
username
   bean:write name=registrationForm property=username/
/username
password
   bean:write name=registrationForm property=password/
/password
fullName
   bean:write name=registrationForm property=fullName/
/fullName
fromAddress
   bean:write name=registrationForm property=fromAddress/
/fromAddress
replyToAddress
   bean:write name=registrationForm property=replyToAddress/
/replyToAddress
  /registrationForm

This should be easy enough to understand and use, but I would like to go
one step further.

The Axis4Struts.jsp would be a reusable jsp (and hopefully included in
the distribution) that any action could be configured to use to output
xml for Axis from any bean ala DynaBean reflection, you would simply
pass in the bean name as an argument, then dynamically build the xml for
all the bean's named values.  The struts-config.xml action element would
look something like:

action path=/AxisEditRegistration 
   type=org.apache.struts.webapp.example.EditRegistrationAction 
   attribute=registrationForm scope=request validate=false
   forward name=success
path=/Axis4Struts.jsp?beanName=registrationForm / 
/action


Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 10:41 PM
To: Struts Users Mailing List
Subject: Re: [AXIS4STRUTS]Generating XML from Struts JSP



On Mon, 27 Jan 2003, Michael Oliver wrote:

 Date: Mon, 27 Jan 2003 22:04:48 -0700
 From: Michael Oliver [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [AXIS4STRUTS]Generating XML from Struts JSP

 Has anyone used JSP with Struts to generate XML?
 http://java.sun.com/products/jsp/html/JSPXML.html

 Would anyone be interested in a struts-xml.tld and the associated
custom
 tag classes?

 If so what kinds of tags would you want? bean name and value?

 Can we just add a few XML oriented tags to the struts-html.tld and
 html/custom tag classes?

 DynaBean Tags?

 Build an xml document from the contents of a DynaBean?

 Just some of the things we might want for Axis4Struts and others may
 want too.


I use JSP to render XML with the standard Struts tag libraries and it
works quite well.  The bean:write tag already supports DynaBeans,
logic:iterate works great for looping through data structures, and so
on.

A trivial example similar to the XML document listed in the page you
referenced (assuming a collection of books that is either JavaBeans or
DynaBeans):

  %@ page contentType=text/xml %
  %@ taglib prefix=bean uri=http://jakarta.apache.org/struts/bean;
%
  %@ taglib prefix=logic uri=http://jakarta.apache.org/struts/logic;
%
  books
logic:iterate id=book name=books
  book isbn='bean:write name=book property=isbn/'
titlebean:write name=book property=title//title
quantitybean:write name=book
property=quantity//quantity
pricebean:write name=book property=price//price
  /book
/logic:iterate
  /books

Of course, you can do the same thing with JSTL tags if you've got
standard
JavaBeans as the backing data.

 Ollie

Craig


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


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




RE: [AXIS4STRUTS]Generating XML from Struts JSP

2003-01-28 Thread Mike Oliver
Object Oriented Programmer Syndrome, aka OOPS.

I forgot to say this is up on the web and you can play (not abuse
please, it is my pipe/bandwidth) at:

http://soap2k.appsaspeers.com:8080/struts-example/

Logon and enter your registration info and then go back to Edit
Registration and change the URL from 

http://soap2k.appsaspeers.com:8080/struts-example/editRegistration.do?ac
tion=Edit 

to

http://soap2k.appsaspeers.com:8080/struts-example/AxisEditRegistration.d
o?action=Edit

And see what you get.  

In the example below the strutsURL would be
http://soap2k.appsaspeers.com:8080/struts-example/editRegistration.do;
There would be one name value pair for action=Edit and the SOAP
response payload would be the same xml you get from the above URL.

So I am sure you are all asking, if it is that easy, why Axis, why WSDL?

The answer is that when we are done, the Axis4Struts components
shouldn't need to be changed to access almost any struts unmodified
action/bean and post and get data back, you will be able to use the
tools out there to access an Axis4STruts Web Service from Perl, Java,
C++, VB, C#, etc.  

Again that doesn't mean we are advocating the extreme use of Axis4Struts
for anything but an occasional or trivial alternate access method via
SOAP/Axis.  If you do need more, then you can see what we did and extend
it to meet your needs.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Mike Oliver [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 7:30 AM
To: 'Struts Users Mailing List'
Subject: RE: [AXIS4STRUTS]Generating XML from Struts JSP

Craig, Excellent!  

That leads to the not so trivial, for Axis4Struts to work as envisioned,
the Axis stubs and WSDL will be generated from a class with at least one
method similar to: (other overloaded methods probable)

Public String StrutsExecute(String strutsURL, 
NameValuePair[] strutsFormData,
NameValuePair[] strutsServerHeaders){
//Construct HttpClient
//get connection to struts server
//create and populate a post from strutsURL, strutsFormData 
//  and strutsServer headers
//execute the post method 
//return responseXml
}

A trivial example of a struts-config.xml element to register an action
to be called from Axis4Struts to get the current registration record
from the struts example and reuse of a Struts action class without any
modifications:

action path=/AxisEditRegistration 
   type=org.apache.struts.webapp.example.EditRegistrationAction 
   attribute=registrationForm scope=request validate=false
   forward name=success path=/AxisRegistration.jsp / 
/action

The AxisRegistration.jsp would be very similar to the original
registration.jsp, something like the following without the html
formatting tags:

  %@ page contentType=text/xml %
  %@ taglib prefix=bean uri=http://jakarta.apache.org/struts/bean;
%
  %@ taglib prefix=logic uri=http://jakarta.apache.org/struts/logic;
%
  registrationForm
username
   bean:write name=registrationForm property=username/
/username
password
   bean:write name=registrationForm property=password/
/password
fullName
   bean:write name=registrationForm property=fullName/
/fullName
fromAddress
   bean:write name=registrationForm property=fromAddress/
/fromAddress
replyToAddress
   bean:write name=registrationForm property=replyToAddress/
/replyToAddress
  /registrationForm

This should be easy enough to understand and use, but I would like to go
one step further.

The Axis4Struts.jsp would be a reusable jsp (and hopefully included in
the distribution) that any action could be configured to use to output
xml for Axis from any bean ala DynaBean reflection, you would simply
pass in the bean name as an argument, then dynamically build the xml for
all the bean's named values.  The struts-config.xml action element would
look something like:

action path=/AxisEditRegistration 
   type=org.apache.struts.webapp.example.EditRegistrationAction 
   attribute=registrationForm scope=request validate=false
   forward name=success
path=/Axis4Struts.jsp?beanName=registrationForm / 
/action


Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 10:41 PM
To: Struts Users Mailing List
Subject: Re: [AXIS4STRUTS]Generating XML from Struts JSP



On Mon, 27 Jan 2003, Michael Oliver wrote:

 Date: Mon, 27 Jan 2003 22:04:48 -0700
 From: Michael Oliver [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [AXIS4STRUTS]Generating XML from Struts JSP

 Has anyone used JSP with Struts to generate XML?
 http://java.sun.com/products/jsp/html/JSPXML.html

 Would anyone

RE: [OT] Obscure Programming Languages

2003-01-28 Thread Mike Oliver
Don't forget COBOL, RPG, SNOBOL, GW-BASIC and the days of drum memory,
core memory and what will we ever do with more than 64k of memory.  Or
Windows in 640k RAM. 160k floppies, one for boot, one for programs and
one for data on a single drive machine.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 10:40 AM
To: Struts Users Mailing List
Cc: 'Struts Users Mailing List'
Subject: RE: [OT] Obscure Programming Languages



You mean PDP-11 the old DEC machines that ran RSX-11M? They were fun -
if
you enjoyed learning proprietary OS's and writing real-time control
applications.

Gosh I'm old.





 

 

 Mark Galbreath  To: 'Struts Users
Mailing List' [EMAIL PROTECTED]  
 [EMAIL PROTECTED]  cc: (bcc: Kevin
Bedell/Systems/USHO/SunLife)
 01/28/2003 11:31 AM   Subject:  RE: [OT]
Obscure Programming Languages
 Please respond to Struts

 Users Mailing List

 

 





Close:

http://www.paulgraham.com/jargon96.html

I have the hard copy of this book - it's great!

POP-11?

-Original Message-
From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 11:24 AM

LISP - Lots of InSignifigant Parens

Prolog is where it's at :-)

- Original Message -
From: Chappell, Simon P [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]

Not something to admit in public!

Actually, I really enjoyed learning POP-11 back at university. Ahh,
those
were the days.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 10:14 AM

I actually taught myself Scheme (the MIT version) on the Macintosh in
the early 90s  :-)

-Original Message-
From: James Turner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 10:35 AM

 LISP boy is correct, and I brought this subject up about a year ago
 and Craig answered pretty definitively - try a search on
 synchronization in the archive:

LISP Boy?  Do I get the power to warp men's minds using my LISPParens?
Can I self-modify code in a single bound?  Does this make me the
sidekick of SchemeMan?

Holy PDL Stack Overflow, SchemeMan!



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






---
This e-mail message (including attachments, if any) is intended for the
use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt
from
disclosure.  If you are not the intended recipient, you are notified
that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.

---




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


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




RE: [Struts-src] Creating a form-bean

2003-01-28 Thread Mike Oliver
;-)  

if (he != null)
he = null;


Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 2:57 PM
To: Struts-User
Subject: [Struts-src] Creating a form-bean

I was wading through the source code to figure out the process of
creation of a form bean and found the following snippet in
o.a.s.u.RequestUtils in the method createActionForm (line 654 in the
1/28 nightly source):

(beginning at line 709)

if (configClass.isAssignableFrom(instance.getClass())) { 
  if (log.isDebugEnabled()) {
// snip
  }
  return (instance);
}
return (instance);

Can you tell me what this the if-statement is accomplishing?  It looks
like 'instance' will be returned regardless.

Sri


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




RE: how to call more than one Struts Action for a given HTTP request

2003-01-27 Thread Mike Oliver
I believe the best path for you on this is to SubClass the
RequestProcessor rather than chaining.  You could then use any number of
different design patterns to dispatch your actions and share data
between them or leverage the Workflow Extensions/State Engine.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036

-Original Message-
From: Souravmay Das [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 5:14 AM
To: [EMAIL PROTECTED]
Subject: how to call more than one Struts Action for a given HTTP
request

Hi All,
I have a question can we call more than one Struts action
for a
HTTP Request. Do you have any idea how to do it. The basic idea of
having
more than one Struts actions, is for getting more fine grained reusable
component.
 
With regards,
Sourav Das
 


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




[AXIS4STRUTS]Generating XML from Struts JSP

2003-01-27 Thread Michael Oliver
Has anyone used JSP with Struts to generate XML?  
http://java.sun.com/products/jsp/html/JSPXML.html

Would anyone be interested in a struts-xml.tld and the associated custom tag classes?

If so what kinds of tags would you want? bean name and value? 

Can we just add a few XML oriented tags to the struts-html.tld and html/custom tag 
classes? 

DynaBean Tags? 

Build an xml document from the contents of a DynaBean?

Just some of the things we might want for Axis4Struts and others may want too.

Ollie





RE: [OT]Good News

2003-01-23 Thread Mike Oliver
I can confirm at least one, I just got a gig with a big insurance
company based primarily on use of Struts to meet cost and timeline
requirements.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 9:45 AM
To: Struts Users Mailing List
Subject: [OT]Good News



Just got a call from a recruiter. He told me that hiring is picking up
for
java in general and especially for anyone with Struts experience. A lot
of
his big company customers are beginning to staff Struts projects.

Definitely a testament to the hard work of all the commiters - great
work!

Kevin




---
This e-mail message (including attachments, if any) is intended for the
use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt
from
disclosure.  If you are not the intended recipient, you are notified
that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.

---




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



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




RE: [OT] Re: Struts officially supported at Ford

2003-01-23 Thread Mike Oliver
Is that a Punjab?

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 12:54 PM
To: Struts Users Mailing List
Subject: RE: [OT] Re: Struts officially supported at Ford

Under Sharia law puns that bad are punishable by death.

-= J

 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 23, 2003 1:51 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] Re: Struts officially supported at Ford
 
 
 Yes, that's his real name.  He hunts buffalo with a java-lin, too.
 
 -Original Message-
 From: Durham David Cntr 805CSS/SCBE 
 [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 23, 2003 2:49 PM
 To: Struts Users Mailing List
 Subject: RE: [OT] Re: Struts officially supported at Ford
 
 
 It was a real question.  No offense :)
 
 -Dave
 
  -Original Message-
  From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 23, 2003 1:41 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [OT] Re: Struts officially supported at Ford
  
  
  There are those on the precipice, and then there are those in
  the abyss
  
  -Original Message-
  From: Durham David Cntr 805CSS/SCBE
  [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, January 23, 2003 1:59 PM
  To: Struts Users Mailing List
  Subject: RE: [OT] Re: Struts officially supported at Ford
  
  
  Is that your real name?
  
   -Original Message-
   From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, January 23, 2003 12:57 PM
   To: Struts Users Mailing List
   Subject: RE: [OT] Re: Struts officially supported at Ford
   
   
   Mark, I believe your particular brand of flippant 
 facetiousness is 

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


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




RE: [OT] Re: Struts officially supported at Ford

2003-01-23 Thread Mike Oliver
How does that go, Those without stones...throw what you have.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 12:57 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Re: Struts officially supported at Ford

Now is that specific case of death enforced by public stoning?

-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 2:54 PM
To: Struts Users Mailing List
Subject: RE: [OT] Re: Struts officially supported at Ford


Under Sharia law puns that bad are punishable by death.

-= J

 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 23, 2003 1:51 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] Re: Struts officially supported at Ford
 
 
 Yes, that's his real name.  He hunts buffalo with a java-lin, too.
 
 -Original Message-
 From: Durham David Cntr 805CSS/SCBE 
 [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 23, 2003 2:49 PM
 To: Struts Users Mailing List
 Subject: RE: [OT] Re: Struts officially supported at Ford
 
 
 It was a real question.  No offense :)
 
 -Dave
 
  -Original Message-
  From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 23, 2003 1:41 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [OT] Re: Struts officially supported at Ford
  
  
  There are those on the precipice, and then there are those in
  the abyss
  
  -Original Message-
  From: Durham David Cntr 805CSS/SCBE
  [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, January 23, 2003 1:59 PM
  To: Struts Users Mailing List
  Subject: RE: [OT] Re: Struts officially supported at Ford
  
  
  Is that your real name?
  
   -Original Message-
   From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, January 23, 2003 12:57 PM
   To: Struts Users Mailing List
   Subject: RE: [OT] Re: Struts officially supported at Ford
   
   
   Mark, I believe your particular brand of flippant 
 facetiousness is 

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

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



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




RE: Struts officially supported at Ford

2003-01-23 Thread Mike Oliver
And with other Open Source integration/interops like Axis4Struts,
Struts4Slide, Turbine4Strutsand my favorite VelocoRaptor and that
list goes on, before long you will be able to concentrate on just the
problem you are solving and not worry too much about infrastructure.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 12:59 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: RE: Struts officially supported at Ford



I agree here -

The typical big company response would've been to build their own custom
framework from the ground up. The fact that they chose to start with
Struts
shows they put a good deal of thought into it and trusted the quality of
the work. It's very likely that they had internal projects be successful
using Struts and then ramped it up as a standard. I'm sure they did a
great
deal of testing on it and had some camps pulling to build something
custom.
There were likely other competing frameworks as well.

This is one of the greatest strengths of Open Source - as a large
company
you can take the app and customize to your internal environment. For
example:

 - You could create abstract 'model' components that standardize they
way
people throughout the company perform database access (or web sevice
access).

 - You could customize it to provide a standard method of acquiring and
storing user credentials so that all applications manage user
information
the same way.

 - You could implement plug-ins to perform custom and standardized
logging
(assuming there is a standard logging process already in place).

The possibilities are endless -

I'll bet anything this is not the last time we here of a Fortune 500
company adopting Struts for intrnal development.










 

 

 Craig R. McClanahan To: Struts Users Mailing
List [EMAIL PROTECTED]  
 [EMAIL PROTECTED] cc: (bcc: Kevin
Bedell/Systems/USHO/SunLife)
 01/23/2003 02:18 PM   Subject:  RE: Struts
officially supported at Ford   
 Please respond to Struts

 Users Mailing List

 

 







On Thu, 23 Jan 2003, Karr, David wrote:


 It's certainly good that they're using 1.1, but somewhat unfortunate
 that they stopped at b2.  There were numerous fixes put in after b2,
 including the entire Struts-EL contribution.  Hopefully they can
upgrade
 their support pretty quickly.


Don't give them too hard a time about this.

It's absolutely appropriate for organizations responsible for mission
critical software to be conservative in their version choices -- and
every
such organization I'm familiar with puts any potential new version
through
very extensive testing (for example, against existing apps or against
any
in house customizations they did to the previous version) before putting
their stamp of approval on it.  Struts 1.1b3 hasn't been out long enough
to go through a cycle like that -- and, if I were in their shoes, given
the timing, I'd probably just skip certifying b3 and go certify 1.1
final.

What I'm very pleased about, though, is that Ford gets it in a
different
respsect -- they didn't consider beta to be a four-letter word :-).

Craig


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






---
This e-mail message (including attachments, if any) is intended for the
use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt
from
disclosure.  If you are not the intended recipient, you are notified
that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.

---




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


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




RE: [OT] Re: Struts officially supported at Ford

2003-01-23 Thread Mike Oliver
Or likely any less...;-)

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 1:07 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Re: Struts officially supported at Ford

I don't do that anymore

-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 2:57 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Re: Struts officially supported at Ford


Now is that specific case of death enforced by public stoning?

-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 2:54 PM
To: Struts Users Mailing List
Subject: RE: [OT] Re: Struts officially supported at Ford


Under Sharia law puns that bad are punishable by death.

-= J

 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 23, 2003 1:51 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] Re: Struts officially supported at Ford
 
 
 Yes, that's his real name.  He hunts buffalo with a java-lin, too.
 
 -Original Message-
 From: Durham David Cntr 805CSS/SCBE
 [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 23, 2003 2:49 PM
 To: Struts Users Mailing List
 Subject: RE: [OT] Re: Struts officially supported at Ford
 
 
 It was a real question.  No offense :)
 
 -Dave
 
  -Original Message-
  From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 23, 2003 1:41 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [OT] Re: Struts officially supported at Ford
  
  
  There are those on the precipice, and then there are those in the 
  abyss
  
  -Original Message-
  From: Durham David Cntr 805CSS/SCBE 
  [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 23, 2003 1:59 PM
  To: Struts Users Mailing List
  Subject: RE: [OT] Re: Struts officially supported at Ford
  
  
  Is that your real name?
  
   -Original Message-
   From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, January 23, 2003 12:57 PM
   To: Struts Users Mailing List
   Subject: RE: [OT] Re: Struts officially supported at Ford
   
   
   Mark, I believe your particular brand of flippant
 facetiousness is

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

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




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



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




RE: Axis/SOAP proposal for Struts

2003-01-18 Thread Mike Oliver
Kevin,

I started a new thread in dev and I have a project going in
SourceForge.net/Axis4Struts, I would be honored if you would
participate.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 17, 2003 1:36 PM
To: Struts Users Mailing List
Cc: 'Struts Users Mailing List'
Subject: RE: Axis/SOAP proposal for Struts



Mike -

Since you've started this thread - I don't want to move it to dev until
I
know you are on that list.

Can you either let me know you are there and I'll begin a thread there -
or
can you begin a thread in dev entitles something like: Struts/Axis next
steps and we'll try putting a plan together?

Thanks -
Kevin




 

 

 Mike Oliver To: 'Struts Users
Mailing List' [EMAIL PROTECTED]  
 [EMAIL PROTECTED]   cc: (bcc: Kevin
Bedell/Systems/USHO/SunLife)
 01/17/2003 12:22 PM   Subject:  RE: Axis/SOAP
proposal for Struts 
 Please respond to Struts

 Users Mailing List

 

 





With any luck we will find more that are looking for this same
capability and we can join forces and save double effort.  Perhaps a
SourceForge Project if we can't get a Jakarta project for it just yet.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 9:02 AM
To: 'Struts Users Mailing List'
Subject: RE: Axis/SOAP proposal for Struts

I actually AM doing this now, but I whole-heartedly agree that a
standardized Axis/SOAP interface to Struts would be very, very cool.

Mark

-Original Message-
From: Mike Oliver [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 10:46 AM

I would like to propose that Struts be extended to support another entry
point.  The ActionServlet would be augmented by an Axis/SOAP Web
Services
Interface to Struts.  FormBeans would be part of the payload for
requests.
Responses would be generated by Forwards for SOAP.  This new Axis entry
point would do the same work as ActionServlet with the only significant
difference being the construction of the FormBean. Incoming SOAP
Requests
would be configured to call the same RequestHandlers and as far as the
actions go they won't know that the source was an HTML Form or a
serialized
FormBean.

I feel this will give a great deal of flexibility to Applications where
they
want a Web Browser User Interface as well as Web Services for the same
Application Data Model and Business Logic.

I am planning on doing this anyway, and felt it applicable to this group
and
would offer to share it as a sub project and would welcome contributions
of
thought, expertise and code.



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



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






---
This e-mail message (including attachments, if any) is intended for the
use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt
from
disclosure.  If you are not the intended recipient, you are notified
that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.

---




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



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




RE: Axis/SOAP proposal for Struts

2003-01-18 Thread Mike Oliver
Thanks Craig, 

Understood, no question and no problem.  The SourceForge/Axis4Struts is
just for that purpose, including CVS, tasks, etc. 

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 18, 2003 2:33 PM
To: Struts Users Mailing List
Subject: RE: Axis/SOAP proposal for Struts



On Sat, 18 Jan 2003, Mike Oliver wrote:

 Date: Sat, 18 Jan 2003 14:14:19 -0700
 From: Mike Oliver [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: Axis/SOAP proposal for Struts

 Kevin,

 I started a new thread in dev and I have a project going in
 SourceForge.net/Axis4Struts, I would be honored if you would
 participate.


You guys are welcome to discuss and play with ideas and prototype, but
the
formal discussions over what will actually be done to Struts itself will
happen on the STRUTS-DEV mailing list.  Subscribe by sending an empty
message to [EMAIL PROTECTED].

 Michael Oliver

Craig


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



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




AW: How to set a parameter in an action

2003-01-17 Thread Oliver Kersten
Hi,
thanks for your answer, now we have solved the problem.

We are using our own class (ActionForwardWithParameter) which is extended
from ActionForward. Our class gets the original ActionForward as a parameter
and then (with some tricks) we use our own method to add a parameter. The
return value of the execute() method is our own ActionForwardWithParameter.

ciao Oliver.

-Ursprüngliche Nachricht-
Von: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 16. Januar 2003 11:26
An: Struts Users Mailing List; [EMAIL PROTECTED]
Betreff: Re: How to set a parameter in an action


Servlet API doesn't allow you to write request attributes (parameters,
headers...)

You can try to forward to a new ActionForward object, build with the mapping
to your another action, adding needed parameter with GET syntax :
...
return new ActionForward( NEXT_ACTION_URL + ?param= + paramValue );
(I'm not sure it will work...)


Another solution is to put param value in request and forward to a JSP that
will redirect browser to the NEXT_ACTION_URL with param added :

# in your action:
request.setAttribute(param, paramValue);
return new ActionForward( redirect.jsp );


# redirect.jsp :
form action=NEXT_ACTION_URL method=POST
  input type=hidden value=% request.getAttribute(param) %
/form
script
document.forms[0].submit();
/script


Nico.


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




Axis/SOAP proposal for Struts

2003-01-17 Thread Mike Oliver
Struts Users, 

 

I would like to propose that Struts be extended to support another entry
point.  The ActionServlet would be augmented by an Axis/SOAP Web
Services Interface to Struts.  FormBeans would be part of the payload
for requests.  Responses would be generated by Forwards for SOAP.  This
new Axis entry point would do the same work as ActionServlet with the
only significant difference being the construction of the FormBean.
Incoming SOAP Requests would be configured to call the same
RequestHandlers and as far as the actions go they won't know that the
source was an HTML Form or a serialized FormBean.  

 

I feel this will give a great deal of flexibility to Applications where
they want a Web Browser User Interface as well as Web Services for the
same Application Data Model and Business Logic.

 

I am planning on doing this anyway, and felt it applicable to this group
and would offer to share it as a sub project and would welcome
contributions of thought, expertise and code.

 

Michael Oliver
Chief Technology Officer
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
520.574.1150 Voice
520.844.1036 Fax
520.270.8862 Cell
http://www.appsaspeers.com http://www.appsaspeers.com/  Home Page
[EMAIL PROTECTED] SMS
http://www.ollie.ezpeer.net http://www.ollie.ezpeer.net/  Personal
Home Page
http://www.ollie.im-live.com/im-live/  Instant Chat
[EMAIL PROTECTED] MSN Messenger
[EMAIL PROTECTED] Yahoo Instant Messenger
MikeOliverAZ Aol Instant Messenger



 




RE: Axis/SOAP proposal for Struts

2003-01-17 Thread Mike Oliver
Thanks Joe,

The nice thing would be to do it now, for 1.1 outside the current
stream, but get a dialog going so the work done for it can be used at
least for lessons learned when the effort for 2.0  begins.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 17, 2003 9:08 AM
To: Struts Users Mailing List
Subject: Re: Axis/SOAP proposal for Struts

I am planning on doing this anyway, and felt it applicable to this
group
and would offer to share it as a sub project and would welcome
contributions of thought, expertise and code.

Craig has talked about a vision for Web Services being a part of 
Struts 2.x, although it doesn't seem to be on the roadmap.

http://jakarta.apache.org/struts/status.html

I think a full release of 1.1 is the first priority, and then people 
seem ready to split into two streams.  But I suspect that Web 
Services properly belong in the 2.0 stream.

I'd be happy to hear why my suspicion is wrong...

Joe

-- 
--
Joe Germuska  | Big corporations here now believe we 
will have war.
[EMAIL PROTECTED]  | Believe all would welcome it as relief to 
suspense.
http://blog.germuska.com/ | telegram to President McKinley, 25 March
1898


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



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




RE: Axis/SOAP proposal for Struts

2003-01-17 Thread Mike Oliver
I disagree.  MVC - A SOAP client requester is just another V, why
wouldn't you want to reuse the M and C?  I see very little difference
between a SOAP response and a Struts response in XML/XSLT.  I for one do
not want more than one set of Business Logic components on my Data
Model, regardless of the source of the Request.  I also see very little
difference between a SOAP Request with a serialized FormBean in it and
an html form post, except of course the format of the inputstream.  The
content, which is what matters, would be the same.

I would not modify the ActionServlet, but I would have an Axis/SOAP
entry point that did similar work and reused the Struts components
alongside the ActionServlet as an alternate entry point.  That means a
request from either a user on a web browser posting a form or doing a
get would execute the same RequestHandler, access the same Data Model
and business logic and get a response from a Forward that formed a SOAP
Response instead of a web page.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Bradley G Smith [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 17, 2003 9:46 AM
To: Struts Users Mailing List
Subject: Re: Axis/SOAP proposal for Struts


I have been thinking about it this off and on for a while. It seems to
me
that SOAP (or xml-rpc or ...) would be another access point into the
business logic of the application that is a peer to the access point
provided by a Struts-based layer. The Struts-based components provide
the
mechanism to deliver content to web browsers, the SOAP interface enables
content delivery from the business logic layer to other types of clients
on
the network. I do not see the need to extend the ActionServlet to
provide
this type of access.

Brad Smith



 

  Mike Oliver

  ollie@appsaspee To:
[EMAIL PROTECTED] 
  rs.com  cc:

   Subject: Axis/SOAP
proposal for Struts
  17-01-03 07:45

  Please respond

  to Struts Users

  Mailing List

 

 





Struts Users,



I would like to propose that Struts be extended to support another entry
point.  The ActionServlet would be augmented by an Axis/SOAP Web
Services Interface to Struts.  FormBeans would be part of the payload
for requests.  Responses would be generated by Forwards for SOAP.  This
new Axis entry point would do the same work as ActionServlet with the
only significant difference being the construction of the FormBean.
Incoming SOAP Requests would be configured to call the same
RequestHandlers and as far as the actions go they won't know that the
source was an HTML Form or a serialized FormBean.



I feel this will give a great deal of flexibility to Applications where
they want a Web Browser User Interface as well as Web Services for the
same Application Data Model and Business Logic.



I am planning on doing this anyway, and felt it applicable to this group
and would offer to share it as a sub project and would welcome
contributions of thought, expertise and code.



Michael Oliver
Chief Technology Officer
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
520.574.1150 Voice
520.844.1036 Fax
520.270.8862 Cell
http://www.appsaspeers.com http://www.appsaspeers.com/  Home Page
[EMAIL PROTECTED] SMS
http://www.ollie.ezpeer.net http://www.ollie.ezpeer.net/  Personal
Home Page
http://www.ollie.im-live.com/im-live/  Instant Chat
[EMAIL PROTECTED] MSN Messenger
[EMAIL PROTECTED] Yahoo Instant Messenger
MikeOliverAZ Aol Instant Messenger











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



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




RE: Axis/SOAP proposal for Struts

2003-01-17 Thread Mike Oliver
With any luck we will find more that are looking for this same
capability and we can join forces and save double effort.  Perhaps a
SourceForge Project if we can't get a Jakarta project for it just yet.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 17, 2003 9:02 AM
To: 'Struts Users Mailing List'
Subject: RE: Axis/SOAP proposal for Struts

I actually AM doing this now, but I whole-heartedly agree that a
standardized Axis/SOAP interface to Struts would be very, very cool.

Mark

-Original Message-
From: Mike Oliver [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 17, 2003 10:46 AM

I would like to propose that Struts be extended to support another entry
point.  The ActionServlet would be augmented by an Axis/SOAP Web
Services
Interface to Struts.  FormBeans would be part of the payload for
requests.
Responses would be generated by Forwards for SOAP.  This new Axis entry
point would do the same work as ActionServlet with the only significant
difference being the construction of the FormBean. Incoming SOAP
Requests
would be configured to call the same RequestHandlers and as far as the
actions go they won't know that the source was an HTML Form or a
serialized
FormBean.  

I feel this will give a great deal of flexibility to Applications where
they
want a Web Browser User Interface as well as Web Services for the same
Application Data Model and Business Logic.

I am planning on doing this anyway, and felt it applicable to this group
and
would offer to share it as a sub project and would welcome contributions
of
thought, expertise and code.



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



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




RE: Axis/SOAP proposal for Struts

2003-01-17 Thread Mike Oliver
Robert, 

My thinking exactly! I just didn't want to burden the list with a tome
of every implication of this proposal.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Robert McIntosh [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 17, 2003 10:24 AM
To: Struts Users Mailing List
Subject: Re: Axis/SOAP proposal for Struts

I think this would be a wonderful idea for several reasons.

- For one it would really enable a standalone Swing (maybe even SWT...) 
or applet-based client to use the processesing abilities of the struts 
app in a more defined manner. Or even, dare I say, a .Net client...
- It would also enable application to application communication, which 
could be a big plus for some enterprises. Imagine, a B2B scenario, or 
even within an enterprise some app could send a message to JMS, which is

picked up by a MDB which then sends a SOAP message to a Struts-based 
application.

I think it would really open up the possibilities and user base for
Struts.

Just my .02
Robert McIntosh

Mike Oliver wrote:

Struts Users, 

 

I would like to propose that Struts be extended to support another
entry
point.  The ActionServlet would be augmented by an Axis/SOAP Web
Services Interface to Struts.  FormBeans would be part of the payload
for requests.  Responses would be generated by Forwards for SOAP.  This
new Axis entry point would do the same work as ActionServlet with the
only significant difference being the construction of the FormBean.
Incoming SOAP Requests would be configured to call the same
RequestHandlers and as far as the actions go they won't know that the
source was an HTML Form or a serialized FormBean.  

 

I feel this will give a great deal of flexibility to Applications where
they want a Web Browser User Interface as well as Web Services for the
same Application Data Model and Business Logic.

 

I am planning on doing this anyway, and felt it applicable to this
group
and would offer to share it as a sub project and would welcome
contributions of thought, expertise and code.

 

Michael Oliver
Chief Technology Officer
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
520.574.1150 Voice
520.844.1036 Fax
520.270.8862 Cell
http://www.appsaspeers.com http://www.appsaspeers.com/  Home Page
[EMAIL PROTECTED] SMS
http://www.ollie.ezpeer.net http://www.ollie.ezpeer.net/  Personal
Home Page
http://www.ollie.im-live.com/im-live/  Instant Chat
[EMAIL PROTECTED] MSN Messenger
[EMAIL PROTECTED] Yahoo Instant Messenger
MikeOliverAZ Aol Instant Messenger



 


  



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



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




  1   2   3   >