Re: [FRIDAY OT ANN] My new project is beta

2005-07-15 Thread netsql


We still have some JNI issues in Mac.
:-(
.V




Simon Chappell wrote:

I tried it on my Mac (OS X 10.3.9) and while it triggered the JNLP
download, nothing happened after that. Bummer. :-(

Simon

On 7/15/05, netsql <[EMAIL PROTECTED]> wrote:


roomity.com to check it out.

it should help you use mail lists. It's RiA/JDNC (CoR). There should be
updates weekly and it should release in days.

hope you like.

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



[FRIDAY] What technology do you use for authentication and authorization?

2005-07-15 Thread Craig McClanahan
(It's still Friday here on the Pacific Coast, so I'll sneak in a late question)

One of my colleagues at Sun, Greg Murray, is spec lead for the next
rev of the Servlet API.  He has recently written a blog asking for
input on what you'd like to see in the next version:

  http://weblogs.java.net/blog/gmurray71/archive/2005/07/got_servlets.html

My particular question (well, questions :-) for the Struts community:

* What technology do you currently use for authentication and authorization
  in your web applications?

* If you use the container managed security faciities of your container,
  does it completely meet your needs?  If not, what else would you like to see?

* If you don't use container managed security (i.e. the facilities
defined in the
  servlet and J2EE, err, Java EE specifications), what capabilities would you
  need to have available before you'd consider using the container facilities?

For maximum positive benefit to the world, please cc your responses
both here and reply to Greg's blog (at the URL listed above).  Of
course, you're welcome to comment (on the blog) about any other
features you'd like to see the Servlet spec standardize, but tonight
I'm particularly interested in this particular aspect.

Craig

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



Re: Struts 1.2 v 1.3

2005-07-15 Thread Wendy Smoak

From: "Ted Husted" <[EMAIL PROTECTED]>


I'd suggest that changes between releases should be immortalized on a
Release Notes page, like the very cool one we have for 1.2.7:
* http://struts.apache.org/userGuide/release-notes.html


Noted. ;)  Joe, is it okay to take the text of your email for the new page?

--
Wendy Smoak


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



Re: [FRIDAY OT ANN] My new project is beta

2005-07-15 Thread Simon Chappell
I tried it on my Mac (OS X 10.3.9) and while it triggered the JNLP
download, nothing happened after that. Bummer. :-(

Simon

On 7/15/05, netsql <[EMAIL PROTECTED]> wrote:
> roomity.com to check it out.
> 
> it should help you use mail lists. It's RiA/JDNC (CoR). There should be
> updates weekly and it should release in days.
> 
> hope you like.
> 
> .V
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
www.simonpeter.com

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



[FRIDAY OT ANN] My new project is beta

2005-07-15 Thread netsql

roomity.com to check it out.

it should help you use mail lists. It's RiA/JDNC (CoR). There should be 
updates weekly and it should release in days.


hope you like.

.V


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



Re: Some advice

2005-07-15 Thread Rafael Taboada
Hi folks. I sent a doubt about how to validate only some fields from an 
action form
 In my validation, all work fine. But I have an action class for an 
actionform. This action class extends dispatchaction (in other cases extends 
lookupdispatchaction) because in my jsp i have several buttons in order to 
submit something. My doubt is if there is some way to validate only some 
fields. Because I want 'search method' to validate only username and date 
fields, and 'drope method' validate only chkBills field... How can I do 
that? I tried to use ValidatorActionForm instead of ValidatorForm but it's 
the same because I have only one Action and inside all my methods.
 Is there a possiblity to manage my problem using only Validator framework?. 
Or I have to override the validate method in my ActionForm and code my own 
validation???.. How can I do that?
 Thanks in advance

-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"


Re: passing param as part of URL path

2005-07-15 Thread Max Cooper
On Fri, 2005-07-15 at 13:12 -0500, Brian Lalor wrote:
> is there a way to specify a new default ActionMapping class?

The "type" attribute of the  element will set a default
so you don't have to repeat it (or forget to repeat it) in all your
 elements:

  

-Max


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



Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-15 Thread Ted Husted
On 7/15/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> One thing that can save some work is that the pseudo-database part of
> MailReader is already extracted out into its own module (it's in
> apps/dao in the source tree), which can be reused "as is" like it is
> in all the other MailReader variants.

I've sometimes wondered if we need even a psuedo-database for MailReader. 

An interface backed by a set of Maps, might do as well. It would not
persist between sessions, but that's not the point of the exercise.

Actually, it would be helpful if we had multiple database
implementations: XML, RAM, and maybe even SQL using Derby or
something. :)

-T.

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



Re: Struts 1.2 v 1.3

2005-07-15 Thread Ted Husted
On 7/15/05, Joe Germuska <[EMAIL PROTECTED]> wrote:
> Probably the biggest other thing is the "extends" mechanism which
> allows most config elements to extend others, eliminating some
> redundancies in config files.  To be honest, I haven't used this much
> yet, but I can see where it would be pretty handy.

I use these feature *extensively* in other environments, like Spring
and iBATIS, not to mention our old buddy Tiles.

The cool thing about extends is that it lets you set defaults and then
"program by difference". If most of your ActionMappings using similar
settings, you can set a base element with your defaults, and extend
from that base. Then, your elements are not relentlessly saying the
same things over and over, and the intelligence of your mappings (what
makes them different) can shine through. You can see the forest again.

Extends makes using XML elements much more like object-orientated
programming. You can setup a base element, and then only specify the
behavior that changes.

:) Kudos to Hubert Rabago for taking the lead on implementing extends.  :)

> That's all I can think of off hand.  There ought to be a Wiki page
> somewhere that lists all these things, but I'm not sure if anyone has
> done that yet.

I'd suggest that changes between releases should be immortalized on a
Release Notes page, like the very cool one we have for 1.2.7:

* http://struts.apache.org/userGuide/release-notes.html

-Ted.

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



RE: Struts 1.2 v 1.3

2005-07-15 Thread Joe Germuska

At 4:39 PM +0100 7/15/05, Pilgrim, Peter wrote:

What does 1.3 bring to the party?

I know there will be with the composable request processor and
commons chain integration. What other innovations are there
in the new version?


Probably the biggest other thing is the "extends" mechanism which 
allows most config elements to extend others, eliminating some 
redundancies in config files.  To be honest, I haven't used this much 
yet, but I can see where it would be pretty handy.


I'm pretty keen on the "arbitrary configuration property" system 
which allows almost every Struts config object to expose a map of 
key/value pairs.  This allows everyone to externalize more 
configuration, which should encourage more reuse.  For a pragmatic 
example, here's another small innovation:


I modified the ExceptionHandler so that it tries harder to send 
information to the browser when an error occurs using Tiles.  If you 
use declarative exception handling with "java.lang.Exception" and 
tiles together, you've probably seen the infamous "white screen" 
where a region of your page fails because of some kind of JSP error 
and rather than getting information in the browser, you get nothing. 
This happens because the Struts ExceptionHandler catches the error 
and tries to forward control to the error path.  This is illegal, 
because the HttpServletResponse has been committed.  What I did was 
add a test of response.isCommitted() and set the ExceptionHandler to 
use requestDispatcher.include() instead of ...forward() in that case. 
However, acknowledging that this isn't always what people want, I 
added some configuration properties to support alternatives.  Because 
I could use the "arbitrary configuration properties" on the 
ExceptionConfig, I didn't have to muck around with updating the 
Struts 1.3 DTD; instead, I just documented the property names in the 
class JavaDoc.


I think this kind of use of arbitrary config properties should make 
it a lot easier for people to write other reusable chunks of code, 
for actions, exception handling, or in most anywhere else.


That's all I can think of off hand.  There ought to be a Wiki page 
somewhere that lists all these things, but I'm not sure if anyone has 
done that yet.


Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex


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



Re: [OT] Java as a Daemon

2005-07-15 Thread Martin Gainty

Good Afternoon Richard

Agreed - a cron oracle dbms_job task would definitely fit the bill
10g is promoting their new Scheduler program which replaced dbms_job 
task..take a look at

http://www.databasejournal.com/features/oracle/article.php/3413371
Sidebar :
You could also look at Ant which has also added the ability to run SQL 
scripts take a look at

http://ant.apache.org/manual/

In any case Let me know how you make out,
Martin-
- Original Message - 
From: "Richard Reyes" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Thursday, July 14, 2005 10:00 PM
Subject: Re: [OT] Java as a Daemon


Hi Guys,

Thanks for all the input. I'll suggest the oracle dbms_job approach
seems reasonable. My last option would be to create a cron job.

Richard

On 7/14/05, Martin Gainty <[EMAIL PROTECTED]> wrote:

Jesse

For specific packages I would look at  dbms_streams_tablespace_adm
I would look at Oracle's Moving Data Faster/Pulling Tablespaces article
available at
http://www.oracle.com/technology/oramag/oracle/04-sep/o54data.html
And of course consult the folks at Oracle if you have a support contract!

In any case let us know how you make out,
Maritn-
 Original Message -
From: "Duncan Mills" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, July 14, 2005 4:41 AM
Subject: Re: [OT] Java as a Daemon


> Indeed the Oracle Database itself has a DBMS_JOB procedural package 
> which

> acts just like Cron in the database - so that provides another way to
> tackle the problem - On the other hand  the Oracle database also has a
> whole set of replication features which are designed for syncing data
> between databases instances in realtime if necessary - have a serious 
> look

> at these built-in functions of the database infrastructure before you
> build something new to do the same job.
>
> Duncan
>
> Jesse Alexander (KBSA 21) wrote:
>
>>Hi
>>
>>(Warning: not an Oracle insider...)
>>If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
>>Maybe you could have a Java-class that is called whenever you make an
>>update that needs to be "communicated". And then somehow make the update
>>in the second Oracle-db.
>>
>>just my 2cents
>>Alexander
>>
>>-Original Message-
>>From: Richard Reyes [mailto:[EMAIL PROTECTED] Sent: Thursday, 
>>July

>>14, 2005 3:53 AM
>>To: Struts Users Mailing List
>>Subject: [OT] Java as a Daemon
>>
>>Hello Guys,
>>
>>I need your suggestions. I have a task to create an application to
>>sync records between 2 Oracle 10g database. Not the whole records of
>>the database though, just the now and then transactional updates.
>>Access to the db's would be both via web services. I think I have an
>>option to do this like
>>- a simple java application executed via .sh file - a java application
>>running as a daemon on a unix box
>>
>>But I really am not sure which better path I should take. Any
>>suggestions would be very much appreciated.
>>
>>Thanks
>>Richard
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> --
>
> Regards
>
> Duncan Mills
> Senior Principal Product Manager
> Oracle Application Development Tools
>
> [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: passing param as part of URL path

2005-07-15 Thread Brian Lalor

On Jul 15, 2005, at 1:12 PM, Brian Lalor wrote:

Hey, cool!  The two books that I can find (of the 3 I own) only  
cover up to Struts 1.1.  The link Laurie sent contains some more  
info on the wildcard mappings, but it appears that you've gotta use  
a custom ActionMapping class[1, 2], with the className property of  
the  element.


I succumbed to a dangerous instinct (hm, I wonder if I can repurpose  
something from the existing ActionMapping for my needs?) and it paid  
off.  The setParameter() method is:
[A] general purpose configuration parameter that can be used to  
pass extra information
to the Action instance selected by this Action.  Struts does not  
itself use this value

in any way.

So I should be able to use


Thanks everyone!

--
   __   
  / /  / __/ Brian Lalor   "If you still have gas, you're  
not lost."

 / _ \/__ \  [EMAIL PROTECTED] -- Jacques Strappe
/_.__//  http://bravo5.org/



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



Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-15 Thread Craig McClanahan
On 7/15/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Must... not... volunteer... time... limited... :)
> 
> Seriously, I would actually be quite interested in taking this on, but
> frankly I have not yet touched Shale at all, so I'm not certain I could
> pull it off... Certainly I couldn't guarantee that I'd do everything the
> *right* way :)
> 
> Tell you what though... if no one else more familiar with Shale and with
> more free time steps up to do it, I'd like to take a shot none the less.
> That is Craig, if you don't mind a lot of questions along the way :)
> 

