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 


  ">
 
   

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



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



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



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

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/bcomm&pgmarket=en-ca&RU=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: 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]



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]



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:
 




"/


  
 
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
 


 
 
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:
 




"/


  
 
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
 


 
 
RESULT: form.email
 


AW: *.do mapping using JRun

2004-01-01 Thread Oliver Thiel
Hi Mike,


Have you updated the web.xml file?



action
*.do


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
/do/*



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
 


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  for the “action”
 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]



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
 



 
 
mappedForm.jsp
 

  < logic:iterate id="mappedForm" name="mappedForm2"
property="mappedForm">
" />
" /> 

 
 
 
 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:
 
User name*:
 
 
 


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?
" />

(- 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.

" 
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
>
>  type="org.apache.struts.action.DynaActionForm">
> 
> 
>
>
> mappedForm.jsp
>
>  type="java.util.HashMap"/ >
>   < logic:iterate id="mappedForm" name="mappedForm2"
> property="mappedForm">
>  mappedForm " property=" mappedForm2"/>" />
> " />
> 
>
>
>
>  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:
>
> User name*:
> 
>
>


-
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
 




 
 
 
mappedForm.jsp
 




:
"  
 value=""
class="Feld">

  
   
 



 
 
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: " /> 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
 
 


AW: All values null after Validate

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


IF you use [extends ActionForm] you can use:

"> (in your jsp)

OR:

IF you use [extends ValidatorForm] you can use:

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



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"
 


  :
  )" value=""
CLASS="FELD">   

  
 
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
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>


Appendix: ANT



  
  






   




   
   
   
 

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

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

not :
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
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
 

Appendix: ANT



  
  






   




   
   
   
 

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




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



WITH ?!?

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:

 
For a dynamic version I think I need some thing like that: "/>
 
But the code above does not work! Has anyone an idea?
 
 
THX
Oliver
 


AW: WITH ?!?

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:  WITH  ?!?

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:  WITH  ?!?
>
>
> 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:
> 
>
> For a dynamic version I think I need some thing like that: 
>  key="form."/>
>
> 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]



AW: WITH ?!?

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:  WITH  ?!?

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:  WITH  ?!?
>
>
> 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:
> 
>
> For a dynamic version I think I need some thing like that: 
>  key="form."/>
>
> 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]



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"

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



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




 
Action:
HashMap mapForm = new HashMap();
mapForm.put("username", "");
mapForm.put("email", "");
mapForm.set("mapForm", mapForm);
 
JSP:


  :
  "  value="" class="Feld"> 
   
 
FORM:
String static  = (String)this.get("static");
HashMap mappedForm = (HashMap)this.get("mappedForm");
String username = (String) mappedForm.get("username");


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]



AW: Navigating back

2004-02-01 Thread Oliver Thiel
Hi Sudhakar,
 
 
If you can/want use JavaScript:

previous page 
 
 
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
Search (or use a global
forward or what ever you like ...)

In your search.jsp you probably should have something like that:

:
:

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!







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]



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:


:
)"  value="" class="Feld">   


 
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:


:
)"  value="" class="Feld">   


 
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:


:
)"  value="" class="Feld">   


 
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]



logic:notMatch - TagLib

2004-02-08 Thread Oliver Thiel
Hi  @all,
 
 
I iterate over a HashMap (mapped) to create my (register) form. 
 

)"  value="">

 
Now I want some of the input fields to be text and some
to be password. 
 


)"  value="">


)"  value="">


)"  value="">


 
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


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  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  or 
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  or  
> > beside that it should be able to handel more than one property!
> 
> Use the JSTL  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]



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]