Re: jsp vs jstl in Math

2005-06-23 Thread Mario Neè

Karr, David wrote:


Yes, I should have mentioned that.  If you're using a JSP 2.0 container,
you should NOT use Struts-EL.  It will cause more trouble.  If you
configure your webapp correctly, you can use the EL natively in
attributes, and even in template text.

 


-Original Message-
From: Mark Diggory [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 23, 2005 10:26 AM

To: Struts Users Mailing List
Subject: Re: jsp vs jstl in Math


If your using a JSP 2.0 container (Tomcat 5.x), I think you should be 
able to use EL right on top of Struts taglib without any third party 
contibs. Others, correct me if I'm wrong here.


-Mark

Karr, David wrote:

   

Use the Struts-EL taglib, provided in the 
 

"contrib/struts-el" subdir of 
   

the Struts distribution.  It's a port of most of the Struts tags 
(except the ones that provide functionality that the JSTL provides 
directly), but it uses the JSTL expression evaluator for 
 

attributes.  
   


Search the archives for "struts-el" for (tons) of references to this.



 


-Original Message-
From: mario nee [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 1:14 AM
To: Struts Users Mailing List
Subject: jsp vs jstl in Math

Hello,

if i use jstl for Math operation i write this


if i use struts taglib how can i do the same thing  without
use <% ... %> ?
  

   


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



 



| If you're using a JSP 2.0 container, you should NOT use Struts-EL.

So i have to use jstl.jar, standard.jar and not struts-el.jar ?

--
Mario Nee'
Brescia Italy
[EMAIL PROTECTED]
http://www.xmoon.org


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



Front controller

2005-06-23 Thread Nils Liebelt
Hi all,

I want to write a Swing front end for one of my struts applications.
Basically keeping everything besides the view. I would be nice if I
can keep the validation framework and my controller components probably
wrapped in some kind of interface. I am wondering if there's already a 
project dealing with it? 


Regards,

Nils


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



Re: ValidatorActionForm and java script validation....

2005-06-23 Thread Laurie Harper

Doh, scatch that; the 'name' attribute in the action mapping is, of course, the 
form name, so what I said is true of ValidatorActionForm only. Yawn. Bed time!

L.

Laurie Harper wrote:

Yes, that's the point of ValidatorForm / ValidatorActionForm. The 
validation rules are looked up according to the action mapping 'name' or 
'path' attribute, respectively. It shouldn't make any difference if the 
actions use the same form.


L.

Lucas Bern wrote:


Hi guys

does anybody know if the java script validation of validator framework 
can be used with ValidatorActionForm, I need to perform diferent 
validations in diferent action that used the same form i would 
like these validations be performed in the client...


Thanks

Lucas

 

   
-

 1GB gratis, Antivirus y Antispam
 Correo Yahoo!, el mejor correo web del mundo
 Abrí tu cuenta aquí



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



Re: ValidatorActionForm and java script validation....

2005-06-23 Thread Laurie Harper

Yes, that's the point of ValidatorForm / ValidatorActionForm. The validation 
rules are looked up according to the action mapping 'name' or 'path' attribute, 
respectively. It shouldn't make any difference if the actions use the same form.

L.

Lucas Bern wrote:


Hi guys

does anybody know if the java script validation of validator framework can be 
used with ValidatorActionForm, I need to perform diferent validations in 
diferent action that used the same form i would like these validations be 
performed in the client...

Thanks

Lucas

 



-
 1GB gratis, Antivirus y Antispam
 Correo Yahoo!, el mejor correo web del mundo
 Abrí tu cuenta aquí



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



Re: validate data problem in ActionForm - combine with tiles

2005-06-23 Thread Wendy Smoak
From: "Grzegorz Stasica" <[EMAIL PROTECTED]>
> 
> The problem is that after I validate values in the method, the 
> controller forwards me to input page. Since I use tiles in my 
> application I'd like to be forwarded to tiles definition not input page 
> (I need to preserve header, menu etc).
> 
> The question is: Is it possible to use validate method while using tiles 
> at the same time?

Yes, it's possible... my input page *is* a tiles definition.

-- 
Wendy Smoak



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



Re: validate data problem in ActionForm - combine with tiles

2005-06-23 Thread Dave Newton

Michael Jouravlev wrote:


1) In action mapping: validate = "false"
2) Validate manually from Action class
3) Forward where you need.

On 6/23/05, Grzegorz Stasica <[EMAIL PROTECTED]> wrote:
 


hi,

The problem is that after I validate values in the method, the
controller forwards me to input page. Since I use tiles in my
application I'd like to be forwarded to tiles definition not input page
(I need to preserve header, menu etc).

The question is: Is it possible to use validate method while using tiles
at the same time?
   


The input attribute isn't a tiles definition already?

Dave



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



Re: validate data problem in ActionForm - combine with tiles

2005-06-23 Thread Michael Jouravlev
1) In action mapping: validate = "false"
2) Validate manually from Action class
3) Forward where you need.

On 6/23/05, Grzegorz Stasica <[EMAIL PROTECTED]> wrote:
> hi,
> 
> The problem is that after I validate values in the method, the
> controller forwards me to input page. Since I use tiles in my
> application I'd like to be forwarded to tiles definition not input page
> (I need to preserve header, menu etc).
> 
> The question is: Is it possible to use validate method while using tiles
> at the same time?
> 
> 
> -
> 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]



validate data problem in ActionForm - combine with tiles

2005-06-23 Thread Grzegorz Stasica

hi,

The problem is that after I validate values in the method, the 
controller forwards me to input page. Since I use tiles in my 
application I'd like to be forwarded to tiles definition not input page 
(I need to preserve header, menu etc).


The question is: Is it possible to use validate method while using tiles 
at the same time?



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



RE: Form-Action combo

2005-06-23 Thread Michael Oliver
I don't see the need for a new type of Action, there is no limitation to
what methods you ADD to an ActionForm, so you may choose to do your business
logic implementations in the ActionForm itself and then the various
Action::execute() methods would just marshal the arguments and call the
methods on the ActionForm that is passed in.  We do it that way whenever we
need to, but we also use helper classes that have the methods to act upon
the data in the ActionForms and call them from the Action Classes or from
Axis Web Services.  I am quite sure Drew would agree with me that if you
prefer WebWork or Tapestry use it, don't try to make Struts more like them.

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 23, 2005 2:28 PM
To: Struts Users Mailing List
Subject: Form-Action combo

WebWork actions are somewhat like Struts Action and ActionForm
combined: they can transfer request parameters and can be stateful,
like ActionForm, but they also can process input events, like Action.

I created several rather generic action classes, like DialogAction or
CRUDAction, and now working on WizardAction. In all cases I need to
process events in DispatchAction style, and at the same time I have
session-scoped data, which I store in ActionForm. So, sometimes Action
classes do nothing more, than just receive input command, and channel
it to actual handler in the ActionForm.

I think that Struts should have WebWork-style action, which can do
both: keep data and process events. What is opinion on that? What is
common pattern to introduce new features in Struts? Should I just
submit the patch to Bugzilla and encourage people to vote?

Michael.

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



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



[OT] Re: running tomcat on port 80

2005-06-23 Thread Paul Thomas


On 21/06/2005 17:44 Tony Smith wrote:

Hi, Can I run Tomcat 5.0 on port 80? After setting 80
as port number in the server.xml and starting tomcat,
I got the following error message:

SEVERE: Error starting endpoint
java.net.BindException:permission denied:80



As many other posters have pointed out, only processes run as root can 
access ports below 1024. Personally, I would never run Tomcat as root. I 
use Apache/jk2 instead. It works well and is fairly easy to set up.


HTH.




Paul Thomas
+--+---+
| Thomas Micro Systems Limited | Software Solutions for Business   |
| Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk |
+--+---+

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



Form-Action combo

2005-06-23 Thread Michael Jouravlev
WebWork actions are somewhat like Struts Action and ActionForm
combined: they can transfer request parameters and can be stateful,
like ActionForm, but they also can process input events, like Action.

I created several rather generic action classes, like DialogAction or
CRUDAction, and now working on WizardAction. In all cases I need to
process events in DispatchAction style, and at the same time I have
session-scoped data, which I store in ActionForm. So, sometimes Action
classes do nothing more, than just receive input command, and channel
it to actual handler in the ActionForm.

I think that Struts should have WebWork-style action, which can do
both: keep data and process events. What is opinion on that? What is
common pattern to introduce new features in Struts? Should I just
submit the patch to Bugzilla and encourage people to vote?

Michael.

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



NoSuchMethodError

2005-06-23 Thread Michael Oliver
I added some new modules to an existing working struts application.  When
trying to access an action in the original application, I get the following
in the logs with DEBUG on org.apache.struts

 

I have made no changes to the original webapp, only added some new modules.
I checked the libs and tld and they are all consistent struts 1.1.  See the
struts-config.xml after the log snippets.

 

[http-8080-Processor25] util.RequestUtils (RequestUtils.java:1799) - Get
module name for path /ListUsers.do

2005-06-23 20:45:33,671 DEBUG [http-8080-Processor25] util.RequestUtils
(RequestUtils.java:1821) - Module name found: default

2005-06-23 20:45:33,671 DEBUG [http-8080-Processor25]
action.RequestProcessor (RequestProcessor.java:225) - Processing a 'GET'
for path '/ListUsers'

2005-06-23 20:45:33,734 DEBUG [http-8080-Processor25]
action.RequestProcessor (RequestProcessor.java:640) -  Setting user
locale 'en_US'

2005-06-23 20:45:33,734 DEBUG [http-8080-Processor25] util.RequestUtils
(RequestUtils.java:764) -  Looking for ActionForm bean instance in scope
'request' under attribute key 'UserDisplay'

2005-06-23 20:45:33,734 DEBUG [http-8080-Processor25] util.RequestUtils
(RequestUtils.java:839) -  Creating new ActionForm instance of type
'com.alariusj.user.UserDisplay'

2005-06-23 20:45:33,750 DEBUG [http-8080-Processor25] util.RequestUtils
(RequestUtils.java:844) -  --> [EMAIL PROTECTED]

java.lang.NoSuchMethodError:
org.apache.struts.action.ActionForm.setServlet(Lorg/apache/struts/action/Act
ionServlet;)V
 
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:851)
 
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor
.java:364)
 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)
 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>



 

 

  

  

 

 

 

  

 

 

  

   

  

  

   

  

  

   

  

  

   

  

  

   

  

 

 



 

Clues as to why it is throwing that error or how to fix?  I have compared
this webapp to other working webapps object by object and setting by setting
and don't see anything that jumps out at me.  So if someone can tell me
where to look or the possible cause, it would be much appreciated.


 

Ollie


 

 

 



Re: Validation while using LookupDispatchAction

2005-06-23 Thread Adam Hardy

so struts is dead? we must be haunting you, right?


On 23/06/05 19:52 Mark Galbreath wrote:

Your sure did: C#.NET makes stuff like this soo easy!  Struts is dead.

~mark