That would be great!  Go for it!  And feel free to ask away along the
way ... (probably on the dev list would be best).

One thing that can save some work is that the pseudo-database part of
MailReader is already extracted out into its own module (it's in
apps/dao in the source tree), which can be reused "as is" like it is
in all the other MailReader variants.

> Frank W. Zammetti

Craig

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



RE: passing param as part of URL path

2005-07-15 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> is there a way to specify a new default ActionMapping class?  

ModuleConfig does indeed have a method for setting the default action
mapping class, but I'm not sure how you would set this.


- Dave

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



Re: passing param as part of URL path

2005-07-15 Thread Brian Lalor

On Jul 15, 2005, at 12:50 PM, Durham David R Jr Ctr 805 CSPTS/SCE wrote:


I think you could use a wildcard mapping like this:





But I'm not sure how to retrieve this property in an action.   
Actually,

I'm not even sure that this works.  Maybe someone else can post more
info about this.


Hey, cool!  The two books that I can find (of the 3 I own) only cover  
up to Struts 1.1.  The link Laurie sent contains some more info on  
the wildcard mappings, but it appears that you've gotta use a custom  
ActionMapping class[1, 2], with the className property of the  
 element.


is there a way to specify a new default ActionMapping class?  It  
isn't that big of a deal to specify it for every action, I don't  
suppose, but it'd be handy if I didn't have to.


Thanks for the quick response, Laurie and David!

[1] http://www.informit.com/articles/article.asp?p=23734&seqNum=5&rl=1
[2] http://www.systemmobile.com/wp/?p=78

--
   __   
  / /  / __/ Brian Lalor   "If you still have gas, you're  
not lost."

 / _ \/__ \  [EMAIL PROTECTED] -- Jacques Strappe
/_.__//  http://bravo5.org/



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



RE: passing param as part of URL path

2005-07-15 Thread Durham David R Jr Ctr 805 CSPTS/SCE


> I was thinking that I would somehow capture CATALOG1 and CATALOG2 
> and stick them into the request, but I'm not sure how to go about it.

> It this functionality that Struts already has, do I need to implement 
> a filter, or should I subclass the main ActionServlet?


I think you could use a wildcard mapping like this:





But I'm not sure how to retrieve this property in an action.  Actually,
I'm not even sure that this works.  Maybe someone else can post more
info about this.


- Dave

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



Re: Question re. StrutsCatalogRedirectToInputPage

2005-07-15 Thread Michael Jouravlev
I wrote this er... piece originally. You are right, the problen and
solution are explained badly. The original point was that "input"
property is a sucky one and should not be used at all. One of the
reasons was that it could not redirect. But turned out that it
actually can redirect, so I added the whole paragraph of how to
redirect to "input". But this really does not help because error
messages are gone.

So, I personally _never_ use evil "input" property. Instead, I call
validate() manually from an action class, and manually save errors.

If you want to save errors from an action form, you can save reference
to session in reset() method, and then use it in validate(). The
problem is that reset() is not called for request-scoped forms (I
think so, I do not remember now clearly...). So, you stuck.

Therefore, the recommendation should be: if you want to redirect on error,
* do not use "input" property
* do not use automatic validation

Call validate() manually from action class and save errors to session
manually. Starting from 1.2.6 these errors are removed automatically
after they accessed.

I will change the wording in this entry, thanks for pointing out.

Michael.

P.S. "Next" means 1.3 if I am not mistaken. The code is there, in SVN.

On 7/15/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> I just read the StrutsCatalogRedirectToInputPage wiki entry [1] and have a
> question: given that failed validation causes the action not to be called,
> where exactly am I supposed to call Action.saveMessages()? Is this even
> required? Shouldn't it be handled by the validator already?
> 
> L.
> 
> PS, the entry closes with a note referencing the 'next Struts version';
> next after what?
> 
> http://wiki.apache.org/struts/StrutsCatalogRedirectToInputPage
> --
> Laurie, Open Source advocate, Java geek and novice blogger:
> http://www.holoweb.net/~laurie/

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



Re: I remember now why I said I usually use my VO in my ActionForm

2005-07-15 Thread Hubert Rabago
On 7/15/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Rick Reumann wrote:

> > How do you deal with a situation where you have to edit for example a
> > master detail record that contains nested objects? It's so much easier
> > dealing with the VOs for this kind of stuff.
>

> 
> If anyone knows how to define dynamic forms that emulate nested properties
> I'd love to hear about it!
> 
> Laurie

Well, since you asked.  

The current FormDef dev build supports defining dynamic forms that
have nested properties.
https://formdef.dev.java.net/servlets/ReadMsg?list=users&msgNo=116

I have an article to illustrate how the new feature is used:
http://www.rabago.net/struts/formdef/dev/nested.htm

FormDef can also support a collection of nested form beans, though I
haven't had the time to write up an article for that.  Some
explanation for it has been provided in the FormDef user list though:
https://formdef.dev.java.net/servlets/BrowseList?list=users&by=thread&from=230908

Hubert

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



Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-15 Thread Frank W. Zammetti
Must... not... volunteer... time... limited... :)

Seriously, I would actually be quite interested in taking this on, but
frankly I have not yet touched Shale at all, so I'm not certain I could
pull it off... Certainly I couldn't guarantee that I'd do everything the
*right* way :)

Tell you what though... if no one else more familiar with Shale and with
more free time steps up to do it, I'd like to take a shot none the less. 
That is Craig, if you don't mind a lot of questions along the way :)

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Fri, July 15, 2005 12:22 pm, Craig McClanahan said:
> On 7/15/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>> On 7/15/05, Yaroslav Novytskyy <[EMAIL PROTECTED]> wrote:
>> > Hello!
>> > Can you please provide a link to (or share if they are not jet)
>> sources.
>> > I'm very interested of how Struts Dialogs work, and will appriciate
>> any
>> > links, examples, docs Is this the one that will be also used in
>> Shale?
>>
>> No, it has absolutely no relation to Shale. If you are interested in
>> Shale, I would recommend you to start looking at it right now, because
>> further on the road these tho codebases will get vastly different.
>> They are already different ;)
>>
>
> Michael is correct ... and writing up MailReader with Shale would be a
> useful tool for comparisons.  I'll add that to my TODO list, unless
> someone else wants to volunteer to take it on.
>
>> Michael.
>
> Craig
>
> -
> 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]



Question re. StrutsCatalogRedirectToInputPage

2005-07-15 Thread Laurie Harper
I just read the StrutsCatalogRedirectToInputPage wiki entry [1] and have a 
question: given that failed validation causes the action not to be called, 
where exactly am I supposed to call Action.saveMessages()? Is this even 
required? Shouldn't it be handled by the validator already?


L.

PS, the entry closes with a note referencing the 'next Struts version'; 
next after what?


http://wiki.apache.org/struts/StrutsCatalogRedirectToInputPage
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: [OT] Can a simple java app access web services

2005-07-15 Thread Frank W. Zammetti
On Fri, July 15, 2005 12:41 pm, Ed Griebel said:
> Frank-
>
> It's an interesting idea, I don't know, I've been "lucky" enough that
> I've had WSDL to work with. It might be possible to use the same
> methods that wsdl2java uses, but there's probably a lot of complexity
> in there because SOAP can be quite complex.

Ironically, my experience has been just the opposite... most of the
services I've dealt with have been for internal use only, and I guess
we're a bit behind in getting WSDL for it all.  Not so bad when it's
internal-only stuff, a much bigger problem when dealing with external
services.

> Apologies for making this even more OT, but it's Friday :-)

Nah, I referenced my StrutsWS project once (twice now!), so it's not
especially off-topic :)  Certainly less so than some of the more recent
threads around here!

> -ed

Frank

