RE: Hidden Variables

2004-06-03 Thread Andrew Hill
Is is a session or request scoped form?

-Original Message-
From: Joshi, Naveen [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 June 2004 21:48
To: Struts Users Mailing List
Subject: RE: Hidden Variables


It was based on log files that we found this error. This has happened for
couple of screens. It will work through out well, pass all the variables
properly and all of a sudden it will not pass one such varaible whereas all
other variables will be passed in the same screen. This is killing me. We
use Internet explorer(5.5 or above) and Netscape(4.7 or above). I have never
seen any user reporting the errors while using Netscape so I'am assuming
that it is a browser error. The difficult part is we are not able to
replicate the same scenario as this occurs once in a blue moon. Moreover
this has happened when there are few or more concurrent users. Wanted to
know if any of you have got the similar error. If there is a possible
solution please let me know.

Thanks


-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 7:28 AM
To: Struts Users Mailing List
Subject: Re: Hidden Variables


How do you know it is 1 in 300?  Is that based on tests or on browsing log
files?



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx




- Original Message -
From: "Joshi, Naveen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 02, 2004 8:10 AM
Subject: RE: Hidden Variables


I use Post method.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Lionel
Sent: Wednesday, June 02, 2004 5:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Hidden Variables


Joshi, Naveen wrote:
> All,
>
> one out of 300 times my hidden variable would not set to form. Any
> ideas what could be the issue.

do you use get or post method to send your form ?




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


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




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


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



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



AW: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Rosenberg, Leon
You can't split the lib in web-inf, but you can hold the libs in separate folders in 
your project and have ant to copy it into web-inf. So if you update to a newer 
version, just update the project and ask ant to build (deploy) :-)
Something like this:



 
 


Regards
Leon

> -Ursprüngliche Nachricht-
> Von: Dan Tran [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 4. Juni 2004 07:53
> An: Struts Users Mailing List
> Betreff: Re: Semi-OT: Organizing WEB-INF/lib dir...
> 
> Dont think jsp/servlet specs allows splitting of the lib
> dir.  You may want to take a look at maven.apache.org
> or use the way Maven names it dependencies jar files
> 
> good luck.
> 
> -Dan
> 
> - Original Message -
> From: "Joe Hertz" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, June 03, 2004 10:29 PM
> Subject: RE: Semi-OT: Organizing WEB-INF/lib dir...
> 
> 
> > What IDE are you using? Can't it help you with this?
> >
> > JBuilder certainly spares me this hassle (okay, that's not all good.
> > I've had some *other* hassles* because of it, but they are certainly
> > worth it).
> >
> > > -Original Message-
> > > From: Riyad Kalla [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, June 03, 2004 11:59 PM
> > > To: Struts Users Mailing List
> > > Subject: Semi-OT: Organizing WEB-INF/lib dir...
> > >
> > >
> > > Quick question for the people more versed in web apps than
> > > me, can you
> > > organized your libs in your WEB-INF/lib dir into separate sub dirs? I
> > > ask because my project is using Struts and Hibernate right now, and
> > > there is a such a mish-mash of JARs forming in my WEB-INF/lib
> > > dir, that
> > > its hard for me to upgrade the right jars when a new release
> > > comes out.
> > > I'd like to have something like:
> > >
> > > WEB-INF/lib/struts
> > > WEB-INF/lib/hibernate
> > >
> > > or something to that extent. Can I do this?
> > >
> > > TIA
> > >
> > > -
> > > 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: Hidden Variables

2004-06-03 Thread Joshi, Naveen
It was based on log files that we found this error. This has happened for couple of 
screens. It will work through out well, pass all the variables properly and all of a 
sudden it will not pass one such varaible whereas all other variables will be passed 
in the same screen. This is killing me. We use Internet explorer(5.5 or above) and 
Netscape(4.7 or above). I have never seen any user reporting the errors while using 
Netscape so I'am assuming that it is a browser error. The difficult part is we are not 
able to replicate the same scenario as this occurs once in a blue moon. Moreover this 
has happened when there are few or more concurrent users. Wanted to know if any of you 
have got the similar error. If there is a possible solution please let me know. 

Thanks


-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 7:28 AM
To: Struts Users Mailing List
Subject: Re: Hidden Variables


How do you know it is 1 in 300?  Is that based on tests or on browsing log
files?



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx




- Original Message -
From: "Joshi, Naveen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 02, 2004 8:10 AM
Subject: RE: Hidden Variables


I use Post method.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Lionel
Sent: Wednesday, June 02, 2004 5:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Hidden Variables


Joshi, Naveen wrote:
> All,
>
> one out of 300 times my hidden variable would not set to form. Any
> ideas what could be the issue.

do you use get or post method to send your form ?




-
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: State in Struts.

2004-06-03 Thread DGraham

Either use session scoped form(s) or
hidden variables.






"Miquel Angel"
<[EMAIL PROTECTED]> 
06/03/2004 06:04 AM



Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
<[EMAIL PROTECTED]>


cc



Subject
State in Struts.








           
     Hi. I'm developing an application with Struts
1.1, Tomcat 5 and Eclipse. I
explain my problem:

                
This situation is: I have 1 jsp (jsp1) that shows information in a grid.
>From this grid I can go to the jsp2, where I can see the details of 1 row
of
the previous grid. From jsp2 I can go to jsp3, where I can see aditional
information about the record shown in jsp2. From jsp3 I can go to jsp4
to
see any other information, and so on. My problem is not going forward,
my
problem is goin back. ¿How can I retrieve the state of each action form?
I
use scope="request". ¿Should I implement an stack to save the
differents
actionform's? Is there any example of stack. ¿Should I implement any other
system?

                
I would appreciate your help.

Thanks.

Atentamente, Miquel Angel Seguí Munar
Tel. 647 51 43 41
Sidiem S.L.


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

Saving state.

2004-06-03 Thread SEGUI MUNAR
	Hi. I'm developing an application with Struts 1.1, Tomcat 5 and Eclipse. I 
explain my problem:

	This situation is: I have 1 jsp (jsp1) that shows information in a grid. 
From this grid I can go to the jsp2, where I can see the details of 1 row of 
the previous grid. From jsp2 I can go to jsp3, where I can see aditional 
information about the record shown in jsp2. From jsp3 I can go to jsp4 to 
see any other information, and so on. My problem is not going forward, my 
problem is goin back. ¿How can I retrieve the state of each action form? I 
use scope="request". ¿Should I implement an stack to save the differents 
actionform's? Is there any example of stack. ¿Should I implement any other 
system?

I would appreciate your help.
Thanks in advance.
_
¿Dónde se esconden [EMAIL PROTECTED] [EMAIL PROTECTED] Encuentra miles de perfiles en MSN Amor & 
Amistad. http://match.msn.es/

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


Sorry : Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread brati . sankarghosh

I think I am wrong. my experiment went
a little wrong. soory about that. I think lib cannot be subdivided.

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





"Dan Tran" <[EMAIL PROTECTED]>

06/04/2004 11:23 AM




Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
"Struts Users Mailing
List" <[EMAIL PROTECTED]>


cc



Subject
Re: Semi-OT: Organizing WEB-INF/lib
dir...








Dont think jsp/servlet specs allows splitting of the
lib
dir.  You may want to take a look at maven.apache.org
or use the way Maven names it dependencies jar files

good luck.

-Dan

- Original Message - 
From: "Joe Hertz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 10:29 PM
Subject: RE: Semi-OT: Organizing WEB-INF/lib dir...


> What IDE are you using? Can't it help you with this? 
> 
> JBuilder certainly spares me this hassle (okay, that's not all good.
> I've had some *other* hassles* because of it, but they are certainly
> worth it).
> 
> > -Original Message-
> > From: Riyad Kalla [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, June 03, 2004 11:59 PM
> > To: Struts Users Mailing List
> > Subject: Semi-OT: Organizing WEB-INF/lib dir...
> > 
> > 
> > Quick question for the people more versed in web apps than 
> > me, can you 
> > organized your libs in your WEB-INF/lib dir into separate sub
dirs? I 
> > ask because my project is using Struts and Hibernate right now,
and 
> > there is a such a mish-mash of JARs forming in my WEB-INF/lib

> > dir, that 
> > its hard for me to upgrade the right jars when a new release

> > comes out. 
> > I'd like to have something like:
> > 
> > WEB-INF/lib/struts
> > WEB-INF/lib/hibernate
> > 
> > or something to that extent. Can I do this?
> > 
> > TIA
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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


ForwardSourceID:NTAB2E
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

Re: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Dan Tran
Dont think jsp/servlet specs allows splitting of the lib
dir.  You may want to take a look at maven.apache.org
or use the way Maven names it dependencies jar files

good luck.

-Dan

- Original Message - 
From: "Joe Hertz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 10:29 PM
Subject: RE: Semi-OT: Organizing WEB-INF/lib dir...


> What IDE are you using? Can't it help you with this? 
> 
> JBuilder certainly spares me this hassle (okay, that's not all good.
> I've had some *other* hassles* because of it, but they are certainly
> worth it).
> 
> > -Original Message-
> > From: Riyad Kalla [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, June 03, 2004 11:59 PM
> > To: Struts Users Mailing List
> > Subject: Semi-OT: Organizing WEB-INF/lib dir...
> > 
> > 
> > Quick question for the people more versed in web apps than 
> > me, can you 
> > organized your libs in your WEB-INF/lib dir into separate sub dirs? I 
> > ask because my project is using Struts and Hibernate right now, and 
> > there is a such a mish-mash of JARs forming in my WEB-INF/lib 
> > dir, that 
> > its hard for me to upgrade the right jars when a new release 
> > comes out. 
> > I'd like to have something like:
> > 
> > WEB-INF/lib/struts
> > WEB-INF/lib/hibernate
> > 
> > or something to that extent. Can I do this?
> > 
> > TIA
> > 
> > -
> > 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: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Joe Hertz
What IDE are you using? Can't it help you with this? 

JBuilder certainly spares me this hassle (okay, that's not all good.
I've had some *other* hassles* because of it, but they are certainly
worth it).

> -Original Message-
> From: Riyad Kalla [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 03, 2004 11:59 PM
> To: Struts Users Mailing List
> Subject: Semi-OT: Organizing WEB-INF/lib dir...
> 
> 
> Quick question for the people more versed in web apps than 
> me, can you 
> organized your libs in your WEB-INF/lib dir into separate sub dirs? I 
> ask because my project is using Struts and Hibernate right now, and 
> there is a such a mish-mash of JARs forming in my WEB-INF/lib 
> dir, that 
> its hard for me to upgrade the right jars when a new release 
> comes out. 
> I'd like to have something like:
> 
> WEB-INF/lib/struts
> WEB-INF/lib/hibernate
> 
> or something to that extent. Can I do this?
> 
> TIA
> 
> -
> 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]



Scalability Problem in Struts 1.1

2004-06-03 Thread souravm
Hi All,

 

We are facing a peculiar problem in Struts 1.1 implementation in our
project. Actually we are migrating an existing application to Struts
Framework. The existing application is to be compared with the struts
implementation. The deployment is on Weblogic Server 8.1 SP1. 

 

When the existing application is deployed on the server, it scales well
up to 450 users. But with the same setting of Weblogic Server, the
Struts implementation just hangs the server. And when the server hangs
there is enough memory with the server. Also It does not throw any
exception. In fact the server doesn't reply to "KILL -3" call to get the
Thread Dump also.

 

Any pointers in this regard will be very helpful.

 

Regards,

Sourav 



RE: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread brati . sankarghosh

Well I have done that. I have created
a directory under lib and included struts.jar in it. This is running fine
in JDeveloper when I added the path to the classpath.

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





"Frank Zammetti"
<[EMAIL PROTECTED]> 
06/04/2004 09:41 AM




Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
[EMAIL PROTECTED]


cc



Subject
RE: Semi-OT: Organizing WEB-INF/lib
dir...








I'm pretty sure the answer is no.  I just took
all the JARs for a test app I 
had installed and moved them from WEB-INF/lib to WEB-INF/lib/stuff, and
the 
app no longer works.  This is in Tomcat, so possibly it would work
with 
another app server, but I tend to doubt it.

One suggestion that I can make, a habit I've gotten into, is name your
JARs 
liberally, since their names don't matter.  I usually name the JARs
as 
descriptively as possible (for example, "jakarta-taglibs-standard-1.1.0.jar"

might be one) and include their version, so it's fairly easy to tradk down

what's what and at a glance tell what versions I'm running.  Probably
not 
the ideal answer, but maybe it'll clean up the mess just a little.

Frank


>From: Riyad Kalla <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Semi-OT: Organizing WEB-INF/lib dir...
>Date: Thu, 03 Jun 2004 20:58:36 -0700
>
>Quick question for the people more versed in web apps than me, can
you 
>organized your libs in your WEB-INF/lib dir into separate sub dirs?
I ask 
>because my project is using Struts and Hibernate right now, and there
is a 
>such a mish-mash of JARs forming in my WEB-INF/lib dir, that its hard
for 
>me to upgrade the right jars when a new release comes out. I'd like
to have 
>something like:
>
>WEB-INF/lib/struts
>WEB-INF/lib/hibernate
>
>or something to that extent. Can I do this?
>
>TIA
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
MSN 9 Dial-up Internet Access fights spam and pop-ups – now 3 months FREE!

http://join.msn.click-url.com/go/onm00200361ave/direct/01/


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


ForwardSourceID:NTAA96
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

RE: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Frank Zammetti
I'm pretty sure the answer is no.  I just took all the JARs for a test app I 
had installed and moved them from WEB-INF/lib to WEB-INF/lib/stuff, and the 
app no longer works.  This is in Tomcat, so possibly it would work with 
another app server, but I tend to doubt it.

One suggestion that I can make, a habit I've gotten into, is name your JARs 
liberally, since their names don't matter.  I usually name the JARs as 
descriptively as possible (for example, "jakarta-taglibs-standard-1.1.0.jar" 
might be one) and include their version, so it's fairly easy to tradk down 
what's what and at a glance tell what versions I'm running.  Probably not 
the ideal answer, but maybe it'll clean up the mess just a little.

Frank

From: Riyad Kalla <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Semi-OT: Organizing WEB-INF/lib dir...
Date: Thu, 03 Jun 2004 20:58:36 -0700
Quick question for the people more versed in web apps than me, can you 
organized your libs in your WEB-INF/lib dir into separate sub dirs? I ask 
because my project is using Struts and Hibernate right now, and there is a 
such a mish-mash of JARs forming in my WEB-INF/lib dir, that its hard for 
me to upgrade the right jars when a new release comes out. I'd like to have 
something like:

WEB-INF/lib/struts
WEB-INF/lib/hibernate
or something to that extent. Can I do this?
TIA
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 9 Dial-up Internet Access fights spam and pop-ups – now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/

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


Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Riyad Kalla
Quick question for the people more versed in web apps than me, can you 
organized your libs in your WEB-INF/lib dir into separate sub dirs? I 
ask because my project is using Struts and Hibernate right now, and 
there is a such a mish-mash of JARs forming in my WEB-INF/lib dir, that 
its hard for me to upgrade the right jars when a new release comes out. 
I'd like to have something like:

WEB-INF/lib/struts
WEB-INF/lib/hibernate
or something to that extent. Can I do this?
TIA
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: validating indexed properties

2004-06-03 Thread Ron Grabowski
> non-numeric cash value is entered.  I would like
to
> display a little 
> exclamation point icon next to the field with the
> bad cash value.
> 
> Is this possible?  I don't see any support in the
> "messagesPresent" tag 
> for indexed properties, nor do I see any support
for
> indexed items in 
> ActionMessages.

Not that I'm aware of. Someone on the list posted
code
that extended the html:text tag to include a
styleClassErr attribute so the background could be
changed to a different color when an error occured.
I'm sure you're already aware of this:

 
 

I wish there was a way to display a complete error
message at the top of the page as well as a small
icon
next to the offending field. Changing the background
color of an element doesn't look right most of the
time and its difficult to visualize how a RADIO or
CHECKBOX would look with a changed background.





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



[OT] The Case Against Extreme Programming

2004-06-03 Thread Mike Duffy
Very interesting:  http://www.softwarereality.com/lifecycle/xp/case_against_xp.jsp

Enjoy.

Mike




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: Struts/tiles: Run-time definition of which tile to include

2004-06-03 Thread Ron Grabowski
> Standard scenario, a user can be logged in or out. I
> want to determine which
> Tile is included based on whether they're logged in.
> This can be determined
> from a bean in the session scope.
> 

[snip]

> From loggedinout.jsp (this is the file that I want
> do do away with):
>  scope="session"> page="/tiles/loggedin.jsp"/>
>  scope="session"> page="/tiles/loggedout.jsp"/>

Have you tried implemented the code on Page 42 of this
document:

http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf

http://tinyurl.com/2snxm




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



RE: One Forward Action Multiple JSPs

2004-06-03 Thread Kunal H. Parikh
Hi Glenn!

I would recommend creating an "Action", with two action-forwards:

1. TermsAndConditions_default
2. TermsAndConditions_fr

In Action.execute, detect the appropriate locale and forward control to the
appropriate action-forward.


HTH,

Kunal


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, 4 June 2004 03:45
To: [EMAIL PROTECTED]
Subject: One Forward Action Multiple JSPs

Greetings,

What I would like to do is to be able to display different JSPs for the 
same ForwardAction.

I now have this:



What I would like is based on the Locale show a different JSP.
I cannot use the i18n for this with resource bundles since the page 
contains lots of text and the format is different for both languages.

So if I create my own ForwardAction 
(secure.credentials.TermsAndConditionsForwardAction) how would I set the 
parameter value to either
/WEB-INF/secure/credentials/termsAndConditions_en.jsp
or
/WEB-INF/secure/credentials/termsAndConditions_fr.jsp

Is this the best way to go about or are there other suggestions?

TIA,
Glenn.



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



Use Date or Calendar (GregorianCalendar) to store information?

2004-06-03 Thread Fabrício Garcia Imbrizi
All,

Use Date to store data and Calendar to manipulate data is the best choice?
What´s the advantage in store data with Calendar insted of Date?

Thanks.

   Atenciosamente

   Fabrício Garcia Imbrizi
   Murah Technologies
   11 8275 0199




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



LazyDynaBean

2004-06-03 Thread Bill Siggelkow
I was looking at Nialls LazyDynaBean and was wanting good use cases for 
using these classes.  I am working on a book and wanted to include 
something about using these.

Niall feel free to e-mail directly at billsigg at bell south dot net.
Bill Siggelkow
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Validating multiple DTO's within a single ActionForm.

2004-06-03 Thread Avinash Gangadharan
>>Now there are general validation needed at submit time for each Form

Does this means that you save the data onto a persistent storage on each
form submit.
If that is the case, on a validation error of the final credit application
all you have to figure out is which form does the error belong too and then
you can populate the form bean and forward the action to that form. 
You may avoid putting all your forms in session this way as you already have
the data stored somewhere.

If this is something like a multipage form then the issue is different and
you have to handle it the way multi page forms are handled. You can get more
details if you search the mailing list or from some docs.


Avinash



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004 2:50 PM
To: [EMAIL PROTECTED]
Subject: Validating multiple DTO's within a single ActionForm.
Importance: High


I am trying to design my forms and the way I need to validate them.

Here is what my Business Model Looks like:

CreditApplication
-->Business
  |>Business Account
--->Banker
--->Guarantor

Each of the Items above has their own HTML page and DynaValidationForm.

Now there are general validation needed at submit time for each Form, but
then there is additional validation needed when they try to save the
CreditApplication.

We were planning on saving all the DynaForms into Session Scope until a
"Save" is attempted. They validate the additional validation. How do we go
about doing this?


---
> Thanks...
> Mick Knutson
> 
> 525 Market Street, SF, CA  94103
> (415) 222-1020
> [EMAIL PROTECTED]
> MAC A0103-223
---



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



Validating multiple DTO's within a single ActionForm.

2004-06-03 Thread Mick . Knutson
I am trying to design my forms and the way I need to validate them.

Here is what my Business Model Looks like:

CreditApplication
-->Business
  |>Business Account
--->Banker
--->Guarantor

Each of the Items above has their own HTML page and DynaValidationForm.

Now there are general validation needed at submit time for each Form, but
then there is additional validation needed when they try to save the
CreditApplication.

We were planning on saving all the DynaForms into Session Scope until a
"Save" is attempted. They validate the additional validation.
How do we go about doing this?


---
> Thanks...
> Mick Knutson
> 
> 525 Market Street, SF, CA  94103
> (415) 222-1020
> [EMAIL PROTECTED]
> MAC A0103-223
---



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



[ANN] Struts-Flow 0.1 Released

2004-06-03 Thread Don Brown
Struts Flow is a port of Cocoon's  Control 
Flow  to Struts 
 to allow complex workflow to be implemented 
using continuations-capable JavaScript. It provides the ability to 
describe the order of Web pages that have to be sent to the client, at 
any given point in time in an application. The code is based on a 
proof-of-concept Dave Johnson put together 
 
to show how the Control Flow could be extracted from Cocoon.

While the initial target of the extracted Control Flow is Struts, the 
Flow code is reusable from other non-Struts environments. This means 
Control Flow could be used to drive non-Struts JSP applications, 
portlets, or even complex web services.

For more information, see the project's temporary website: 
http://struts.sf.net/struts-flow

To show the code in action, here is the implementation of a number 
guessing game:

function main() {
 var random =  Math.round( Math.random() * 9 ) + 1;
 var hint = "No hint for you!"
 var guesses = 0;
 while (true) {
   // send guess page to user and wait for response
   forwardAndWait("failure", 
  { "random"  : random,  
"hint": hint,
"guesses" : guesses} );

   // process user's guess
   var guess = parseInt( getRequestParams().guess );
   guesses++;
   if (guess) {
 if (guess > random) {
   hint = "Nope, lower!"
 } 
 else if (guess < random) {
   hint = "Nope, higher!"
 } 
 else {
   // correct guess
   break;
 }
   }
 }

 // send success page to user
 forwardAndWait("success", 
{"random"  : random, 
 "guess"   : guess, 
 "guesses" : guesses} );
}

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


[ANNOUNCE] Struts articles on Tiles and Validator

2004-06-03 Thread James Holmes
I've recently had a couple of Struts articles published in Oracle Magazine
that cover Tiles and Validator.  The articles provide a nice introduction to
getting started with Tiles and Validator and are perfect for someone wanting
to understand how the two popular Struts extensions work.

Here are the links to the articles:

Reuse Tiles and Simplify UI
http://otn.oracle.com/oramag/oracle/04-may/o34dev_struts.html

Check Your Form with Validator
http://otn.oracle.com/oramag/oracle/04-jan/o14dev_struts.html

Enjoy!

-James
http://www.jamesholmes.com/struts/


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



RES: MySQL, iBatis, and mysql_insert_id

2004-06-03 Thread Fabricio Garcia Imbrizi
Andy,

An example of using KeyGenerator:

//Executes the given SQL statement and signals the driver with the
// given flag about whether the auto-generated keys produced by 
// this Statement object should be made available for retrieval
stmt.executeUpdate(this.sql, 0);

rset = stmt.getGeneratedKeys();

if (rset.next())
{
// rset.getInt(1) -> Retrieves the value of the designated column
// in the current row of this ResultSet object as an int
int lastId = rset.getInt(1);
}

   Regardless

   Fabricio Garcia Imbrizi
   Murah Technologies
   11 8275 0199
 

-Mensagem original-
De: Nathan Maves [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 3 de junho de 2004 14:18
Para: Struts Users Mailing List
Assunto: Re: MySQL, iBatis, and mysql_insert_id


iBatis 2.0 has this ability.

The other option is to have a KeyGenerator class that handles all of 
this for you.  Don't use the auto generated keys from mysql.

Nathan

On Jun 3, 2004, at 11:07 AM, Andy Engle wrote:

> Hi all,
>
> I am working on a Struts app where I will be slapping some stuff into a
> database table, and from there I will need to get an insert ID back.  I
> am using a MySQL database, my database stuff is handled by iBatis, and
> I am assuming that I need to use the MySLQ command mysql_insert_id() to
> get that ID back so I can use it on secondary inserts which will need
> that ID as a key.
>
> Has anyone ever done anything like this before?  If not, what sorts of
> methods did you use in this scenario to accomplish this?
>
> Thanks very much for your help, as always.
>
>
> Andy
>
>
> -
> 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]



Struts Web Services Enablement Project : version .02

2004-06-03 Thread Frank Zammetti
Ok, I just posted version .02 of the newly-named Struts Web Services 
Enablement Project (prounced 'SWISS EP' I guess?!?).  Here's the address 
again:

http://www.omnytex.com/wst.zip
This version I think is considerably more useful, but I'm still eager to 
hear anyone's opinions, comments, suggestions, etc.

Most notably in this version are two changes:
(1) There are no longer ANY required elements to the incoming SOAP message, 
i.e.,  is no longer required.  It still has the flat 
format restriction, but it should be cleaner now without even the single 
required element.

(2) There is now a Struts plug-in that reads a new webservices-config.xml 
file.  THIS IS OPTIONAL.  You don't have to use the plug-in and you don't 
have to write this config file, but that will limit you to the default 
output template dumping all ActionForm members only.  However, I believe it 
will be used more often than not because it allows you to (a) map your own 
XML-rendering JSP's to an Action so that you are no longer limited to the 
default XML template's message format, and (b) allows you to pick and choose 
what ActionForm members are returned by the default template if you still 
want to use it, and even in what order!

There are a number of other more minor changes, but these two I believe 
begin to make this project actually worth something (my opinion anyway).

Please, let me know what you think.  Play with the sample webapp, let me 
know how I'm doing!

Frank
_
Watch the online reality show Mixed Messages with a friend and enter to win 
a trip to NY 
http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/01/

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


One Forward Action Multiple JSPs

2004-06-03 Thread gdeschen
Greetings,

What I would like to do is to be able to display different JSPs for the 
same ForwardAction.

I now have this:



What I would like is based on the Locale show a different JSP.
I cannot use the i18n for this with resource bundles since the page 
contains lots of text and the format is different for both languages.

So if I create my own ForwardAction 
(secure.credentials.TermsAndConditionsForwardAction) how would I set the 
parameter value to either
/WEB-INF/secure/credentials/termsAndConditions_en.jsp
or
/WEB-INF/secure/credentials/termsAndConditions_fr.jsp

Is this the best way to go about or are there other suggestions?

TIA,
Glenn.

Re: MySQL, iBatis, and mysql_insert_id

2004-06-03 Thread Nathan Maves
iBatis 2.0 has this ability.
The other option is to have a KeyGenerator class that handles all of 
this for you.  Don't use the auto generated keys from mysql.

Nathan
On Jun 3, 2004, at 11:07 AM, Andy Engle wrote:
Hi all,
I am working on a Struts app where I will be slapping some stuff into a
database table, and from there I will need to get an insert ID back.  I
am using a MySQL database, my database stuff is handled by iBatis, and
I am assuming that I need to use the MySLQ command mysql_insert_id() to
get that ID back so I can use it on secondary inserts which will need
that ID as a key.
Has anyone ever done anything like this before?  If not, what sorts of
methods did you use in this scenario to accomplish this?
Thanks very much for your help, as always.
Andy
-
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]


url rewriting

2004-06-03 Thread Lesaint Sébastien
Hi,

I'm using the following code : 
logout

The html code I get is the following :
logout

When I read the explanation about how the  tag works, I
understood the content of href attribute should be something more like :
"http://www.myserver.com/lec/logoutAction.do";

I do have an  tag in the  tag of the HTML page.

Anybody can tell me if I misunderstood or forgot to set up something ?

thanks

-- 
Seb'



MySQL, iBatis, and mysql_insert_id

2004-06-03 Thread Andy Engle
Hi all,

I am working on a Struts app where I will be slapping some stuff into a
database table, and from there I will need to get an insert ID back.  I
am using a MySQL database, my database stuff is handled by iBatis, and
I am assuming that I need to use the MySLQ command mysql_insert_id() to
get that ID back so I can use it on secondary inserts which will need
that ID as a key.

Has anyone ever done anything like this before?  If not, what sorts of
methods did you use in this scenario to accomplish this?

Thanks very much for your help, as always.


Andy


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



Re: Action messages.

2004-06-03 Thread Frank Zammetti
I'm not sure what you mean by "avoid 2 submit 's click".  If your referring 
to the pooling method requiring a submit after the initial one (potential 
any number of submits really), then yes, you would avoid that.

Here's an example off the top of my head (so the disclaimer is it might not 
be perfect!):


Please wait, doing server 
work...


Field A: 
Field B: 





Note the return faksel in the onClick of the submit button... I just did 
this so you'd see it work, without it the form submission proceeds and you 
won't see anything because you immediately get no return.  Or something like 
that anyway :)  The point is, remove that to try this for real against a 
real server.

I think that'll do it, let me know if you need any further help.
Frank
From: "Marcelo Epstein" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Action messages.
Date: Thu, 3 Jun 2004 13:55:11 -0300
Thanks Frank,
Do you have any sample code of using  ?
I think this is also good to avoid 2 submit´s click. Am I right?

- Original Message -
From: "Frank Zammetti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 11:57 AM
Subject: RE: Action messages.
> You can "fake it" and do this... have a hidden  in your page that,
> just before you submit your form, you display.  You will probably also
want
> to wrap everything else in your page in a  and hide it at the same
> time.  I say this is "faking it" because the browser won't have any idea
> what's going on on the server, which might be OK.
>
> If you want some sort of progress bar though, something that actually 
has
> knowledge of what's going on on the server, what you'll need to do is 
kick
> off a thread in your Action, and store some reference to it persistently
> (i.e., session or a database, etc.).  Then, you'll have to have a page 
on
> the browser with something like a meta-refresh that calls some special
> Action that can check the status of that thread, maybe get some sort of
> percent complete or something like that to display back to the browser.
>
> Obviously, if faking it is good enough, as it usually is in these cases,
> that's by far the better choice.
>
> Frank
>
> >From: "Marcelo Epstein" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Action messages.
> >Date: Thu, 3 Jun 2004 11:46:44 -0300
> >
> >Hi,
> >
> >I have a Action that takes 10s to execute. Is there any way to display
> >messages in the browser during execution?
> >
> >Thx,
> >Marcelo
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> MSN 9 Dial-up Internet Access fights spam and pop-ups - now 3 months 
FREE!
> http://join.msn.click-url.com/go/onm00200361ave/direct/01/
>
>
> -
> 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]
_
Get fast, reliable Internet access with MSN 9 Dial-up – now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/

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