-Original Message-
From: Vicky [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 2:48 PM

But having different actions in struts-config. how
would I call them in my jsp html:form ? because right
now I have only one action in jsp  and then for each button i have
property="method".. in jsp

in struts-config for this action mapping I have
parameter="method"

Did I miss anything in here?






This email and any file transmitted with it may be confidential and is intended 
solely for the use of the individual or entity to whom it is addressed.  If you 
received this email in error please notify the DBM Service Desk by forwarding 
this message to [EMAIL PROTECTED]


This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.


-
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: Validation while using LookupDispatchAction

2005-06-23 Thread Andrew Tomaka
You might be interested in checking out ValidatorLookupDispatchAction
(http://struts.whoisandy.com/archives/2005/05/27/validatorlookupdispatchaction.php).
 I stumbled across, but never actually used it.

~ Andrew Tomaka

On 6/23/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Vicky" <[EMAIL PROTECTED]>
> >
> > But having different actions in struts-config. how
> > would I call them in my jsp html:form ? because right
> > now I have only one action in jsp  > action="myAction"> and then for each button i have
> > property="method".. in jsp
> >
> > in struts-config for this action mapping I have
> > parameter="method"
> >
> > Did I miss anything in here?
> 
> DynaValidatorActionForm wants to validate based on the path, so you have to
> give it different paths to work with.  If you can't or don't want to have
> different paths mapped to the same action and form, then a different
> solution is in order.
> 
> I doubt you are alone... I wonder if someone has written a flavor of
> ValidatorForm that uses the dispatch parameter to switch validation.  None
> comes to mind, but search the list archives and the Wiki to see if there is
> already something out there.
> 
> And of course you're always free to override 'validate' in your form bean
> and make it do exactly what you want, or to turn off automatic validation
> altogether and call it from your Action when and where you want it to
> happen.
> 
> If you're having trouble deciding what the best approach would be, tell us
> more about your project and I'm sure there will be no shortage of opinions.
> (Hey, Mark, welcome back! So, tell us how you REALLY feel about Validator...
> ;) )
> 
> --
> Wendy Smoak
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Validation while using LookupDispatchAction

2005-06-23 Thread Wendy Smoak
From: "Vicky" <[EMAIL PROTECTED]>
>
> But having different actions in struts-config. how
> would I call them in my jsp html:form ? because right
> now I have only one action in jsp  action="myAction"> and then for each button i have
> property="method".. in jsp
>
> in struts-config for this action mapping I have
> parameter="method"
>
> Did I miss anything in here?

DynaValidatorActionForm wants to validate based on the path, so you have to
give it different paths to work with.  If you can't or don't want to have
different paths mapped to the same action and form, then a different
solution is in order.

I doubt you are alone... I wonder if someone has written a flavor of
ValidatorForm that uses the dispatch parameter to switch validation.  None
comes to mind, but search the list archives and the Wiki to see if there is
already something out there.

And of course you're always free to override 'validate' in your form bean
and make it do exactly what you want, or to turn off automatic validation
altogether and call it from your Action when and where you want it to
happen.

If you're having trouble deciding what the best approach would be, tell us
more about your project and I'm sure there will be no shortage of opinions.
(Hey, Mark, welcome back! So, tell us how you REALLY feel about Validator...
;) )

-- 
Wendy Smoak


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



RE: Validation while using LookupDispatchAction

2005-06-23 Thread Mark Galbreath
Your sure did: C#.NET makes stuff like this soo easy!  Struts is dead.

~mark

-Original Message-
From: Vicky [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 2:48 PM

But having different actions in struts-config. how
would I call them in my jsp html:form ? because right
now I have only one action in jsp  and then for each button i have
property="method".. in jsp

in struts-config for this action mapping I have
parameter="method"

Did I miss anything in here?






This email and any file transmitted with it may be confidential and is intended 
solely for the use of the individual or entity to whom it is addressed.  If you 
received this email in error please notify the DBM Service Desk by forwarding 
this message to [EMAIL PROTECTED]


This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.


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



RE: running tomcat on port 80[Scanned]

2005-06-23 Thread Mark Galbreath
That would be the "Friggin' Ignorant Newbie Encyclopaedia?"

;-)

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 2:30 PM
To: Struts Users Mailing List
Subject: Re: running tomcat on port 80[Scanned]

and yes I agree with Mark please
read the FINE Manual
Martin-

- Original Message - 
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, June 23, 2005 1:18 PM
Subject: RE: running tomcat on port 80[Scanned]


It's been awhile since I ran Tomcat with a web server (IIS or Apache), but the 
documentation that comes with Tomcat (including the comments in the 
*.xml config files) is comprehensive.  The docs address your issues in 
particular.

I am preparing to integrate Tomcat 5.5.9 with Apache httpd 2.0.54 on SuSE 9.3 
Pro and Red Hat Enterprise AS 4.0-U1 in the next day or two, so if your 
issues are not resolved by then, I'll repost with particulars.

RTFM!
~mark






This email and any file transmitted with it may be confidential and is intended 
solely for the use of the individual or entity to whom it is addressed.  If you 
received this email in error please notify the DBM Service Desk by forwarding 
this message to [EMAIL PROTECTED]


This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.


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



Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Aleksandar Matijaca
Hi Tony,

try something like this:

ps -ef | grep httpd

this will show you where the process is running (from which directory) -- to 
shut down this process,
become root, and you should have somewhere in your computer the apachectl 
program -- do a

./apachectl stop 

from the directory where this file (apachectl) is located.

I think you should realy reconsider running Tomcat on 8080, and set up an 
apache plug-in for tomcat.
There is plenty of documentation on the web for this.

Regard, Alex.



On 6/23/05, Tony Smith <[EMAIL PROTECTED]> wrote:
> 
> Thank all for response.
> 
> I loged on as root and changed server.xml to use port
> 80. When I start tomcat, it now compained that "80 is
> already in use". But I can not find out who is using
> it. I ran "netstat -a", but I did not see anything
> like "80". Should I look at something else?
> 
> I also tried "telnet localhost 80", I got
> [EMAIL PROTECTED] telnet localhost 80
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1 ).
> Escape character is '^]'.
> 
> And it hang on there. I type in
> GET index.html HTTP/1.1
> After a couple minutes, I got a "400 bad request" from
> "Apache/2.0.46". Looks like I have apache running. How
> can I stop the apache server?
> 
> I am using linux.
> 
> We are still in the developing stage and all users are
> internal. Thus, security is not a concern right now.
> 
> 
> 
> --- Timo -Blazko- Boewing <[EMAIL PROTECTED]>
> wrote:
> 
> > On Tue, 2005-06-21 at 18:54 +0200, mario nee wrote:
> > > in Unix system you must have root permission to
> > open a port under 1024.
> > >
> >
> > Hello,
> >
> > While this is right, I would not recommend to run
> > Tomcat as root. Better
> > run Tomcat with another port just like the default
> > 8080 and use a
> > firewall application such as iptables to internally
> > forward incoming
> > requests to port 8080; thus you avoid dangerous
> > exploits in Tomcat's
> > webapps.
> >
> > It can be done w/ something similar to this:
> >
> > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport
> > 80 -j REDIRECT
> > --to-port 8080
> >
> >
> > --
> > greetings, | /"\
> > | \ /
> > ASCII-Ribbon-Campaign
> > Timo | X Against HTML
> > Mail
> > | / \
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> 
> 
> 
> 
> Yahoo! Sports
> Rekindle the Rivalries. Sign up for Fantasy Football
> http://football.fantasysports.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Re: Validation while using LookupDispatchAction

2005-06-23 Thread Vicky
Wendy,

But having different actions in struts-config. how
would I call them in my jsp html:form ? because right
now I have only one action in jsp  and then for each button i have
property="method".. in jsp

in struts-config for this action mapping I have
parameter="method"

Did I miss anything in here?

Thanks,


--- Wendy Smoak <[EMAIL PROTECTED]> wrote:

> From: "Vicky" <[EMAIL PROTECTED]>
> 
> > My action class extends LookupDispatchAction,
> which
> > has different methods in it. In struts-config.xml
> i
> > have parameter method as we all know. My problem
> is;
> > in my validation.xml i do have to perform
> different
> > validations for different methods, how do I
> > distinguish or find out which method is called to
> > perform validation for that method only?
> 
> Because you're using DynaValidator_Action_Form, the
> framework will match up
> the  'path' attribute from struts-config.xml
> with the  'name'
> attribute from validation.xml.
> 
> I do it by having different URL patterns mapped to
> the same
> LookupDispatchAction using the same
> DynaValidatorActionForm.
> 
> In the  tag, only the 'path' and 'input'
> differ (so
> 'getInputForward()' works, no matter which path you
> came in with, you go to
> the right form-- it's a four-step wizard.)
> path="/denRegister"
> type="edu.example.RegisterAction"
> name="registerForm" ...
> input="den.register.step1"> ...
> path="/denRegister3"
> type="edu.example.RegisterAction"
> name="registerForm" ...
> input="den.register.step3"> ...
> 
> Then in validation.xml, you use the path for the
> form "name" (which is
> slightly confusing...):
>  ... 
> ... 
> 
> And then you can have different fields validated for
> different paths, even
> though it's the same Action and the same Form.  All
> my forms are POSTed, so
> I wouldn't have had ?parameter=someText in any case.
> 
> HTH,
> -- 
> Wendy Smoak
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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



Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Martin Gainty

server.xml
grep for 'Coyote HTTP/1.1 Connector' change port from

to

and yes I agree with Dave please
read the FINE Manual
Martin-
- Original Message - 
From: "Mark Galbreath" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Thursday, June 23, 2005 1:18 PM
Subject: RE: running tomcat on port 80[Scanned]


It's been awhile since I ran Tomcat with a web server (IIS or Apache), but 
the documentation that comes with Tomcat (including the comments in the 
*.xml config files) is comprehensive.  The docs address your issues in 
particular.


I am preparing to integrate Tomcat 5.5.9 with Apache httpd 2.0.54 on SuSE 
9.3 Pro and Red Hat Enterprise AS 4.0-U1 in the next day or two, so if your 
issues are not resolved by then, I'll repost with particulars.


RTFM!
~mark

-Original Message-
From: Tony Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 12:55 PM
To: Struts Users Mailing List
Subject: Re: running tomcat on port 80[Scanned]


Or, can I move my tomcat under apache so now port
number is necessary in the address?



--- Tony Smith <[EMAIL PROTECTED]> wrote:


Thank all for response.

I loged on as root and changed server.xml to use
port
80. When I start tomcat, it now compained that "80
is
already in use". But I can not find out who is using
it. I ran "netstat -a", but I did not see anything
like "80". Should I look at something else?

I also tried "telnet localhost 80", I got
  [EMAIL PROTECTED] telnet localhost 80
  Trying 127.0.0.1...
  Connected to localhost.localdomain (127.0.0.1).
  Escape character is '^]'.

And it hang on there. I type in
   GET index.html HTTP/1.1
After a couple minutes, I got a "400 bad request"
from
"Apache/2.0.46". Looks like I have apache running.
How
can I stop the apache server?

I am using linux.

We are still in the developing stage and all users
are
internal. Thus, security is not a concern right now.




--- Timo -Blazko- Boewing
<[EMAIL PROTECTED]>
wrote:

> On Tue, 2005-06-21 at 18:54 +0200, mario nee
wrote:
> > in Unix system you must have root permission to
> open a port under 1024.
> >
>
> Hello,
>
> While this is right, I would not recommend to run
> Tomcat as root. Better
> run Tomcat with another port just like the default
> 8080 and use a
> firewall application such as iptables to
internally
> forward incoming
> requests to port 8080; thus you avoid dangerous
> exploits in Tomcat's
> webapps.
>
> It can be done w/ something similar to this:
>
> iptables -t nat -A PREROUTING -i eth0 -p tcp
--dport
> 80 -j REDIRECT
> --to-port 8080
>
>
> -- 
> greetings,   |  /"\

>  |  \ /
> ASCII-Ribbon-Campaign
> Timo |   X Against
HTML
> Mail
>  |  / \
>
>
>
>


-

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






Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football

http://football.fantasysports.yahoo.com



-

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





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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






***
This email and any file transmitted with it may be confidential and is 
intended solely for the use of the individual or entity to whom it is 
addressed.  If you received this email in error please notify the DBM 
Service Desk by forwarding this message to [EMAIL PROTECTED]



This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.








This email and any file transmitted with it may be confidential and is 
intended solely for the use of the individual or entity to whom it is 
addressed.  If you received this email in error please notify the DBM 
Service Desk by forwarding this message to [EMAIL PROTECTED]



This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.



-
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: JAAS example[Scanned]

2005-06-23 Thread Arash Bijanzadeh
Thank you, Last time I tryed it tomcat was buggy and left me frustrated! May 
be it is OK now!
Cheers
Arash

On 6/23/05, Nitesh <[EMAIL PROTECTED]> wrote:
> 
> And...
> 
> http://www.jroller.com/page/tomdz/20041215
> 
> 
> Nitesh
> 
> Googling results...
> 
> http://jakarta.apache.org/slide/howto-jaas.html
> 
> http://www.isys.uni-klu.ac.at/ISYS/Courses/04WS/webtechnologien/downloads/TomcatConfig.pdf
> 
> 
> 
> Nitesh
> 
> - Original Message -
> From: Arash Bijanzadeh
> To: Nitesh
> Sent: Thursday, June 23, 2005 3:14 PM
> Subject: Re: JAAS example
> 
> 
> I am familiar with JASS. My question is how struts using the JAAS for 
> security, how shall I implement it and for the starting point how can I get 
> a JAAS user in a Action working with the tomcat?
> 
> 
> On 6/23/05, Nitesh <[EMAIL PROTECTED]> wrote:
> http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/JAASRefGuide.html
> and
> http://struts.apache.org/userGuide/preface.html#jaas
> 
> could be a starting point...
> 
> HTH
> Nitesh
> - Original Message -
> From: "Arash Bijanzadeh" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Thursday, June 23, 2005 2:47 PM
> Subject: JAAS example
> 
> 
> Hi all,
> I am searching for an example of using struts security framework and JAAS
> maybe. Could anyone lead me to a document/tutorial/example?
> Thanks
> Arash B.
> 
> 
> 
>


RE: jsp vs jstl in Math

2005-06-23 Thread Karr, David
Yes, I should have mentioned that.  If you're using a JSP 2.0 container,
you should NOT use Struts-EL.  It will cause more trouble.  If you
configure your webapp correctly, you can use the EL natively in
attributes, and even in template text.

> -Original Message-
> From: Mark Diggory [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 23, 2005 10:26 AM
> To: Struts Users Mailing List
> Subject: Re: jsp vs jstl in Math
> 
> 
> If your using a JSP 2.0 container (Tomcat 5.x), I think you should be 
> able to use EL right on top of Struts taglib without any third party 
> contibs. Others, correct me if I'm wrong here.
> 
> -Mark
> 
> Karr, David wrote:
> 
> >Use the Struts-EL taglib, provided in the 
> "contrib/struts-el" subdir of 
> >the Struts distribution.  It's a port of most of the Struts tags 
> >(except the ones that provide functionality that the JSTL provides 
> >directly), but it uses the JSTL expression evaluator for 
> attributes.  
> >Search the archives for "struts-el" for (tons) of references to this.
> >
> >  
> >
> >>-Original Message-
> >>From: mario nee [mailto:[EMAIL PROTECTED]
> >>Sent: Thursday, June 23, 2005 1:14 AM
> >>To: Struts Users Mailing List
> >>Subject: jsp vs jstl in Math
> >>
> >>Hello,
> >>
> >>if i use jstl for Math operation i write this
> >>
> >>
> >>if i use struts taglib how can i do the same thing  without
> >>use <% ... %> ?
> >>
> >>
> >
> >-
> >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]



ValidatorActionForm and java script validation....

2005-06-23 Thread Lucas Bern

Hi guys

does anybody know if the java script validation of validator framework can be 
used with ValidatorActionForm, I need to perform diferent validations in 
diferent action that used the same form i would like these validations be 
performed in the client...

Thanks

Lucas

 


-
 1GB gratis, Antivirus y Antispam
 Correo Yahoo!, el mejor correo web del mundo
 Abrí tu cuenta aquí

Re: Displaytag and Struts problem

2005-06-23 Thread Lucas Bern
Hi Martin...
I´ve been using display tag and struts for a long time, and, I can say that  it 
works beautifull, no limitation in any functionality provided by both 
frameworks...
 
I tell you this because if you think something can not be done, may be you are 
wrong...
 
The problem with the checkboxes and the paginated lists is an old problem...
 
When you click on a link to the next or previous page, yo are not submitting 
the information introduced by the user, so it is impossible to "remember" the 
checkboxes "checked" form a page to another.
The best way to do this, is that the user submits his data before changing the 
page, or just do not paginate the list...
These are not solutions, just ways to avoid the problem...
The only solution is that when the user changes the page, the data should be 
sumbited... It is hard to do, because the pagination won`t work...
Another way is that when the user checks a row tha page performs a submit so 
you keep in session scope the rows cheked, the problem is that when the user 
is, for example, at the page number 4, the submit must respond with the page 
number 4, to do that, you will have to build the "page parameters" that display 
tag uses for paginate, manually it is possible but very ugly from my point 
of view...
 
 that´s all I can say, wish it  helps you... and if you find another solution, 
please tell me!...
 
Lucas

Martin Kindler <[EMAIL PROTECTED]> escribió:
I have been introduced to the marvels of the displaytag
(http://displaytag.sourceforge.net) by someone from this list and it is
really worthwhile!

Now I am encountering a problem where I need help.

I have a rather large list of items to be shown in a table managed by
displaytag using the automatic paging provided by it.
The table is inside a form and the wanted operation is select some of the
items to store them at submit time in some object.
To select the items I am using the multibox tag.

When I go to another page (using the previous/next links provided by
displaytag) I am losing the information about the selected items in the page
with the link on (as the ActionForm associated with the action is resetted).
Is there an easy way to keep the information until finally the form is
submitted?

Martin

---
cityExperience.net
Dipl. Inf. Martin Kindler
Kaulbachstr. 20a
D-12247 Berlin
Deutschland

eMail [EMAIL PROTECTED]



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



-
 1GB gratis, Antivirus y Antispam
 Correo Yahoo!, el mejor correo web del mundo
 Abrí tu cuenta aquí

Re: jsp vs jstl in Math

2005-06-23 Thread Mark Diggory
If your using a JSP 2.0 container (Tomcat 5.x), I think you should be 
able to use EL right on top of Struts taglib without any third party 
contibs. Others, correct me if I'm wrong here.


-Mark

Karr, David wrote:


Use the Struts-EL taglib, provided in the "contrib/struts-el" subdir of
the Struts distribution.  It's a port of most of the Struts tags (except
the ones that provide functionality that the JSTL provides directly),
but it uses the JSTL expression evaluator for attributes.  Search the
archives for "struts-el" for (tons) of references to this.

 


-Original Message-
From: mario nee [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 23, 2005 1:14 AM

To: Struts Users Mailing List
Subject: jsp vs jstl in Math

Hello,

if i use jstl for Math operation i write this


if i use struts taglib how can i do the same thing  without 
use <% ... %> ?
   



-
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: running tomcat on port 80[Scanned]

2005-06-23 Thread Mark Galbreath
It's been awhile since I ran Tomcat with a web server (IIS or Apache), but the 
documentation that comes with Tomcat (including the comments in the *.xml 
config files) is comprehensive.  The docs address your issues in particular.

I am preparing to integrate Tomcat 5.5.9 with Apache httpd 2.0.54 on SuSE 9.3 
Pro and Red Hat Enterprise AS 4.0-U1 in the next day or two, so if your issues 
are not resolved by then, I'll repost with particulars.

RTFM!
~mark

-Original Message-
From: Tony Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 12:55 PM
To: Struts Users Mailing List
Subject: Re: running tomcat on port 80[Scanned]


Or, can I move my tomcat under apache so now port
number is necessary in the address?



--- Tony Smith <[EMAIL PROTECTED]> wrote:

> Thank all for response. 
> 
> I loged on as root and changed server.xml to use
> port
> 80. When I start tomcat, it now compained that "80
> is
> already in use". But I can not find out who is using
> it. I ran "netstat -a", but I did not see anything
> like "80". Should I look at something else? 
> 
> I also tried "telnet localhost 80", I got 
>   [EMAIL PROTECTED] telnet localhost 80
>   Trying 127.0.0.1...
>   Connected to localhost.localdomain (127.0.0.1).
>   Escape character is '^]'.
> 
> And it hang on there. I type in 
>GET index.html HTTP/1.1
> After a couple minutes, I got a "400 bad request"
> from
> "Apache/2.0.46". Looks like I have apache running.
> How
> can I stop the apache server? 
> 
> I am using linux. 
> 
> We are still in the developing stage and all users
> are
> internal. Thus, security is not a concern right now.
> 
> 
> 
> 
> --- Timo -Blazko- Boewing
> <[EMAIL PROTECTED]>
> wrote:
> 
> > On Tue, 2005-06-21 at 18:54 +0200, mario nee
> wrote:
> > > in Unix system you must have root permission to
> > open a port under 1024.
> > > 
> > 
> > Hello,
> > 
> > While this is right, I would not recommend to run
> > Tomcat as root. Better
> > run Tomcat with another port just like the default
> > 8080 and use a
> > firewall application such as iptables to
> internally
> > forward incoming
> > requests to port 8080; thus you avoid dangerous
> > exploits in Tomcat's
> > webapps.
> > 
> > It can be done w/ something similar to this:
> > 
> > iptables -t nat -A PREROUTING -i eth0 -p tcp
> --dport
> > 80 -j REDIRECT
> > --to-port 8080
> > 
> > 
> > -- 
> > greetings,   |  /"\ 
> >  |  \ / 
> > ASCII-Ribbon-Campaign
> > Timo |   X Against
> HTML
> > Mail
> >  |  / \ 
> > 
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> 
> 
> 
>   
> 
> 
> Yahoo! Sports 
> Rekindle the Rivalries. Sign up for Fantasy Football
> 
> http://football.fantasysports.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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






***
This email and any file transmitted with it may be confidential and is intended 
solely for the use of the individual or entity to whom it is addressed.  If you 
received this email in error please notify the DBM Service Desk by forwarding 
this message to [EMAIL PROTECTED]


This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.







This email and any file transmitted with it may be confidential and is intended 
solely for the use of the individual or entity to whom it is addressed.  If you 
received this email in error please notify the DBM Service Desk by forwarding 
this message to [EMAIL PROTECTED]


This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.


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



Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Tom Ziemer

Hi,

you can configure apache to pass all requests containing *.jsp to your 
tomcat. This setup requires an extra connector, such as jk2.


Tom

Tony Smith wrote:

Or, can I move my tomcat under apache so now port
number is necessary in the address?



--- Tony Smith <[EMAIL PROTECTED]> wrote:


Thank all for response. 


I loged on as root and changed server.xml to use
port
80. When I start tomcat, it now compained that "80
is
already in use". But I can not find out who is using
it. I ran "netstat -a", but I did not see anything
like "80". Should I look at something else? 

I also tried "telnet localhost 80", I got 
 [EMAIL PROTECTED] telnet localhost 80

 Trying 127.0.0.1...
 Connected to localhost.localdomain (127.0.0.1).
 Escape character is '^]'.

And it hang on there. I type in 
  GET index.html HTTP/1.1

After a couple minutes, I got a "400 bad request"
from
"Apache/2.0.46". Looks like I have apache running.
How
can I stop the apache server? 

I am using linux. 


We are still in the developing stage and all users
are
internal. Thus, security is not a concern right now.




--- Timo -Blazko- Boewing
<[EMAIL PROTECTED]>
wrote:



On Tue, 2005-06-21 at 18:54 +0200, mario nee


wrote:


in Unix system you must have root permission to


open a port under 1024.

Hello,

While this is right, I would not recommend to run
Tomcat as root. Better
run Tomcat with another port just like the default
8080 and use a
firewall application such as iptables to


internally


forward incoming
requests to port 8080; thus you avoid dangerous
exploits in Tomcat's
webapps.

It can be done w/ something similar to this:

iptables -t nat -A PREROUTING -i eth0 -p tcp


--dport


80 -j REDIRECT
--to-port 8080


--
greetings,   |  /"\ 
|  \ / 
ASCII-Ribbon-Campaign

Timo |   X Against


HTML


Mail
|  / \ 








-


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











Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football


http://football.fantasysports.yahoo.com




-


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






__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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



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



Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Tom Ziemer

Hi Tony,

try this:
/etc/initd/apache stop

if this does not work, do this:
ps -ef | grep -i apache

This will give you the PID, which can be used to kill the process:
kill - 9 PID

The next time you restart your server, apache will be started again, 
though - so you have to disable it. How to disable a service depends on 
the linux distribution you are using. Basically you have to look in 
/etc/init.d/rc(X).d for the startup/shutdown scripts.


Hope this helps,
Tom

Tony Smith wrote:
Thank all for response. 


I loged on as root and changed server.xml to use port
80. When I start tomcat, it now compained that "80 is
already in use". But I can not find out who is using
it. I ran "netstat -a", but I did not see anything
like "80". Should I look at something else? 

I also tried "telnet localhost 80", I got 
  [EMAIL PROTECTED] telnet localhost 80

  Trying 127.0.0.1...
  Connected to localhost.localdomain (127.0.0.1).
  Escape character is '^]'.

And it hang on there. I type in 
   GET index.html HTTP/1.1

After a couple minutes, I got a "400 bad request" from
"Apache/2.0.46". Looks like I have apache running. How
can I stop the apache server? 

I am using linux. 


We are still in the developing stage and all users are
internal. Thus, security is not a concern right now. 




--- Timo -Blazko- Boewing <[EMAIL PROTECTED]>
wrote:



On Tue, 2005-06-21 at 18:54 +0200, mario nee wrote:


in Unix system you must have root permission to


open a port under 1024.

Hello,

While this is right, I would not recommend to run
Tomcat as root. Better
run Tomcat with another port just like the default
8080 and use a
firewall application such as iptables to internally
forward incoming
requests to port 8080; thus you avoid dangerous
exploits in Tomcat's
webapps.

It can be done w/ something similar to this:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport
80 -j REDIRECT
--to-port 8080


--
greetings,   |  /"\ 
|  \ / 
ASCII-Ribbon-Campaign

Timo |   X Against HTML
Mail
|  / \ 







-


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










 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com


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



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



Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Tony Smith
Or, can I move my tomcat under apache so now port
number is necessary in the address?



--- Tony Smith <[EMAIL PROTECTED]> wrote:

> Thank all for response. 
> 
> I loged on as root and changed server.xml to use
> port
> 80. When I start tomcat, it now compained that "80
> is
> already in use". But I can not find out who is using
> it. I ran "netstat -a", but I did not see anything
> like "80". Should I look at something else? 
> 
> I also tried "telnet localhost 80", I got 
>   [EMAIL PROTECTED] telnet localhost 80
>   Trying 127.0.0.1...
>   Connected to localhost.localdomain (127.0.0.1).
>   Escape character is '^]'.
> 
> And it hang on there. I type in 
>GET index.html HTTP/1.1
> After a couple minutes, I got a "400 bad request"
> from
> "Apache/2.0.46". Looks like I have apache running.
> How
> can I stop the apache server? 
> 
> I am using linux. 
> 
> We are still in the developing stage and all users
> are
> internal. Thus, security is not a concern right now.
> 
> 
> 
> 
> --- Timo -Blazko- Boewing
> <[EMAIL PROTECTED]>
> wrote:
> 
> > On Tue, 2005-06-21 at 18:54 +0200, mario nee
> wrote:
> > > in Unix system you must have root permission to
> > open a port under 1024.
> > > 
> > 
> > Hello,
> > 
> > While this is right, I would not recommend to run
> > Tomcat as root. Better
> > run Tomcat with another port just like the default
> > 8080 and use a
> > firewall application such as iptables to
> internally
> > forward incoming
> > requests to port 8080; thus you avoid dangerous
> > exploits in Tomcat's
> > webapps.
> > 
> > It can be done w/ something similar to this:
> > 
> > iptables -t nat -A PREROUTING -i eth0 -p tcp
> --dport
> > 80 -j REDIRECT
> > --to-port 8080
> > 
> > 
> > -- 
> > greetings,   |  /"\ 
> >  |  \ / 
> > ASCII-Ribbon-Campaign
> > Timo |   X Against
> HTML
> > Mail
> >  |  / \ 
> > 
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> 
> 
> 
>   
> 
> 
> Yahoo! Sports 
> Rekindle the Rivalries. Sign up for Fantasy Football
> 
> http://football.fantasysports.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Tony Smith
Thank all for response. 

I loged on as root and changed server.xml to use port
80. When I start tomcat, it now compained that "80 is
already in use". But I can not find out who is using
it. I ran "netstat -a", but I did not see anything
like "80". Should I look at something else? 

I also tried "telnet localhost 80", I got 
  [EMAIL PROTECTED] telnet localhost 80
  Trying 127.0.0.1...
  Connected to localhost.localdomain (127.0.0.1).
  Escape character is '^]'.

And it hang on there. I type in 
   GET index.html HTTP/1.1
After a couple minutes, I got a "400 bad request" from
"Apache/2.0.46". Looks like I have apache running. How
can I stop the apache server? 

I am using linux. 

We are still in the developing stage and all users are
internal. Thus, security is not a concern right now. 



--- Timo -Blazko- Boewing <[EMAIL PROTECTED]>
wrote:

> On Tue, 2005-06-21 at 18:54 +0200, mario nee wrote:
> > in Unix system you must have root permission to
> open a port under 1024.
> > 
> 
> Hello,
> 
> While this is right, I would not recommend to run
> Tomcat as root. Better
> run Tomcat with another port just like the default
> 8080 and use a
> firewall application such as iptables to internally
> forward incoming
> requests to port 8080; thus you avoid dangerous
> exploits in Tomcat's
> webapps.
> 
> It can be done w/ something similar to this:
> 
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport
> 80 -j REDIRECT
> --to-port 8080
> 
> 
> -- 
> greetings,   |  /"\ 
>  |  \ / 
> ASCII-Ribbon-Campaign
> Timo |   X Against HTML
> Mail
>  |  / \ 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 




 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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



Re: running tomcat on port 80

2005-06-23 Thread Timo -Blazko- Boewing
On Tue, 2005-06-21 at 18:54 +0200, mario nee wrote:
> in Unix system you must have root permission to open a port under 1024.
> 

Hello,

While this is right, I would not recommend to run Tomcat as root. Better
run Tomcat with another port just like the default 8080 and use a
firewall application such as iptables to internally forward incoming
requests to port 8080; thus you avoid dangerous exploits in Tomcat's
webapps.

It can be done w/ something similar to this:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
--to-port 8080


-- 
greetings,   |  /"\ 
 |  \ /  ASCII-Ribbon-Campaign
Timo |   X Against HTML Mail
 |  / \ 



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



RE: jsp vs jstl in Math

2005-06-23 Thread Karr, David
Use the Struts-EL taglib, provided in the "contrib/struts-el" subdir of
the Struts distribution.  It's a port of most of the Struts tags (except
the ones that provide functionality that the JSTL provides directly),
but it uses the JSTL expression evaluator for attributes.  Search the
archives for "struts-el" for (tons) of references to this.

> -Original Message-
> From: mario nee [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 23, 2005 1:14 AM
> To: Struts Users Mailing List
> Subject: jsp vs jstl in Math
> 
> Hello,
> 
> if i use jstl for Math operation i write this
> 
> 
> if i use struts taglib how can i do the same thing  without 
> use <% ... %> ?

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



Re: How to create form rows dynamically

2005-06-23 Thread Michael Jouravlev
On 6/23/05, Ciaran Hanley <[EMAIL PROTECTED]> wrote:
> Can somebody help me or propose a solution to the following please.
> 
> I wish to create a form dynamically. Depending on the business logic there
> could be 0 to N rows in the form.
...
> I also need to iterate over a bean containing information which corresponds
> to the form as the form boxes are being displayed.
...
> I am also unsure as to how to access these values when I get to the
> form/action classes.

Adding to other replies: would you care to take a look at CRUDAction.
It does not display the list by itself, but sample code contains the
helper action which displays the list and all needed buttons for CRUD
operations: http://struts.sourceforge.net/strutsdialogs/crudaction.html
The item list is displayed using array list of items.
You can download it here:
http://sourceforge.net/project/showfiles.php?group_id=49385&release_id=336852

Michael.

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



Re: File shared among several project...

2005-06-23 Thread Gaet
Thanks for reply Aleksandar!

You are right bout ANT, but how about sharing thoses common files under
WSAD?...
I think I am oblige to have them duplicated between my workspace and be
careful when I update one of thoses files...

Thanks again!

- Original Message - 
From: "Aleksandar Matijaca" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, June 21, 2005 4:05 PM
Subject: Re: File shared among several project...


I like the idea of 4 separate spaces, and 'moving around' miscalenous files
(such as CSS, GIF and
others) should not hold you back. Presumably for such a large project, you
are using ANT to facilitate builds etc.
You should be able to modify your scripts so that it also copies these files
around to all four EARs (assuming here
that there are not hundreds and hundreds of these miscalenous files). Four
separate EARs is the way to og in
my opinion.

Cheers, Aleksandar.


On 6/21/05, Gaet <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I guess this is probably not the right place but I know also that there is
> also a lot of good developers here and I would like to have your advice on
a
> simple problem.
>
> In fact, I am developping a web site with 4 distinct areas (public,
> member, admin, employee) on Websphere environnement (WSAD, WAS,..)
> Until now, all these areas are developped into a same WSAD project and
> packaged into a single EAR that we deploy.
>
> The weakness of this solution is that we need to stop all the 4 areas when
> we have made an update on just one area.
> Our goal will be to be able to only stop the area(s) that have to be
> updated to not disturb users of the others areas.
>
> We have though about have 4 project in WSAD but the BIG weakness of this
> is that it required to have common files (CSS, javascript) shared among
> these project (so we have to copy and paste them into each project at each
> update)seels to be really heavy!
>
> So I have just two or three questions:
> Are we on the right solution by having one project by area? (in this case,
> how to handle shared files simply?)
> Or may I should have only one project in WSAD and generate 4 EARs behind?
> do you think this will be possible??
>
> Thanks in advance for your help
>
>


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



RE: Validation while using LookupDispatchAction

2005-06-23 Thread Nitish Kumar


I would probably use ValidWhen 





test
( (method!= "validateMe")
or (*this* != null) )



Thanks and Regards, 
Nitish Kumar 




-Original Message-
From: Vicky [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 7:55 PM
To: Struts Users Mailing List
Subject: Validation while using LookupDispatchAction


My action class extends LookupDispatchAction, which
has different methods in it. In struts-config.xml i
have parameter method as we all know. My problem is;
in my validation.xml i do have to perform different
validations for different methods, how do I
distinguish or find out which method is called to
perform validation for that method only?

struts-config.xml

   







validation.xml





   


 


in above code in validaton.xml i need to pass method
name for which i want this validation to take place
not for all methods. Something like 

how do I do this? or any other way. I would appreciate
prompt response with examples.

Thanks in advance,





__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

-
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: Validation while using LookupDispatchAction

2005-06-23 Thread Wendy Smoak
From: "Vicky" <[EMAIL PROTECTED]>

> My action class extends LookupDispatchAction, which
> has different methods in it. In struts-config.xml i
> have parameter method as we all know. My problem is;
> in my validation.xml i do have to perform different
> validations for different methods, how do I
> distinguish or find out which method is called to
> perform validation for that method only?

Because you're using DynaValidator_Action_Form, the framework will match up
the  'path' attribute from struts-config.xml with the  'name'
attribute from validation.xml.

I do it by having different URL patterns mapped to the same
LookupDispatchAction using the same DynaValidatorActionForm.

In the  tag, only the 'path' and 'input' differ (so
'getInputForward()' works, no matter which path you came in with, you go to
the right form-- it's a four-step wizard.)
...
...

Then in validation.xml, you use the path for the form "name" (which is
slightly confusing...):
 ... 
... 

And then you can have different fields validated for different paths, even
though it's the same Action and the same Form.  All my forms are POSTed, so
I wouldn't have had ?parameter=someText in any case.

HTH,
-- 
Wendy Smoak



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



RE: [OT] Find missing property file keys?

2005-06-23 Thread Nitish Kumar
Following code would give you the missing keys..


InputStream is = null;
Properties props1 = new Properties();
Properties props2 = new Properties();

ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
if (classLoader == null) {
classLoader = this.getClass().getClassLoader();
}

is = classLoader.getResourceAsStream("");

if (is != null) {
try {
props1.load(is);

}
catch (IOException e) {

}
finally {
try {
is.close();
}
catch (IOException e) {
}
}
}
is = classLoader.getResourceAsStream("");

if (is != null) {
try {
props2.load(is);

}
catch (IOException e) {

}
finally {
try {
is.close();
}
catch (IOException e) {
}
}
}

java.util.Enumeration enum =  props1.keys();
while(enum.hasMoreElements())
{
String key = (String) enum.nextElement();
if(!props1.containsKey(key))
{
System.out.println(key);
}
}


Thanks and Regards,
Nitish Kumar
Tavant Technologies Ltd
Bangalore


-Original Message-
From: Emmanouil Batsis [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 7:44 PM
To: Struts Users Mailing List
Subject: [OT] Find missing property file keys?


Hi all,

Is there any tool to compare property files based on their keys only ? I 
have some really huge ones for different locales but the number of keys 
is different and i need to find the missing ones...

Thanks,

Manos

-
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: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Gilbert, Antoine
All files are included

-Original Message-
From: klute [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2005 10:11 AM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs Validator framework

Just a sanity check, did you open up your war and
ensured that the ApplicationResources.properties is in
fact there in WEB-INF/classes? Perhaps, your pkg/war
task might have excluded it by mistake?


--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:

> Only message-resources tag is
> 
>  parameter="ApplicationResources"/>
> 
> -Original Message-
> From: Marsh-Bourdon, Christopher
> [mailto:[EMAIL PROTECTED] 
> Sent: June 23, 2005 10:01 AM
> To: 'Struts Users Mailing List'
> Subject: RE: ApplicationResources.properties vs
> Validator framework
> 
> In that case does it contain (or path similar)
> within the
> struts-config.xml:
> 
> 
parameter="com.drkw.cpds.ratings2.webapplication.struts.ApplicationResou
> rces
> " />
> 
> Christopher Marsh-Bourdon
> www.marsh-bourdon.com
> 
> 
> -Original Message-
> From: Gilbert, Antoine [mailto:[EMAIL PROTECTED] 
> Sent: 23 June 2005 14:58
> To: Struts Users Mailing List
> Subject: RE: ApplicationResources.properties vs
> Validator framework
> 
> yes
> 
> -Original Message-
> From: klute [mailto:[EMAIL PROTECTED]
> Sent: June 23, 2005 9:55 AM
> To: Struts Users Mailing List
> Subject: Re: ApplicationResources.properties vs
> Validator framework
> 
> Does your web.xml contain the following as part of
> the action servlet
> config?
> 
> 
>   application
>   ApplicationResources
> 
> 
> 
> --- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:
> 
> > Hi
> > 
> >  
> > 
> > I have a strange problem.
> > 
> >  
> > 
> > I have an application using validator on server
> side and client side 
> > (javascript), I have an
> ApplicationResources.properties with all my 
> > messages for erreor messages from validations. All
> is working ok.
> > 
> >  
> > 
> > But, I made a war file and deployed the
> application
> > on another server,
> > and all validations error messages are now empty.
> > ApplicationResources.properties is there, and I
> have
> > this line in my
> > struts-config.xml :
> > 
> >  
> > 
> >  > parameter="ApplicationResources"/>
> > 
> >  
> > 
> > I activated logs via log4j, and I'm not getting
> any
> > significant
> > information except maybe this (I don't see him
> load
> > ApplicationResources.properties) :
> > 
> >  
> > 
> >  
> > 
> > DEBUG
> >
>
[org.apache.struts.action.RequestProcessor][23-06-2005
> > 08:29:42]:
> >
>
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
> >
>
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
> > ative=false,module=null])
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: getMessage(fr_CA,errors.required)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr_CA)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource
> > 'resources/application_fr_CA.properties'
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource completed
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource
> > 'resources/application_fr.properties'
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource completed
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale()
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource
> > 'resources/application.properties'
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource completed
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: getMessage(fr_CA,errors.maxlength)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr_CA)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale()
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: getMessage(fr_CA,errors.maxlength)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr_CA)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: load

Displaytag and Struts problem

2005-06-23 Thread Martin Kindler
I have been introduced to the marvels of the displaytag
(http://displaytag.sourceforge.net) by someone from this list and it is
really worthwhile!

Now I am encountering a problem where I need help.

I have a rather large list of items to be shown in a table managed by
displaytag using the automatic paging provided by it.
The table is inside a form and the wanted operation is select some of the
items to store them at submit time in some object.
To select the items I am using the multibox tag.

When I go to another page (using the previous/next links provided by
displaytag) I am losing the information about the selected items in the page
with the link on (as the ActionForm associated with the action is resetted).
Is there an easy way to keep the information until finally the form is
submitted?

Martin

---
cityExperience.net
Dipl. Inf. Martin Kindler
Kaulbachstr. 20a
D-12247 Berlin
Deutschland

eMail [EMAIL PROTECTED]



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



Validation while using LookupDispatchAction

2005-06-23 Thread Vicky
My action class extends LookupDispatchAction, which
has different methods in it. In struts-config.xml i
have parameter method as we all know. My problem is;
in my validation.xml i do have to perform different
validations for different methods, how do I
distinguish or find out which method is called to
perform validation for that method only?

struts-config.xml

   







validation.xml





   


 


in above code in validaton.xml i need to pass method
name for which i want this validation to take place
not for all methods. Something like 

how do I do this? or any other way. I would appreciate
prompt response with examples.

Thanks in advance,





__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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



RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread klute
Just a sanity check, did you open up your war and
ensured that the ApplicationResources.properties is in
fact there in WEB-INF/classes? Perhaps, your pkg/war
task might have excluded it by mistake?


--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:

> Only message-resources tag is
> 
>  parameter="ApplicationResources"/>
> 
> -Original Message-
> From: Marsh-Bourdon, Christopher
> [mailto:[EMAIL PROTECTED] 
> Sent: June 23, 2005 10:01 AM
> To: 'Struts Users Mailing List'
> Subject: RE: ApplicationResources.properties vs
> Validator framework
> 
> In that case does it contain (or path similar)
> within the
> struts-config.xml:
> 
> 
parameter="com.drkw.cpds.ratings2.webapplication.struts.ApplicationResou
> rces
> " />
> 
> Christopher Marsh-Bourdon
> www.marsh-bourdon.com
> 
> 
> -Original Message-
> From: Gilbert, Antoine [mailto:[EMAIL PROTECTED] 
> Sent: 23 June 2005 14:58
> To: Struts Users Mailing List
> Subject: RE: ApplicationResources.properties vs
> Validator framework
> 
> yes
> 
> -Original Message-
> From: klute [mailto:[EMAIL PROTECTED]
> Sent: June 23, 2005 9:55 AM
> To: Struts Users Mailing List
> Subject: Re: ApplicationResources.properties vs
> Validator framework
> 
> Does your web.xml contain the following as part of
> the action servlet
> config?
> 
> 
>   application
>   ApplicationResources
> 
> 
> 
> --- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:
> 
> > Hi
> > 
> >  
> > 
> > I have a strange problem.
> > 
> >  
> > 
> > I have an application using validator on server
> side and client side 
> > (javascript), I have an
> ApplicationResources.properties with all my 
> > messages for erreor messages from validations. All
> is working ok.
> > 
> >  
> > 
> > But, I made a war file and deployed the
> application
> > on another server,
> > and all validations error messages are now empty.
> > ApplicationResources.properties is there, and I
> have
> > this line in my
> > struts-config.xml :
> > 
> >  
> > 
> >  > parameter="ApplicationResources"/>
> > 
> >  
> > 
> > I activated logs via log4j, and I'm not getting
> any
> > significant
> > information except maybe this (I don't see him
> load
> > ApplicationResources.properties) :
> > 
> >  
> > 
> >  
> > 
> > DEBUG
> >
>
[org.apache.struts.action.RequestProcessor][23-06-2005
> > 08:29:42]:
> >
>
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
> >
>
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
> > ative=false,module=null])
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: getMessage(fr_CA,errors.required)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr_CA)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource
> > 'resources/application_fr_CA.properties'
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource completed
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource
> > 'resources/application_fr.properties'
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource completed
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale()
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource
> > 'resources/application.properties'
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]:   Loading resource completed
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: getMessage(fr_CA,errors.maxlength)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr_CA)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale()
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: getMessage(fr_CA,errors.maxlength)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr_CA)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale(fr)
> > 
> >  DEBUG
> >
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> > 08:29:43]: loadLocale()
> > 
> 
=== message truncated ===


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--

[OT] Find missing property file keys?

2005-06-23 Thread Emmanouil Batsis

Hi all,

Is there any tool to compare property files based on their keys only ? I 
have some really huge ones for different locales but the number of keys 
is different and i need to find the missing ones...


Thanks,

Manos

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



RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Gilbert, Antoine
Only message-resources tag is



-Original Message-
From: Marsh-Bourdon, Christopher
[mailto:[EMAIL PROTECTED] 
Sent: June 23, 2005 10:01 AM
To: 'Struts Users Mailing List'
Subject: RE: ApplicationResources.properties vs Validator framework

In that case does it contain (or path similar) within the
struts-config.xml:



Christopher Marsh-Bourdon
www.marsh-bourdon.com


-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED] 
Sent: 23 June 2005 14:58
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs Validator framework

yes

-Original Message-
From: klute [mailto:[EMAIL PROTECTED]
Sent: June 23, 2005 9:55 AM
To: Struts Users Mailing List
Subject: Re: ApplicationResources.properties vs Validator framework

Does your web.xml contain the following as part of the action servlet
config?


  application
  ApplicationResources



--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:

> Hi
> 
>  
> 
> I have a strange problem.
> 
>  
> 
> I have an application using validator on server side and client side 
> (javascript), I have an ApplicationResources.properties with all my 
> messages for erreor messages from validations. All is working ok.
> 
>  
> 
> But, I made a war file and deployed the application
> on another server,
> and all validations error messages are now empty.
> ApplicationResources.properties is there, and I have
> this line in my
> struts-config.xml :
> 
>  
> 
>  parameter="ApplicationResources"/>
> 
>  
> 
> I activated logs via log4j, and I'm not getting any
> significant
> information except maybe this (I don't see him load
> ApplicationResources.properties) :
> 
>  
> 
>  
> 
> DEBUG
>
[org.apache.struts.action.RequestProcessor][23-06-2005
> 08:29:42]:
>
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
>
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
> ative=false,module=null])
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.required)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: getMessage(fr_CA,fin

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Gilbert, Antoine
Yes, under WEB-INF/classes

-Original Message-
From: klute [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2005 10:05 AM
To: Struts Users Mailing List
Subject: Re: ApplicationResources.properties vs Validator framework

btw, where exactly is your
ApplicationResources.properties located under
WEB_INF/classes?

--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:

> Hi
> 
>  
> 
> I have a strange problem.
> 
>  
> 
> I have an application using validator on server side
> and client side
> (javascript), I have an
> ApplicationResources.properties with all my
> messages for erreor messages from validations. All
> is working ok.
> 
>  
> 
> But, I made a war file and deployed the application
> on another server,
> and all validations error messages are now empty.
> ApplicationResources.properties is there, and I have
> this line in my
> struts-config.xml :
> 
>  
> 
>  parameter="ApplicationResources"/>
> 
>  
> 
> I activated logs via log4j, and I'm not getting any
> significant
> information except maybe this (I don't see him load
> ApplicationResources.properties) :
> 
>  
> 
>  
> 
> DEBUG
>
[org.apache.struts.action.RequestProcessor][23-06-2005
> 08:29:42]:
>
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
>
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
> ative=false,module=null])
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.required)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: getMessage(fr_CA,finalizing)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource
>
'org/apache/struts/action/ActionResources_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 

Re: ApplicationResources.properties vs Validator framework

2005-06-23 Thread klute
btw, where exactly is your
ApplicationResources.properties located under
WEB_INF/classes?

--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:

> Hi
> 
>  
> 
> I have a strange problem.
> 
>  
> 
> I have an application using validator on server side
> and client side
> (javascript), I have an
> ApplicationResources.properties with all my
> messages for erreor messages from validations. All
> is working ok.
> 
>  
> 
> But, I made a war file and deployed the application
> on another server,
> and all validations error messages are now empty.
> ApplicationResources.properties is there, and I have
> this line in my
> struts-config.xml :
> 
>  
> 
>  parameter="ApplicationResources"/>
> 
>  
> 
> I activated logs via log4j, and I'm not getting any
> significant
> information except maybe this (I don't see him load
> ApplicationResources.properties) :
> 
>  
> 
>  
> 
> DEBUG
>
[org.apache.struts.action.RequestProcessor][23-06-2005
> 08:29:42]:
>
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
>
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
> ative=false,module=null])
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.required)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: getMessage(fr_CA,finalizing)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource
>
'org/apache/struts/action/ActionResources_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource
>
'org/apache/struts/action/ActionResources_fr.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource completed
> 
>  DEBUG
>
[o

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Nitish Kumar

>From the log, it seems that struts is finding "application.resources" from
your config file. 

Just check if you have a "." in the config..

Thanks and Regards,
Nitish Kumar


-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 7:28 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs Validator framework


yes

-Original Message-
From: klute [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2005 9:55 AM
To: Struts Users Mailing List
Subject: Re: ApplicationResources.properties vs Validator framework

Does your web.xml contain the following as part of the
action servlet config?


  application
  ApplicationResources



--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:

> Hi
> 
>  
> 
> I have a strange problem.
> 
>  
> 
> I have an application using validator on server side
> and client side
> (javascript), I have an
> ApplicationResources.properties with all my
> messages for erreor messages from validations. All
> is working ok.
> 
>  
> 
> But, I made a war file and deployed the application
> on another server,
> and all validations error messages are now empty.
> ApplicationResources.properties is there, and I have
> this line in my
> struts-config.xml :
> 
>  
> 
>  parameter="ApplicationResources"/>
> 
>  
> 
> I activated logs via log4j, and I'm not getting any
> significant
> information except maybe this (I don't see him load
> ApplicationResources.properties) :
> 
>  
> 
>  
> 
> DEBUG
>
[org.apache.struts.action.RequestProcessor][23-06-2005
> 08:29:42]:
>
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
>
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
> ative=false,module=null])
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.required)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: getMessage(fr_CA,finalizing)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Marsh-Bourdon, Christopher
In that case does it contain (or path similar) within the struts-config.xml:



Christopher Marsh-Bourdon
www.marsh-bourdon.com


-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED] 
Sent: 23 June 2005 14:58
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs Validator framework

yes

-Original Message-
From: klute [mailto:[EMAIL PROTECTED]
Sent: June 23, 2005 9:55 AM
To: Struts Users Mailing List
Subject: Re: ApplicationResources.properties vs Validator framework

Does your web.xml contain the following as part of the action servlet
config?


  application
  ApplicationResources



--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:

> Hi
> 
>  
> 
> I have a strange problem.
> 
>  
> 
> I have an application using validator on server side and client side 
> (javascript), I have an ApplicationResources.properties with all my 
> messages for erreor messages from validations. All is working ok.
> 
>  
> 
> But, I made a war file and deployed the application
> on another server,
> and all validations error messages are now empty.
> ApplicationResources.properties is there, and I have
> this line in my
> struts-config.xml :
> 
>  
> 
>  parameter="ApplicationResources"/>
> 
>  
> 
> I activated logs via log4j, and I'm not getting any
> significant
> information except maybe this (I don't see him load
> ApplicationResources.properties) :
> 
>  
> 
>  
> 
> DEBUG
>
[org.apache.struts.action.RequestProcessor][23-06-2005
> 08:29:42]:
>
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
>
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
> ative=false,module=null])
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.required)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: getMessage(fr_CA,finalizing)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource
>
'org/apache/struts/action/

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Gilbert, Antoine
Does there is a way for me to set in direct code (ex in a servlet 
filter) this default bundle, so I can have a work around for now

-Original Message-
From: Gilbert, Antoine 
Sent: June 23, 2005 9:58 AM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs Validator framework

yes

-Original Message-
From: klute [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2005 9:55 AM
To: Struts Users Mailing List
Subject: Re: ApplicationResources.properties vs Validator framework

Does your web.xml contain the following as part of the
action servlet config?


  application
  ApplicationResources



--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:

> Hi
> 
>  
> 
> I have a strange problem.
> 
>  
> 
> I have an application using validator on server side
> and client side
> (javascript), I have an
> ApplicationResources.properties with all my
> messages for erreor messages from validations. All
> is working ok.
> 
>  
> 
> But, I made a war file and deployed the application
> on another server,
> and all validations error messages are now empty.
> ApplicationResources.properties is there, and I have
> this line in my
> struts-config.xml :
> 
>  
> 
>  parameter="ApplicationResources"/>
> 
>  
> 
> I activated logs via log4j, and I'm not getting any
> significant
> information except maybe this (I don't see him load
> ApplicationResources.properties) :
> 
>  
> 
>  
> 
> DEBUG
>
[org.apache.struts.action.RequestProcessor][23-06-2005
> 08:29:42]:
>
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
>
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
> ative=false,module=null])
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.required)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: getMessage(fr_CA,finalizing)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource
>
'org/apache/struts/action/ActionResources

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Gilbert, Antoine
yes

-Original Message-
From: klute [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2005 9:55 AM
To: Struts Users Mailing List
Subject: Re: ApplicationResources.properties vs Validator framework

Does your web.xml contain the following as part of the
action servlet config?


  application
  ApplicationResources



--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:

> Hi
> 
>  
> 
> I have a strange problem.
> 
>  
> 
> I have an application using validator on server side
> and client side
> (javascript), I have an
> ApplicationResources.properties with all my
> messages for erreor messages from validations. All
> is working ok.
> 
>  
> 
> But, I made a war file and deployed the application
> on another server,
> and all validations error messages are now empty.
> ApplicationResources.properties is there, and I have
> this line in my
> struts-config.xml :
> 
>  
> 
>  parameter="ApplicationResources"/>
> 
>  
> 
> I activated logs via log4j, and I'm not getting any
> significant
> information except maybe this (I don't see him load
> ApplicationResources.properties) :
> 
>  
> 
>  
> 
> DEBUG
>
[org.apache.struts.action.RequestProcessor][23-06-2005
> 08:29:42]:
>
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
>
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
> ative=false,module=null])
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.required)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: getMessage(fr_CA,finalizing)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource
>
'org/apache/struts/action/ActionResources_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-20

Re: ApplicationResources.properties vs Validator framework

2005-06-23 Thread klute
Does your web.xml contain the following as part of the
action servlet config?


  application
  ApplicationResources



--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:

> Hi
> 
>  
> 
> I have a strange problem.
> 
>  
> 
> I have an application using validator on server side
> and client side
> (javascript), I have an
> ApplicationResources.properties with all my
> messages for erreor messages from validations. All
> is working ok.
> 
>  
> 
> But, I made a war file and deployed the application
> on another server,
> and all validations error messages are now empty.
> ApplicationResources.properties is there, and I have
> this line in my
> struts-config.xml :
> 
>  
> 
>  parameter="ApplicationResources"/>
> 
>  
> 
> I activated logs via log4j, and I'm not getting any
> significant
> information except maybe this (I don't see him load
> ApplicationResources.properties) :
> 
>  
> 
>  
> 
> DEBUG
>
[org.apache.struts.action.RequestProcessor][23-06-2005
> 08:29:42]:
>
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
>
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
> ative=false,module=null])
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.required)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application_fr.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource
> 'resources/application.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: getMessage(fr_CA,errors.maxlength)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:29:43]: loadLocale()
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: getMessage(fr_CA,finalizing)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr_CA)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource
>
'org/apache/struts/action/ActionResources_fr_CA.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource completed
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]: loadLocale(fr)
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resource
>
'org/apache/struts/action/ActionResources_fr.properties'
> 
>  DEBUG
>
[org.apache.struts.util.PropertyMessageResources][23-06-2005
> 08:30:21]:   Loading resour

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Gilbert, Antoine
I think the problem is just that default message resource is
application.properties instead of ApplicationResources.properties as
specified in the struts-config.xml. I guess I shoud try to focus on that
problem...

-Original Message-
From: Gilbert, Antoine 
Sent: June 23, 2005 8:39 AM
To: Struts Users Mailing List
Subject: ApplicationResources.properties vs Validator framework

Hi

 

I have a strange problem.

 

I have an application using validator on server side and client side
(javascript), I have an ApplicationResources.properties with all my
messages for erreor messages from validations. All is working ok.

 

But, I made a war file and deployed the application on another server,
and all validations error messages are now empty.
ApplicationResources.properties is there, and I have this line in my
struts-config.xml :

 



 

I activated logs via log4j, and I'm not getting any significant
information except maybe this (I don't see him load
ApplicationResources.properties) :

 

 

DEBUG [org.apache.struts.action.RequestProcessor][23-06-2005 08:29:42]:
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
ative=false,module=null])

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.required)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: getMessage(fr_CA,finalizing)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'org/apache/struts/action/ActionResources_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'org/apache/struts/action/ActionResources_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Gilbert, Antoine
As I said, the application was working on the dev environment and now on
a new one it's not working.

But I just tried as you said to set null="true" and still get empty
messages...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2005 9:44 AM
To: user@struts.apache.org
Subject: RE: ApplicationResources.properties vs Validator framework

First thing that comes to mind is that you likely forgot to add the key
to the resource..
Try adding the null="true" option to your resource declarations in
struts-config.xml

-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED] 
Sent: donderdag 23 juni 2005 15:41
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs Validator framework


No

Struts is trying to load application_fr_CA.properties, and anyway I have
no application.properties, I have an ApplicationResources.properties.
One more problem to go before the problem you talking about.

-Original Message-
From: Nitish Kumar [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2005 9:38 AM
To: 'Struts Users Mailing List'
Subject: RE: ApplicationResources.properties vs Validator framework


To me it seems, due to a different locale, your application is looking
for 
ApplicationResources_fr_CA.properties


you can try renaming your properties file to
"ApplicationResources_fr_CA.properties" and then deploying the
application.


Thanks and Regards,
Nitish Kumar
Tavant Technologies Ltd
Bangalore


-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 6:09 PM
To: Struts Users Mailing List
Subject: ApplicationResources.properties vs Validator framework


Hi

 

I have a strange problem.

 

I have an application using validator on server side and client side
(javascript), I have an ApplicationResources.properties with all my
messages for erreor messages from validations. All is working ok.

 

But, I made a war file and deployed the application on another server,
and all validations error messages are now empty.
ApplicationResources.properties is there, and I have this line in my
struts-config.xml :

 



 

I activated logs via log4j, and I'm not getting any significant
information except maybe this (I don't see him load
ApplicationResources.properties) :

 

 

DEBUG [org.apache.struts.action.RequestProcessor][23-06-2005 08:29:42]:
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
ative=false,module=null])

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.required)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread jacob.willig
First thing that comes to mind is that you likely forgot to add the key
to the resource..
Try adding the null="true" option to your resource declarations in
struts-config.xml

-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED] 
Sent: donderdag 23 juni 2005 15:41
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs Validator framework


No

Struts is trying to load application_fr_CA.properties, and anyway I have
no application.properties, I have an ApplicationResources.properties.
One more problem to go before the problem you talking about.

-Original Message-
From: Nitish Kumar [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2005 9:38 AM
To: 'Struts Users Mailing List'
Subject: RE: ApplicationResources.properties vs Validator framework


To me it seems, due to a different locale, your application is looking
for 
ApplicationResources_fr_CA.properties


you can try renaming your properties file to
"ApplicationResources_fr_CA.properties" and then deploying the
application.


Thanks and Regards,
Nitish Kumar
Tavant Technologies Ltd
Bangalore


-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 6:09 PM
To: Struts Users Mailing List
Subject: ApplicationResources.properties vs Validator framework


Hi

 

I have a strange problem.

 

I have an application using validator on server side and client side
(javascript), I have an ApplicationResources.properties with all my
messages for erreor messages from validations. All is working ok.

 

But, I made a war file and deployed the application on another server,
and all validations error messages are now empty.
ApplicationResources.properties is there, and I have this line in my
struts-config.xml :

 



 

I activated logs via log4j, and I'm not getting any significant
information except maybe this (I don't see him load
ApplicationResources.properties) :

 

 

DEBUG [org.apache.struts.action.RequestProcessor][23-06-2005 08:29:42]:
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
ative=false,module=null])

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.required)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Gilbert, Antoine
No

Struts is trying to load application_fr_CA.properties, and anyway I have
no application.properties, I have an ApplicationResources.properties.
One more problem to go before the problem you talking about.

-Original Message-
From: Nitish Kumar [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2005 9:38 AM
To: 'Struts Users Mailing List'
Subject: RE: ApplicationResources.properties vs Validator framework


To me it seems, due to a different locale, your application is looking
for 
ApplicationResources_fr_CA.properties


you can try renaming your properties file to
"ApplicationResources_fr_CA.properties" and then deploying the
application.


Thanks and Regards,
Nitish Kumar
Tavant Technologies Ltd
Bangalore


-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 6:09 PM
To: Struts Users Mailing List
Subject: ApplicationResources.properties vs Validator framework


Hi

 

I have a strange problem.

 

I have an application using validator on server side and client side
(javascript), I have an ApplicationResources.properties with all my
messages for erreor messages from validations. All is working ok.

 

But, I made a war file and deployed the application on another server,
and all validations error messages are now empty.
ApplicationResources.properties is there, and I have this line in my
struts-config.xml :

 



 

I activated logs via log4j, and I'm not getting any significant
information except maybe this (I don't see him load
ApplicationResources.properties) :

 

 

DEBUG [org.apache.struts.action.RequestProcessor][23-06-2005 08:29:42]:
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
ative=false,module=null])

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.required)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: getMessage(fr_CA,finalizing)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'org/apache/struts/action/ActionResources_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resour

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Nitish Kumar

To me it seems, due to a different locale, your application is looking for 
ApplicationResources_fr_CA.properties


you can try renaming your properties file to
"ApplicationResources_fr_CA.properties" and then deploying the application.


Thanks and Regards,
Nitish Kumar
Tavant Technologies Ltd
Bangalore


-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 6:09 PM
To: Struts Users Mailing List
Subject: ApplicationResources.properties vs Validator framework


Hi

 

I have a strange problem.

 

I have an application using validator on server side and client side
(javascript), I have an ApplicationResources.properties with all my
messages for erreor messages from validations. All is working ok.

 

But, I made a war file and deployed the application on another server,
and all validations error messages are now empty.
ApplicationResources.properties is there, and I have this line in my
struts-config.xml :

 



 

I activated logs via log4j, and I'm not getting any significant
information except maybe this (I don't see him load
ApplicationResources.properties) :

 

 

DEBUG [org.apache.struts.action.RequestProcessor][23-06-2005 08:29:42]:
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
ative=false,module=null])

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.required)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: getMessage(fr_CA,finalizing)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'org/apache/struts/action/ActionResources_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'org/apache/struts/action/ActionResources_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource completed

 DEBUG [org.apache.struts.util.Proper

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Mark Galbreath
Your root problem is using Validator in the first place.  (1) It is a bogus 
design from the start, and (2) it never has worked as advertised.

~mark

-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 8:39 AM
To: Struts Users Mailing List
Subject: ApplicationResources.properties vs Validator framework


Hi

 

I have a strange problem.

 

I have an application using validator on server side and client side
(javascript), I have an ApplicationResources.properties with all my
messages for erreor messages from validations. All is working ok.

 

But, I made a war file and deployed the application on another server,
and all validations error messages are now empty.
ApplicationResources.properties is there, and I have this line in my
struts-config.xml :

 



 

I activated logs via log4j, and I'm not getting any significant
information except maybe this (I don't see him load
ApplicationResources.properties) :

 

 

DEBUG [org.apache.struts.action.RequestProcessor][23-06-2005 08:29:42]:
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu..js
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
ative=false,module=null])

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.required)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: getMessage(fr_CA,finalizing)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'org/apache/struts/action/ActionResources_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'org/apache/struts/action/ActionResources_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'or

Re: Eclipse plug-in for Struts

2005-06-23 Thread Thai Dang Vu
exadel.com has a free version of Eclipse plug-in for Struts. It supports JSF 
too. The free version is lack of some debugging features, but the commercial 
version has them all.



ApplicationResources.properties vs Validator framework

2005-06-23 Thread Gilbert, Antoine
Hi

 

I have a strange problem.

 

I have an application using validator on server side and client side
(javascript), I have an ApplicationResources.properties with all my
messages for erreor messages from validations. All is working ok.

 

But, I made a war file and deployed the application on another server,
and all validations error messages are now empty.
ApplicationResources.properties is there, and I have this line in my
struts-config.xml :

 



 

I activated logs via log4j, and I'm not getting any significant
information except maybe this (I don't see him load
ApplicationResources.properties) :

 

 

DEBUG [org.apache.struts.action.RequestProcessor][23-06-2005 08:29:42]:
processForwardConfig(ForwardConfig[name=default,path=/console/Contenu.js
p?contenu=/console/sections/EditMenuLocale.jsp,redirect=false,contextRel
ative=false,module=null])

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.required)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource 'resources/application.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: getMessage(fr_CA,errors.maxlength)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:29:43]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: getMessage(fr_CA,finalizing)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale(fr_CA)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'org/apache/struts/action/ActionResources_fr_CA.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale(fr)

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'org/apache/struts/action/ActionResources_fr.properties'

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource completed

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]: loadLocale()

 DEBUG [org.apache.struts.util.PropertyMessageResources][23-06-2005
08:30:21]:   Loading resource
'org/apache/struts/action/ActionResources.properties'

 



RE: Eclipse plug-in for Struts

2005-06-23 Thread Mark Galbreath
huh?  Me thinks you better be reading the J2EE spec first

~mark

On 6/23/05, Arash Bijanzadeh <[EMAIL PROTECTED]> wrote:
> Me too am searching for a plugin for Eclipse to be able to write my J2EE
> components like ... XML HTML and so on.





***
This email and any file transmitted with it may be confidential and is intended 
solely for the use of the individual or entity to whom it is addressed.  If you 
received this email in error please notify the DBM Service Desk by forwarding 
this message to [EMAIL PROTECTED]


This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.


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



RE: trouble passing multiple parameters using

2005-06-23 Thread Joe Germuska
For the relatively low cost of specifying your servlet mapping, you 
can use the JSTL c:url/c:param tags and achieve all of this much more 
concisely:





">Click Here

There's an enhancement request filed to add "c:param" type 
functionality to , and I think I even assigned it to 
myself, but to be honest, I am satisfied with the JSTL alternative 
and haven't had (and don't expect to have) time to add an 
"html:param" tag to the Struts JSTL just for the general good.


All that html:link provides in the specific case below is a lookup 
function which (a) verifies that you have a valid action path at JSP 
compile time and (b) gives you the freedom to change your mappings 
from "*.do" to "*.foo" or anything else -- a freedom which is 
probably compromised in most apps by the need to have external links 
into the application, so which doesn't seem all that valuable to me.


Joe


At 11:10 AM +0100 6/23/05, Bob Arnott wrote:

Phani wrote:

 Here is my code in the JSP page:

 > property="storeNumber"/>


 > property="storeName"/>


 <%
java.util.HashMap params = new java.util.HashMap();
params.put("storeNo",param1);

 >params.put("storeName",param2);

pageContext.setAttribute("storeInfo", params);
 %>

  Click Here
 


You want to specify the Map under the attribute "name", not "paramName", so:

scope="page">Click Here


See -

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

Cheers,

--
Bob Arnott



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



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


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



Re: JAAS example

2005-06-23 Thread Nitesh
And...

http://www.jroller.com/page/tomdz/20041215


Nitesh 

  Googling results...

  http://jakarta.apache.org/slide/howto-jaas.html
  
http://www.isys.uni-klu.ac.at/ISYS/Courses/04WS/webtechnologien/downloads/TomcatConfig.pdf



  Nitesh

  - Original Message - 
From: Arash Bijanzadeh 
To: Nitesh 
Sent: Thursday, June 23, 2005 3:14 PM
Subject: Re: JAAS example


I am familiar with JASS. My question is how struts using the JAAS for 
security, how shall I implement it and for the starting point how can I get a 
JAAS user in a Action working with the tomcat?


On 6/23/05, Nitesh <[EMAIL PROTECTED]> wrote: 
  http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/JAASRefGuide.html 
  and
  http://struts.apache.org/userGuide/preface.html#jaas

  could be a starting point...

  HTH
  Nitesh
  - Original Message - 
  From: "Arash Bijanzadeh" <[EMAIL PROTECTED]>
  To: "Struts Users Mailing List"  
  Sent: Thursday, June 23, 2005 2:47 PM
  Subject: JAAS example


  Hi all,
  I am searching for an example of using struts security framework and JAAS
  maybe. Could anyone lead me to a document/tutorial/example? 
  Thanks
  Arash B.





Re: JAAS example

2005-06-23 Thread Nitesh
Googling results...

http://jakarta.apache.org/slide/howto-jaas.html
http://www.isys.uni-klu.ac.at/ISYS/Courses/04WS/webtechnologien/downloads/TomcatConfig.pdf



Nitesh

- Original Message - 
  From: Arash Bijanzadeh 
  To: Nitesh 
  Sent: Thursday, June 23, 2005 3:14 PM
  Subject: Re: JAAS example


  I am familiar with JASS. My question is how struts using the JAAS for 
security, how shall I implement it and for the starting point how can I get a 
JAAS user in a Action working with the tomcat?


  On 6/23/05, Nitesh <[EMAIL PROTECTED]> wrote: 
http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/JAASRefGuide.html 
and
http://struts.apache.org/userGuide/preface.html#jaas

could be a starting point...

HTH
Nitesh
- Original Message - 
From: "Arash Bijanzadeh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"  
Sent: Thursday, June 23, 2005 2:47 PM
Subject: JAAS example


Hi all,
I am searching for an example of using struts security framework and JAAS
maybe. Could anyone lead me to a document/tutorial/example? 
Thanks
Arash B.





RE: jsp vs jstl in Math

2005-06-23 Thread Sunny
You can always use the jstl in struts.

> -Original Message-
> From: mario nee [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 23, 2005 1:44 PM
> To: Struts Users Mailing List
> Subject: jsp vs jstl in Math
>
> Hello,
>
> if i use jstl for Math operation i write this
> 
>
> if i use struts taglib how can i do the same thing  without use <% ... %> ?
>
>
> -
> 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: trouble passing multiple parameters using

2005-06-23 Thread Bob Arnott
Phani wrote:
> Here is my code in the JSP page:
> 
>  property="storeNumber"/>
> 
>  property="storeName"/>
> 
> <%
>java.util.HashMap params = new java.util.HashMap();
>params.put("storeNo",param1);
>params.put("storeName",param2);
>pageContext.setAttribute("storeInfo", params);
> %>
> 
>  paramName="storeInfo" scope="page"> Click Here
> 

You want to specify the Map under the attribute "name", not "paramName", so:

Click 
Here

See - 

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

Cheers,

-- 
Bob Arnott



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



Re: How to create form rows dynamically

2005-06-23 Thread Stéphane Zuckerman

Ciaran Hanley a écrit :

Can somebody help me or propose a solution to the following please.

 


I wish to create a form dynamically. Depending on the business logic there
could be 0 to N rows in the form. I tried to use a form with an array of
strings and use the indexed="true" setting in the html:text boxes but as I
was not following any example I ran into problems and didn't have any guide
as to where I was going wrong.

 


I also need to iterate over a bean containing information which corresponds
to the form as the form boxes are being displayed.

 


Say if there is 3 rows required, it should ok like the following.

 


Payment Old AmntNew Amnt  Date

1   35  [45]  [12/12/04]

2   35  [45]  [12/01/05]

3   35  [45]  [12/02/05]

 


Where [] represents a html:text box.

 


I am also unsure as to how to access these values when I get to the
form/action classes.

 


Any help would be much appreciated!


There are a few ways to do that. The most obvious (according to me) 
would be to have a "Billing" (for instance) class, with all the 
attributes that suit you, then :


- use a lazy list (go to 
http://wiki.apache.org/struts/StrutsCatalogLazyList for more information 
about them) to store them. The use of LazyList instead of "classical" 
List (with ArrayList) is all about indexes : when you start from the 
server and you display the items stored in your list, all is fine.


(something like :









)

But when the user clicks on the submit button, a horrible thing happens 
: IndexOutOfBoundException (because a new List is instanciated from the 
server side - the old one has been lost as it is a new request - and 
currently, something like formList.get(0) returns null, which isn't what 
Struts expected). So you have to make some mechanism to return an object 
(preferably of the right kind) so Struts remains happy. Hence the LazyLists.


--
Stéphane Zuckerman

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



Re: How to create form rows dynamically

2005-06-23 Thread Nitesh

Attaching the answer John had given me for indexed properties.
Hope this would help...


- Original Message - 
From: "Ciaran Hanley" <[EMAIL PROTECTED]>

To: "'Struts User Mailing List'" 
Sent: Thursday, June 23, 2005 3:01 PM
Subject: How to create form rows dynamically



Can somebody help me or propose a solution to the following please.



I wish to create a form dynamically. Depending on the business logic there
could be 0 to N rows in the form. I tried to use a form with an array of
strings and use the indexed="true" setting in the html:text boxes but as I
was not following any example I ran into problems and didn't have any 
guide

as to where I was going wrong.



I also need to iterate over a bean containing information which 
corresponds

to the form as the form boxes are being displayed.



Say if there is 3 rows required, it should ok like the following.



Payment Old AmntNew Amnt  Date

1   35  [45]  [12/12/04]

2   35  [45]  [12/01/05]

3   35  [45]  [12/02/05]



Where [] represents a html:text box.



I am also unsure as to how to access these values when I get to the
form/action classes.



Any help would be much appreciated!




--- Begin Message ---
In the struts-config.xml:








  



In EditUsersAction.java execute method

// get collection of users from the database
Collection users = getUserBeans ();

// put collection into form as an array for editing
form.set ( "users", users.toArray ( new UserBean[0] ) );

In editUsers.jsp





In the produced HTML:



If you need to client side validation, you'll probably need to write your
own JSP to deal with the element above.

As for using validate.xml to validate on the server side. I've never tried
it with arrays, I just iterate over them in the validate (...) method of the
form, like so:

UserBean users[] = (UserBean[]) form.get ( "users" );
for ( int i = 0; i < users.length; i++ ) {
// check on the attributes of UserBean users[i]
}

Hope that example clears it up for you.

John



On 20050603 5:05 AM, "Nitesh" <[EMAIL PROTECTED]> wrote:

> Thanks for the answer John...
> 
> Could you give me an example as to how we pre populate the array?
> 
> Regards,
> Nitesh
> - Original Message -
> From: "John Fitzpatrick" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Thursday, June 02, 2005 6:00 PM
> Subject: Re: Problem using indexed properties and validator framework
> 
> 
>> 
>> For an Array in a DynaForm property, you can either set the size in the
>> form-property descriptor or, in the case of a session form, pre-populate
>> the
>> Array in your action with the number of elements you desire.
>> 
>> 
> 
> 
> -
> 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]


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

RE: How to create form rows dynamically

2005-06-23 Thread Abhinav Bhatnagar

I had the same question some time back and I used this :

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

refer section "4.3.2 Map-backed ActionForms"

Regards,
Abhinav

-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 3:02 PM
To: 'Struts User Mailing List'
Subject: How to create form rows dynamically

Can somebody help me or propose a solution to the following please.



I wish to create a form dynamically. Depending on the business logic
there
could be 0 to N rows in the form. I tried to use a form with an array of
strings and use the indexed="true" setting in the html:text boxes but as
I
was not following any example I ran into problems and didn't have any
guide
as to where I was going wrong.



I also need to iterate over a bean containing information which
corresponds
to the form as the form boxes are being displayed.



Say if there is 3 rows required, it should ok like the following.



Payment Old AmntNew Amnt  Date

1   35  [45]  [12/12/04]

2   35  [45]  [12/01/05]

3   35  [45]  [12/02/05]



Where [] represents a html:text box.



I am also unsure as to how to access these values when I get to the
form/action classes.



Any help would be much appreciated!




 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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



AW: How to create form rows dynamically

2005-06-23 Thread WagnerMarco
Hi,

use Map Backed Action Forms. Sorry for giving u a link as answer, but its 
explained well there:

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

g53372
/marco

Ursprüngliche Nachricht-
Von: Ciaran Hanley [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 23. Juni 2005 11:32
An: 'Struts User Mailing List'
Betreff: How to create form rows dynamically

Can somebody help me or propose a solution to the following please.

 

I wish to create a form dynamically. Depending on the business logic there
could be 0 to N rows in the form. I tried to use a form with an array of
strings and use the indexed="true" setting in the html:text boxes but as I
was not following any example I ran into problems and didn't have any guide
as to where I was going wrong.

 

I also need to iterate over a bean containing information which corresponds
to the form as the form boxes are being displayed.

 

Say if there is 3 rows required, it should ok like the following.

 

Payment Old AmntNew Amnt  Date

1   35  [45]  [12/12/04]

2   35  [45]  [12/01/05]

3   35  [45]  [12/02/05]

 

Where [] represents a html:text box.

 

I am also unsure as to how to access these values when I get to the
form/action classes.

 

Any help would be much appreciated!

 

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



Re: JAAS example

2005-06-23 Thread Nitesh
http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/JAASRefGuide.html 
and

http://struts.apache.org/userGuide/preface.html#jaas

could be a starting point...

HTH
Nitesh
- Original Message - 
From: "Arash Bijanzadeh" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Thursday, June 23, 2005 2:47 PM
Subject: JAAS example


Hi all,
I am searching for an example of using struts security framework and JAAS
maybe. Could anyone lead me to a document/tutorial/example?
Thanks
Arash B.


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



How to create form rows dynamically

2005-06-23 Thread Ciaran Hanley
Can somebody help me or propose a solution to the following please.

 

I wish to create a form dynamically. Depending on the business logic there
could be 0 to N rows in the form. I tried to use a form with an array of
strings and use the indexed="true" setting in the html:text boxes but as I
was not following any example I ran into problems and didn't have any guide
as to where I was going wrong.

 

I also need to iterate over a bean containing information which corresponds
to the form as the form boxes are being displayed.

 

Say if there is 3 rows required, it should ok like the following.

 

Payment Old AmntNew Amnt  Date

1   35  [45]  [12/12/04]

2   35  [45]  [12/01/05]

3   35  [45]  [12/02/05]

 

Where [] represents a html:text box.

 

I am also unsure as to how to access these values when I get to the
form/action classes.

 

Any help would be much appreciated!

 



Re: [OT] Ajax - generic "processStateChange"

2005-06-23 Thread Marc Demlenne
Thank you Jeff, your solution is exactly what i was looking for. 

Now i'd have another question, still slightly off-topic in a
struts-list, but is there an ajax list ?

In order to keep compatibility for all users, including those who
don't enable JavaScript, I need to have a solution where ajax use is
usefull but not mandatory. Is there a some good practice to offer the
end-user a page that use AJAX if javascript is enabled, (with
supported-version), but fall back to a more classical way if not ?

Any help is welcome.


On 21/06/05, Jeff Beal <[EMAIL PROTECTED]> wrote:
> Event handlers have to be functions.  When you write
> 'onreadystatechange = processStateChange(spanID);', the
> processStateChange() function is *immediately* executed, and the
> returned value is assigned to the event handler.  This works great if
> your processStateChange returns a function, but if it returns (for
> example) an int, there are problems.
> 
> Use an anonymous JavaScript function for your event handler:
> 
> function retrieveURL(name, spanID) {
>   req.onreadystatechange = function() { processStateChange(spanID); };
> }
> 
> On 6/21/05, Marc Demlenne <[EMAIL PROTECTED]> wrote:
> 
> > I'd like to have smthg like
> > function retrieveURL(name, spanID) {
> >   ...
> >   req.onreadystatechange = processStateChange(spanID) ;
> >   ...
> > }
> >
> 


-- 
Marc Demlenne

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



JAAS example

2005-06-23 Thread Arash Bijanzadeh
Hi all,
I am searching for an example of using struts security framework and JAAS 
maybe. Could anyone lead me to a document/tutorial/example?
Thanks
Arash B.


Re: Eclipse plug-in for Struts

2005-06-23 Thread Janek Ziniewicz
You might want to check http://www.objectlearn.com. I use it for
generating ejb beans. Sometimes it is hard to set it up. Don't try to
run it with MyEclipseIDE installed.


On 6/23/05, Arash Bijanzadeh <[EMAIL PROTECTED]> wrote:
> Me too am searching for a plugin for Eclipse to be able to write my J2EE
> components like JSP XML HTML and so on.
> Any good free one?
> Regards
> Arash
> 
> On 6/22/05, Barnett, Brian W. <[EMAIL PROTECTED]> wrote:
> >
> > http://www.sysdeo.com/sysdeo/eclipse/tomcatplugin
> >
> > -Original Message-
> > From: Tony Smith [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 22, 2005 10:59 AM
> > To: Struts Users Mailing List
> > Subject: Eclipse plug-in for Struts
> >
> >
> > Is there an Eclipse plug-in for Struts or Tomcat so
> > that I can develop, debug, and test my web app all in
> > Eclipse? Right now, if I want to change something I
> > have to write my program in Eclipse, write my jsp in
> > another text editor, export the jar file from Eclipse
> > to web-inf/lib, restart Tomcat, and open IE
> >
> >
> >
> >
> >
> > __
> > Yahoo! Mail Mobile
> > Take Yahoo! Mail with you! Check email on your mobile phone.
> > http://mobile.yahoo.com/learn/mail
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > 
> > This email may contain confidential material.
> > If you were not an intended recipient,
> > Please notify the sender and delete all copies.
> > We may monitor email to and from our network.
> >
> > 
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 


-- 
Pozdrawiam,
Janek Ziniewicz
gg: 902858
irc.freenode.net: #gore, #dub

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



jsp vs jstl in Math

2005-06-23 Thread mario nee

Hello,

if i use jstl for Math operation i write this


if i use struts taglib how can i do the same thing  without use <% ... %> ?


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



Re: Eclipse plug-in for Struts

2005-06-23 Thread Arash Bijanzadeh
Me too am searching for a plugin for Eclipse to be able to write my J2EE 
components like JSP XML HTML and so on.
Any good free one?
Regards
Arash

On 6/22/05, Barnett, Brian W. <[EMAIL PROTECTED]> wrote:
> 
> http://www.sysdeo.com/sysdeo/eclipse/tomcatplugin
> 
> -Original Message-
> From: Tony Smith [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 22, 2005 10:59 AM
> To: Struts Users Mailing List
> Subject: Eclipse plug-in for Struts
> 
> 
> Is there an Eclipse plug-in for Struts or Tomcat so
> that I can develop, debug, and test my web app all in
> Eclipse? Right now, if I want to change something I
> have to write my program in Eclipse, write my jsp in
> another text editor, export the jar file from Eclipse
> to web-inf/lib, restart Tomcat, and open IE
> 
> 
> 
> 
> 
> __
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
> http://mobile.yahoo.com/learn/mail
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> This email may contain confidential material.
> If you were not an intended recipient,
> Please notify the sender and delete all copies.
> We may monitor email to and from our network.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>