>
> On 7/15/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>> Nice, thanks Ed!  I'd absolutely agree, assuming you have WSDL, this is
>> the way to go.
>>
>> Can it generate anything if it doesn't have WSDL though?  I have
>> experiences where the services I needed to consume didn't supply any,
>> for
>> various reasons, but maybe it can still generate some generic stub
>> code??
>>
>> --
>> Frank W. Zammetti
>> Founder and Chief Software Architect
>> Omnytex Technologies
>> http://www.omnytex.com
>>
>> On Fri, July 15, 2005 11:41 am, Ed Griebel said:
>> > FYI, I've used Axis to generate client java stubs by parsing the
>> > service's WSDL file. It will generate the stub classes to call the WS
>> > and the POJOs to communicate with the WS.
>> >
>> > You don't actually need to "install" the Axis package and there's no
>> > daemon to run to do this, you'll just need to extract the distribution
>> > and then run wsdl2java, which is well-documented on the Axis homepage.
>> > It's a good idea to generate the "unit test" class too as it's a good
>> > example of how to call the stubs.
>> >
>> > I'm pretty sure that this will be a lot quicker than rolling your own
>> > XML serialization and HTTP code.
>> >
>> > -ed
>> >
>> > On 7/15/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>> >> Hi Richard,
>> >>
>> >> Axis is the server-side of the WS equation (although maybe it can
>> >> perform some client duties, I'm not certain), so more than likely it
>> >> wouldn't come into play anyway.
>> >>
>> >> The simple answer is yes, a simple Java app can access a web service.
>> >>
>> >> There are classes that will specifically help you do so, but you can
>> >> also "fake it", at least if it is a SOAP-based service (I'm not as
>> >> familiar with RCP-type services).  For SOAP-based services, all you
>> >> really need to do is construct an XML message and use the usual HTTP
>> >> methods in the standard JDK to send it.
>> >>
>> >> You might be interested to look at my StrutsWS project because there
>> is
>> >> exactly what your asking for included: a simple Java app that
>> accesses
>> >> the services the example project provides (in short, StrutsWS is an
>> >> extension to Struts that allows Actions to be exposed as services).
>> You
>> >> can find it at http://sourceforge.net/projects/strutsws/
>> >>
>> >> Frank
>> >>
>> >> Richard Reyes wrote:
>> >> > Hi Guys,
>> >> >
>> >> > Can a simple java app access a web service? Or do I need to install
>> >> axis?
>> >> >
>> >> > Thanks
>> >> > Richard
>> >> >
>> >> > -
>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > .
>> >> >
>> >>
>> >> --
>> >> Frank W. Zammetti
>> >> Founder and Chief Software Architect
>> >> Omnytex Technologies
>> >> http://www.omnytex.com
>> >>
>> >>
>> >> -
>> >> 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: I remember now why I said I usually use my VO in my ActionForm

2005-07-15 Thread Laurie Harper

Rick Reumann wrote:
The reason I often end up using my Value Object directly in my 
ActionForm is because rarely do I ever end up with a nice simple case 
where the users are submitting simple form fields. Typically I end up 
with cases where I have to deal with a bunch of nested beans. It gets 
INCREDIBLY cumbersome to try to duplicate the same exact nested 
structure with objects in a form bean that need to represent the same 
exact nested structure of the objects. I'd be curious for those of you 
that 'only' use straight properties in your ActionForm deal with this? 
How do you deal with a situation where you have to edit for example a 
master detail record that contains nested objects? It's so much easier 
dealing with the VOs for this kind of stuff.


I found myself faced with the same question recently, and couldn't figure 
out a solution. The 'obvious' solution was to use Map-typed properties in 
my DynaActionForm declaration, but that didn't work :-(


If anyone knows how to define dynamic forms that emulate nested properties 
I'd love to hear about it!


L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: [OT] Can a simple java app access web services

2005-07-15 Thread Ed Griebel
Frank-

It's an interesting idea, I don't know, I've been "lucky" enough that
I've had WSDL to work with. It might be possible to use the same
methods that wsdl2java uses, but there's probably a lot of complexity
in there because SOAP can be quite complex.

I've found that one disadvantage of the code it generates is that it
doesn't degrade gracefully when the WSDL doesn't match the actual API
or the server returns malformed XML or there's a bad type conversion.
(Actually, it throws an exception with little explanation of why it
failed, just that there was a "parse error in XML for 123.45_67" or
somesuch.) Luckily Axis includes a tool that will intercept calls to
and responses from the server to inspect what the XML looks like.

Also, it doesn't tolerate WSDL that isn't formatted properly, e.g., if
a call refers to a missing object or if an object is incompletely
specified, it stops and refuses to process any more nor generate any
code. On some (badly!) hand-generated WSDL I had to edit the source so
errors weren't fatal so I could get something generated and running.

Apologies for making this even more OT, but it's Friday :-)

-ed


On 7/15/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Nice, thanks Ed!  I'd absolutely agree, assuming you have WSDL, this is
> the way to go.
> 
> Can it generate anything if it doesn't have WSDL though?  I have
> experiences where the services I needed to consume didn't supply any, for
> various reasons, but maybe it can still generate some generic stub code??
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> On Fri, July 15, 2005 11:41 am, Ed Griebel said:
> > FYI, I've used Axis to generate client java stubs by parsing the
> > service's WSDL file. It will generate the stub classes to call the WS
> > and the POJOs to communicate with the WS.
> >
> > You don't actually need to "install" the Axis package and there's no
> > daemon to run to do this, you'll just need to extract the distribution
> > and then run wsdl2java, which is well-documented on the Axis homepage.
> > It's a good idea to generate the "unit test" class too as it's a good
> > example of how to call the stubs.
> >
> > I'm pretty sure that this will be a lot quicker than rolling your own
> > XML serialization and HTTP code.
> >
> > -ed
> >
> > On 7/15/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> >> Hi Richard,
> >>
> >> Axis is the server-side of the WS equation (although maybe it can
> >> perform some client duties, I'm not certain), so more than likely it
> >> wouldn't come into play anyway.
> >>
> >> The simple answer is yes, a simple Java app can access a web service.
> >>
> >> There are classes that will specifically help you do so, but you can
> >> also "fake it", at least if it is a SOAP-based service (I'm not as
> >> familiar with RCP-type services).  For SOAP-based services, all you
> >> really need to do is construct an XML message and use the usual HTTP
> >> methods in the standard JDK to send it.
> >>
> >> You might be interested to look at my StrutsWS project because there is
> >> exactly what your asking for included: a simple Java app that accesses
> >> the services the example project provides (in short, StrutsWS is an
> >> extension to Struts that allows Actions to be exposed as services).  You
> >> can find it at http://sourceforge.net/projects/strutsws/
> >>
> >> Frank
> >>
> >> Richard Reyes wrote:
> >> > Hi Guys,
> >> >
> >> > Can a simple java app access a web service? Or do I need to install
> >> axis?
> >> >
> >> > Thanks
> >> > Richard
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >> >
> >> > .
> >> >
> >>
> >> --
> >> Frank W. Zammetti
> >> Founder and Chief Software Architect
> >> Omnytex Technologies
> >> http://www.omnytex.com
> >>
> >>
> >> -
> >> 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: How to populate a FormFile?

2005-07-15 Thread Laurie Harper

lk wrote:
I want an  field to show the name of a file I get from a 
database.


I've tried to populate the field with a FormField object I instantiate 
with the name of the file. But there is something wrong as I get in the 
html field something like:


value="[EMAIL PROTECTED]">


What does your JSP and CustomFormFile code look like? It looks like you're 
using ${field} where you need ${field.name} or something like that.


L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: passing param as part of URL path

2005-07-15 Thread Laurie Harper

You can do this using wildcard action mapping paths:

http://struts.apache.org/userGuide/building_controller.html#action_mapping_wildcards

L.

Brian Lalor wrote:

I'm working on a product catalog display application that uses the  same 
logic and code, but takes a common parameter for *every  request*, 
specifying the specific catalog to use.  The application is  a web 
service of sorts, and has no state stored between requests.


I would like to use URLs of this schema and embed the catalog param  in 
the path:

http://host/root/CATALOG1/action.do
http://host/root/CATALOG2/action.do

I prefer this idea to specifying a request parameter (?catalog=1) for  
every action.


I was thinking that I would somehow capture CATALOG1 and CATALOG2 and  
stick them into the request, but I'm not sure how to go about it.  It  
this functionality that Struts already has, do I need to implement a  
filter, or should I subclass the main ActionServlet?


Thanks in advance,
B

--
   __   
  / /  / __/ Brian Lalor   "If you still have gas, you're  not 
lost."

 / _ \/__ \  [EMAIL PROTECTED] -- Jacques Strappe
/_.__//  http://bravo5.org/



--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: another mutliple file uploading question

2005-07-15 Thread Luis Gervaso
if you like to select multiple files i think it is imposible from only one 
choose file window (when you click in examine button)

you can use an applet for this :(

regards

2005/7/15, Laurie Harper <[EMAIL PROTECTED]>:
> 
> dumbQuestionsAsker _ wrote:
> > Im new to Struts, and I want to upload multiple files using only one
> >  tag.
> > I made some googleling but I did not find anything working, only "that's
> > not possible"-like answers.
> > So my question is simple, is it really impossible to upload multiple
> > files usng only one  ?
> 
> Simple answer is yes;  just renders renders an HTML  type='file'/> element so you need one tag per input field you want on your
> form.
> 
> If what you want is to have multiple files submitted through the same
> request parameter, though, you should be able to bind N  tags
> to a single form bean property.
> 
> L.
> --
> Laurie, Open Source advocate, Java geek and novice blogger:
> http://www.holoweb.net/~laurie/
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Un saludo


Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-15 Thread Craig McClanahan
On 7/15/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 7/15/05, Yaroslav Novytskyy <[EMAIL PROTECTED]> wrote:
> > Hello!
> > Can you please provide a link to (or share if they are not jet) sources.
> > I'm very interested of how Struts Dialogs work, and will appriciate any
> > links, examples, docs Is this the one that will be also used in Shale?
> 
> No, it has absolutely no relation to Shale. If you are interested in
> Shale, I would recommend you to start looking at it right now, because
> further on the road these tho codebases will get vastly different.
> They are already different ;)
> 

Michael is correct ... and writing up MailReader with Shale would be a
useful tool for comparisons.  I'll add that to my TODO list, unless
someone else wants to volunteer to take it on.

> Michael.

Craig

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



Re: help needed - struts internatonalization

2005-07-15 Thread Laurie Harper

Ramesh Mekkara, ASDC Chennai wrote:

I have an Application built on EJB-Struts framework. I need to implement
internationalization on all jsp pages which we view. How can it be done ?


That's a big topic... :-) You might want to be a bit more specific about 
what you need to know, but as a starting point take a look at the 
 tag in Struts [1] and the format taglib in JSTL [2].


L.

[1] http://struts.apache.org/userGuide/struts-bean.html#message
[2] http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



passing param as part of URL path

2005-07-15 Thread Brian Lalor
I'm working on a product catalog display application that uses the  
same logic and code, but takes a common parameter for *every  
request*, specifying the specific catalog to use.  The application is  
a web service of sorts, and has no state stored between requests.


I would like to use URLs of this schema and embed the catalog param  
in the path:

http://host/root/CATALOG1/action.do
http://host/root/CATALOG2/action.do

I prefer this idea to specifying a request parameter (?catalog=1) for  
every action.


I was thinking that I would somehow capture CATALOG1 and CATALOG2 and  
stick them into the request, but I'm not sure how to go about it.  It  
this functionality that Struts already has, do I need to implement a  
filter, or should I subclass the main ActionServlet?


Thanks in advance,
B

--
   __   
  / /  / __/ Brian Lalor   "If you still have gas, you're  
not lost."

 / _ \/__ \  [EMAIL PROTECTED] -- Jacques Strappe
/_.__//  http://bravo5.org/



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



Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-15 Thread Michael Jouravlev
On 7/15/05, Yaroslav Novytskyy <[EMAIL PROTECTED]> wrote:
> Hello!
> Can you please provide a link to (or share if they are not jet) sources.
> I'm very interested of how Struts Dialogs work, and will appriciate any
> links, examples, docs Is this the one that will be also used in Shale?

No, it has absolutely no relation to Shale. If you are interested in
Shale, I would recommend you to start looking at it right now, because
further on the road these tho codebases will get vastly different.
They are already different ;)

Michael.

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



Re:

2005-07-15 Thread Lucas Bern
Hi, i think it shuold work...
 

 


I wish it helps
Lucas
Aleksandar Matijaca <[EMAIL PROTECTED]> escribió:
Hi there,

I am trying to use like to have it render the href="/myapp/[EMAIL PROTECTED]" >

That is, I am not sure how to specify the html:link so that it takes par1 
and [EMAIL PROTECTED] If you have a nice
example, I would appreciate it.

Cheers, Alex.

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar

Re: Putting execute() in ActionForm

2005-07-15 Thread Michael Jouravlev
On 7/15/05, Schaub, Stephen <[EMAIL PROTECTED]> wrote:
> 
> > -Original Message-
> > From: Ted Husted [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 13, 2005 3:22 PM
> > To: Struts Users Mailing List
> > Subject: Re: Putting execute() in ActionForm
> >
> > [snip]
> >
> > If I were to use this strategy, I'd select the parameters to the
> > Execute signature with care. There may not be any reason to pass the
> > HTTP parameters out of the call, and there may be a reason  to pass
> > the Action. I would just be careful of using the parameters from the
> > Struts Execute signature, unless my code actually needed those
> > parameters..
> 
> I have found that I do need the Action available to the ActionForm's execute 
> method, because the Action class contains several important utility methods 
> (like saveErrors(), etc.) that need to be available to the ActionForm's 
> execute method.
> 
> Further, since there is a separate ActionForm instance for each thread, I've 
> considered adding the ActionMapping and HttpServletRequest as instance 
> variables on the ActionForm, which are populated by the Action method before 
> invoking ActionForm.execute():
> 
> public class SimpleAction extends Action {
>   public ActionForward execute(ActionMapping mapping, ActionForm form,
> HttpServletRequest request, HttpServletResponse response)
> throws Exception {
> SimpleActionForm bean = (SimpleActionForm) form;
> bean.init(this, mapping, request);
> return bean.execute();
>   }
> }

You can do the same in ActionForm.reset(). It receives mapping and
request. I often pull out session object out of request and save it in
a field of an ActionForm, so I could access it outside reset().

> By the way, I'm very interested in all of the feedback on my request for 
> input on this
> pattern.  If this is considered a desirable pattern, would it be worth adding 
> it on the 
> Struts wiki?

Darn, I realised that I need another event for my CRUDAction, thus I
need another handler in the action, then I need to pass it to the
form, so I need to update ICRUDForm interface... If I called some kind
of execute() method in ActionForm directly, I would not have to change
the interface now.

So, I guess I will change the way Struts Dialogs works, and will
channel events directly to ActionForm. Instead of creating a new
generic traffic cop action I have to fiddle with some core class like
RequestProcessor. If action class is not defined for a form, and form
implements something like ICallable, then I would call form directly.

Major change... Good, that it had not been accepted to core Struts yet ;-)

Michael.

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



Re:

2005-07-15 Thread Wendy Smoak
From: "Aleksandar Matijaca" <[EMAIL PROTECTED]>
> I am trying to use   like to have it render the  href="/myapp/[EMAIL PROTECTED]" >
>
> That is, I am not sure how to specify the html:link so that it takes par1
> and [EMAIL PROTECTED] If you have a nice
> example, I would appreciate it.

http://struts.apache.org/userGuide/struts-html.html#link

If you have a single parameter to pass, you can use the 'paramId' and
'paramName' attributes of the  tag.

If you still need help, post the  that you've written, along with
the  that you're trying to get it to render.

-- 
Wendy Smoak


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



Re: [OT] Can a simple java app access web services

2005-07-15 Thread Frank W. Zammetti
Nice, thanks Ed!  I'd absolutely agree, assuming you have WSDL, this is
the way to go.

Can it generate anything if it doesn't have WSDL though?  I have
experiences where the services I needed to consume didn't supply any, for
various reasons, but maybe it can still generate some generic stub code??

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Fri, July 15, 2005 11:41 am, Ed Griebel said:
> FYI, I've used Axis to generate client java stubs by parsing the
> service's WSDL file. It will generate the stub classes to call the WS
> and the POJOs to communicate with the WS.
>
> You don't actually need to "install" the Axis package and there's no
> daemon to run to do this, you'll just need to extract the distribution
> and then run wsdl2java, which is well-documented on the Axis homepage.
> It's a good idea to generate the "unit test" class too as it's a good
> example of how to call the stubs.
>
> I'm pretty sure that this will be a lot quicker than rolling your own
> XML serialization and HTTP code.
>
> -ed
>
> On 7/15/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>> Hi Richard,
>>
>> Axis is the server-side of the WS equation (although maybe it can
>> perform some client duties, I'm not certain), so more than likely it
>> wouldn't come into play anyway.
>>
>> The simple answer is yes, a simple Java app can access a web service.
>>
>> There are classes that will specifically help you do so, but you can
>> also "fake it", at least if it is a SOAP-based service (I'm not as
>> familiar with RCP-type services).  For SOAP-based services, all you
>> really need to do is construct an XML message and use the usual HTTP
>> methods in the standard JDK to send it.
>>
>> You might be interested to look at my StrutsWS project because there is
>> exactly what your asking for included: a simple Java app that accesses
>> the services the example project provides (in short, StrutsWS is an
>> extension to Struts that allows Actions to be exposed as services).  You
>> can find it at http://sourceforge.net/projects/strutsws/
>>
>> Frank
>>
>> Richard Reyes wrote:
>> > Hi Guys,
>> >
>> > Can a simple java app access a web service? Or do I need to install
>> axis?
>> >
>> > Thanks
>> > Richard
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>> >
>> > .
>> >
>>
>> --
>> Frank W. Zammetti
>> Founder and Chief Software Architect
>> Omnytex Technologies
>> http://www.omnytex.com
>>
>>
>> -
>> 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] Can a simple java app access web services

2005-07-15 Thread Ed Griebel
FYI, I've used Axis to generate client java stubs by parsing the
service's WSDL file. It will generate the stub classes to call the WS
and the POJOs to communicate with the WS.

You don't actually need to "install" the Axis package and there's no
daemon to run to do this, you'll just need to extract the distribution
and then run wsdl2java, which is well-documented on the Axis homepage.
It's a good idea to generate the "unit test" class too as it's a good
example of how to call the stubs.

I'm pretty sure that this will be a lot quicker than rolling your own
XML serialization and HTTP code.

-ed

On 7/15/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Hi Richard,
> 
> Axis is the server-side of the WS equation (although maybe it can
> perform some client duties, I'm not certain), so more than likely it
> wouldn't come into play anyway.
> 
> The simple answer is yes, a simple Java app can access a web service.
> 
> There are classes that will specifically help you do so, but you can
> also "fake it", at least if it is a SOAP-based service (I'm not as
> familiar with RCP-type services).  For SOAP-based services, all you
> really need to do is construct an XML message and use the usual HTTP
> methods in the standard JDK to send it.
> 
> You might be interested to look at my StrutsWS project because there is
> exactly what your asking for included: a simple Java app that accesses
> the services the example project provides (in short, StrutsWS is an
> extension to Struts that allows Actions to be exposed as services).  You
> can find it at http://sourceforge.net/projects/strutsws/
> 
> Frank
> 
> Richard Reyes wrote:
> > Hi Guys,
> >
> > Can a simple java app access a web service? Or do I need to install axis?
> >
> > Thanks
> > Richard
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > .
> >
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> 
> -
> 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]



user@struts.apache.org

2005-07-15 Thread Aleksandar Matijaca
Hi there,

I am trying to use 

That is, I am not sure how to specify the html:link so that it takes par1 
and [EMAIL PROTECTED] If you have a nice
example, I would appreciate it.

Cheers, Alex.


RE: Struts 1.2 v 1.3

2005-07-15 Thread Pilgrim, Peter

What does 1.3 bring to the party?

I know there will be with the composable request processor and 
commons chain integration. What other innovations are there
in the new version?


> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]
====
> 
> 
> On 7/14/05, Access Denied <[EMAIL PROTECTED]> wrote:
> > I just bought and am reading James Holmes' book, "Struts: 
> The Complete
> > Reference" (Osborne 2004), which covers 1.2.  I just 
> learned from one
> > of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
> > wasting my time and should be studying other literature?
> 
> Hmmm, I may have said "almost", but I did not mean to imply "soon". 
> 
> Right now, no one seems to be trying to push 1.3 out the door. There
> is not even a release plan. The only timeframe for 1.3 is
> "indefinate". It could be a week, or a month, or five months. It all
> depends when a volunteer can step up to the plate.
> 
> Of course, should "indefinate" happen, it would not make any 1.2
> material obsolete. By "1.3", we mean the release would be backwardly
> compatible with 1.2.
====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