Re: Action messages.

2004-06-03 Thread Marcelo Epstein
Thanks Frank,

Do you have any sample code of using  ?
I think this is also good to avoid 2 submit´s click. Am I right?



- Original Message - 
From: "Frank Zammetti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 11:57 AM
Subject: RE: Action messages.


> You can "fake it" and do this... have a hidden  in your page that,
> just before you submit your form, you display.  You will probably also
want
> to wrap everything else in your page in a  and hide it at the same
> time.  I say this is "faking it" because the browser won't have any idea
> what's going on on the server, which might be OK.
>
> If you want some sort of progress bar though, something that actually has
> knowledge of what's going on on the server, what you'll need to do is kick
> off a thread in your Action, and store some reference to it persistently
> (i.e., session or a database, etc.).  Then, you'll have to have a page on
> the browser with something like a meta-refresh that calls some special
> Action that can check the status of that thread, maybe get some sort of
> percent complete or something like that to display back to the browser.
>
> Obviously, if faking it is good enough, as it usually is in these cases,
> that's by far the better choice.
>
> Frank
>
> >From: "Marcelo Epstein" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Action messages.
> >Date: Thu, 3 Jun 2004 11:46:44 -0300
> >
> >Hi,
> >
> >I have a Action that takes 10s to execute. Is there any way to display
> >messages in the browser during execution?
> >
> >Thx,
> >Marcelo
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> MSN 9 Dial-up Internet Access fights spam and pop-ups - now 3 months FREE!
> http://join.msn.click-url.com/go/onm00200361ave/direct/01/
>
>
> -
> 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]



and get...()

2004-06-03 Thread Marcelo Epstein
Hi,

When I use  if the value is null, the tag returns "".
But, when I try, for example, System.out.print(xxx.getProperty()) inside an Action and 
the property is null. It returns the String "null". 
What is the best practice to avoid printing "null" ? I have to check all values before 
printing? Is there a better way to do that?

Thanks in advance,
Marcelo

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti

just curious..how do u pick the ActionForm from request? Each ActionForm
has potentially a different name   is it a struts trick?
Take a look at the webServiceResponse.jsp... The pertinent lines are:
ActionConfig mapping = 
(ActionConfig)request.getAttribute("org.apache.struts.action.mapping.instance");
String actionFormName = mapping.getName();
Object form = request.getAttribute(actionFormName);

I'm not sure it's a trick or anything, but it works :)
well, as long as they are in an XML I don't see any problems... it
should
be enough that the element is in the XML, not necessarily element1
before
elemen2...  coz when the XML arrives to the client, the client will look
for certain elements, without caring on the order.
I'd say that's probably true MOST of the time, but I could see where maybe 
you want to supply your clients with a DTD describing the output, and maybe 
you want to ensure a specific order, either for processing or just 
consistently.  I've always felt that XML hasn't reached it's real potential 
because people tend to put a lot of restrictions on the format of a message, 
and then code doesn't get written in such a way that you can basically query 
for a specific element.  If you do things that way, then yes, order doesn't 
matter at all, but I'd like the have the capability of doing both.

Then this looks the way :-) ..hopefully during the night u will find
more
Responses on this from Struts committers...
A this point I'm more interested in getting feedback from people that might 
actually use this... People like yourself.  That way I can refine it a bit 
before presenting it to anyone "official".  I believe it's a useful thing, 
something that people would be interested in using, but if I'm the only one 
that thinks so then there's no point.

I'm making good progress on things so far today, I should put out .02 before 
I leave it looks like.


As I said, it was just a wild idea... if u can invoke aspects (to log
etc)
At certain point in a class/method, u could  reuse same technique before
Exiting the execute() method of an action... redirecting to the proper
page.. thought my brain stops here... I m talking from examples that I
have seen, I haven\t had the time 2 practice ...
That's an interesting thought, but I think it still comes down to changes to 
the Actions, even if very minor ones (like my previous version that needed 
two function calls).  In the long-run that may be required for some things 
anyway, but I'm trying to avoid it (so far I've been able to).



_
Watch the online reality show Mixed Messages with a friend and enter to
win
a trip to NY
http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/
01/
-
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]
_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: Why not Torque?