Re: Some advice

2005-07-15 Thread basudeb . acharya

 Hi Rafael,

 I believe I suggested to use readonly=true in the html:text tag for the 
2nd problem.

I did not make any comments on the first one.

Regards,
Basudeb Acharya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com




Rafael Taboada <[EMAIL PROTECTED]> 
07/15/2005 05:50 PM
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: Some advice






Hi Basudeb Acharya for ur help... It's really that I want =)
 Ex.llitia2. I'd like you are more specific. My code in ActionForm is:
 ActionErrors errors = ventaForm.validate(mapping,request);

if (errors==null || errors.isEmpty()) {
 //Do something because all is OK
}
else
saveErrors(request,errors);


-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi 
vida"

ForwardSourceID:NT75EE 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: another mutliple file uploading question

2005-07-15 Thread Laurie Harper

dumbQuestionsAsker _ wrote:
Im new to Struts, and I want to upload multiple files using only one 
 tag.
I made some googleling but I did not find anything working, only "that's 
not possible"-like answers.
So my question is simple, is it really impossible to upload multiple 
files usng only one  ?


Simple answer is yes;  just renders renders an HTML type='file'/> element so you need one tag per input field you want on your 
form.


If what you want is to have multiple files submitted through the same 
request parameter, though, you should be able to bind N  tags 
to a single form bean property.


L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: hi

2005-07-15 Thread Hubert Rabago
Extend MappingDispatchAction instead:
http://struts.apache.org/api/org/apache/struts/actions/MappingDispatchAction.html

Your config would look like:

   

   



On 7/15/05, Bayarsaikhan VOLODYA <[EMAIL PROTECTED]> wrote:
> hi all,
> 
> currently, i set action parameter manually. i mean
> /user.do?action=edit
> 
> i dont want this one. i want to set it up like this. Telling no Parameter.
> /userEdit.do
> /userDelete.do
> ...
> with no parameter but one action class that extends DispathAction.
> how can i handle it?
> 
> --
> Bayarsaikhan VOLODYA
> 
>

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



RE: hi

2005-07-15 Thread Nitish Kumar


You can use MappingDispatchAction or LookupDispatchAction, but I think what
you want can be better achieved by MappingDispatchAction.


PS: Please use a better subject than Hi, it doesnt give much clue about what
your problem is..




Thanks and Regards, 
Nitish Kumar 




-Original Message-
From: Bayarsaikhan VOLODYA [mailto:[EMAIL PROTECTED]
Sent: Friday, July 15, 2005 8:03 PM
To: user@struts.apache.org
Subject: hi


hi all,

currently, i set action parameter manually. i mean
/user.do?action=edit

i dont want this one. i want to set it up like this. Telling no Parameter.
/userEdit.do
/userDelete.do
...
with no parameter but one action class that extends DispathAction.
how can i handle it?

-- 
Bayarsaikhan VOLODYA

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



Re: [OT] olipmic rings metaphor - LDAP?

2005-07-15 Thread Laurie Harper

Frank W. Zammetti wrote:


Not sure I have an answer for that :)  My guess would be because of the
first letter in the acronynm: Lightweight.  Otherwise, your question seems
reasonable to me.


Yep, the 'lightweight' is certainly a key factor. LDAP is optimized toward 
high read volume, low write volume applications so directories can 
genereally serve queries faster than RDBMSs at the expense of slower 
updates. In practice, though, LDAP is non-transactional and a poor 
substitute for a database if you need to do more than provide a repository 
for user profile information.


LDAP directories are typically used for identity management solutions, for 
centralizing user profile data and for 'white pages' type contact databases.


L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: Accessing Cookie information

2005-07-15 Thread Richard Reyes
thanks


On 7/15/05, ichy <[EMAIL PROTECTED]> wrote:
> Hi, Rechard.
> 
>  2005/7/15, Richard Reyes [EMAIL PROTECTED]:
> 
> >
> > The value of
> >
> > <%= pageContext.getAttribute("username") %>
> >
> > is
> >
> > [EMAIL PROTECTED]
> 
>  the value seems like a result of Object#toString().
> so, at least you can access methods of Cookie class like
>  <%= 
> ((javax.servlet.http.Cookie)pageContext.getAttribute("username")).getValue()
> %>
>  but i don't know if that's the way to use cookie, though.
> 
> regards
> ichy
> 
>

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



Re: [OT] Java as a Daemon

2005-07-15 Thread Richard Reyes
Thanks

On 7/15/05, Duncan Mills <[EMAIL PROTECTED]> wrote:
> Yes as Daniel mentioned you can access the objects in a remote database
> using a database link. Select * from [EMAIL PROTECTED] kind of thing. The
> two databases can also take part in a co-ordinated transaction if needs
> be as well.
> Duncan
> 
> Richard Reyes wrote:
> 
> >Hi Duncan,
> >
> >Will there be a way that the source DB access the target directly?
> >Because right now these DB's are accessed via web services Im thinking
> >if the source DB can directly connect to the target DB.
> >
> >Also these procedural package, can they send notification emails?
> >
> >On 7/14/05, Duncan Mills <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Indeed the Oracle Database itself has a DBMS_JOB procedural package
> >>which acts just like Cron in the database - so that provides another way
> >>to tackle the problem - On the other hand  the Oracle database also has
> >>a whole set of replication features which are designed for syncing data
> >>between databases instances in realtime if necessary - have a serious
> >>look at these built-in functions of the database infrastructure before
> >>you build something new to do the same job.
> >>
> >>Duncan
> >>
> >>Jesse Alexander (KBSA 21) wrote:
> >>
> >>
> >>
> >>>Hi
> >>>
> >>>(Warning: not an Oracle insider...)
> >>>
> >>>If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
> >>>Maybe you could have a Java-class that is called whenever you make an
> >>>update that needs to be "communicated". And then somehow make the update
> >>>in the second Oracle-db.
> >>>
> >>>just my 2cents
> >>>Alexander
> >>>
> >>>-Original Message-
> >>>From: Richard Reyes [mailto:[EMAIL PROTECTED]
> >>>Sent: Thursday, July 14, 2005 3:53 AM
> >>>To: Struts Users Mailing List
> >>>Subject: [OT] Java as a Daemon
> >>>
> >>>Hello Guys,
> >>>
> >>>I need your suggestions. I have a task to create an application to
> >>>sync records between 2 Oracle 10g database. Not the whole records of
> >>>the database though, just the now and then transactional updates.
> >>>Access to the db's would be both via web services. I think I have an
> >>>option to do this like
> >>>- a simple java application executed via .sh file
> >>>- a java application running as a daemon on a unix box
> >>>
> >>>But I really am not sure which better path I should take. Any
> >>>suggestions would be very much appreciated.
> >>>
> >>>Thanks
> >>>Richard
> >>>
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>--
> >>
> >>Regards
> >>
> >>Duncan Mills
> >>Senior Principal Product Manager
> >>Oracle Application Development Tools
> >>
> >>[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: [OT] Can a simple java app access web services

2005-07-15 Thread Richard Reyes
Thanks guys.

On 7/15/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> I don't mind at all... I didn't have a good answer for Richard anyway, so
> I'm glad you did :)
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> On Fri, July 15, 2005 6:56 am, John Henry Xu said:
> > Hi Richard,
> >
> > I hope Frank doesn't mind if I point to a java class tutorial using web
> > services with Java.
> >
> > http://www.cppunit.org/article/Article/159.html
> >
> > Jack H. Xu
> > Technology columnist and editor
> >
> > http://www.usanalyst.com
> >
> > Chief Architect and manager
> >
> > http://www.getusjobs.com (The largest free job portal in North America)
> >
> >
> >
> >   - Original Message -
> >   From: "Richard Reyes"
> >   To: "Struts Users Mailing List" , [EMAIL PROTECTED]
> >   Subject: Re: [OT] Can a simple java app access web services
> >   Date: Fri, 15 Jul 2005 16:54:21 +0800
> >
> >   >
> >   > Hi Frank,
> >   >
> >   > Thanks for the info. I hope you wouldn't mind.. can you point me to
> >   a
> >   > tutorial of those classes that can make a simple class access a web
> >   > service?
> >   >
> >   > Thanks
> >   > Richard
> >   >
> >   >
> >   > On 7/15/05, Frank W. Zammetti wrote:
> >   > > Hi Richard,
> >   > >
> >   > > Axis is the server-side of the WS equation (although maybe it can
> >   > > perform some client duties, I'm not certain), so more than likely
> >   it
> >   > > wouldn't come into play anyway.
> >   > >
> >   > > The simple answer is yes, a simple Java app can access a web
> >   service.
> >   > >
> >   > > There are classes that will specifically help you do so, but you
> >   can
> >   > > also "fake it", at least if it is a SOAP-based service (I'm not
> >   as
> >   > > familiar with RCP-type services). For SOAP-based services, all
> >   you
> >   > > really need to do is construct an XML message and use the usual
> >   HTTP
> >   > > methods in the standard JDK to send it.
> >   > >
> >   > > You might be interested to look at my StrutsWS project because
> >   there is
> >   > > exactly what your asking for included: a simple Java app that
> >   accesses
> >   > > the services the example project provides (in short, StrutsWS is
> >   an
> >   > > extension to Struts that allows Actions to be exposed as
> >   services). You
> >   > > can find it at http://sourceforge.net/projects/strutsws/
> >   > >
> >   > > Frank
> >   > >
> >   > > Richard Reyes wrote:
> >   > > > Hi Guys,
> >   > > >
> >   > > > Can a simple java app access a web service? Or do I need to
> >   install axis?
> >   > > >
> >   > > > Thanks
> >   > > > Richard
> >   > > >
> >   > > >
> >   -
> >   > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >   > > > For additional commands, e-mail: [EMAIL PROTECTED]
> >   > > >
> >   > > >
> >   > > >
> >   > > >
> >   > > > .
> >   > > >
> >   > >
> >   > > --
> >   > > Frank W. Zammetti
> >   > > Founder and Chief Software Architect
> >   > > Omnytex Technologies
> >   > > http://www.omnytex.com
> >   > >
> >   > >
> >   > >
> >   -
> >   > > 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]
> >
> >
> >
> >
> >
> >
> > Jack H. Xu
> > Technology columnist and editor
> >
> > http://www.usanalyst.com
> >
> > http://www.getusjobs.com (The largest free job portal in North America)
> >
> > --
> > ___
> > Sign-up for Ads Free at Mail.com
> > http://promo.mail.com/adsfreejump.htm
> >
> >
> 
> 
> -
> 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]



hi

2005-07-15 Thread Bayarsaikhan VOLODYA
hi all,

currently, i set action parameter manually. i mean
/user.do?action=edit

i dont want this one. i want to set it up like this. Telling no Parameter.
/userEdit.do
/userDelete.do
...
with no parameter but one action class that extends DispathAction.
how can i handle it?

-- 
Bayarsaikhan VOLODYA


Re: [OT] Can a simple java app access web services

2005-07-15 Thread Frank W. Zammetti
I don't mind at all... I didn't have a good answer for Richard anyway, so
I'm glad you did :)

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Fri, July 15, 2005 6:56 am, John Henry Xu said:
> Hi Richard,
>
> I hope Frank doesn't mind if I point to a java class tutorial using web
> services with Java.
>
> http://www.cppunit.org/article/Article/159.html
>
> Jack H. Xu
> Technology columnist and editor
>
> http://www.usanalyst.com
>
> Chief Architect and manager
>
> http://www.getusjobs.com (The largest free job portal in North America)
>
>
>
>   - Original Message -
>   From: "Richard Reyes"
>   To: "Struts Users Mailing List" , [EMAIL PROTECTED]
>   Subject: Re: [OT] Can a simple java app access web services
>   Date: Fri, 15 Jul 2005 16:54:21 +0800
>
>   >
>   > Hi Frank,
>   >
>   > Thanks for the info. I hope you wouldn't mind.. can you point me to
>   a
>   > tutorial of those classes that can make a simple class access a web
>   > service?
>   >
>   > Thanks
>   > Richard
>   >
>   >
>   > On 7/15/05, Frank W. Zammetti wrote:
>   > > Hi Richard,
>   > >
>   > > Axis is the server-side of the WS equation (although maybe it can
>   > > perform some client duties, I'm not certain), so more than likely
>   it
>   > > wouldn't come into play anyway.
>   > >
>   > > The simple answer is yes, a simple Java app can access a web
>   service.
>   > >
>   > > There are classes that will specifically help you do so, but you
>   can
>   > > also "fake it", at least if it is a SOAP-based service (I'm not
>   as
>   > > familiar with RCP-type services). For SOAP-based services, all
>   you
>   > > really need to do is construct an XML message and use the usual
>   HTTP
>   > > methods in the standard JDK to send it.
>   > >
>   > > You might be interested to look at my StrutsWS project because
>   there is
>   > > exactly what your asking for included: a simple Java app that
>   accesses
>   > > the services the example project provides (in short, StrutsWS is
>   an
>   > > extension to Struts that allows Actions to be exposed as
>   services). You
>   > > can find it at http://sourceforge.net/projects/strutsws/
>   > >
>   > > Frank
>   > >
>   > > Richard Reyes wrote:
>   > > > Hi Guys,
>   > > >
>   > > > Can a simple java app access a web service? Or do I need to
>   install axis?
>   > > >
>   > > > Thanks
>   > > > Richard
>   > > >
>   > > >
>   -
>   > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>   > > > For additional commands, e-mail: [EMAIL PROTECTED]
>   > > >
>   > > >
>   > > >
>   > > >
>   > > > .
>   > > >
>   > >
>   > > --
>   > > Frank W. Zammetti
>   > > Founder and Chief Software Architect
>   > > Omnytex Technologies
>   > > http://www.omnytex.com
>   > >
>   > >
>   > >
>   -
>   > > 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]
>
>
>
>
>
>
> Jack H. Xu
> Technology columnist and editor
>
> http://www.usanalyst.com
>
> http://www.getusjobs.com (The largest free job portal in North America)
>
> --
> ___
> Sign-up for Ads Free at Mail.com
> http://promo.mail.com/adsfreejump.htm
>
>


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



Re: Some advice

2005-07-15 Thread Rafael Taboada
Ok, I see u code in a validate form.
 But I'm using validation framework. How can I use it with this?

-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"


Re: another mutliple file uploading question

2005-07-15 Thread Ext . Ilitia2

I didn't  know... I always have used it in alone mode... and work fine for
my



|-+>
| |   "dumbQuestionsAsk|
| |   er _"|
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   15/07/2005 16:14 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>--|
  | 
 |
  |   To:   user@struts.apache.org  
 |
  |   cc:   
 |
  |   bcc:  
 |
  |   Subject:  Re: another mutliple file uploading question
 |
  
>--|




Struts uses FileUploads(it's include in struts)

>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" 
>To: "Struts Users Mailing List" 
>Subject: Re: another mutliple file uploading question
>Date: Fri, 15 Jul 2005 16:03:25 +0200
>
>
>have you tried with Jakarta's proyect "commons-fileupload"?. Is really
>powerfull... but I don't know if is compatible with Struts...
>
>
>
>
>|-+>
>| |   "dumbQuestionsAsk|
>| |   er _"|
>| |   <[EMAIL PROTECTED]|
>| |   .com>|
>| ||
>| |   15/07/2005 13:54 |
>| |   Please respond to|
>| |   "Struts Users|
>| |   Mailing List"|
>| ||
>| ||
>| ||
>| ||
>|-+>
>
> >
|

>   |

> |
>   |   To:   user@struts.apache.org

> |
>   |   cc:

> |
>   |   bcc:

> |
>   |   Subject:  another mutliple file uploading question

> |
>
> >
|

>
>
>
>
>Hi,
>Im new to Struts, and I want to upload multiple files using only one
> tag.
>I made some googleling but I did not find anything working, only "that's
>not
>possible"-like answers.
>So my question is simple, is it really impossible to upload multiple files
>usng only one  ?
>
>Thanks in advance.
>
>regards, Dumbo:)
>
>_
>MSN Hotmail : choisissez votre adresse @hotmail.fr
>http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR
>
>
>-
>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]
>

_
MSN Hotmail : antivirus et antispam gratuits
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR


-
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 multi-level access - please give me your ideas how to restructure..

2005-07-15 Thread Frank W. Zammetti
Yep, I did indeed have that in mind.  I was planning on blatantly ripping
off Wendy's work :)

I'm actually thinking now of a whole customization taglib, which may or
may not supercede that, I'm not sure... it's just beginning to take shape
in my warped little mind.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Fri, July 15, 2005 9:55 am, Wendy Smoak said:
> From: "Aleksandar Matijaca" <[EMAIL PROTECTED]>
>
>> these roles you mention, are these JAAS roles? I think that JAAS
>> roles would be way too much of an overkill for me...
>
> Definitely not JAAS.  And in my case, not even Container-Managed Security
> (though it pretends to be). :)
>
> I have Struts Menu configured to use the result of calling
> request.isUserInRole() to decide whether to display a menu item.  This is
> as
> simple as using the "magic" value 'rolesAdapter' in the tag, which causes
> it
> to use its RolesPermissionsAdapter:
>
>  bundle="org.apache.struts.action.MESSAGE"
> permissions="rolesAdapter"> ...
>
> I didn't look closely, but I'm fairly sure you can plug in a different
> PermissionsAdapter if you need to.
>
> In my case, authorization info is stored in a database [that does not
> easily
> speak JDBC] underneath a 3rd party telnet app.  I have a Filter in front
> of
> the webapp that gets the authorization info out of the database, places a
> 'User' object in the session, and then wraps the request and overrides
> isUserInRole().
>
> To do this "right" you'd probably want to override getUserPrincipal as
> well-- in fact if you can wait a bit, I *think* Frank has in mind to add a
> generic, configurable version of this idea to his Java Web Parts project.
>
> --
> Wendy Smoak
>
>
> -
> 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] olipmic rings metaphor - LDAP?

2005-07-15 Thread Frank W. Zammetti
Not sure I have an answer for that :)  My guess would be because of the
first letter in the acronynm: Lightweight.  Otherwise, your question seems
reasonable to me.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Fri, July 15, 2005 6:41 am, Adam Hardy said:
> Frank W. Zammetti on 14/07/05 17:39, wrote:
>   We have completely externalized security from all our applications and
>> have built a fairly robust Security Framework, on top of J2EE security
>> and
>> LDAP.  Further, we are now taking customization and adding it in.
>>
>> Currently, once a user is authenticated and authorized, it is only THEN
>> that the application code begins.  The application can make simple
>> queries
>> to get basic user info (name, group, whatever attributes are stored in
>> LDAP), but things like "what can this particular user do within this
>> particular app" is still within each app.  This is what we are
>> generalizing and moving out to the framework now.  We have some good
>> ideas
>> about doing this, and keeping it generic enough to work
>> across-the-board,
>> but I suppose we'll know if we succeeded in a few months.
>
>
> Going slightly OT but the thread's OT anyway, why does LDAP exist or why
> does it get used so much? What advantages does it have over a database,
> which all applications have anyway? Why add another technology to the mix?
>
> -
> 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: another mutliple file uploading question

2005-07-15 Thread dumbQuestionsAsker _