2004-06-03 Thread Julio Cesar De Salvo
I need to have the many-to-many relantionship properly set in the xml
schema file for the torque generation engine, but once it is it works
like charm.

And with the experience I was able to write some tuned sql statements
although Torque lacks of support for stored procedures and triggers.

However, I think I will stick with Torque and encourage everyone to use
it with Struts.

Thanks for the quick response,


-Mensaje original-
De: Mark Lowe [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 03 de Junio de 2004 12:02 p.m.
Para: Struts Users Mailing List
Asunto: Re: Why not Torque?

I've used torque and hibernate.

Torque gets you up and running very quickly, and has less files to 
maintain (mapping files) . In the case of hibernate to get around the 
mapping file maintenance a lot of folk including me use xdoclet.

Hibernate gives you more control than Torque but has all that messing 
around to get it running at first to get everything right.

I don't remember how torque deals with many-to-many relationships.   I 
believe that the transaction management is probably better with 
hibernate. But I haven't use torque in a while so i could be wrong.

A big difference is that torque has a table based api, where hibernate 
has a stronger bias towards Objects.

I'll have to give torque another go to have a better idea, but your 
question "Why not torque?" is as good a reason as any to stick with it.

Mark

On 3 Jun 2004, at 16:35, Julio Cesar De Salvo wrote:

> Hi,
> I ‘ve been using Torque with Struts for quite a while and
> performs very well.
> But I’ve seen that you guys usually uses Hibernate with
> Struts.
> Can you tell me what are the dis/ad vantages.
>
> Thanks
>
> Julio Cesar De Salvo - Project Leader
> iTechnology S.R.L. - Ciudad de la Paz 2846 - piso 1
> Tel 54 11 4782.6901 / Fax 54 11 4782.6901
>  [EMAIL PROTECTED]
> AVISO DE CONFIDENCIALIDAD. La información incluida en este e-mail está
> dirigida únicamente al destinatario. Puede contener información
> privilegiada, confidencial y que no debe ser revelada. Si ha recibido
> este e-mail por error, por favor no disemine, utilice, publique,
> distribuya, revele o copie esta comunicación de ningún modo. En
cambio,
> por favor notifíquenos inmediatamente remitiéndonos este e-mail 
> (incluso
> el mensaje original en su contestación), por fax (54-11-4782-6901) o
> teléfono (54-11-4782-6901) y entonces elimine y deseche todas las 
> copias
> de este e-mail. Gracias.
> CONFIDENTIALITY NOTICE. The information in this e-mail is intended for
> the designated recipient only. It may contain information that is
> privileged, confidential and exempt from disclosure. If you have
> received this e-mail in error, please do not disseminate, use,
publish,
> distribute, disclose or copy this communication in any way. Instead,
> please notify us immediately by return e-mail (including the original
> message in your reply), by fax (54-11-4782-6901) or by telephone
> (54-11-4782-6901) and then delete and discard all copies of this 
> e-mail.
> Thank you.
>
>


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


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



property name repetition in one form

2004-06-03 Thread Samuel Rochas
Hello,
I am using a form displaying properties from a bean. One property of
this bean is named aProperty.
The bean as another property which is a list of other beans (call it 
items), which one of the item has the property named aProperty too.

In my form, I want to know which user is shown, so I use the property 
aProperty of my bean. And I want to know which item of the items list is 
selected, with the help of the property aProperty of each item.

So in the form, I have the repetition of the property name aProperty.
How can I deal with that? Is there a way to handle that, for example 
giving a different name to the form controls than the property name they 
are representing?

Thanx in advance
Samuel
-
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]


R: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Andrea M.
Mah
Sincerely... there are features in IDEs that I don't know how would I do
without.. like code insight... web descriptor (and even struts descriptor)
editing.. and so on

Of course I could do everything with notepad, but that often means getting
crazy just to find a simple syntax error, or event to remember which methods
are you inheriting up to the three.
Noway.. I'll be a geek if you like but I don’t like to suffer with no
reason.



-Messaggio originale-
Da: Marco Mistroni [mailto:[EMAIL PROTECTED] 
Inviato: giovedì 3 giugno 2004 15.50
A: 'Struts Users Mailing List'
Oggetto: RE: [OT] Good env for struts-based-web-tier and ejb components
development

Hi there,
Jedit+xdoclet+mysql+junit+dbunit+maven

And u would write code, generate what u need, test it and deploy
It with one click..

IDE r powerful, no doubt on that, but I prefer plain old notepad..
If u end up getting acquainted with a powerful IDE, then as soon
As u change it u get lost

My 2 cents

Regards
marco




-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED] 
Sent: 03 June 2004 06:12
To: Struts Users Mailing List
Subject: [OT] Good env for struts-based-web-tier and ejb components
development

Hi List,

I am about to start development work on some auction site which in
principle
is similar to e-bay but not of that scale. I will be using J2EE+Jboss.

What kind of IDE development environment do you guys use for the
development?

I just tried Eclipse + EasyStruts + Lomboz. Lomboz is good but not good
enough.

1. I still have to carefully edit ejb-jar and jboss files to make my
things
run.
2. The directory structure that it creates in the background is not
good.
3. The xdoclet tags that it generates is for all servers. e.g JOnAs
jboss,
weblogic. but i need for only jboss.
4. The build files that it generates are bit obscure.

Easy Struts is just OK and doesn't provide much time saving to me. I can
live without it also. Moreover, EasyStruts doesn't work with Eclipse
3.0.

In nutshell, the entire development environment becomes unorganized, if
not
complex.

I wish to know what kinda env do you use? How do streamline your
development
process?

TIA
Navjot Singh


-
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: Why not Torque?

2004-06-03 Thread Mark Lowe
I've used torque and hibernate.
Torque gets you up and running very quickly, and has less files to 
maintain (mapping files) . In the case of hibernate to get around the 
mapping file maintenance a lot of folk including me use xdoclet.

Hibernate gives you more control than Torque but has all that messing 
around to get it running at first to get everything right.

I don't remember how torque deals with many-to-many relationships.   I 
believe that the transaction management is probably better with 
hibernate. But I haven't use torque in a while so i could be wrong.

A big difference is that torque has a table based api, where hibernate 
has a stronger bias towards Objects.

I'll have to give torque another go to have a better idea, but your 
question "Why not torque?" is as good a reason as any to stick with it.

Mark
On 3 Jun 2004, at 16:35, Julio Cesar De Salvo wrote:
Hi,
I ‘ve been using Torque with Struts for quite a while and
performs very well.
But I’ve seen that you guys usually uses Hibernate with
Struts.
Can you tell me what are the dis/ad vantages.
Thanks
Julio Cesar De Salvo - Project Leader
iTechnology S.R.L. - Ciudad de la Paz 2846 - piso 1
Tel 54 11 4782.6901 / Fax 54 11 4782.6901
 [EMAIL PROTECTED]
AVISO DE CONFIDENCIALIDAD. La información incluida en este e-mail está
dirigida únicamente al destinatario. Puede contener información
privilegiada, confidencial y que no debe ser revelada. Si ha recibido
este e-mail por error, por favor no disemine, utilice, publique,
distribuya, revele o copie esta comunicación de ningún modo. En cambio,
por favor notifíquenos inmediatamente remitiéndonos este e-mail 
(incluso
el mensaje original en su contestación), por fax (54-11-4782-6901) o
teléfono (54-11-4782-6901) y entonces elimine y deseche todas las 
copias
de este e-mail. Gracias.
CONFIDENTIALITY NOTICE. The information in this e-mail is intended for
the designated recipient only. It may contain information that is
privileged, confidential and exempt from disclosure. If you have
received this e-mail in error, please do not disseminate, use, publish,
distribute, disclose or copy this communication in any way. Instead,
please notify us immediately by return e-mail (including the original
message in your reply), by fax (54-11-4782-6901) or by telephone
(54-11-4782-6901) and then delete and discard all copies of this 
e-mail.
Thank you.



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


RE: Action messages.

2004-06-03 Thread Frank Zammetti
You can "fake it" and do this... have a hidden  in your page that, 
just before you submit your form, you display.  You will probably also want 
to wrap everything else in your page in a  and hide it at the same 
time.  I say this is "faking it" because the browser won't have any idea 
what's going on on the server, which might be OK.

If you want some sort of progress bar though, something that actually has 
knowledge of what's going on on the server, what you'll need to do is kick 
off a thread in your Action, and store some reference to it persistently 
(i.e., session or a database, etc.).  Then, you'll have to have a page on 
the browser with something like a meta-refresh that calls some special 
Action that can check the status of that thread, maybe get some sort of 
percent complete or something like that to display back to the browser.

Obviously, if faking it is good enough, as it usually is in these cases, 
that's by far the better choice.

Frank
From: "Marcelo Epstein" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Action messages.
Date: Thu, 3 Jun 2004 11:46:44 -0300
Hi,
I have a Action that takes 10s to execute. Is there any way to display
messages in the browser during execution?
Thx,
Marcelo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 9 Dial-up Internet Access fights spam and pop-ups – now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/

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


RE: Strus Web Service Enablement

2004-06-03 Thread Marco Mistroni
Hello again,

>Exactly! Actually...not sure about the template, but when u go via
>WS (webservices) all the client is interested is in getting back XML...
>The XML generated by you action class as a response...

>That's the thing I want to avoid though... I don't want the Actions to
be 
>altered at all (and the ActionForms either if I can help it).
Therefore, 
>the idea is to do all the Web Service stuff externally to those
components.

Yeah... :-) I was meaning some XML as a response.


>That's what the current template JSP does... It just uses reflection to
get 
>a list of all members of the ActionForm, without knowing the specific
class 
>of the ActionForm, and then iterates over the members, calilng the 

just curious..how do u pick the ActionForm from request? Each ActionForm
has potentially a different name   is it a struts trick?

>appropriate getter for each, and constructing a simple XML response.
Since 
>the RequestProcessor already set the response type to XML, the JSP is
only 
>responsible for constructing the proper SOAP-based response, nothing
more.

Two things about that though are problematic...

>(1) It's just dumping all the members of the class, there's currently
no >way 
>to select which members to incluide, or what order, or any notion of 
>structure beyond a flat list

well, as long as they are in an XML I don't see any problems... it
should
be enough that the element is in the XML, not necessarily element1
before
elemen2...  coz when the XML arrives to the client, the client will look
for certain elements, without caring on the order.


(2) While this simple template might be OK for many situations, it
doesn't 
allow for any flexibility in the returned XML.

That's where my idea of an added config file comes in... I picture it
being 
loaded into memory via a plug-in, just like Struts-Config.xml is.  It
would 
probably, off the top of my head, have a structure something like this:



  



... where:

 - matches exactly the path attribute of the  from 
Struts-Config.xml being exposed
 - is the path to the JSP to generate the XML output.  This would be

optional.  If it's NOT present, be default the "webServiceResponse.jsp" 
template is used, which is what is there now, which just dumps all
members 
of the ActionForm.  You can also specify a special value of "simple",
which 
would use a new "simpleServiceResponse.jsp" template.  This would make
used 
of the members element...
 - is a comma-separated list of members to display using the
"simple" 
template.  Basically the same thing as the default template except that
you 
can specify which elements to return and in what order.

Any other target would be a JSP designed for a specific Action, so you
could 
do whatever you wanted there, as long as you generate a valid SOAP-based
XML 
response.  This is where a new taglib would probably be useful, to help 
ensure proper structure and whatnot.

Further, if no entry is found for a given Action mapping, or there never
was 
this config file, then it would just proceed as it currently does, using
the 
existing "dump everything" template.  That leaves all of this optional, 
which I think is a good thing (tm).


Then this looks the way :-) ..hopefully during the night u will find
more
Responses on this from Struts committers...


>Aspect Oriented Programming ...give it a check... u can add dynamic

>Ok, sure, I've heard of it, just didn't recognize the acronym :)  I'm
not 
>sure how it would fit in here though, my admittedly limited
understanding >is 
>that AOP is more or less a technique for architecting a system (i.e.,
view 
>things as Aspects instead of Objects, along those lines).

As I said, it was just a wild idea... if u can invoke aspects (to log
etc)
At certain point in a class/method, u could  reuse same technique before
Exiting the execute() method of an action... redirecting to the proper
page.. thought my brain stops here... I m talking from examples that I
have seen, I haven\t had the time 2 practice ...

Regards
marco




_
Watch the online reality show Mixed Messages with a friend and enter to
win 
a trip to NY 
http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/
01/


-
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 get requested path?

2004-06-03 Thread Frank Zammetti
Thanks Martin, it actually turns out that I needed request.getServletPath(). 
 I completely forgot to look at what the request object offered, I was 
instead looking at the headers, parameters and attributes, and also seeing 
if the information was contained in RequestProcessor somewhere.  I forgot 
the obvious (which is about what I expected).  Thanks!

From: "Martin Gainty" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: How to get requested path?
Date: Thu, 3 Jun 2004 10:51:01 -0400
Frank-
the Path Follows the URI and precedes the Query String
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletRequest.html#getPathTranslated()
Does this help??
Martin
- Original Message -
From: "Frank Zammetti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 10:41 AM
Subject: How to get requested path?
> I've been looking through javadocs for a couple of hours and I haven't
found
> the answer to what seems like a straight-forward question...
>
> Assume I am writing a sublcass of RequestProcessor... how can I, in the
> processPreprocess() method, get the path that was called?  In other 
words,
> if I submit a request to http://localhost:8181/wst/myAction.wst, how can 
I
> get a String with the value "myAction.wst"?  I've checked all the 
request
> parameters and attributes and headers, it doesn't seem to be there, and 
I
> don't see anywhere that it's available in RequestProcessor, even though 
it
> seems like something that would be.
>
> Can anyone point out what I'm suire will wind up being the obvious 
answer?
> Thanks all!
>
> Frank
>
> _
> Getting married? Find great tips, tools and the latest trends at MSN 
Life
> Events. http://lifeevents.msn.com/category.aspx?cid=married
>
>
> -
> 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]
_
Getting married? Find great tips, tools and the latest trends at MSN Life 
Events. http://lifeevents.msn.com/category.aspx?cid=married

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


Re: How to get requested path?

2004-06-03 Thread Martin Gainty
Frank-
the Path Follows the URI and precedes the Query String
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletRequest.html#getPathTranslated()
Does this help??
Martin
- Original Message - 
From: "Frank Zammetti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 10:41 AM
Subject: How to get requested path?


> I've been looking through javadocs for a couple of hours and I haven't
found
> the answer to what seems like a straight-forward question...
>
> Assume I am writing a sublcass of RequestProcessor... how can I, in the
> processPreprocess() method, get the path that was called?  In other words,
> if I submit a request to http://localhost:8181/wst/myAction.wst, how can I
> get a String with the value "myAction.wst"?  I've checked all the request
> parameters and attributes and headers, it doesn't seem to be there, and I
> don't see anywhere that it's available in RequestProcessor, even though it
> seems like something that would be.
>
> Can anyone point out what I'm suire will wind up being the obvious answer?
> Thanks all!
>
> Frank
>
> _
> Getting married? Find great tips, tools and the latest trends at MSN Life
> Events. http://lifeevents.msn.com/category.aspx?cid=married
>
>
> -
> 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]



Action messages.

2004-06-03 Thread Marcelo Epstein
Hi,

I have a Action that takes 10s to execute. Is there any way to display
messages in the browser during execution?

Thx,
Marcelo


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



RE: How to get requested path?

2004-06-03 Thread Frank Zammetti
Never mind... I told you it would be obvious... request.getServletPath().  
Argh.  WAKE UP FRANK!!

Frank
From: "Frank Zammetti" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: How to get requested path?
Date: Thu, 03 Jun 2004 10:41:40 -0400
I've been looking through javadocs for a couple of hours and I haven't 
found the answer to what seems like a straight-forward question...

Assume I am writing a sublcass of RequestProcessor... how can I, in the 
processPreprocess() method, get the path that was called?  In other words, 
if I submit a request to http://localhost:8181/wst/myAction.wst, how can I 
get a String with the value "myAction.wst"?  I've checked all the request 
parameters and attributes and headers, it doesn't seem to be there, and I 
don't see anywhere that it's available in RequestProcessor, even though it 
seems like something that would be.

Can anyone point out what I'm suire will wind up being the obvious answer?  
Thanks all!

Frank
_
Getting married? Find great tips, tools and the latest trends at MSN Life 
Events. http://lifeevents.msn.com/category.aspx?cid=married

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get fast, reliable Internet access with MSN 9 Dial-up – now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/

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


How to get requested path?

2004-06-03 Thread Frank Zammetti
I've been looking through javadocs for a couple of hours and I haven't found 
the answer to what seems like a straight-forward question...

Assume I am writing a sublcass of RequestProcessor... how can I, in the 
processPreprocess() method, get the path that was called?  In other words, 
if I submit a request to http://localhost:8181/wst/myAction.wst, how can I 
get a String with the value "myAction.wst"?  I've checked all the request 
parameters and attributes and headers, it doesn't seem to be there, and I 
don't see anywhere that it's available in RequestProcessor, even though it 
seems like something that would be.

Can anyone point out what I'm suire will wind up being the obvious answer?  
Thanks all!

Frank
_
Getting married? Find great tips, tools and the latest trends at MSN Life 
Events. http://lifeevents.msn.com/category.aspx?cid=married

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


RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
I would say take a look at the readme for how this is currently working.  
Basically, the answer is this...