Struts uses FileUploads(it's include in struts)


From: [EMAIL PROTECTED]
Reply-To: "Struts Users Mailing List" 
To: "Struts Users Mailing List" 
Subject: Re: another mutliple file uploading question
Date: Fri, 15 Jul 2005 16:03:25 +0200


have you tried with Jakarta's proyect "commons-fileupload"?. Is really
powerfull... but I don't know if is compatible with Struts...




|-+>
| |   "dumbQuestionsAsk|
| |   er _"|
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   15/07/2005 13:54 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>|
  |
|
  |   To:   user@struts.apache.org 
|
  |   cc:  
|
  |   bcc: 
|
  |   Subject:  another mutliple file uploading question   
|
  
>|





Hi,
Im new to Struts, and I want to upload multiple files using only one
 tag.
I made some googleling but I did not find anything working, only "that's
not
possible"-like answers.
So my question is simple, is it really impossible to upload multiple files
usng only one  ?

Thanks in advance.

regards, Dumbo:)

_
MSN Hotmail : choisissez votre adresse @hotmail.fr
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR


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



_
MSN Hotmail : antivirus et antispam gratuits 
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR



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



Re: another mutliple file uploading question

2005-07-15 Thread Ext . Ilitia2

have you tried with Jakarta's proyect "commons-fileupload"?. Is really
powerfull... but I don't know if is compatible with Struts...




|-+>
| |   "dumbQuestionsAsk|
| |   er _"|
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   15/07/2005 13:54 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>|
  | 
   |
  |   To:   user@struts.apache.org  
   |
  |   cc:   
   |
  |   bcc:  
   |
  |   Subject:  another mutliple file uploading question
   |
  
>|




Hi,
Im new to Struts, and I want to upload multiple files using only one
 tag.
I made some googleling but I did not find anything working, only "that's
not
possible"-like answers.
So my question is simple, is it really impossible to upload multiple files
usng only one  ?

Thanks in advance.

regards, Dumbo:)

_
MSN Hotmail : choisissez votre adresse @hotmail.fr
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR


-
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 multi-level access - please give me your ideas how to restructure..

2005-07-15 Thread Aleksandar Matijaca
Thanks Wendy, I realy appreciate the effort you put in to
explain these things.

Cheers, Alex.


On 7/15/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> 
> From: "Aleksandar Matijaca" <[EMAIL PROTECTED]>
> 
> > these roles you mention, are these JAAS roles? I think that JAAS
> > roles would be way too much of an overkill for me...
> 
> Definitely not JAAS. And in my case, not even Container-Managed Security
> (though it pretends to be). :)
> 
> I have Struts Menu configured to use the result of calling
> request.isUserInRole() to decide whether to display a menu item. This is 
> as
> simple as using the "magic" value 'rolesAdapter' in the tag, which causes 
> it
> to use its RolesPermissionsAdapter:
> 
>  bundle="org.apache.struts.action.MESSAGE"
> permissions="rolesAdapter"> ...
> 
> I didn't look closely, but I'm fairly sure you can plug in a different
> PermissionsAdapter if you need to.
> 
> In my case, authorization info is stored in a database [that does not 
> easily
> speak JDBC] underneath a 3rd party telnet app. I have a Filter in front of
> the webapp that gets the authorization info out of the database, places a
> 'User' object in the session, and then wraps the request and overrides
> isUserInRole().
> 
> To do this "right" you'd probably want to override getUserPrincipal as
> well-- in fact if you can wait a bit, I *think* Frank has in mind to add a
> generic, configurable version of this idea to his Java Web Parts project.
> 
> --
> Wendy Smoak
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Re: struts and multi-level access - please give me your ideas how to restructure..

2005-07-15 Thread Wendy Smoak
From: "Aleksandar Matijaca" <[EMAIL PROTECTED]>

> these roles you mention, are these JAAS roles? I think that JAAS
> roles would be way too much of an overkill for me...

Definitely not JAAS.  And in my case, not even Container-Managed Security
(though it pretends to be). :)

I have Struts Menu configured to use the result of calling
request.isUserInRole() to decide whether to display a menu item.  This is as
simple as using the "magic" value 'rolesAdapter' in the tag, which causes it
to use its RolesPermissionsAdapter:

 ...

I didn't look closely, but I'm fairly sure you can plug in a different
PermissionsAdapter if you need to.

In my case, authorization info is stored in a database [that does not easily
speak JDBC] underneath a 3rd party telnet app.  I have a Filter in front of
the webapp that gets the authorization info out of the database, places a
'User' object in the session, and then wraps the request and overrides
isUserInRole().

To do this "right" you'd probably want to override getUserPrincipal as
well-- in fact if you can wait a bit, I *think* Frank has in mind to add a
generic, configurable version of this idea to his Java Web Parts project.

-- 
Wendy Smoak


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



Re: Cancel button and security

2005-07-15 Thread Bryan Hanks
You are absolutely correct Przemyslaw. Realizing that
form validation is cursory at best and easily bypassed
at worst is a good approach.

One of the hard-learned lessons that (it seems) few
developers get is that _ALL_ data received from the
user is suspect, not only in content but in type.  For
example, code that suffers from SQL injection
vulnerabilities is written by people who don't
understand this concept.

I still use the validator as a first line of defense,
because it is quick and (relatively) easy to implement
and the response time is quicker for the user, however
all data gets the final validation check by the
model/business logic layer (with the appropriate
exception thrown if invalid).

Cheers,
Bryan Hanks


-- Original Message --

From:   "Przemyslaw Lupinski" <[EMAIL PROTECTED]>
Subject:Cancel button and security
Date:   Fri, 15 Jul 2005 08:01:15 +0200

Hello,

Many developers use tag  to perform
action without 
validation
(and for other reasons). It's usefull but it can be
danger because of
security. If we don't serve cancel button in every
Action or BaseAction 
then
it's possible to perform some actions without
validation.
How?
It's very simple. Just putting parameter in url
org.apache.struts.taglib.html.CANCEL=1 or adding form
element
.

I've tried this trick in many sites written in Struts.

I advise to remember about this problem if we don't
have a validation 
in
business layer.

--
Przemyslaw Lupinski

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



How to populate a FormFile?

2005-07-15 Thread lk

Hi,

I want an  field to show the name of a file I get from a 
database.


I've tried to populate the field with a FormField object I instantiate 
with the name of the file. But there is something wrong as I get in the 
html field something like:


value="[EMAIL PROTECTED]">



What could be the problem?

ByE

LuKe


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Dai più energia al tuo sport! Rigenera il tuo corpo in maniera naturale
* Grazie agli integratori sport che trovi solo su Erboristeria.com
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2379&d=15-7

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



Re: basic struts question using a Map in an ActionForm

2005-07-15 Thread Dakota Jack
Right as rain, Rick!  You also can have a getMap() method and use
map.name rather than map[1].name.  There is some fairly weird code,
unfortunately, underlying all this, which makes the creation of an
ActionForm as an instrumented Map impossible.  However, looking at the
code itself is very instructive because it is kind of a hack that you
would not expect.



On 7/14/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Rick Reumann wrote the following on 7/14/2005 4:20 PM:
> 
> >  From the FAQ I'm going to try this in my ActionForm..
> >
> >
> >  public Object getStringMapped(String key) {
> > return map.get(key);
> > }
> >
> > public void setStringMapped(String key, Object value) {
> > map.put(key, value);
> > }
> 
> When in doubt look at the docs:)
> 
> The above worked fine..and then...
> 
> 
> 
> --
> Rick
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Re: struts validation framework

2005-07-15 Thread Sivakumar Santharam
Joe Germuska  Germuska.com> writes:

> 
> At 12:14 PM -0700 7/14/05, Jay Burgess wrote:
> >Yes.  It's because the leading zero is saying the numbers are 
> >"octal", so 01-07
> >are valid octals, 08-09 are invalid octals, and 10-12 are valid octals.
> 
> Jay's exactly right here.  Your options:
> 
> (1) hack the Javascript validation; commons-validator provides a 
> mechanism for specifying your own Javascript and falls back to 
> loading it from the commons-validator.jar (well, in recent versions; 
> in earlier versions, the javascript was in the config XML files and 
> hacking it will be pretty obvious.)  I'm pretty sure the server-side 
> validation doesn't care about octals.
> 
> (2) use a "mask" validator with a pattern like ^(0[1-9]|1[0-2])$
> 
> Joe

Yes, the server side works fine. As you said I think it doesn't care about the 
Octal. Indeed I thought about writing a custom validation method but I was 
wondering about that peculiar behaviour. I will try your suggestions also.
siva




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



Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-15 Thread netsql

James Mitchell wrote:
 as soon as I get back, we will roll a release, or die trying ;)





that would be greeat.

.V


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



help needed - struts internatonalization

2005-07-15 Thread Ramesh Mekkara, ASDC Chennai

Hi All,

I have an Application built on EJB-Struts framework. I need to implement
internationalization on all jsp pages which we view. How can it be done ?
  
 
 

Necessity is the Mother of Invention. 
___ 
Ramesh Mekkara
Software Engineer 
HCL Technologies 109, Sapna Trade Center, P.H.Road Chennai - 84, India *
[EMAIL PROTECTED]  * Office #: +91-44-28221119
| Extn #: 2217 * Mobile #: +91-9840709983
 

This message and any attachment(s) contained here are information that is
confidential, proprietary to HCL Technologies and its customers. Contents
may be privileged or otherwise protected by law. The information is solely
intended for the individual or the entity it is addressed to. If you are not
the intended recipient of this message, you are not authorized to read,
forward, print, retain, copy or disseminate this message or any part of it.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and delete it from your computer.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 15, 2005 6:34 PM
To: Struts Users Mailing List
Subject: Re: Some advice



Ok... mayby that an example

This is a posible ActionForm. the variable "flag" indicates the type of
validation that needs

public class CosaForm extends ActionForm {

  private String nombre = "";
  private String apellidos = "";
  private String telefono = "";
  private String direccion = "";
  private String flag = ""; //The hidden field

  public void reset(ActionMapping arg0, HttpServletRequest arg1) {
nombre = "";
apellidos = "";
telefono = "";
 direccion = "";
  }

  public ActionErrors validate(ActionMapping arg0, HttpServletRequest
arg1) {
ActionErrors errors = new ActionErrors();

if(flag.equals("onlyName")){
  if(nombre.trim().length() == 0)
errors.add("validaForm", new ActionError
("error.name.void"));

else if(flag.equals("onlyAddresTelephone")){
  if(direccion.trim().length() == 0)
errors.add("validaForm", new ActionError
("error.addres.void"));

  else if(telefono.trim().length() == 0 || telefono.trim
().length() > 9)
errors.add("validaForm", new ActionError
("error.thelepone"));
  }

return errors;
  }



  /**
   *
   */
  public AnadirForm() {
  }

  public String getApellidos() {return apellidos;}
  public void setApellidos(String apellidos) {this.apellidos =
apellidos;}
  public String getNombre() {return nombre;}
  public void setNombre(String nombre) {this.nombre = nombre;}
  public String getTelefono() {return telefono;}
  public void setTelefono(String telefono) {this.telefono = telefono;}
  public String getDireccion() {return direccion;}
  public void setDireccion(String direccion) {this.direccion =
direccion;}

}



|-+>
| |   Rafael Taboada   |
| |  |
| ||
| |   15/07/2005 14:20 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
 
>---
-|
  |
|
  |   To:   Struts Users Mailing List 
|
  |   cc:
|
  |   bcc:
|
  |   Subject:  Re: Some advice
|
 
>---
-|




Hi Basudeb Acharya for ur help... It's really that I want =)
 Ex.llitia2. I'd like you are more specific. My code in ActionForm is:
 ActionErrors errors = ventaForm.validate(mapping,request);

if (errors==null || errors.isEmpty()) {
 //Do something because all is OK
}
else
saveErrors(request,errors);


--
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"






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


Re: Some advice

2005-07-15 Thread Ext . Ilitia2

Ok... mayby that an example

This is a posible ActionForm. the variable "flag" indicates the type of
validation that needs

public class CosaForm extends ActionForm {

  private String nombre = "";
  private String apellidos = "";
  private String telefono = "";
  private String direccion = "";
  private String flag = ""; //The hidden field

  public void reset(ActionMapping arg0, HttpServletRequest arg1) {
nombre = "";
apellidos = "";
telefono = "";
 direccion = "";
  }

  public ActionErrors validate(ActionMapping arg0, HttpServletRequest
arg1) {
ActionErrors errors = new ActionErrors();

if(flag.equals("onlyName")){
  if(nombre.trim().length() == 0)
errors.add("validaForm", new ActionError
("error.name.void"));

else if(flag.equals("onlyAddresTelephone")){
  if(direccion.trim().length() == 0)
errors.add("validaForm", new ActionError
("error.addres.void"));

  else if(telefono.trim().length() == 0 || telefono.trim
().length() > 9)
errors.add("validaForm", new ActionError
("error.thelepone"));
  }

return errors;
  }



  /**
   *
   */
  public AnadirForm() {
  }

  public String getApellidos() {return apellidos;}
  public void setApellidos(String apellidos) {this.apellidos =
apellidos;}
  public String getNombre() {return nombre;}
  public void setNombre(String nombre) {this.nombre = nombre;}
  public String getTelefono() {return telefono;}
  public void setTelefono(String telefono) {this.telefono = telefono;}
  public String getDireccion() {return direccion;}
  public void setDireccion(String direccion) {this.direccion =
direccion;}

}



|-+>
| |   Rafael Taboada   |
| |  |
| ||
| |   15/07/2005 14:20 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>|
  | 
   |
  |   To:   Struts Users Mailing List   
   |
  |   cc:   
   |
  |   bcc:  
   |
  |   Subject:  Re: Some advice 
   |
  
>|




Hi Basudeb Acharya for ur help... It's really that I want =)
 Ex.llitia2. I'd like you are more specific. My code in ActionForm is:
 ActionErrors errors = ventaForm.validate(mapping,request);

if (errors==null || errors.isEmpty()) {
 //Do something because all is OK
}
else
saveErrors(request,errors);


--
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"






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



Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-15 Thread James Mitchell
Sorry, I don't have a lot of time today, I'm heading out of town, but I 
promise as soon as I get back, we will roll a release, or die trying ;)



--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
MSN:   [EMAIL PROTECTED]
Skype: jmitchtx

- Original Message - 
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Friday, July 15, 2005 12:28 AM
Subject: Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]


James, are there any specific tickets that are a direct impediment to a 
1.3 release, as opposed to those things that could be dealt with 
post-release?


Identifying those might help focus effort, especially if there are 
non-commiters that might like to help but aren't sure exactly how best to 
do so (with the specific goal of working towards a release I mean).


Frank

James Mitchell wrote:
I think it is high time we get something out there for 1.3, even if it 
never makes it past beta, at least we are moving.


I'm about to head out on a working-vacation, and while I'm gone, I'll try 
to get the release plan put together.  Does anyone have any time they'd 
like to donate in a week or so to help with this?



--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
MSN:   [EMAIL PROTECTED]
Skype: jmitchtx

- Original Message - From: "netsql" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, July 14, 2005 7:27 PM
Subject: Re: Struts 1.2 v 1.3



[EMAIL PROTECTED] wrote:

Ted, is there a list of tasks for 1.3? By "volunteer", are you 
referring only to current Struts committers?




Anyone can edit / search bugzila.
Anyone can post a "diff" to code. Only a comiter can ... comit code.

(you become a comiter when comiters get tired of comiting your code)

.V


Erik


-Original Message-
From: Ted Husted <[EMAIL PROTECTED]>
Sent: Jul 14, 2005 6:57 PM
To: Struts Users Mailing List 
Subject: Re: Struts 1.2 v 1.3

On 7/14/05, Access Denied <[EMAIL PROTECTED]> wrote:


I just bought and am reading James Holmes' book, "Struts: The Complete
Reference" (Osborne 2004), which covers 1.2.  I just learned from one
of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
wasting my time and should be studying other literature?




Hmmm, I may have said "almost", but I did not mean to imply "soon". 
Right now, no one seems to be trying to push 1.3 out the door. There

is not even a release plan. The only timeframe for 1.3 is
"indefinate". It could be a week, or a month, or five months. It all
depends when a volunteer can step up to the plate.

Of course, should "indefinate" happen, it would not make any 1.2
material obsolete. By "1.3", we mean the release would be backwardly
compatible with 1.2.

-Ted.

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







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


-
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: Putting execute() in ActionForm

2005-07-15 Thread Schaub, Stephen

> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 13, 2005 3:22 PM
> To: Struts Users Mailing List
> Subject: Re: Putting execute() in ActionForm
> 
> [snip]
> 
> If I were to use this strategy, I'd select the parameters to the
> Execute signature with care. There may not be any reason to pass the
> HTTP parameters out of the call, and there may be a reason  to pass
> the Action. I would just be careful of using the parameters from the
> Struts Execute signature, unless my code actually needed those
> parameters..

I have found that I do need the Action available to the ActionForm's execute 
method, because the Action class contains several important utility methods 
(like saveErrors(), etc.) that need to be available to the ActionForm's execute 
method.

Further, since there is a separate ActionForm instance for each thread, I've 
considered adding the ActionMapping and HttpServletRequest as instance 
variables on the ActionForm, which are populated by the Action method before 
invoking ActionForm.execute():

public class SimpleAction extends Action {
  public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
SimpleActionForm bean = (SimpleActionForm) form;
bean.init(this, mapping, request);
return bean.execute();
  }
}

I realize this would not be a safe approach if there are situations where a 
SimpleActionForm could have multiple threads running through it. I've seen 
references to situations where session-scoped ActionForms can be accessed 
concurrently by multiple requests. However, I can't think of any common 
situations where that could occur -- at least, not in the sort of applications 
I'm writing. And, of course it would never occur with request-scoped 
ActionForms.

> 
> I also wouldn't hestitate to put some "traffic cop" code into the base
> Action as needed, so that the ActionForm execute can focus on what it
> needs to do, rather than what the application needs to do.
> 
> I'd also consider using a base ActionForm with all the properties my
> application needs, which I could then extend with execute and validate
> methods, as needed.
> 
> Though, I'd probably use a DynaActionForm instead of a conventional
> ActionForm as the base class, just for the agility.

These suggestions make sense to me.

> 
> Most importantly, I'd make very sure that all my "code-behind
> ActionForms" were request scope, probably by changing the factory
> default.

Can you elaborate on this? Why the strong recommendation for request scope? Is 
it because of threading concerns related to session-scoped ActionForms that I 
mentioned above? 

By the way, I'm very interested in all of the feedback on my request for input 
on this pattern.  If this is considered a desirable pattern, would it be worth 
adding it on the Struts wiki?

Stephen

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



Re: [OT] olipmic rings metaphor - LDAP?

2005-07-15 Thread Larry Meadors
LDAP is commonly used for security systems (for example: M$ Active
Directory and Novell's NDS are both LDAP implementations), and so
using them for applications (instead of a database) lets you leverage
existing security settings so you do not have to duplicate them.

Larry

On 7/15/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> Frank W. Zammetti on 14/07/05 17:39, wrote:
>   We have completely externalized security from all our applications and
> > have built a fairly robust Security Framework, on top of J2EE security and
> > LDAP.  Further, we are now taking customization and adding it in.
> >
> > Currently, once a user is authenticated and authorized, it is only THEN
> > that the application code begins.  The application can make simple queries
> > to get basic user info (name, group, whatever attributes are stored in
> > LDAP), but things like "what can this particular user do within this
> > particular app" is still within each app.  This is what we are
> > generalizing and moving out to the framework now.  We have some good ideas
> > about doing this, and keeping it generic enough to work across-the-board,
> > but I suppose we'll know if we succeeded in a few months.
> 
> 
> Going slightly OT but the thread's OT anyway, why does LDAP exist or why
> does it get used so much? What advantages does it have over a database,
> which all applications have anyway? Why add another technology to the mix?
> 
> -
> 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: Some advice

2005-07-15 Thread Rafael Taboada
Hi Basudeb Acharya for ur help... It's really that I want =)
 Ex.llitia2. I'd like you are more specific. My code in ActionForm is:
 ActionErrors errors = ventaForm.validate(mapping,request);

if (errors==null || errors.isEmpty()) {
 //Do something because all is OK
}
else
saveErrors(request,errors);


-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"


another mutliple file uploading question

2005-07-15 Thread dumbQuestionsAsker _

Hi,
Im new to Struts, and I want to upload multiple files using only one 
 tag.
I made some googleling but I did not find anything working, only "that's not 
possible"-like answers.
So my question is simple, is it really impossible to upload multiple files 
usng only one  ?


Thanks in advance.

regards, Dumbo:)

_
MSN Hotmail : choisissez votre adresse @hotmail.fr 
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR



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



actionservlet init-params

2005-07-15 Thread Luis Gervaso
Hello,

What happen in Struts 1.2.7 with init-params

debug
application
detail

I can't find them in ActionServet javadoc

where are documented?

-- 
Un saludo


Re: struts and multi-level access - please give me your ideas how to restructure..

2005-07-15 Thread Aleksandar Matijaca
Hi Wendy,

these roles you mention, are these JAAS roles? I think that JAAS
roles would be way too much of an overkill for me...

Cheers, Alex.


On 7/15/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> 
> From: "Aleksandar Matijaca" <[EMAIL PROTECTED]>
> > I have an application that I am working on that requires two different
> > role levels (administrator and user).
> > The administrator, will have some extra links visible to them. I want to
> > use only one struts-config file.
> 
> Have you looked at Struts Menu? I'm currently using a tabbed menu that's
> based on roles.
> http://struts-menu.sourceforge.net/
> 
> --
> Wendy Smoak
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Re: [OT] Can a simple java app access web services

2005-07-15 Thread John Henry Xu
Hi Richard,

I hope Frank doesn't mind if I point to a java class tutorial using web
services with Java.

http://www.cppunit.org/article/Article/159.html

Jack H. Xu
Technology columnist and editor

http://www.usanalyst.com

Chief Architect and manager

http://www.getusjobs.com (The largest free job portal in North America)  



  - Original Message -
  From: "Richard Reyes"
  To: "Struts Users Mailing List" , [EMAIL PROTECTED]
  Subject: Re: [OT] Can a simple java app access web services
  Date: Fri, 15 Jul 2005 16:54:21 +0800

  >
  > Hi Frank,
  >
  > Thanks for the info. I hope you wouldn't mind.. can you point me to
  a
  > tutorial of those classes that can make a simple class access a web
  > service?
  >
  > Thanks
  > Richard
  >
  >
  > On 7/15/05, Frank W. Zammetti wrote:
  > > Hi Richard,
  > >
  > > Axis is the server-side of the WS equation (although maybe it can
  > > perform some client duties, I'm not certain), so more than likely
  it
  > > wouldn't come into play anyway.
  > >
  > > The simple answer is yes, a simple Java app can access a web
  service.
  > >
  > > There are classes that will specifically help you do so, but you
  can
  > > also "fake it", at least if it is a SOAP-based service (I'm not
  as
  > > familiar with RCP-type services). For SOAP-based services, all
  you
  > > really need to do is construct an XML message and use the usual
  HTTP
  > > methods in the standard JDK to send it.
  > >
  > > You might be interested to look at my StrutsWS project because
  there is
  > > exactly what your asking for included: a simple Java app that
  accesses
  > > the services the example project provides (in short, StrutsWS is
  an
  > > extension to Struts that allows Actions to be exposed as
  services). You
  > > can find it at http://sourceforge.net/projects/strutsws/
  > >
  > > Frank
  > >
  > > Richard Reyes wrote:
  > > > Hi Guys,
  > > >
  > > > Can a simple java app access a web service? Or do I need to
  install axis?
  > > >
  > > > Thanks
  > > > Richard
  > > >
  > > >
  -
  > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
  > > > For additional commands, e-mail: [EMAIL PROTECTED]
  > > >
  > > >
  > > >
  > > >
  > > > .
  > > >
  > >
  > > --
  > > Frank W. Zammetti
  > > Founder and Chief Software Architect
  > > Omnytex Technologies
  > > http://www.omnytex.com
  > >
  > >
  > >
  -
  > > 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]






Jack H. Xu
Technology columnist and editor

http://www.usanalyst.com