When a Web Service request comes in (recognized by the presence of the 
SOAPAction header), the RequestProcessor parses the SOAP message contained 
in the body of the request.  The parameters are then used to construct a 
query string because you cannot add parameters to an existing request object 
(I think you can in the latest servlet spec, but I didn't want to make that 
a requirement for this to work).  Then, the request is forwarded back to 
ActionServlet in essence, but this time with the query string attached.  So, 
the second time through, as far as Struts is concerned, it looks just like a 
form submission, it's no longer a Web Service request.  This is necassery 
because the flow proceeds as usual from this point on, i.e., ActionForm is 
instantiated and populated, validated, and the Action is called.  Once it's 
done, the RequestProcessor now knows that the ActionForward the Action 
returned is useless because this is a Web Service request, so it instead 
send the request to the JSP that generates the SOAP response (and the 
RequestProcessor sets the content type of the response to XML).

So, the short answer is that since I can't add parameters to the request 
object, the only way to pull this off without requiring changes to existing 
classes is to construct a query string and forward the request back through 
ActionServlet.

From: "Marco Mistroni" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: Strus Web Service Enablement
Date: Thu, 3 Jun 2004 15:08:24 +0100
Hi,
One question... why would you put parameters as query string?
Ideally what the client is sending is a SOAP request (or XML request),
so
The parameters are already embedded in the SOAP request.
Only thing that you need is to open a connection to struts URL, for
example
http://myhost:myport/myapp/LoginAction.do
in my case, 'coz my app was 'XML only' enabled, Axis was building an
SOAP message from what was written in the request. I was simply
extracting the
parameter that I needed.
What I would think is that in your request processor u do exactly the
same.
The ActionForm can be populated automatically via reflection.
Regards
marco

-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED]
Sent: 03 June 2004 14:53
To: [EMAIL PROTECTED]
Subject: RE: Strus Web Service Enablement
>Also, I realized on the drive in that there's no need to put the
parameters
>as a query string as I'm doing... I can just put the parsed parameters
>directly into the request object as an attribute.  Since only the
second
>pass of a Web Service request would know or care about that object, it
will
>basically just remove some code and simplify things a bit.
Scratch that... It's still early in the morning for me, I wasn't
thinking
clearly... I STILL can't add the parameters direclty to request, so yes,
I
still have to construct the query string and do it that way.  My bad.
_
MSN Toolbar provides one-click access to Hotmail from any Web page -
FREE
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/
-
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]
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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


RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
Exactly! Actually...not sure about the template, but when u go via
WS (webservices) all the client is interested is in getting back XML...
The XML generated by you action class as a response...
That's the thing I want to avoid though... I don't want the Actions to be 
altered at all (and the ActionForms either if I can help it).  Therefore, 
the idea is to do all the Web Service stuff externally to those components.

See, in some way what need to be handled is:
- action form in the response must be written in XML
- this XML must be written..either in a JSP or in the response (in both
cases what the user will receive is a SOAP message
so, we will end up at same point: unless you return raw XML from the
action
class, something will need to wrap the ActionForm for the response and
produce XML out of it.
A JSP/JSP tag can do that (and you will need only one page for all
action classes, since that JSP will be in charge of taking the
ActionForm from
Request and make a SOAP response out of it).
This will solve half of the problems :-(, because:
How can a JSP extract automatically the Form associated with the
request?
More brainstorming :-)
That's what the current template JSP does... It just uses reflection to get 
a list of all members of the ActionForm, without knowing the specific class 
of the ActionForm, and then iterates over the members, calilng the 
appropriate getter for each, and constructing a simple XML response.  Since 
the RequestProcessor already set the response type to XML, the JSP is only 
responsible for constructing the proper SOAP-based response, nothing more.

Two things about that though are problematic...
(1) It's just dumping all the members of the class, there's currently no way 
to select which members to incluide, or what order, or any notion of 
structure beyond a flat list

(2) While this simple template might be OK for many situations, it doesn't 
allow for any flexibility in the returned XML.

That's where my idea of an added config file comes in... I picture it being 
loaded into memory via a plug-in, just like Struts-Config.xml is.  It would 
probably, off the top of my head, have a structure something like this:


 

... where:
 - matches exactly the path attribute of the  from 
Struts-Config.xml being exposed
 - is the path to the JSP to generate the XML output.  This would be 
optional.  If it's NOT present, be default the "webServiceResponse.jsp" 
template is used, which is what is there now, which just dumps all members 
of the ActionForm.  You can also specify a special value of "simple", which 
would use a new "simpleServiceResponse.jsp" template.  This would make used 
of the members element...
 - is a comma-separated list of members to display using the "simple" 
template.  Basically the same thing as the default template except that you 
can specify which elements to return and in what order.

Any other target would be a JSP designed for a specific Action, so you could 
do whatever you wanted there, as long as you generate a valid SOAP-based XML 
response.  This is where a new taglib would probably be useful, to help 
ensure proper structure and whatnot.

Further, if no entry is found for a given Action mapping, or there never was 
this config file, then it would just proceed as it currently does, using the 
existing "dump everything" template.  That leaves all of this optional, 
which I think is a good thing (tm).

Aspect Oriented Programming ...give it a check... u can add dynamic
behaviour at run time... it came across my mind because you would want
to
Do some processing (when u are calling Action via XML) before the
execute() method of an Action returns...
Ok, sure, I've heard of it, just didn't recognize the acronym :)  I'm not 
sure how it would fit in here though, my admittedly limited understanding is 
that AOP is more or less a technique for architecting a system (i.e., view 
things as Aspects instead of Objects, along those lines).

_
Watch the online reality show Mixed Messages with a friend and enter to win 
a trip to NY 
http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/01/

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


Why not Torque?

2004-06-03 Thread Julio Cesar De Salvo
Hi,
I ‘ve been using Torque with Struts for quite a while and
performs very well.
But I’ve seen that you guys usually uses Hibernate with
Struts.
Can you tell me what are the dis/ad vantages.
 
Thanks
 
Julio Cesar De Salvo - Project Leader 
iTechnology S.R.L. - Ciudad de la Paz 2846 - piso 1
Tel 54 11 4782.6901 / Fax 54 11 4782.6901
 [EMAIL PROTECTED]
AVISO DE CONFIDENCIALIDAD. La información incluida en este e-mail está
dirigida únicamente al destinatario. Puede contener información
privilegiada, confidencial y que no debe ser revelada. Si ha recibido
este e-mail por error, por favor no disemine, utilice, publique,
distribuya, revele o copie esta comunicación de ningún modo. En cambio,
por favor notifíquenos inmediatamente remitiéndonos este e-mail (incluso
el mensaje original en su contestación), por fax (54-11-4782-6901) o
teléfono (54-11-4782-6901) y entonces elimine y deseche todas las copias
de este e-mail. Gracias.
CONFIDENTIALITY NOTICE. The information in this e-mail is intended for
the designated recipient only. It may contain information that is
privileged, confidential and exempt from disclosure. If you have
received this e-mail in error, please do not disseminate, use, publish,
distribute, disclose or copy this communication in any way. Instead,
please notify us immediately by return e-mail (including the original
message in your reply), by fax (54-11-4782-6901) or by telephone
(54-11-4782-6901) and then delete and discard all copies of this e-mail.
Thank you.
 


DynaValdatorForms and java.util.Dates

2004-06-03 Thread Tim Penhey
Hi All,

If I have a property that is a java.util.Date, how can I provide it with a default 
value
of today?

Thanks,
Tim





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



Re: Override form action URL

2004-06-03 Thread Eric Jain
If so you can define a dummy action to which your form points. In the 
dummy just forward to your actual action. In the rendered jsp/html page 
you will see the dummy action.
Thanks, unfortunately the example I gave was somewhat simplified. I'd 
rather avoid having to configure dozens of dummy actions. Furthermore, 
Struts will insist that actions mapped to nested paths be put in their 
own subapplications. And finally, the following mapping would not be 
possible:

  /test/a/ -> /test/search?dataset=a
  /test/a/1 -> /test/retrieve?id=1
In the end, as far as I can see, all I need is a way to override the URL 
that is generated by the html:form tag. I just opened a feature request, 
see http://issues.apache.org/bugzilla/show_bug.cgi?id=29363.

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


RE: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread Daniel Perry


Daniel.

> -Original Message-
> From: John Antonakos [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2004 15:10
> To: Struts Users Mailing List
> Subject: Re: How can i avoid the use of & in a drop down box ?
> 
> 
> where should i put that ?
> i never heard of it...
> 
> please give more info, where does it go ?
> to struts-config.xml or somewhere else ?
> In the Struts FormClass or inside the jsp tag ?
> 
> - Original Message - 
> From: "Rouven Gehm" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, June 03, 2004 5:01 PM
> Subject: Re: How can i avoid the use of & in a drop down box ?
> 
> 
> Have you tried to set filter="false" ???
> 
> 
> Rouven
> 
> - Original Message - 
> From: "John Antonakos" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, June 03, 2004 3:40 PM
> Subject: Re: How can i avoid the use of & in a drop down box ?
> 
> 
> > I am re-writing the question cause the stupid Outlook formatted my text
> > and made it without any meaning to it.
> > 
> -
> > We have some drop down boxes in our jsp's which take
> > data straight from the DB. Some of those data contain
> > the character &. (eg John & me).
> > We use a javascript array to store these data for internal
> > use in the page. The struts format those data.
> > When we use these data in a drop down (html select) appears
> > as (John & me) which obviously does not look good.
> > 
> > Is there a way to avoid this from happening ?
> > Can we say to the struts NOT to format the data coming from
> > the java objects ?
> > 
> -
> > i mean NOT to turn & to &, cause when it does it the drop down
> > says: "John & me", which looks ridiculous, doesnt it ?
> > 
> > - Original Message - 
> > From: "Kathy Zhou" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Thursday, June 03, 2004 4:26 PM
> > Subject: RE: How can i avoid the use of & in a drop down box ?
> > 
> > 
> > Have you tried to use & for &? just a thought.
> > 
> > Kathy
> > 
> > > -Original Message-
> > > From: Srinivas Rao [SMTP:[EMAIL PROTECTED]
> > > Sent: Thursday, June 03, 2004 8:07 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: How can i avoid the use of & in a drop down box ?
> > > 
> > > Hi John,
> > > It is possible but i am not sure it is working or not 
> > > before inset into the database we will use Single quate( '  ' 
> ) to store
> > > the data, after u can access '&' symble from the database..
> > >  
> > > bye
> > > Srinivas
> > > 
> > > John Antonakos <[EMAIL PROTECTED]> wrote:
> > > We have some drop down boxes in our jsp's which take
> > > data straight from the DB. Some of those data contain
> > > the character &. (eg John & me).
> > > We use a javascript array to store these data for internal
> > > use in the page. The struts format those data.
> > > When we use these data in a drop down (html select) appears
> > > as (John & me) which obviously does not look good.
> > > 
> > > Is there a way to avoid this from happening ?
> > > Can we say to the struts NOT to format the data coming from
> > > the java objects ?
> > > 
> > > John Antonakos
> > > Software Engineer 
> > > Information Systems Department
> > > MedNet International Ltd www.mni.gr
> > > Tel. (+30) 210 6232085
> > > Fax (+30) 210 6232026
> > > Email: [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > > 
> > > -
> > > Do you Yahoo!?
> > > Friends.  Fun. Try the all-new Yahoo! Messenger
> > 
> > 
> > 
> > -
> > 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: Strus Web Service Enablement

2004-06-03 Thread Marco Mistroni
Hi,
One question... why would you put parameters as query string?
Ideally what the client is sending is a SOAP request (or XML request),
so
The parameters are already embedded in the SOAP request.
Only thing that you need is to open a connection to struts URL, for
example
http://myhost:myport/myapp/LoginAction.do

in my case, 'coz my app was 'XML only' enabled, Axis was building an
SOAP message from what was written in the request. I was simply
extracting the
parameter that I needed.
What I would think is that in your request processor u do exactly the
same.
The ActionForm can be populated automatically via reflection.

Regards
marco



-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED] 
Sent: 03 June 2004 14:53
To: [EMAIL PROTECTED]
Subject: RE: Strus Web Service Enablement

>Also, I realized on the drive in that there's no need to put the
parameters 
>as a query string as I'm doing... I can just put the parsed parameters 
>directly into the request object as an attribute.  Since only the
second 
>pass of a Web Service request would know or care about that object, it
will 
>basically just remove some code and simplify things a bit.

Scratch that... It's still early in the morning for me, I wasn't
thinking 
clearly... I STILL can't add the parameters direclty to request, so yes,
I 
still have to construct the query string and do it that way.  My bad.

_
MSN Toolbar provides one-click access to Hotmail from any Web page -
FREE 
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/


-
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 can i avoid the use of & in a drop down box ?

2004-06-03 Thread John Antonakos
where should i put that ?
i never heard of it...

please give more info, where does it go ?
to struts-config.xml or somewhere else ?
In the Struts FormClass or inside the jsp tag ?

- Original Message - 
From: "Rouven Gehm" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 5:01 PM
Subject: Re: How can i avoid the use of & in a drop down box ?


Have you tried to set filter="false" ???


Rouven

- Original Message - 
From: "John Antonakos" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 3:40 PM
Subject: Re: How can i avoid the use of & in a drop down box ?


> I am re-writing the question cause the stupid Outlook formatted my text
> and made it without any meaning to it.
> -
> We have some drop down boxes in our jsp's which take
> data straight from the DB. Some of those data contain
> the character &. (eg John & me).
> We use a javascript array to store these data for internal
> use in the page. The struts format those data.
> When we use these data in a drop down (html select) appears
> as (John & me) which obviously does not look good.
> 
> Is there a way to avoid this from happening ?
> Can we say to the struts NOT to format the data coming from
> the java objects ?
> -
> i mean NOT to turn & to &, cause when it does it the drop down
> says: "John & me", which looks ridiculous, doesnt it ?
> 
> - Original Message - 
> From: "Kathy Zhou" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, June 03, 2004 4:26 PM
> Subject: RE: How can i avoid the use of & in a drop down box ?
> 
> 
> Have you tried to use & for &? just a thought.
> 
> Kathy
> 
> > -Original Message-
> > From: Srinivas Rao [SMTP:[EMAIL PROTECTED]
> > Sent: Thursday, June 03, 2004 8:07 AM
> > To: Struts Users Mailing List
> > Subject: Re: How can i avoid the use of & in a drop down box ?
> > 
> > Hi John,
> > It is possible but i am not sure it is working or not 
> > before inset into the database we will use Single quate( '  ' ) to store
> > the data, after u can access '&' symble from the database..
> >  
> > bye
> > Srinivas
> > 
> > John Antonakos <[EMAIL PROTECTED]> wrote:
> > We have some drop down boxes in our jsp's which take
> > data straight from the DB. Some of those data contain
> > the character &. (eg John & me).
> > We use a javascript array to store these data for internal
> > use in the page. The struts format those data.
> > When we use these data in a drop down (html select) appears
> > as (John & me) which obviously does not look good.
> > 
> > Is there a way to avoid this from happening ?
> > Can we say to the struts NOT to format the data coming from
> > the java objects ?
> > 
> > John Antonakos
> > Software Engineer 
> > Information Systems Department
> > MedNet International Ltd www.mni.gr
> > Tel. (+30) 210 6232085
> > Fax (+30) 210 6232026
> > Email: [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Friends.  Fun. Try the all-new Yahoo! Messenger
> 
> 
> 
> -
> 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 can i avoid the use of & in a drop down box ?

2004-06-03 Thread Rouven Gehm
Have you tried to set filter="false" ???


Rouven

- Original Message - 
From: "John Antonakos" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 3:40 PM
Subject: Re: How can i avoid the use of & in a drop down box ?


> I am re-writing the question cause the stupid Outlook formatted my text
> and made it without any meaning to it.
> -
> We have some drop down boxes in our jsp's which take
> data straight from the DB. Some of those data contain
> the character &. (eg John & me).
> We use a javascript array to store these data for internal
> use in the page. The struts format those data.
> When we use these data in a drop down (html select) appears
> as (John & me) which obviously does not look good.
> 
> Is there a way to avoid this from happening ?
> Can we say to the struts NOT to format the data coming from
> the java objects ?
> -
> i mean NOT to turn & to &, cause when it does it the drop down
> says: "John & me", which looks ridiculous, doesnt it ?
> 
> - Original Message - 
> From: "Kathy Zhou" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, June 03, 2004 4:26 PM
> Subject: RE: How can i avoid the use of & in a drop down box ?
> 
> 
> Have you tried to use & for &? just a thought.
> 
> Kathy
> 
> > -Original Message-
> > From: Srinivas Rao [SMTP:[EMAIL PROTECTED]
> > Sent: Thursday, June 03, 2004 8:07 AM
> > To: Struts Users Mailing List
> > Subject: Re: How can i avoid the use of & in a drop down box ?
> > 
> > Hi John,
> > It is possible but i am not sure it is working or not 
> > before inset into the database we will use Single quate( '  ' ) to store
> > the data, after u can access '&' symble from the database..
> >  
> > bye
> > Srinivas
> > 
> > John Antonakos <[EMAIL PROTECTED]> wrote:
> > We have some drop down boxes in our jsp's which take
> > data straight from the DB. Some of those data contain
> > the character &. (eg John & me).
> > We use a javascript array to store these data for internal
> > use in the page. The struts format those data.
> > When we use these data in a drop down (html select) appears
> > as (John & me) which obviously does not look good.
> > 
> > Is there a way to avoid this from happening ?
> > Can we say to the struts NOT to format the data coming from
> > the java objects ?
> > 
> > John Antonakos
> > Software Engineer 
> > Information Systems Department
> > MedNet International Ltd www.mni.gr
> > Tel. (+30) 210 6232085
> > Fax (+30) 210 6232026
> > Email: [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Friends.  Fun. Try the all-new Yahoo! Messenger
> 
> 
> 
> -
> 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: Strus Web Service Enablement

2004-06-03 Thread Marco Mistroni
Hi, nges entirely here.

>At this point my belief is that probably the best way to handle this is
to 
>have an element added to the Action mappings in Struts-Config.xml that 
>specifies the target JSP for a Web Service request.  The default woudl
be 
>the "generic" template I put together, although a bit more flexible as
time 
>goes on.  But, the point is that you could then define an XML template
in 
>essence for every Action you wanted to expose as a service.  That would

>allow for things I probably can't do automatically.  I'd also write a
>taglib 
>to make life easier (although I might not have to... the current Struts

>taglibs might be more than sufficient on their own).

Exactly! Actually...not sure about the template, but when u go via
WS (webservices) all the client is interested is in getting back XML...
The XML generated by you action class as a response...

See, in some way what need to be handled is:
- action form in the response must be written in XML
- this XML must be written..either in a JSP or in the response (in both
cases what the user will receive is a SOAP message


so, we will end up at same point: unless you return raw XML from the
action
class, something will need to wrap the ActionForm for the response and
produce XML out of it.
A JSP/JSP tag can do that (and you will need only one page for all
action classes, since that JSP will be in charge of taking the
ActionForm from
Request and make a SOAP response out of it).

This will solve half of the problems :-(, because:
How can a JSP extract automatically the Form associated with the
request? 
More brainstorming :-)


>What is AOP by the way?  Millions of acronyms out there, I know
thousands >of 
>them, but not that one :)

Aspect Oriented Programming ...give it a check... u can add dynamic
behaviour at run time... it came across my mind because you would want
to
Do some processing (when u are calling Action via XML) before the
execute() method of an Action returns... 

Regards
marco



Thanks very much for the feedback!

Frank

>From: "Marco Mistroni" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Strus Web Service Enablement
>Date: Thu, 3 Jun 2004 14:25:47 +0100
>
>Hi,
>   Well, main issue here is that if you want everything to be
>transparent
>To the user (including the forward) then whole stuff has to be done so
>that
>Something 'intercepts' the response when XML is contained in it (if I
>can explain myself correctly)
>
>In other way, to do same steps that you have already done with
>RequestProcessor
>Not being familiar with struts internal (other than action &actionform)
>I can't really say where to modify things...
>
>Another way would be, for each CustomAction written, write an
>CustomActionXml that extends CustomAction. This CustomActionXml will
>Be invoked whenever the path is for CustomAction AND the request is in
>XML. The logic will be done in the original CustomAction, difference
>being in the fact that CustomActionXml instead of redirecting to the
>'original' forward of CustomAction, writes the response to outputWriter
>But this gets cumbersome..
>
>I would go for doing with response exactly what u r doing with
request..
>Though right now I have no clue on how to do it...maybe u or some
struts
>expert which knows inner logic of struts knows?
>
>Will AOP help in any way here?
>
>
>Regards
>   marco
>
>
>
>
>Extends
>
>-Original Message-
>From: Frank Zammetti [mailto:[EMAIL PROTECTED]
>Sent: 03 June 2004 13:33
>To: [EMAIL PROTECTED]
>Subject: RE: Strus Web Service Enablement
>
>I have to be honest and say I've never used a filter except for one
>situation to do security on the input side, a very basic application.
>How
>would you envision it being used for the output?
>
>
> >From: "Marco Mistroni" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> >Subject: RE: Strus Web Service Enablement
> >Date: Thu, 3 Jun 2004 10:15:43 +0100
> >
> >Hi,
> > My 2 cents I think that is a great idea
> >
> >Do u think that using a filter for the response will help?
> >
> >Last year I did something similar (wrote a Struts-based webapp
> >That I was talking to using J2ME and KSOAP..but all I was able
> >To do was to extend existing action and dump the generated XML
> >Into the response.getWriter().write()... I was using axis btw for
> >XML stuff on the serverside)
> >
> >Regards
> > marco
> >
> >
> >
> >-Original Message-
> >From: Frank Zammetti [mailto:[EMAIL PROTECTED]
> >Sent: 02 June 2004 21:29
> >To: [EMAIL PROTECTED]
> >Subject: RFC: Strus Web Service Enablement
> >
> >Hello all... I wanted to post this here and get any comments that
>people
> >had
> >so I could decide where to go with it...
> >
> >For the past two days I've been working on a mechanism that would
allow
> >you
> >to expose existing Str

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
Also, I realized on the drive in that there's no need to put the parameters 
as a query string as I'm doing... I can just put the parsed parameters 
directly into the request object as an attribute.  Since only the second 
pass of a Web Service request would know or care about that object, it will 
basically just remove some code and simplify things a bit.
Scratch that... It's still early in the morning for me, I wasn't thinking 
clearly... I STILL can't add the parameters direclty to request, so yes, I 
still have to construct the query string and do it that way.  My bad.

_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/

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


RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Marco Mistroni
Hi there,
Jedit+xdoclet+mysql+junit+dbunit+maven

And u would write code, generate what u need, test it and deploy
It with one click..

IDE r powerful, no doubt on that, but I prefer plain old notepad..
If u end up getting acquainted with a powerful IDE, then as soon
As u change it u get lost

My 2 cents

Regards
marco




-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED] 
Sent: 03 June 2004 06:12
To: Struts Users Mailing List
Subject: [OT] Good env for struts-based-web-tier and ejb components
development

Hi List,

I am about to start development work on some auction site which in
principle
is similar to e-bay but not of that scale. I will be using J2EE+Jboss.

What kind of IDE development environment do you guys use for the
development?

I just tried Eclipse + EasyStruts + Lomboz. Lomboz is good but not good
enough.

1. I still have to carefully edit ejb-jar and jboss files to make my
things
run.
2. The directory structure that it creates in the background is not
good.
3. The xdoclet tags that it generates is for all servers. e.g JOnAs
jboss,
weblogic. but i need for only jboss.
4. The build files that it generates are bit obscure.

Easy Struts is just OK and doesn't provide much time saving to me. I can
live without it also. Moreover, EasyStruts doesn't work with Eclipse
3.0.

In nutshell, the entire development environment becomes unorganized, if
not
complex.

I wish to know what kinda env do you use? How do streamline your
development
process?

TIA
Navjot Singh


-
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] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread James Holmes
Yes, Struts Console will plug into MyEclipse as well as IBM WebSphere Studio
Application Developer.

-James
http://www.jamesholmes.com/struts/

-Original Message-
From: Kathy Zhou [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004 8:36 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Good env for struts-based-web-tier and ejb components
development

Could I plug Struts Console into MyEclipse? Thanks.

Kathy

-Original Message-
From:   James Holmes [SMTP:[EMAIL PROTECTED]
Sent:   Thursday, June 03, 2004 7:04 AM
To: 'Struts Users Mailing List'
Subject:RE: [OT] Good env for struts-based-web-tier and ejb
components development

Navjot,

Eclipse + MyEclipse is a great setup and I can highly recommend it.  If
you're looking for an alternative to EasyStruts, you may want to look into
Struts Console.  Struts Console plugs nicely into Eclipse 3.0 and provides
support for Struts, Tiles and Validator configuration files as well JSP Tag
Library files.

http://www.jamesholmes.com/struts/

Hope that helps,

James

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004 12:12 AM
To: Struts Users Mailing List
Subject: [OT] Good env for struts-based-web-tier and ejb components
development

Hi List,

I am about to start development work on some auction site which in principle
is similar to e-bay but not of that scale. I will be using J2EE+Jboss.

What kind of IDE development environment do you guys use for the
development?

I just tried Eclipse + EasyStruts + Lomboz. Lomboz is good but not good
enough.

1. I still have to carefully edit ejb-jar and jboss files to make my things
run.
2. The directory structure that it creates in the background is not good.
3. The xdoclet tags that it generates is for all servers. e.g JOnAs jboss,
weblogic. but i need for only jboss.
4. The build files that it generates are bit obscure.

Easy Struts is just OK and doesn't provide much time saving to me. I can
live without it also. Moreover, EasyStruts doesn't work with Eclipse 3.0.

In nutshell, the entire development environment becomes unorganized, if not
complex.

I wish to know what kinda env do you use? How do streamline your development
process?

TIA
Navjot Singh


-
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: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
Ah, I see.  I'm not familiar enough with filters, but I had always thought 
they were on the input side only.  If that belief is wrong, then it 
certainly becomes an option.

I think at some point to make this really worth anything I'll have to break 
my "transparency rule" to some extent.  I do like the idea of generating the 
output with a JSP because it's just so easy!  A little bit of background... 
I actually implemented this same thing in a custom framework we were 
previously using in-house.  In that application I actually do write out the 
output in servlets, there is never a forward to a JSP or anything else 
typically in the "view" layer.  This works just fine, but when I started 
doing it in Struts it ocurred to me that I could really simplify things by 
not taking that approach and instead let the actual XML generation be done 
in a JSP.  That also removed the one change that was required under the old 
framework: you did have to add two function calls to the controller servlets 
that were exposed as services.  Not a big change, but I wanted to avoid code 
changes entirely here.

At this point my belief is that probably the best way to handle this is to 
have an element added to the Action mappings in Struts-Config.xml that 
specifies the target JSP for a Web Service request.  The default woudl be 
the "generic" template I put together, although a bit more flexible as time 
goes on.  But, the point is that you could then define an XML template in 
essence for every Action you wanted to expose as a service.  That would 
allow for things I probably can't do automatically.  I'd also write a taglib 
to make life easier (although I might not have to... the current Struts 
taglibs might be more than sufficient on their own).

That would of course require a change to the DTD for Struts-Config.xml, so 
in the mean time what I think I'm going to do is add an optional config file 
thatwould be parsed via a plug-in at app startup that would contain these 
extra mappings.  Fairly trivial exercise, and it leaves it completely 
optional, no changes to Struts required.

Also, I realized on the drive in that there's no need to put the parameters 
as a query string as I'm doing... I can just put the parsed parameters 
directly into the request object as an attribute.  Since only the second 
pass of a Web Service request would know or care about that object, it will 
basically just remove some code and simplify things a bit.

I'm hoping to get these thnigs done today and release a .02 package before I 
leave work today (it's nice when your development server is down and you 
can't do any real work until the techs rebuild it!)... I also hope to remove 
the required actionMappingPath element in the XML request... I haven't found 
a way to get at the requested pat information in RequestProcessor yet, but 
it seems like something that should be available at that point, so I 
probably just have to do some digging.

What is AOP by the way?  Millions of acronyms out there, I know thousands of 
them, but not that one :)

Thanks very much for the feedback!
Frank
From: "Marco Mistroni" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: Strus Web Service Enablement
Date: Thu, 3 Jun 2004 14:25:47 +0100
Hi,
Well, main issue here is that if you want everything to be
transparent
To the user (including the forward) then whole stuff has to be done so
that
Something 'intercepts' the response when XML is contained in it (if I
can explain myself correctly)
In other way, to do same steps that you have already done with
RequestProcessor
Not being familiar with struts internal (other than action &actionform)
I can't really say where to modify things...
Another way would be, for each CustomAction written, write an
CustomActionXml that extends CustomAction. This CustomActionXml will
Be invoked whenever the path is for CustomAction AND the request is in
XML. The logic will be done in the original CustomAction, difference
being in the fact that CustomActionXml instead of redirecting to the
'original' forward of CustomAction, writes the response to outputWriter
But this gets cumbersome..
I would go for doing with response exactly what u r doing with request..
Though right now I have no clue on how to do it...maybe u or some struts
expert which knows inner logic of struts knows?
Will AOP help in any way here?
Regards
marco

Extends
-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED]
Sent: 03 June 2004 13:33
To: [EMAIL PROTECTED]
Subject: RE: Strus Web Service Enablement
I have to be honest and say I've never used a filter except for one
situation to do security on the input side, a very basic application.
How
would you envision it being used for the output?
>From: "Marco Mistroni" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]

Re: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread John Antonakos
I am re-writing the question cause the stupid Outlook formatted my text
and made it without any meaning to it.
-
We have some drop down boxes in our jsp's which take
data straight from the DB. Some of those data contain
the character &. (eg John & me).
We use a javascript array to store these data for internal
use in the page. The struts format those data.
When we use these data in a drop down (html select) appears
as (John & me) which obviously does not look good.

Is there a way to avoid this from happening ?
Can we say to the struts NOT to format the data coming from
the java objects ?
-
i mean NOT to turn & to &, cause when it does it the drop down
says: "John & me", which looks ridiculous, doesnt it ?

- Original Message - 
From: "Kathy Zhou" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 4:26 PM
Subject: RE: How can i avoid the use of & in a drop down box ?


Have you tried to use & for &? just a thought.

Kathy

> -Original Message-
> From: Srinivas Rao [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, June 03, 2004 8:07 AM
> To: Struts Users Mailing List
> Subject: Re: How can i avoid the use of & in a drop down box ?
> 
> Hi John,
> It is possible but i am not sure it is working or not 
> before inset into the database we will use Single quate( '  ' ) to store
> the data, after u can access '&' symble from the database..
>  
> bye
> Srinivas
> 
> John Antonakos <[EMAIL PROTECTED]> wrote:
> We have some drop down boxes in our jsp's which take
> data straight from the DB. Some of those data contain
> the character &. (eg John & me).
> We use a javascript array to store these data for internal
> use in the page. The struts format those data.
> When we use these data in a drop down (html select) appears
> as (John & me) which obviously does not look good.
> 
> Is there a way to avoid this from happening ?
> Can we say to the struts NOT to format the data coming from
> the java objects ?
> 
> John Antonakos
> Software Engineer 
> Information Systems Department
> MedNet International Ltd www.mni.gr
> Tel. (+30) 210 6232085
> Fax (+30) 210 6232026
> Email: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> Do you Yahoo!?
> Friends.  Fun. Try the all-new Yahoo! Messenger



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



RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Kathy Zhou
Could I plug Struts Console into MyEclipse? Thanks.

Kathy

-Original Message-
From:   James Holmes [SMTP:[EMAIL PROTECTED]
Sent:   Thursday, June 03, 2004 7:04 AM
To: 'Struts Users Mailing List'
Subject:RE: [OT] Good env for struts-based-web-tier and ejb components 
development

Navjot,

Eclipse + MyEclipse is a great setup and I can highly recommend it.  If
you're looking for an alternative to EasyStruts, you may want to look into
Struts Console.  Struts Console plugs nicely into Eclipse 3.0 and provides
support for Struts, Tiles and Validator configuration files as well JSP Tag
Library files.

http://www.jamesholmes.com/struts/

Hope that helps,

James

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004 12:12 AM
To: Struts Users Mailing List
Subject: [OT] Good env for struts-based-web-tier and ejb components
development

Hi List,

I am about to start development work on some auction site which in principle
is similar to e-bay but not of that scale. I will be using J2EE+Jboss.

What kind of IDE development environment do you guys use for the
development?

I just tried Eclipse + EasyStruts + Lomboz. Lomboz is good but not good
enough.

1. I still have to carefully edit ejb-jar and jboss files to make my things
run.
2. The directory structure that it creates in the background is not good.
3. The xdoclet tags that it generates is for all servers. e.g JOnAs jboss,
weblogic. but i need for only jboss.
4. The build files that it generates are bit obscure.

Easy Struts is just OK and doesn't provide much time saving to me. I can
live without it also. Moreover, EasyStruts doesn't work with Eclipse 3.0.

In nutshell, the entire development environment becomes unorganized, if not
complex.

I wish to know what kinda env do you use? How do streamline your development
process?

TIA
Navjot Singh


-
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 can i avoid the use of & in a drop down box ?

2004-06-03 Thread Kathy Zhou
Have you tried to use & for &? just a thought.

Kathy

-Original Message-
From:   Srinivas Rao [SMTP:[EMAIL PROTECTED]
Sent:   Thursday, June 03, 2004 8:07 AM
To: Struts Users Mailing List
Subject:Re: How can i avoid the use of & in a drop down box ?

Hi John,
It is possible but i am not sure it is working or not 
before inset into the database we will use Single quate( '  ' ) to store the data, 
after u can access '&' symble from the database..
 
bye
Srinivas

John Antonakos <[EMAIL PROTECTED]> wrote:
We have some drop down boxes in our jsp's which take
data straight from the DB. Some of those data contain
the character &. (eg John & me).
We use a javascript array to store these data for internal
use in the page. The struts format those data.
When we use these data in a drop down (html select) appears
as (John & me) which obviously does not look good.

Is there a way to avoid this from happening ?
Can we say to the struts NOT to format the data coming from
the java objects ?

John Antonakos
Software Engineer 
Information Systems Department
MedNet International Ltd www.mni.gr
Tel. (+30) 210 6232085
Fax (+30) 210 6232026
Email: [EMAIL PROTECTED]




-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger


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



RE: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread Kathy Zhou
Have you tried to use & for &? just a thought.

Kathy

> -Original Message-
> From: Srinivas Rao [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, June 03, 2004 8:07 AM
> To:   Struts Users Mailing List
> Subject:  Re: How can i avoid the use of & in a drop down box ?
> 
> Hi John,
> It is possible but i am not sure it is working or not 
> before inset into the database we will use Single quate( '  ' ) to store
> the data, after u can access '&' symble from the database..
>  
> bye
> Srinivas
> 
> John Antonakos <[EMAIL PROTECTED]> wrote:
> We have some drop down boxes in our jsp's which take
> data straight from the DB. Some of those data contain
> the character &. (eg John & me).
> We use a javascript array to store these data for internal
> use in the page. The struts format those data.
> When we use these data in a drop down (html select) appears
> as (John & me) which obviously does not look good.
> 
> Is there a way to avoid this from happening ?
> Can we say to the struts NOT to format the data coming from
> the java objects ?
> 
> John Antonakos
> Software Engineer 
> Information Systems Department
> MedNet International Ltd www.mni.gr
> Tel. (+30) 210 6232085
> Fax (+30) 210 6232026
> Email: [EMAIL PROTECTED]
> 
> 
> 
>   
> -
> Do you Yahoo!?
> Friends.  Fun. Try the all-new Yahoo! Messenger


RE: Strus Web Service Enablement

2004-06-03 Thread Marco Mistroni
Hi,
Well, main issue here is that if you want everything to be
transparent
To the user (including the forward) then whole stuff has to be done so
that
Something 'intercepts' the response when XML is contained in it (if I
can explain myself correctly)

In other way, to do same steps that you have already done with 
RequestProcessor
Not being familiar with struts internal (other than action &actionform)
I can't really say where to modify things...

Another way would be, for each CustomAction written, write an
CustomActionXml that extends CustomAction. This CustomActionXml will
Be invoked whenever the path is for CustomAction AND the request is in
XML. The logic will be done in the original CustomAction, difference
being in the fact that CustomActionXml instead of redirecting to the
'original' forward of CustomAction, writes the response to outputWriter
But this gets cumbersome..

I would go for doing with response exactly what u r doing with request..
Though right now I have no clue on how to do it...maybe u or some struts
expert which knows inner logic of struts knows?

Will AOP help in any way here?


Regards
marco




Extends 

-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED] 
Sent: 03 June 2004 13:33
To: [EMAIL PROTECTED]
Subject: RE: Strus Web Service Enablement

I have to be honest and say I've never used a filter except for one 
situation to do security on the input side, a very basic application.
How 
would you envision it being used for the output?


>From: "Marco Mistroni" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Strus Web Service Enablement
>Date: Thu, 3 Jun 2004 10:15:43 +0100
>
>Hi,
>   My 2 cents I think that is a great idea
>
>Do u think that using a filter for the response will help?
>
>Last year I did something similar (wrote a Struts-based webapp
>That I was talking to using J2ME and KSOAP..but all I was able
>To do was to extend existing action and dump the generated XML
>Into the response.getWriter().write()... I was using axis btw for
>XML stuff on the serverside)
>
>Regards
>   marco
>
>
>
>-Original Message-
>From: Frank Zammetti [mailto:[EMAIL PROTECTED]
>Sent: 02 June 2004 21:29
>To: [EMAIL PROTECTED]
>Subject: RFC: Strus Web Service Enablement
>
>Hello all... I wanted to post this here and get any comments that
people
>had
>so I could decide where to go with it...
>
>For the past two days I've been working on a mechanism that would allow
>you
>to expose existing Struts-based business logic as Web Services without
>changing any existing code.  What I offer here is a first approximation
>of
>that idea.
>
>If you might be interested in this, you can download the first
iteration
>of
>the project at http://www.omnytex.com/wst.zip
>
>This archive is a sample webapp in exploded format.  Just unzip it to
>your
>webapps directory of your chosen app server and you should be good to
>go.
>I've only tried it on Tomcat however, so anything else is unknown.
>
>In a nutshell, what I've done is written a custom subclass of
>RequestProcessor.  This version will recognize a SOAP-based Web Service
>request, "unroll" the request, and hand it off to a specified Action.
>As
>far as the Action is concerned, it looks just like a regular HTTP form
>submission, so it processes same as before.  Note that the request is
>forwarded back through ActionServlet, so anything you do should still
>work.
>The RequestProcessor then overrides the destination ActionForward that
>the
>Action returns, and instead sends it to a special JSP, which renders
the
>
>response XML.  The response type is set properly, and the generated XML
>is
>returned.  The XML it generates simply dumps all members of the
>ActionForm,
>so it's not very smart right now, but as I said, this is a first
>approximation of the idea.
>
>So, in the end, you should be able to expose any existing Actions as
Web
>
>Services without changing them.  Everything you need is included,
except
>for
>a JDK, but I assume you have that already (!), including a dirt-simple
>test
>client.  It's not a true SOAP client, but it gets the job done.
>
>Once you unzip the archive, I suggest reading the readme.txt file in
the
>
>/source directory.  This goes into a bit more detail on everything, as
>well
>as explaining how to use this in your own application.  I should also
>note
>that this RequestProcessor is transparent to non-Web Service requests,
>i.e.,
>you can use it in your existing apps without changing anything whether
>you
>expose anything as a service or not.
>
>I thank anyone in advance that checks this out.  Please send me any
>comments
>or suggestions you may have either to [EMAIL PROTECTED] or just
post
>
>them here.
>
>My hope is that given some time to refine this it will be tight enough
>and
>useful enough that maybe I can present it to the developer list for
>possible
>inclusion in the bas

Re: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Martin Gainty
Not at all-
I have worked in so many shops where something minor would popup like jsp
wouldnt compile and the developer hadnt a clue
what was going on
Quite frankly (no pun intended) the developer should have vi and a shell
if the application does not build and deploy properly in the shell
then there isn't any IDE that is going to help
+1
-Martin
- Original Message - 
From: "Frank Zammetti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 8:30 AM
Subject: RE: [OT] Good env for struts-based-web-tier and ejb components
development


> I'm going to pull a Bill Gates here...
>
> "UltraEdit and a command prompt should be enough for anybody!"
>
> Seriously though... I know many people swear by this IDE or that IDE, but
> I've done a large number of projects ranging from small ones to huge ones,
> and each and every one was done with nothing more than a top-notch text
> editor.  And I've found that as compared to those members of the team that
> used one IDE or another, even when those members pretty much knew the
> technologies involved better than me, I worked just as fast or faster than
> them.
>
> Maybe I'm a freak of nature or something, but I prefer to believe there's
> simply less getting in the way when I work.  Less between me and the metal
> if you will :)  Besides, I'm in complete control of what's going on below
me
> in this scenario.  No forced directory structures, no canned code that I
> have to take time to understand, no arcane error messages to decypher when
> the IDE decides it can't compile my code for one reason or another.
>
> I think except for a good debugger, IDE's tend to get in the way more than
> they help, that's been my experience anyway.  And when you consider that
> most of what you do as a programmer comes down to text editing anyway...
>
>
> >From: "Navjot Singh" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: [OT] Good env for struts-based-web-tier and ejb components
> >development
> >Date: Thu, 3 Jun 2004 10:41:30 +0530
> >
> >Hi List,
> >
> >I am about to start development work on some auction site which in
> >principle
> >is similar to e-bay but not of that scale. I will be using J2EE+Jboss.
> >
> >What kind of IDE development environment do you guys use for the
> >development?
> >
> >I just tried Eclipse + EasyStruts + Lomboz. Lomboz is good but not good
> >enough.
> >
> >1. I still have to carefully edit ejb-jar and jboss files to make my
things
> >run.
> >2. The directory structure that it creates in the background is not good.
> >3. The xdoclet tags that it generates is for all servers. e.g JOnAs
jboss,
> >weblogic. but i need for only jboss.
> >4. The build files that it generates are bit obscure.
> >
> >Easy Struts is just OK and doesn't provide much time saving to me. I can
> >live without it also. Moreover, EasyStruts doesn't work with Eclipse 3.0.
> >
> >In nutshell, the entire development environment becomes unorganized, if
not
> >complex.
> >
> >I wish to know what kinda env do you use? How do streamline your
> >development
> >process?
> >
> >TIA
> >Navjot Singh
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> MSN Toolbar provides one-click access to Hotmail from any Web page - FREE
> download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/
>
>
> -
> 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: Default methodName for DispatchAction

2004-06-03 Thread Ron Grabowski
I get the digest so I don't know if this thread has
completely died. Most (all?) of my Struts 1.1 Actions
use a variation of this base class:

public abstract class BaseLookupDispatchAction extends
LookupDispatchAction {

protected Map getKeyMethodMap() {
return null;
}

public ActionForward execute(
... 
String actionParameter =
request.getParameter(mapping.getParameter());

// test to see if there is a "action=" in the request
if (actionParameter != null) {
// execute the appropriate method
return super.execute(mapping, form, request,
response);
} else {
// execute the default method 
return unspecified(mapping, form, request, response);
}
}

public ActionForward unspecified(
...
throw new Exception("Default action 'unspecified' not
implemented.");
}
}




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Mark Lowe
+1
On 3 Jun 2004, at 14:30, Frank Zammetti wrote:
I'm going to pull a Bill Gates here...
"UltraEdit and a command prompt should be enough for anybody!"
Seriously though... I know many people swear by this IDE or that IDE, 
but I've done a large number of projects ranging from small ones to 
huge ones, and each and every one was done with nothing more than a 
top-notch text editor.  And I've found that as compared to those 
members of the team that used one IDE or another, even when those 
members pretty much knew the technologies involved better than me, I 
worked just as fast or faster than them.

Maybe I'm a freak of nature or something, but I prefer to believe 
there's simply less getting in the way when I work.  Less between me 
and the metal if you will :)  Besides, I'm in complete control of 
what's going on below me in this scenario.  No forced directory 
structures, no canned code that I have to take time to understand, no 
arcane error messages to decypher when the IDE decides it can't 
compile my code for one reason or another.

I think except for a good debugger, IDE's tend to get in the way more 
than they help, that's been my experience anyway.  And when you 
consider that most of what you do as a programmer comes down to text 
editing anyway...


From: "Navjot Singh" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: [OT] Good env for struts-based-web-tier and ejb components 
development
Date: Thu, 3 Jun 2004 10:41:30 +0530

Hi List,
I am about to start development work on some auction site which in 
principle
is similar to e-bay but not of that scale. I will be using J2EE+Jboss.

What kind of IDE development environment do you guys use for the
development?
I just tried Eclipse + EasyStruts + Lomboz. Lomboz is good but not 
good
enough.

1. I still have to carefully edit ejb-jar and jboss files to make my 
things
run.
2. The directory structure that it creates in the background is not 
good.
3. The xdoclet tags that it generates is for all servers. e.g JOnAs 
jboss,
weblogic. but i need for only jboss.
4. The build files that it generates are bit obscure.

Easy Struts is just OK and doesn't provide much time saving to me. I 
can
live without it also. Moreover, EasyStruts doesn't work with Eclipse 
3.0.

In nutshell, the entire development environment becomes unorganized, 
if not
complex.

I wish to know what kinda env do you use? How do streamline your 
development
process?

TIA
Navjot Singh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Toolbar provides one-click access to Hotmail from any Web page – 
FREE download! 
http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/

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


URL regd Servlet filter

2004-06-03 Thread Shilpa Vaidya

hey amit,
the url is -
http://prdownloads.sourceforge.net/securityfilter/securityfilter-1.0.1.z
We really need sound help. I have less time.Also in the book struts in
action they mention filtering.
How wud i start making my own servlet filter.expersts pls advice.
Regd.
shilpa


ip?download
-Original Message-
From: Shilpa Vaidya [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 6:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Servlet filter


Thanks brati,
r u writing a servlet filter .
how did u approach it.
can u show me a starting point.
shilpa
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Thursday, June 03, 2004 5:59 PM
  To: Struts Users Mailing List
  Cc: 'Struts Users Mailing List'
  Subject: Re: Servlet filter



  Shilpa,
  We are doing just that. A filter comes into effect before the control goes
to the servlet. So if you can stop the user at the filter level you are
actually saving some processing. We are checking for the presence of session
in the filter.

  Brati Sankar Ghosh
  Tata Consultancy Services
  Mailto: [EMAIL PROTECTED]
  Website: http://www.tcs.com


"Shilpa Vaidya" <[EMAIL PROTECTED]>
06/03/2004 03:41 PM
  Please respond to
  "Struts Users Mailing List" <[EMAIL PROTECTED]>


   To "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
  cc
  Subject Servlet filter







  hey all,
  Preventing users from accesing action. I am writing a web app to manage
  administrators and profiles.
  Administrators may access to the web app based on the profiles they have.
  The profiles, determine which pages the administrator might access. The
  profiles, and authorizations, might change online during work, so I need
to
  check authorization to access a page (Action) on each access.If I
understand
  correct, then, the actionServlet, first process the form bean, and then
the
  action..
  But, if the user is not authorized to access a specific page (Action), I
  need to forward him to an UnAuthorized error page, before thr formAction
  bean is filled.
  I would like to use a servlet filter. This filter checks the users rights
  and instanciates a HttpServletRequest-Wrapper.But am not sure how - .Can
  anyone help.Till then me trying to study the ServletFilter examples here n
  there.
  Shilpa





  --


  "This e-mail message may contain confidential, proprietary or legally
privileged information. It
  should not be used by anyone who is not the original intended recipient.
If you have erroneously
  received this message, please delete it immediately and notify the sender.
The recipient
  acknowledges that ICICI Bank or its subsidiaries and associated companies,
(collectively "ICICI
  Group"), are unable to exercise control or ensure or guarantee the
integrity of/over the contents of the information contained in e-mail
transmissions and further acknowledges that any views
  expressed in this message are those of the individual sender and no
binding nature of the message shall be implied or assumed unless the sender
does so expressly with due authority of ICICI Group.Before opening any
attachments please check them for viruses and defects."



  ForwardSourceID:NTA91E
--


"This e-mail message may contain confidential, proprietary or legally
privileged information. It
should not be used by anyone who is not the original intended recipient. If
you have erroneously
received this message, please delete it immediately and notify the sender.
The recipient
acknowledges that ICICI Bank or its subsidiaries and associated companies,
(collectively "ICICI
Group"), are unable to exercise control or ensure or guarantee the integrity
of/over the contents of the information contained in e-mail transmissions
and further acknowledges that any views
expressed in this message are those of the individual sender and no binding
nature of the message shall be implied or assumed unless the sender does so
expressly with due authority of ICICI Group.Before opening any attachments
please check them for viruses and defects."



-- 


"This e-mail message may contain confidential, proprietary or legally privileged 
information. It 
should not be used by anyone who is not the original intended recipient. If you have 
erroneously 
received this message, please delete it immediately and notify the sender. The 
recipient 
acknowledges that ICICI Bank or its subsidiaries and associated companies,  
(collectively "ICICI 
Group"), are unable to exercise control or ensure or guarantee the integrity of/over 
the contents of the information contained in e-mail transmissions and further 
acknowledges that any views 
expressed in this message are those of the individual sender and no binding nature of 
the message shall be implied or assumed unless the sender does so expressly with due 
authority of ICICI Group.Before opening any attachments please check them for viruses 
and defects." 


-- 


"This e-mail m

RE: Servlet filter

2004-06-03 Thread brati . sankarghosh

A filter will only work with servlet
containers implementing servlet specifications 2.3.
We have a general filter which is extended
by other filters doing various actions like xml processing,session validations
and security logic.
Here is the generic filter code.

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;
import javax.servlet.ServletException;
import pims.util.Logger;

public class PimsGenericFilter implements
Filter
{
  private FilterConfig filterConfig;

  public void init(FilterConfig
config)
  {
    filterConfig = config;
  
  }
  public FilterConfig getFilterConfig()
  {
    return filterConfig;
  }

  public void setFilterConfig(FilterConfig
filterconfig)
  {
    filterConfig = filterconfig;
  }
  public void doFilter(final ServletRequest
request,final ServletResponse response, FilterChain chain)
        throws IOException,
ServletException    
  {        
    chain.doFilter(request,response);

 }
  public void destroy() 
  { 
     filterConfig = null;

  } 

}

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





"Shilpa Vaidya"
<[EMAIL PROTECTED]> 
06/03/2004 06:06 PM




Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
"'Struts Users Mailing
List'" <[EMAIL PROTECTED]>


cc



Subject
RE: Servlet filter








Thanks brati,
r u writing a servlet filter .
how did u approach it.
can u show me a starting point.
shilpa
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Thursday, June 03, 2004 5:59 PM
  To: Struts Users Mailing List
  Cc: 'Struts Users Mailing List'
  Subject: Re: Servlet filter



  Shilpa,
  We are doing just that. A filter comes into effect before the control
goes
to the servlet. So if you can stop the user at the filter level you are
actually saving some processing. We are checking for the presence of session
in the filter.

  Brati Sankar Ghosh
  Tata Consultancy Services
  Mailto: [EMAIL PROTECTED]
  Website: http://www.tcs.com


        "Shilpa Vaidya" <[EMAIL PROTECTED]>
        06/03/2004 03:41 PM
              Please respond to
              "Struts Users Mailing
List" <[EMAIL PROTECTED]>


       To "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
              cc
              Subject Servlet filter







  hey all,
  Preventing users from accesing action. I am writing a web app to
manage
  administrators and profiles.
  Administrators may access to the web app based on the profiles they
have.
  The profiles, determine which pages the administrator might access.
The
  profiles, and authorizations, might change online during work, so
I need
to
  check authorization to access a page (Action) on each access.If
I
understand
  correct, then, the actionServlet, first process the form bean, and
then
the
  action..
  But, if the user is not authorized to access a specific page (Action),
I
  need to forward him to an UnAuthorized error page, before thr formAction
  bean is filled.
  I would like to use a servlet filter. This filter checks the users
rights
  and instanciates a HttpServletRequest-Wrapper.But am not sure how
- .Can
  anyone help.Till then me trying to study the ServletFilter examples
here n
  there.
  Shilpa





  --


  "This e-mail message may contain confidential, proprietary
or legally
privileged information. It
  should not be used by anyone who is not the original intended recipient.
If you have erroneously
  received this message, please delete it immediately and notify the
sender.
The recipient
  acknowledges that ICICI Bank or its subsidiaries and associated
companies,
(collectively "ICICI
  Group"), are unable to exercise control or ensure or guarantee
the
integrity of/over the contents of the information contained in e-mail
transmissions and further acknowledges that any views
  expressed in this message are those of the individual sender and
no
binding nature of the message shall be implied or assumed unless the sender
does so expressly with due authority of ICICI Group.Before opening any
attachments please check them for viruses and defects."



  ForwardSourceID:NTA91E
-- 


"This e-mail message may contain confidential, proprietary or legally
privileged information. It 
should not be used by anyone who is not the original intended recipient.
If you have erroneously 
received this message, please delete it immediately and notify the sender.
The recipient 
acknowledges that ICICI Bank or its subsidiaries and associated companies,
 (collectively "ICICI 
Group"), are unable to exercise control or ensure or guarantee the
integrity of/over the contents of the information contained in e-mail transmissions
and further acknowledges that any views 
expressed in this message are those of the individual sender and no binding
nature of the message shall be implied or assumed unless the sende

RE: Servlet filter

2004-06-03 Thread Shilpa Vaidya
Thanks brati,
r u writing a servlet filter .
how did u approach it.
can u show me a starting point.
shilpa
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Thursday, June 03, 2004 5:59 PM
  To: Struts Users Mailing List
  Cc: 'Struts Users Mailing List'
  Subject: Re: Servlet filter



  Shilpa,
  We are doing just that. A filter comes into effect before the control goes
to the servlet. So if you can stop the user at the filter level you are
actually saving some processing. We are checking for the presence of session
in the filter.

  Brati Sankar Ghosh
  Tata Consultancy Services
  Mailto: [EMAIL PROTECTED]
  Website: http://www.tcs.com


"Shilpa Vaidya" <[EMAIL PROTECTED]>
06/03/2004 03:41 PM
  Please respond to
  "Struts Users Mailing List" <[EMAIL PROTECTED]>


   To "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
  cc
  Subject Servlet filter







  hey all,
  Preventing users from accesing action. I am writing a web app to manage
  administrators and profiles.
  Administrators may access to the web app based on the profiles they have.
  The profiles, determine which pages the administrator might access. The
  profiles, and authorizations, might change online during work, so I need
to
  check authorization to access a page (Action) on each access.If I
understand
  correct, then, the actionServlet, first process the form bean, and then
the
  action..
  But, if the user is not authorized to access a specific page (Action), I
  need to forward him to an UnAuthorized error page, before thr formAction
  bean is filled.
  I would like to use a servlet filter. This filter checks the users rights
  and instanciates a HttpServletRequest-Wrapper.But am not sure how - .Can
  anyone help.Till then me trying to study the ServletFilter examples here n
  there.
  Shilpa





  --


  "This e-mail message may contain confidential, proprietary or legally
privileged information. It
  should not be used by anyone who is not the original intended recipient.
If you have erroneously
  received this message, please delete it immediately and notify the sender.
The recipient
  acknowledges that ICICI Bank or its subsidiaries and associated companies,
(collectively "ICICI
  Group"), are unable to exercise control or ensure or guarantee the
integrity of/over the contents of the information contained in e-mail
transmissions and further acknowledges that any views
  expressed in this message are those of the individual sender and no
binding nature of the message shall be implied or assumed unless the sender
does so expressly with due authority of ICICI Group.Before opening any
attachments please check them for viruses and defects."



  ForwardSourceID:NTA91E
-- 


"This e-mail message may contain confidential, proprietary or legally privileged 
information. It 
should not be used by anyone who is not the original intended recipient. If you have 
erroneously 
received this message, please delete it immediately and notify the sender. The 
recipient 
acknowledges that ICICI Bank or its subsidiaries and associated companies,  
(collectively "ICICI 
Group"), are unable to exercise control or ensure or guarantee the integrity of/over 
the contents of the information contained in e-mail transmissions and further 
acknowledges that any views 
expressed in this message are those of the individual sender and no binding nature of 
the message shall be implied or assumed unless the sender does so expressly with due 
authority of ICICI Group.Before opening any attachments please check them for viruses 
and defects." 




Fw: Servlet filter

2004-06-03 Thread brati . sankarghosh

Can we have this user removed from the
list. All the mail sent to the group fails to go to the user.

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
- Forwarded by Brati
Sankarghosh/KOL/TCS on 06/03/2004 06:11 PM -

Delivery Failure Report


Your document:
Re: Servlet filter

was not delivered to:
[EMAIL PROTECTED]

because:
This is an automatically generated Delivery
Status Notification. 
 
Delivery to the following recipients failed. 
 
       [EMAIL PROTECTED] 
 
 
 


What should you do?

You can resend the undeliverable document
to the recipients listed above by choosing the Resend button or the Resend
command on the Actions menu.  
Once you have resent the document you
may delete this Delivery Failure Report.
If resending the document is not successful
you will receive a new failure report.
Unless you receive other Delivery Failure
Reports, the document was successfully delivered to all other recipients.


InMumG01/TCS, InKolM01/TCS





To: 
 "Struts Users Mailing List"
<[EMAIL PROTECTED]>






cc:  
 "'Struts
Users Mailing List'" <[EMAIL PROTECTED]>






Date: 
 05:59:13
PM Today






Subject: 
 Re:
Servlet filter

Shilpa, 
We are doing just that. A filter comes into effect before the control goes
to the servlet. So if you can stop the user at the filter level you are
actually saving some processing. We are checking for the presence of session
in the filter. 

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com 




"Shilpa Vaidya"
<[EMAIL PROTECTED]> 
06/03/2004 03:41 PM





Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
"'Struts Users
Mailing List'" <[EMAIL PROTECTED]>



cc



Subject
Servlet filter










hey all,
Preventing users from accesing action. I am writing a web app to manage
administrators and profiles.
Administrators may access to the web app based on the profiles they have.
The profiles, determine which pages the administrator might access. The
profiles, and authorizations, might change online during work, so I need
to
check authorization to access a page (Action) on each access.If I understand
correct, then, the actionServlet, first process the form bean, and then
the
action..
But, if the user is not authorized to access a specific page (Action),
I
need to forward him to an UnAuthorized error page, before thr formAction
bean is filled.
I would like to use a servlet filter. This filter checks the users rights
and instanciates a HttpServletRequest-Wrapper.But am not sure how - .Can
anyone help.Till then me trying to study the ServletFilter examples here
n
there.
Shilpa





-- 


"This e-mail message may contain confidential, proprietary or legally
privileged information. It 
should not be used by anyone who is not the original intended recipient.
If you have erroneously 
received this message, please delete it immediately and notify the sender.
The recipient 
acknowledges that ICICI Bank or its subsidiaries and associated companies,
 (collectively "ICICI 
Group"), are unable to exercise control or ensure or guarantee the
integrity of/over the contents of the information contained in e-mail transmissions
and further acknowledges that any views 
expressed in this message are those of the individual sender and no binding
nature of the message shall be implied or assumed unless the sender does
so expressly with due authority of ICICI Group.Before opening any attachments
please check them for viruses and defects." 



ForwardSourceID:NTA91E     -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed

Re: Override form action URL

2004-06-03 Thread brati . sankarghosh

I donot know whether I have understood
this properly but are you trying to mask your actual action mapping?
If so you can define a dummy action
to which your form points. In the dummy just forward to your actual action.
In the rendered jsp/html page you will see the dummy action.

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





Eric Jain <[EMAIL PROTECTED]>

06/03/2004 03:55 PM




Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
[EMAIL PROTECTED]


cc



Subject
Override form action URL








I have:


   
   


which generates:


   
   


This works, but I would like to avoid exposing the action URL and return
this instead:


   


There is a servlet filter that will internally forward '/test/a/' to
'/test/search?dataset=a'.

An obvious solution would be:


   


Unfortunately this does not work as the html:text tag looks for a scoped
attribute that is set by the html:form tag.

Is there an alternative to html:form, that sets the same attributes,
but does not print anything?


   
     
   


Or could the generated action URL be overridden somehow?


   


There must be a way...



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


ForwardSourceID:NTA926
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
I have to be honest and say I've never used a filter except for one 
situation to do security on the input side, a very basic application.  How 
would you envision it being used for the output?


From: "Marco Mistroni" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: Strus Web Service Enablement
Date: Thu, 3 Jun 2004 10:15:43 +0100
Hi,
My 2 cents I think that is a great idea
Do u think that using a filter for the response will help?
Last year I did something similar (wrote a Struts-based webapp
That I was talking to using J2ME and KSOAP..but all I was able
To do was to extend existing action and dump the generated XML
Into the response.getWriter().write()... I was using axis btw for
XML stuff on the serverside)
Regards
marco

-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED]
Sent: 02 June 2004 21:29
To: [EMAIL PROTECTED]
Subject: RFC: Strus Web Service Enablement
Hello all... I wanted to post this here and get any comments that people
had
so I could decide where to go with it...
For the past two days I've been working on a mechanism that would allow
you
to expose existing Struts-based business logic as Web Services without
changing any existing code.  What I offer here is a first approximation
of
that idea.
If you might be interested in this, you can download the first iteration
of
the project at http://www.omnytex.com/wst.zip
This archive is a sample webapp in exploded format.  Just unzip it to
your
webapps directory of your chosen app server and you should be good to
go.
I've only tried it on Tomcat however, so anything else is unknown.
In a nutshell, what I've done is written a custom subclass of
RequestProcessor.  This version will recognize a SOAP-based Web Service
request, "unroll" the request, and hand it off to a specified Action.
As
far as the Action is concerned, it looks just like a regular HTTP form
submission, so it processes same as before.  Note that the request is
forwarded back through ActionServlet, so anything you do should still
work.
The RequestProcessor then overrides the destination ActionForward that
the
Action returns, and instead sends it to a special JSP, which renders the
response XML.  The response type is set properly, and the generated XML
is
returned.  The XML it generates simply dumps all members of the
ActionForm,
so it's not very smart right now, but as I said, this is a first
approximation of the idea.
So, in the end, you should be able to expose any existing Actions as Web
Services without changing them.  Everything you need is included, except
for
a JDK, but I assume you have that already (!), including a dirt-simple
test
client.  It's not a true SOAP client, but it gets the job done.
Once you unzip the archive, I suggest reading the readme.txt file in the
/source directory.  This goes into a bit more detail on everything, as
well
as explaining how to use this in your own application.  I should also
note
that this RequestProcessor is transparent to non-Web Service requests,
i.e.,
you can use it in your existing apps without changing anything whether
you
expose anything as a service or not.
I thank anyone in advance that checks this out.  Please send me any
comments
or suggestions you may have either to [EMAIL PROTECTED] or just post
them here.
My hope is that given some time to refine this it will be tight enough
and
useful enough that maybe I can present it to the developer list for
possible
inclusion in the base Struts distro.  That's of course a ways off, if it
ever reaches that point, but it's a start I think.
Good day to all!
Frank
_
Looking to buy a house? Get informed with the Home Buying Guide from MSN
House & Home. http://coldwellbanker.msn.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]
_
Check out the coupons and bargains on MSN Offers! http://youroffers.msn.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


problem with struts-tiles

2004-06-03 Thread SASIDHAR BUDAMPATI
hi,

When working with struts-tiles i have been encountered
with the problem as below.
please, suggest me how to rectify the problem.

javax.servlet.ServletException: Can't get definitions
factory from context.

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:673)

org.apache.jsp.mainLayout_jsp._jspService(mainLayout_jsp.java:75)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:285)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:232)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause 

javax.servlet.jsp.JspException: Can't get definitions
factory from context.

org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:575)

org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:474)

org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:436)

org.apache.jsp.mainLayout_jsp._jspx_meth_tiles_insert_0(mainLayout_jsp.java:90)

org.apache.jsp.mainLayout_jsp._jspService(mainLayout_jsp.java:66)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:285)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:232)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

with regards,
sasidhar






__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: Servlet filter

2004-06-03 Thread brati . sankarghosh

Shilpa,
We are doing just that. A filter comes
into effect before the control goes to the servlet. So if you can stop
the user at the filter level you are actually saving some processing. We
are checking for the presence of session in the filter.

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





"Shilpa Vaidya"
<[EMAIL PROTECTED]> 
06/03/2004 03:41 PM




Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
"'Struts Users Mailing
List'" <[EMAIL PROTECTED]>


cc



Subject
Servlet filter








hey all,
Preventing users from accesing action. I am writing a web app to manage
administrators and profiles.
Administrators may access to the web app based on the profiles they have.
The profiles, determine which pages the administrator might access. The
profiles, and authorizations, might change online during work, so I need
to
check authorization to access a page (Action) on each access.If I understand
correct, then, the actionServlet, first process the form bean, and then
the
action..
But, if the user is not authorized to access a specific page (Action),
I
need to forward him to an UnAuthorized error page, before thr formAction
bean is filled.
I would like to use a servlet filter. This filter checks the users rights
and instanciates a HttpServletRequest-Wrapper.But am not sure how - .Can
anyone help.Till then me trying to study the ServletFilter examples here
n
there.
Shilpa





-- 


"This e-mail message may contain confidential, proprietary or legally
privileged information. It 
should not be used by anyone who is not the original intended recipient.
If you have erroneously 
received this message, please delete it immediately and notify the sender.
The recipient 
acknowledges that ICICI Bank or its subsidiaries and associated companies,
 (collectively "ICICI 
Group"), are unable to exercise control or ensure or guarantee the
integrity of/over the contents of the information contained in e-mail transmissions
and further acknowledges that any views 
expressed in this message are those of the individual sender and no binding
nature of the message shall be implied or assumed unless the sender does
so expressly with due authority of ICICI Group.Before opening any attachments
please check them for viruses and defects." 



ForwardSourceID:NTA91E
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Frank Zammetti
I'm going to pull a Bill Gates here...
"UltraEdit and a command prompt should be enough for anybody!"
Seriously though... I know many people swear by this IDE or that IDE, but 
I've done a large number of projects ranging from small ones to huge ones, 
and each and every one was done with nothing more than a top-notch text 
editor.  And I've found that as compared to those members of the team that 
used one IDE or another, even when those members pretty much knew the 
technologies involved better than me, I worked just as fast or faster than 
them.

Maybe I'm a freak of nature or something, but I prefer to believe there's 
simply less getting in the way when I work.  Less between me and the metal 
if you will :)  Besides, I'm in complete control of what's going on below me 
in this scenario.  No forced directory structures, no canned code that I 
have to take time to understand, no arcane error messages to decypher when 
the IDE decides it can't compile my code for one reason or another.

I think except for a good debugger, IDE's tend to get in the way more than 
they help, that's been my experience anyway.  And when you consider that 
most of what you do as a programmer comes down to text editing anyway...


From: "Navjot Singh" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: [OT] Good env for struts-based-web-tier and ejb components 
development
Date: Thu, 3 Jun 2004 10:41:30 +0530

Hi List,
I am about to start development work on some auction site which in 
principle
is similar to e-bay but not of that scale. I will be using J2EE+Jboss.

What kind of IDE development environment do you guys use for the
development?
I just tried Eclipse + EasyStruts + Lomboz. Lomboz is good but not good
enough.
1. I still have to carefully edit ejb-jar and jboss files to make my things
run.
2. The directory structure that it creates in the background is not good.
3. The xdoclet tags that it generates is for all servers. e.g JOnAs jboss,
weblogic. but i need for only jboss.
4. The build files that it generates are bit obscure.
Easy Struts is just OK and doesn't provide much time saving to me. I can
live without it also. Moreover, EasyStruts doesn't work with Eclipse 3.0.
In nutshell, the entire development environment becomes unorganized, if not
complex.
I wish to know what kinda env do you use? How do streamline your 
development
process?

TIA
Navjot Singh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/

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


RES: Servlet filter

2004-06-03 Thread Fabrício Garcia Imbrizi
Hi,

Create a generic Action class and for all another Action class created,
extends the generic Action.

Inside generic Action do anything, including authorizations user, log, etc.

The generic Action class has the execute(...) method and the last method
executed is an another execute() ex.: (executeBase(...))

For another created class, define the executeBase(...);

Ex.

public abstract class CentralAction extends Action
{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
//do authorizations user, log, etc.

...

executeBase(mapping, form, request, response);
}


abstract public ActionForward executeBase(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception;

}

public class AnotherClassAction extends BaseAction
{
public ActionForward executeBase(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
...
}
}


   Regardless

   Fabrício Garcia Imbrizi
   Murah Technologies
   11 8275 0199



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



Re: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread Srinivas Rao
Hi John,
It is possible but i am not sure it is working or not 
before inset into the database we will use Single quate( '  ' ) to store the data, 
after u can access '&' symble from the database..
 
bye
Srinivas

John Antonakos <[EMAIL PROTECTED]> wrote:
We have some drop down boxes in our jsp's which take
data straight from the DB. Some of those data contain
the character &. (eg John & me).
We use a javascript array to store these data for internal
use in the page. The struts format those data.
When we use these data in a drop down (html select) appears
as (John & me) which obviously does not look good.

Is there a way to avoid this from happening ?
Can we say to the struts NOT to format the data coming from
the java objects ?

John Antonakos
Software Engineer 
Information Systems Department
MedNet International Ltd www.mni.gr
Tel. (+30) 210 6232085
Fax (+30) 210 6232026
Email: [EMAIL PROTECTED]




-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

Re: Hidden Variables

2004-06-03 Thread James Mitchell
How do you know it is 1 in 300?  Is that based on tests or on browsing log
files?



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx




- Original Message -
From: "Joshi, Naveen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 02, 2004 8:10 AM
Subject: RE: Hidden Variables


I use Post method.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Lionel
Sent: Wednesday, June 02, 2004 5:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Hidden Variables


Joshi, Naveen wrote:
> All,
>
> one out of 300 times my hidden variable would not set to form. Any
> ideas what could be the issue.

do you use get or post method to send your form ?




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



How can i avoid the use of & in a drop down box ?

2004-06-03 Thread John Antonakos
We have some drop down boxes in our jsp's which take
data straight from the DB. Some of those data contain
the character &. (eg John & me).
We use a javascript array to store these data for internal
use in the page. The struts format those data.
When we use these data in a drop down (html select) appears
as (John & me) which obviously does not look good.

Is there a way to avoid this from happening ?
Can we say to the struts NOT to format the data coming from
the java objects ?

John Antonakos
Software Engineer 
Information Systems Department
MedNet International Ltd www.mni.gr
Tel. (+30) 210 6232085
Fax (+30) 210 6232026
Email: [EMAIL PROTECTED]

 


RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread James Holmes
Navjot,

Eclipse + MyEclipse is a great setup and I can highly recommend it.  If
you're looking for an alternative to EasyStruts, you may want to look into
Struts Console.  Struts Console plugs nicely into Eclipse 3.0 and provides
support for Struts, Tiles and Validator configuration files as well JSP Tag
Library files.

http://www.jamesholmes.com/struts/

Hope that helps,

James

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004 12:12 AM
To: Struts Users Mailing List
Subject: [OT] Good env for struts-based-web-tier and ejb components
development

Hi List,

I am about to start development work on some auction site which in principle
is similar to e-bay but not of that scale. I will be using J2EE+Jboss.

What kind of IDE development environment do you guys use for the
development?

I just tried Eclipse + EasyStruts + Lomboz. Lomboz is good but not good
enough.

1. I still have to carefully edit ejb-jar and jboss files to make my things
run.
2. The directory structure that it creates in the background is not good.
3. The xdoclet tags that it generates is for all servers. e.g JOnAs jboss,
weblogic. but i need for only jboss.
4. The build files that it generates are bit obscure.

Easy Struts is just OK and doesn't provide much time saving to me. I can
live without it also. Moreover, EasyStruts doesn't work with Eclipse 3.0.

In nutshell, the entire development environment becomes unorganized, if not
complex.

I wish to know what kinda env do you use? How do streamline your development
process?

TIA
Navjot Singh


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



R: Servlet filter

2004-06-03 Thread Andrea M.
Hi Shilpa
I'm not sure you really need to use Filters for this purpose with Struts.
I think if you make sure you never access pages directly (maybe putting them
under WEB-INF... I've never done this but I know it's possible) but always
thru actions, then it shouldn't be difficult to implement a call to an
authentication component in your execute() method.

Should you absolutely need to authenticate thru a Filter, then it's not
difficult either

You first need to declare it in your web.xml like this:
  
AuthFilter
com.mypackage.AuthFilter
  
  
 AuthFilter 
/*
  

Then in your doFilter() method you call

   filterChain.doFilter(request, response)

if your user has authenticated successfully

otherwise you can redirect to some error page

-Messaggio originale-
Da: Shilpa Vaidya [mailto:[EMAIL PROTECTED] 
Inviato: giovedì 3 giugno 2004 12.11
A: 'Struts Users Mailing List'
Oggetto: Servlet filter

hey all,
Preventing users from accesing action. I am writing a web app to manage
administrators and profiles.
Administrators may access to the web app based on the profiles they have.
The profiles, determine which pages the administrator might access. The
profiles, and authorizations, might change online during work, so I need to
check authorization to access a page (Action) on each access.If I understand
correct, then, the actionServlet, first process the form bean, and then the
action..
But, if the user is not authorized to access a specific page (Action), I
need to forward him to an UnAuthorized error page, before thr formAction
bean is filled.
I would like to use a servlet filter. This filter checks the users rights
and instanciates a HttpServletRequest-Wrapper.But am not sure how - .Can
anyone help.Till then me trying to study the ServletFilter examples here n
there.
Shilpa





-- 


"This e-mail message may contain confidential, proprietary or legally
privileged information. It 
should not be used by anyone who is not the original intended recipient. If
you have erroneously 
received this message, please delete it immediately and notify the sender.
The recipient 
acknowledges that ICICI Bank or its subsidiaries and associated companies,
(collectively "ICICI 
Group"), are unable to exercise control or ensure or guarantee the integrity
of/over the contents of the information contained in e-mail transmissions
and further acknowledges that any views 
expressed in this message are those of the individual sender and no binding
nature of the message shall be implied or assumed unless the sender does so
expressly with due authority of ICICI Group.Before opening any attachments
please check them for viruses and defects." 




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



Newbie: Message Resources problem

2004-06-03 Thread Adam Lipscombe
Folks,


I cant seem to fix this. I have 2 properties files:

WEB-INF\classes\com\expensys\expensyswt\resources\ApplicationResources.prope
rties
WEB-INF\classes\com\expensys\expensyswt\resources\jdbc.properties

My struts-config.xml snippet is:





When I try to access the app I get:

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)
at org.apache.jsp.Login$jsp._jspService(Login$jsp.java:369)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)



My understanding is that the  tag contains the path to
the resiurces file(s).
As far as I can see I have done that


Any ideas?



TIA -Adam


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



Mail not delivered messages

2004-06-03 Thread Matthias Wessendorf
hi, after a post i got mail from:

[EMAIL PROTECTED]
[EMAIL PROTECTED]

that the messages is undeliverable


anyone able, to delete them from list?

--
Matthias Weßendorf
Aechterhoek 18
D-48282 Emsdetten
Email: matthias AT wessendorf DOT net
URL: http://www.wessendorf.net


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



RE: Dynamic validation and dates

2004-06-03 Thread Matthias Wessendorf
usage in validation.xml:




   datePattern
   MM/dd/ 
   


API of Validator-Framework said (FieldChecks.validateDate() of
org.apache.struts.validator-package):
Checks if the field is a valid date. If the field has a datePattern
variable, that will be used to format java.text.SimpleDateFormat. If the
field has a datePatternStrict variable, that will be used to format
java.text.SimpleDateFormat  and the length will be checked so
'2/12/1999' will not pass validation with the format 'MM/dd/'
because the month isn't two digits. If no datePattern variable is
specified, then the field gets the DateFormat.SHORT format for the
locale. The setLenient method is set to false for all variations.

JavaDoc für DateFormat.SHORT said:
SHORT is completely numeric, such as 12.13.52 or 3:30pm

cheers,

> -Original Message-
> From: Tim Penhey [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 03, 2004 9:37 AM
> To: Struts Users Mailing List
> Subject: Dynamic validation and dates
> 
> 
> Does the DynaValidatorForm handle java.util.Date?  
> If it does, how does it handle I18N for input?
> 
> Thanks,
> Tim
> 
> 
> 
> 
> -
> 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: Servlet filter

2004-06-03 Thread Vijay.Nair
We used a filter for the same purpose...works like a charm

I presume the configuration is pretty simple.configure it in the
web.xml using the filter tags and make sure the filter class is present
in your web app

-Original Message-
From: Shilpa Vaidya [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004 3:41 PM
To: 'Struts Users Mailing List'
Subject: Servlet filter

hey all,
Preventing users from accesing action. I am writing a web app to manage
administrators and profiles.
Administrators may access to the web app based on the profiles they
have.
The profiles, determine which pages the administrator might access. The
profiles, and authorizations, might change online during work, so I need
to
check authorization to access a page (Action) on each access.If I
understand
correct, then, the actionServlet, first process the form bean, and then
the
action..
But, if the user is not authorized to access a specific page (Action), I
need to forward him to an UnAuthorized error page, before thr formAction
bean is filled.
I would like to use a servlet filter. This filter checks the users
rights
and instanciates a HttpServletRequest-Wrapper.But am not sure how - .Can
anyone help.Till then me trying to study the ServletFilter examples here
n
there.
Shilpa





-- 


"This e-mail message may contain confidential, proprietary or legally
privileged information. It 
should not be used by anyone who is not the original intended recipient.
If you have erroneously 
received this message, please delete it immediately and notify the
sender. The recipient 
acknowledges that ICICI Bank or its subsidiaries and associated
companies,  (collectively "ICICI 
Group"), are unable to exercise control or ensure or guarantee the
integrity of/over the contents of the information contained in e-mail
transmissions and further acknowledges that any views 
expressed in this message are those of the individual sender and no
binding nature of the message shall be implied or assumed unless the
sender does so expressly with due authority of ICICI Group.Before
opening any attachments please check them for viruses and defects." 




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



Override form action URL

2004-06-03 Thread Eric Jain
I have:

  
  

which generates:

  
  

This works, but I would like to avoid exposing the action URL and return
this instead:

  

There is a servlet filter that will internally forward '/test/a/' to
'/test/search?dataset=a'.
An obvious solution would be:

  

Unfortunately this does not work as the html:text tag looks for a scoped
attribute that is set by the html:form tag.
Is there an alternative to html:form, that sets the same attributes,
but does not print anything?

  

  

Or could the generated action URL be overridden somehow?

  

There must be a way...

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


Servlet filter

2004-06-03 Thread Shilpa Vaidya
hey all,
Preventing users from accesing action. I am writing a web app to manage
administrators and profiles.
Administrators may access to the web app based on the profiles they have.
The profiles, determine which pages the administrator might access. The
profiles, and authorizations, might change online during work, so I need to
check authorization to access a page (Action) on each access.If I understand
correct, then, the actionServlet, first process the form bean, and then the
action..
But, if the user is not authorized to access a specific page (Action), I
need to forward him to an UnAuthorized error page, before thr formAction
bean is filled.
I would like to use a servlet filter. This filter checks the users rights
and instanciates a HttpServletRequest-Wrapper.But am not sure how - .Can
anyone help.Till then me trying to study the ServletFilter examples here n
there.
Shilpa





-- 


"This e-mail message may contain confidential, proprietary or legally privileged 
information. It 
should not be used by anyone who is not the original intended recipient. If you have 
erroneously 
received this message, please delete it immediately and notify the sender. The 
recipient 
acknowledges that ICICI Bank or its subsidiaries and associated companies,  
(collectively "ICICI 
Group"), are unable to exercise control or ensure or guarantee the integrity of/over 
the contents of the information contained in e-mail transmissions and further 
acknowledges that any views 
expressed in this message are those of the individual sender and no binding nature of 
the message shall be implied or assumed unless the sender does so expressly with due 
authority of ICICI Group.Before opening any attachments please check them for viruses 
and defects." 




State in Struts.

2004-06-03 Thread Miquel Angel
Hi. I'm developing an application with Struts 1.1, Tomcat 5 and Eclipse. I
explain my problem:

This situation is: I have 1 jsp (jsp1) that shows information in a grid.
>From this grid I can go to the jsp2, where I can see the details of 1 row of
the previous grid. From jsp2 I can go to jsp3, where I can see aditional
information about the record shown in jsp2. From jsp3 I can go to jsp4 to
see any other information, and so on. My problem is not going forward, my
problem is goin back. ¿How can I retrieve the state of each action form? I
use scope="request". ¿Should I implement an stack to save the differents
actionform's? Is there any example of stack. ¿Should I implement any other
system?

I would appreciate your help.

Thanks.

Atentamente, Miquel Angel Seguí Munar
Tel. 647 51 43 41
Sidiem S.L.


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



Filters and forwards...

2004-06-03 Thread Jose Ramon Diaz

Hi all,

I am trying to wrap the HttpServletResponse to apply gzip compression on
data sent to the client when gzip is supported. I'm using a filter,wrapper
and custom ServletOutputStream based on published code.
It seems to work except when I chain actions. If I call one action which
executes a forward to a JSP, I get the exception attached.

We have the filter applied only to *.do in  from web.xml, so we
thought the filter is applied to the actions, and the JSP.

We know this question has been asked several times, but we have not found a
good solution for us. what could I be doing that would cause the stream to
be closed? Can?t we put a filter to compress if we use forwards from
actions?

Thanks a lot,

 Exception ==

java.io.IOException: This output stream has already been closed
at
es.aranzadi.filtros.CompressionResponseStream.close(CompressionResponseStrea
m.java:187)
at
es.aranzadi.filtros.CompressionResponseStream.close(CompressionResponseStrea
m.java:205)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.
java:253)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at
es.aranzadi.filtros.CompressionFilter.doFilter(CompressionFilter.java:243)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
ava:560)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDis
patcher.java:306)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.
java:240)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at
es.aranzadi.filtros.CompressionFilter.doFilter(CompressionFilter.java:243)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
ava:560)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDis
patcher.java:306)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:
767)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja
va:803)
at java.lang.Thread.run(Thread.java:479)





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



RE: Strus Web Service Enablement

2004-06-03 Thread Marco Mistroni
Hi,
My 2 cents I think that is a great idea

Do u think that using a filter for the response will help?

Last year I did something similar (wrote a Struts-based webapp
That I was talking to using J2ME and KSOAP..but all I was able
To do was to extend existing action and dump the generated XML
Into the response.getWriter().write()... I was using axis btw for
XML stuff on the serverside)

Regards
marco



-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED] 
Sent: 02 June 2004 21:29
To: [EMAIL PROTECTED]
Subject: RFC: Strus Web Service Enablement

Hello all... I wanted to post this here and get any comments that people
had 
so I could decide where to go with it...

For the past two days I've been working on a mechanism that would allow
you 
to expose existing Struts-based business logic as Web Services without 
changing any existing code.  What I offer here is a first approximation
of 
that idea.

If you might be interested in this, you can download the first iteration
of 
the project at http://www.omnytex.com/wst.zip

This archive is a sample webapp in exploded format.  Just unzip it to
your 
webapps directory of your chosen app server and you should be good to
go.  
I've only tried it on Tomcat however, so anything else is unknown.

In a nutshell, what I've done is written a custom subclass of 
RequestProcessor.  This version will recognize a SOAP-based Web Service 
request, "unroll" the request, and hand it off to a specified Action.
As 
far as the Action is concerned, it looks just like a regular HTTP form 
submission, so it processes same as before.  Note that the request is 
forwarded back through ActionServlet, so anything you do should still
work.  
The RequestProcessor then overrides the destination ActionForward that
the 
Action returns, and instead sends it to a special JSP, which renders the

response XML.  The response type is set properly, and the generated XML
is 
returned.  The XML it generates simply dumps all members of the
ActionForm, 
so it's not very smart right now, but as I said, this is a first 
approximation of the idea.

So, in the end, you should be able to expose any existing Actions as Web

Services without changing them.  Everything you need is included, except
for 
a JDK, but I assume you have that already (!), including a dirt-simple
test 
client.  It's not a true SOAP client, but it gets the job done.

Once you unzip the archive, I suggest reading the readme.txt file in the

/source directory.  This goes into a bit more detail on everything, as
well 
as explaining how to use this in your own application.  I should also
note 
that this RequestProcessor is transparent to non-Web Service requests,
i.e., 
you can use it in your existing apps without changing anything whether
you 
expose anything as a service or not.

I thank anyone in advance that checks this out.  Please send me any
comments 
or suggestions you may have either to [EMAIL PROTECTED] or just post

them here.

My hope is that given some time to refine this it will be tight enough
and 
useful enough that maybe I can present it to the developer list for
possible 
inclusion in the base Struts distro.  That's of course a ways off, if it

ever reaches that point, but it's a start I think.

Good day to all!

Frank

_
Looking to buy a house? Get informed with the Home Buying Guide from MSN

House & Home. http://coldwellbanker.msn.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]



Dynamic validation and dates

2004-06-03 Thread Tim Penhey
Does the DynaValidatorForm handle java.util.Date?  
If it does, how does it handle I18N for input?

Thanks,
Tim




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



RE: struts java script problem

2004-06-03 Thread Tim Penhey
Instead of having the tags just write the HTML, also include a 



  // in here put your iterate tags whether they be JSTL or struts

  // then just use the standard javascript event handler to modify the pages.

 

add onchange attributes to the form elements to call the javascript functions.

Tim

> -Original Message-
> From: R Sridhar [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2004 06:13
> To: Struts Users Mailing List
> Subject: struts java script problem
> 
> 
> Hi,
> 
> The solution u have given works fine to populate the list item. But what i
> want is to change the contents of list item when some of the list item
> selection or some check box status changes. And moreover when some value
> entered in text box based on that input i would like to fill the other text
> fields with appropriae values taken from database. how can i do this.
> 
> please help me.
> 
> Sridhar





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