http://www.getusjobs.com (The largest free job portal in North America)

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



Re: [OT] olipmic rings metaphor - LDAP?

2005-07-15 Thread Adam Hardy

Frank W. Zammetti on 14/07/05 17:39, wrote:
 We have completely externalized security from all our applications and

have built a fairly robust Security Framework, on top of J2EE security and
LDAP.  Further, we are now taking customization and adding it in.

Currently, once a user is authenticated and authorized, it is only THEN
that the application code begins.  The application can make simple queries
to get basic user info (name, group, whatever attributes are stored in
LDAP), but things like "what can this particular user do within this
particular app" is still within each app.  This is what we are
generalizing and moving out to the framework now.  We have some good ideas
about doing this, and keeping it generic enough to work across-the-board,
but I suppose we'll know if we succeeded in a few months.



Going slightly OT but the thread's OT anyway, why does LDAP exist or why 
does it get used so much? What advantages does it have over a database, 
which all applications have anyway? Why add another technology to the mix?


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



Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-15 Thread Yaroslav Novytskyy

Hello!


Michael Jouravlev wrote:

(imitating Donkey) Me, me, pick me! ;-)

I am currently in the process of rewriting Mail Reader with Struts
Dialogs. You would not believe how nicer it gets ;)



Can you please provide a link to (or share if they are not jet) sources. 
I'm very interested of how Struts Dialogs work, and will appriciate any 
links, examples, docs Is this the one that will be also used in Shale?



Michael.

On 7/14/05, James Mitchell <[EMAIL PROTECTED]> wrote:


I think it is high time we get something out there for 1.3, even if it never
makes it past beta, at least we are moving.

I'm about to head out on a working-vacation, and while I'm gone, I'll try to
get the release plan put together.  Does anyone have any time they'd like to
donate in a week or so to help with this?



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




Yaroslav Novytskyy

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



Re: [OT] Java as a Daemon

2005-07-15 Thread Duncan Mills
Yes as Daniel mentioned you can access the objects in a remote database 
using a database link. Select * from [EMAIL PROTECTED] kind of thing. The 
two databases can also take part in a co-ordinated transaction if needs 
be as well.

Duncan

Richard Reyes wrote:


Hi Duncan,

Will there be a way that the source DB access the target directly?
Because right now these DB's are accessed via web services Im thinking
if the source DB can directly connect to the target DB.

Also these procedural package, can they send notification emails?

On 7/14/05, Duncan Mills <[EMAIL PROTECTED]> wrote:
 


Indeed the Oracle Database itself has a DBMS_JOB procedural package
which acts just like Cron in the database - so that provides another way
to tackle the problem - On the other hand  the Oracle database also has
a whole set of replication features which are designed for syncing data
between databases instances in realtime if necessary - have a serious
look at these built-in functions of the database infrastructure before
you build something new to do the same job.

Duncan

Jesse Alexander (KBSA 21) wrote:

   


Hi

(Warning: not an Oracle insider...)

If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
Maybe you could have a Java-class that is called whenever you make an
update that needs to be "communicated". And then somehow make the update
in the second Oracle-db.

just my 2cents
Alexander

-Original Message-
From: Richard Reyes [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 14, 2005 3:53 AM
To: Struts Users Mailing List
Subject: [OT] Java as a Daemon

Hello Guys,

I need your suggestions. I have a task to create an application to
sync records between 2 Oracle 10g database. Not the whole records of
the database though, just the now and then transactional updates.
Access to the db's would be both via web services. I think I have an
option to do this like
- a simple java application executed via .sh file
- a java application running as a daemon on a unix box

But I really am not sure which better path I should take. Any
suggestions would be very much appreciated.

Thanks
Richard

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

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



 


--

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

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



validation Framework validwhen

2005-07-15 Thread Marc Demlenne
Hello, 

Little question about validwhen. If you have a field which has to be
validated by mask, OR can be bad for the mask IF AND ONLY IF it
remains unchanged, what's the best solution ?

I could use a hidden field which holds the original value, then the
real field, modifiable by user. Then either the field has to be
validated by MASK, or it has to be the same as the hidden one.

How can you define validwhen in this case ? validwhen (field ==
hidden) will be ok, but mask validation will be false, so form will be
refused.

any workaround ? 

Thanks for any help ! 

-- 
Marc Demlenne

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



Re: Some advice

2005-07-15 Thread basudeb . acharya

  For 2> how about readonly=true  works fine in our case.



Basudeb Acharya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Rafael Taboada <[EMAIL PROTECTED]> 
07/15/2005 01:44 PM
Please respond to
"Struts Users Mailing List" 


To
Struts List 
cc

Subject
Some advice






Hi folks. I'm refining my project. I need to solve some inconveniences.
 1)In my validation, all work fine. But I have an action class for an 
actionform. This action class extends dispatchaction because in my jsp i 
have several buttons in order to submit something. My doubt is if there is 

some way to validate only some fields. Because I want that 'search method' 

validate only username and date fields, and 'drope method' validate only 
chkBills field... How can I do that? I tried to use ValidatorActionForm 
instead of ValidatorForm but it's the same because I have only one Action 
and inside all my methods.
 2)When I want to fill some fields in a 'mother jsp' I use a 'child jsp', 
this child search data from database and when I submit 'select button', it 

closes itself and fill some fields of the mother jsp. But of course I 
don't 
want the user modify those fields because it's only information. Those 
fields are specified as:
 
 How can I disable this field in order to the user can't modify it?. I 
tried 
with 'disabled' option but I need this field in order to save this 
information and when I use 'disabled="true"' there is an error because it 
can't find that field. I tried to use html:hidden with write option but it 

doesn't show the data...
 Thanks in advance for ur help.

-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi 
vida"

ForwardSourceID:NT756E 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: Some advice

2005-07-15 Thread Ext . Ilitia2

Hi,


  For the dot 1, you can put a hidden field in the form to indicate
waht type of validation you have to use. In the method validate of the
ActionForm, you will choice the fields you need validate depending hidden
field's value.

  I hope help you





|-+>
| |   Rafael Taboada   |
| |  |
| ||
| |   15/07/2005 10:14 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>--|
  | 
 |
  |   To:   Struts List 
 |
  |   cc:   
 |
  |   bcc:  
 |
  |   Subject:  Some advice 
 |
  
>--|




Hi folks. I'm refining my project. I need to solve some inconveniences.
 1)In my validation, all work fine. But I have an action class for an
actionform. This action class extends dispatchaction because in my jsp i
have several buttons in order to submit something. My doubt is if there is
some way to validate only some fields. Because I want that 'search method'
validate only username and date fields, and 'drope method' validate only
chkBills field... How can I do that? I tried to use ValidatorActionForm
instead of ValidatorForm but it's the same because I have only one Action
and inside all my methods.
 2)When I want to fill some fields in a 'mother jsp' I use a 'child jsp',
this child search data from database and when I submit 'select button', it
closes itself and fill some fields of the mother jsp. But of course I don't

want the user modify those fields because it's only information. Those
fields are specified as:
 
 How can I disable this field in order to the user can't modify it?. I
tried
with 'disabled' option but I need this field in order to save this
information and when I use 'disabled="true"' there is an error because it
can't find that field. I tried to use html:hidden with write option but it
doesn't show the data...
 Thanks in advance for ur help.

--
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"






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



RE: [OT] UML class diagrams

2005-07-15 Thread Jesse Alexander (KBSA 21)
The first hit on Google for "Poseidon UML" 
 
leads you to  which is the homepage.

There you can look for  or  in 
this you can use the "Community Edition 3.x" to get a free version...

hth
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 15, 2005 10:49 AM
To: Struts Users Mailing List
Subject: Re: [OT] UML class diagrams


Can I have a look at Poseidon. I am using Jude, which is good but I need 
more than just seq and class diags. e.g: component diag..etc. can you mail 
it to me and many like me ?


Amitava Basak
ASE(T)
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Preeti Iyer <[EMAIL PROTECTED]> 
07/14/2005 08:23 PM
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: [OT] UML class diagrams






Hi Dave,
You can also try Poseidon or Jude. Both are free. 

--regards.

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


ForwardSourceID:NT5B6A 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

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



RE: [OT] UML class diagrams

2005-07-15 Thread Mark Benussi
http://www.gentleware.com/index.php?id=ce

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 15 July 2005 09:49
To: Struts Users Mailing List
Subject: Re: [OT] UML class diagrams


Can I have a look at Poseidon. I am using Jude, which is good but I need 
more than just seq and class diags. e.g: component diag..etc. can you mail 
it to me and many like me ?


Amitava Basak
ASE(T)
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Preeti Iyer <[EMAIL PROTECTED]> 
07/14/2005 08:23 PM
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: [OT] UML class diagrams






Hi Dave,
You can also try Poseidon or Jude. Both are free. 

--regards.

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


ForwardSourceID:NT5B6A 


Notice: The information contained in this e-mail message and/or attachments
to it may contain confidential or privileged information.   If you are not
the intended recipient, any dissemination, use, review, distribution,
printing or copying of the information contained in this e-mail message
and/or attachments to it are strictly prohibited.   If you have received
this communication in error, please notify us by reply e-mail or telephone
and immediately and permanently delete the message and any attachments.
Thank you

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



Re: [OT] UML class diagrams

2005-07-15 Thread amitava . basak

Can I have a look at Poseidon. I am using Jude, which is good but I need 
more than just seq and class diags. e.g: component diag..etc. can you mail 
it to me and many like me ?


Amitava Basak
ASE(T)
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Preeti Iyer <[EMAIL PROTECTED]> 
07/14/2005 08:23 PM
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: [OT] UML class diagrams






Hi Dave,
You can also try Poseidon or Jude. Both are free. 

--regards.

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


ForwardSourceID:NT5B6A 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: [OT] Can a simple java app access web services

2005-07-15 Thread Richard Reyes
Hi Frank,

Thanks for the info. I hope you wouldn't mind.. can you point me to a
tutorial of those classes that can make a simple class access a web
service?

Thanks
Richard


On 7/15/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Hi Richard,
> 
> Axis is the server-side of the WS equation (although maybe it can
> perform some client duties, I'm not certain), so more than likely it
> wouldn't come into play anyway.
> 
> The simple answer is yes, a simple Java app can access a web service.
> 
> There are classes that will specifically help you do so, but you can
> also "fake it", at least if it is a SOAP-based service (I'm not as
> familiar with RCP-type services).  For SOAP-based services, all you
> really need to do is construct an XML message and use the usual HTTP
> methods in the standard JDK to send it.
> 
> You might be interested to look at my StrutsWS project because there is
> exactly what your asking for included: a simple Java app that accesses
> the services the example project provides (in short, StrutsWS is an
> extension to Struts that allows Actions to be exposed as services).  You
> can find it at http://sourceforge.net/projects/strutsws/
> 
> Frank
> 
> Richard Reyes wrote:
> > Hi Guys,
> >
> > Can a simple java app access a web service? Or do I need to install axis?
> >
> > Thanks
> > Richard
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > .
> >
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> 
> -
> 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]



Some advice

2005-07-15 Thread Rafael Taboada
Hi folks. I'm refining my project. I need to solve some inconveniences.
 1)In my validation, all work fine. But I have an action class for an 
actionform. This action class extends dispatchaction because in my jsp i 
have several buttons in order to submit something. My doubt is if there is 
some way to validate only some fields. Because I want that 'search method' 
validate only username and date fields, and 'drope method' validate only 
chkBills field... How can I do that? I tried to use ValidatorActionForm 
instead of ValidatorForm but it's the same because I have only one Action 
and inside all my methods.
 2)When I want to fill some fields in a 'mother jsp' I use a 'child jsp', 
this child search data from database and when I submit 'select button', it 
closes itself and fill some fields of the mother jsp. But of course I don't 
want the user modify those fields because it's only information. Those 
fields are specified as:
 
 How can I disable this field in order to the user can't modify it?. I tried 
with 'disabled' option but I need this field in order to save this 
information and when I use 'disabled="true"' there is an error because it 
can't find that field. I tried to use html:hidden with write option but it 
doesn't show the data...
 Thanks in advance for ur help.

-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"