AW: Integrating cocoon with Struts

2003-10-16 Thread Juraj . Lenharcik
Hello Ravi,

I had the same situation in my scenario. My workflow was the following one:

1.  Submit JSP
2.  Call Action
3.  Get Data from eJB
4.  Transform Data to XML
5.  Serialize XML to Webapp directory
6.  Forward the request to the serialized XML. But manipulate the request first. 
Instead of test.xml request a file test.pdf/html
7.  This forward was captured by cocoon and transformed to pdf, html, 

All configuration work I did, was to configure cocoon to transform and be responseible 
of the directory with the serialized xml-files. If someone requests a file from this 
folder, cocoon will be activated and runs his transformations. 

So my integration of struts and cocoon is running over the traditional 
file-integration scanario. 

Greetings from Stuttgart,
Juraj


-Ursprungliche Nachricht-
Von: Ravi Srirangam [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 16. Oktober 2003 14:26
An: Lenharcik, Juraj
Betreff: Integrating cocoon with Struts


Hi Juraj,
I chanced to read your messages posted at cocoon users. I'm curious to 
know how you've integrated cocoon and Struts. I've been trying to do this 
for quite sometime without luck. The situation is that we already have a 
Struts aplication running and a reporting module needs to be added to it 
which reads the data from XML(dynamic) and generates reports in Excel, 
PDF etc.

I'd be very grateful to you if you can suggest me a solution.

Thanks and Regards,
Ravi

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



MessageRessources

2003-07-15 Thread Juraj . Lenharcik
Hello,

I have the following scenario. I want to configure the count of items and the values 
of these in a drop down list. These entries should be shown in the language dependency 
of the browser. So I created some values like:

val.1=house
val.2=dog

and so on.

Unfortunately there is no possibility to read properties with a pattern like val.x. To 
do that, I have created a startup-servlet which reads the val.x items into the servlet 
context and shows them via the struts tags on the jsp. The problem is how to show them 
in the language depedency. Struts already provides a solution for this issue and I 
would be interessted how the different language dependent property files are 
configured on the start-up time. Are all config files read and saved in different 
hashmaps for each language? I would be happy to hear some proposals about this.

Juraj 

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



AW: JavaScript and text field

2003-06-03 Thread Juraj . Lenharcik
It is: item



is:




-Ursprüngliche Nachricht-
Von: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 3. Juni 2003 14:56
An: Struts Users Mailing List
Betreff: RE: JavaScript and text field


I would check the HTML source and see what the "Name" attribute for the
textfield you are trying to access is set to.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 8:53 AM
To: [EMAIL PROTECTED]
Subject: JavaScript and text field


Hi,

I have some problems to access a text field.

I have this JSP code:




And want to access the value of the item field:

function check(){
var inputvalue = document.all.item.value;
alert(inputvalue);
var inputvalue = document.forms[0].item.value;
alert(inputvalue);
}

No of these variant runs. In an another application I have the 2 solution
and it works. Are there any depedencies between struts and JS?

Juraj

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



JavaScript and text field

2003-06-03 Thread Juraj . Lenharcik
Hi, 

I have some problems to access a text field.

I have this JSP code:




And want to access the value of the item field:

function check(){
var inputvalue = document.all.item.value;
alert(inputvalue);
var inputvalue = document.forms[0].item.value;
alert(inputvalue);
}

No of these variant runs. In an another application I have the 2 solution and it 
works. Are there any depedencies between struts and JS?

Juraj

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



AW: Using Struts with Cocoon?

2003-02-26 Thread Juraj . Lenharcik
Hi,

I use struts & cocoon together. 

I have an area in my webapp which has some reports. These reports are in xml and 
generated either by an EJB or an Action. After the generation of such a XML this is 
saved in this area which is "controlled" by cocoon. If a request (directly or as 
redirect from an Action) to such a report comes, Cocoon transforms the xml file and 
serializes it to a HTML or PDF document. 

I use Cocoon only as transformer without the features like forms and so on (this 
part takes struts) Similary how struts CX works. It works fine and I will use it 
further.


Juraj




-Ursprüngliche Nachricht-
Von: Clement, Stephen [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 26. Februar 2003 18:52
An: [EMAIL PROTECTED]
Betreff: Using Struts with Cocoon?



Anyone used struts with Cocoon?
Is it feasible?
Is it worth it?
How best to do this?

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

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

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



AW: Struts and Portlets

2003-02-25 Thread Juraj . Lenharcik
Hi Mitchell,

I dont have it. I expect that some features are included. 

Juraj

-Ursprüngliche Nachricht-
Von: Mitchell Morris [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. Februar 2003 17:12
An: 'Struts Users Mailing List'
Betreff: RE: Struts and Portlets


Ummm ... JSR-168 is still being held under NDA. Their page
(http://www.jcp.org/en/jsr/detail?id=168) says that they'll expose the spec
in March sometime. How did you get a copy of the spec in advance, and aren't
you concerned about violating the NDA? Also, can we look at the spec too?
I'm exceedingly curious to see what's in it.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 7:02 AM
> To: Struts Users Mailing List
> Subject: Re: Struts and Portlets
>
>
> You could take a look at www.liferay.com, there latest
> implementation (1.8) follows the Porlet Spec, JSR-168, and is
> using Struts 1.1b2.
>
> Regards,
> Todd G. Nist
>
> >
> > From: [EMAIL PROTECTED]
> > Date: 2003/02/25 Tue AM 01:52:38 EST
> > To: [EMAIL PROTECTED]
> > Subject: Struts and Portlets
> >
> > Hi,
> >
> > is there an intention to implement the JSR-168 (Portlet
> API) into struts?
> >
> > In my opinion three important features like multiple output
> formats with XSLT, workflows and the support of portlets
> would be very important for the future.
> >
> > The ability to create standardised portlets with struts
> would be very interesting. I think the the actions and jsp
> are not much mightful for the future. The development of the
> jsp/action with tiles a.s.o. is fine but too slow and theres
> still a limited reuse. In my opinion there should/could be
> more abstraction for project comprehensive reuse. Such
> portlets could create configurable components with
> jsp/actions and beans. I dont have access to the portlets
> specification, but I am sure that this aspects are included there.
> >
> > Any comments?
> >
> > Juraj
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

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



AW: Reporting an Exception message in a JSP.

2003-02-25 Thread Juraj . Lenharcik
Hi Oliver,

whats with this constructor:

ActionError(java.lang.String key, java.lang.Object value0) 
  Construct an action error with the specified replacement values.

?

Juraj

-Ursprungliche Nachricht-
Von: ROSSEL Olivier [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. Februar 2003 16:03
An: '[EMAIL PROTECTED]'
Betreff: Reporting an Exception message in a JSP.


I want to display the error message of an SQLException
in my JSP.

At first, I tried to set an ActionError with this message and
to display it via .
It does not work because ActionError accepts as an input
string the key of a property.

So what's the nicest way to show to the user the error message
that I get from my SQLException ?


---cut here---


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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

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



Struts and Portlets

2003-02-24 Thread Juraj . Lenharcik
Hi,

is there an intention to implement the JSR-168 (Portlet API) into struts? 

In my opinion three important features like multiple output formats with XSLT, 
workflows and the support of portlets would be very important for the future. 

The ability to create standardised portlets with struts would be very interesting. I 
think the the actions and jsp are not much mightful for the future. The development of 
the jsp/action with tiles a.s.o. is fine but too slow and theres still a limited 
reuse. In my opinion there should/could be more abstraction for project comprehensive 
reuse. Such portlets could create configurable components with jsp/actions and beans. 
I dont have access to the portlets specification, but I am sure that this aspects are 
included there.

Any comments?

Juraj




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



AW: struts & log4j

2003-02-13 Thread Juraj . Lenharcik
Hi,

you have also to use the .getName() method!

private static Logger log = Logger.getLogger(BanfCreateAction.class.getName());


Juraj



-Ursprüngliche Nachricht-
Von: Dinesh Sampangi [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. Februar 2003 09:05
An: Struts Users Mailing List
Betreff: struts & log4j


Hi! All,
  i'm trying to use log4j in struta application.. but when i create a log4j 
instance inside( 
private final static Logger log = Logger.getLogger(PAF3Entity.class)
) strut action class..the action path is not forwarded..instead it throws the 
following at the console.

2003-02-13 01:28:22 - Ctx( /medicare ): 500 R( /medicare + /Authorisationone.do
+ null) No action instance for path /Authorisationone could be created

but the action tag class & its paths is well defined in the struts config file.. 
everything runs fine if the logger instance is not created.

has anyone exp.. this sort . pls help

TIA
Dinesh

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




AW: struts & log4j

2003-02-13 Thread Juraj . Lenharcik
Hi, 

I am not sure did you tried to create the logger without final? I use it only as 
statis.

Juraj

-Ursprüngliche Nachricht-
Von: Dinesh Sampangi [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. Februar 2003 09:05
An: Struts Users Mailing List
Betreff: struts & log4j


Hi! All,
  i'm trying to use log4j in struta application.. but when i create a log4j 
instance inside( 
private final static Logger log = Logger.getLogger(PAF3Entity.class)
) strut action class..the action path is not forwarded..instead it throws the 
following at the console.

2003-02-13 01:28:22 - Ctx( /medicare ): 500 R( /medicare + /Authorisationone.do
+ null) No action instance for path /Authorisationone could be created

but the action tag class & its paths is well defined in the struts config file.. 
everything runs fine if the logger instance is not created.

has anyone exp.. this sort . pls help

TIA
Dinesh

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




AW: logic - dynamic - equal, lessThan, ...

2003-02-04 Thread Juraj . Lenharcik
Ok I have it; bean:define has to be used to set up the value. after this it has to be 
done like this:



LESS
mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. Februar 2003 19:53
An: [EMAIL PROTECTED]
Betreff: logic - dynamic - equal, lessThan, ...


Hi,

I have an iteration with an object which has two values. I want to compare these 
values and create an output on their depedency. That means if the value1 is equal 
value2 then write it yellow. If value1 greater than value2 write it red and so on.

I tried the logic tags, but I am not sure if they can process it.


LESS

MORE



logic - dynamic - equal, lessThan, ...

2003-02-04 Thread Juraj . Lenharcik
Hi,

I have an iteration with an object which has two values. I want to compare these 
values and create an output on their depedency. That means if the value1 is equal 
value2 then write it yellow. If value1 greater than value2 write it red and so on.

I tried the logic tags, but I am not sure if they can process it.


LESS

MORE



AW: sites powered by struts

2002-09-11 Thread Juraj Lenharcik

wow Resin/1.2.7 :-)

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 15:56
An: Struts Users Mailing List; [EMAIL PROTECTED]
Betreff: Re: sites powered by struts






The site www.britannia-music.co.uk is running Apache/1.3.26 (Unix)
mod_ssl/2.8.9
OpenSSL/0.9.5a Resin/1.2.7 on Linux


Naveen Dhotre,
Consultant
Uovo Fi SYSTEM

Main: +44 (0) 1 494 685 700, Fax: +44 (0) 1494 685 707
Email: [EMAIL PROTECTED],  Web:  http://www.uovo.com








Nick Sharples <[EMAIL PROTECTED]> on 11/09/2002 14:54:07

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

 

 



  
  
  
 To:  "Struts Users Mailing List" 
  <[EMAIL PROTECTED]>
  
 cc:  (bcc: Naveen Dhotre/Uovo/UK)
  
  
  
 Subject: Re: sites powered by struts 
  








[EMAIL PROTECTED] writes:
 > here is one :
 > http://www.britannia-music.co.uk/Home.do
 >
 > ta..
 >
 > Naveen Dhotre,
 > Consultant
 > Uovo Fi SYSTEM
 >
 > Main: +44 (0) 1 494 685 700, Fax: +44 (0) 1494 685 707
 > Email: [EMAIL PROTECTED],  Web:  http://www.uovo.com

Does anyone know what the server this site is, because it really does
fly.

Cheers.

..Nick

--
To unsubscribe, e-mail:

For additional commands, e-mail:







--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: sites powered by struts

2002-09-11 Thread Juraj Lenharcik

try this:
https://egovernment.100world.com/ewodemo-lhh/viewMrIndex.do

https://egovernment.100world.com/ewodemo-erl/viewMrIndex.do

-Ursprüngliche Nachricht-
Von: Jefferson R. de O. e Silva [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 15:37
An: [EMAIL PROTECTED]
Betreff: sites powered by struts


Hi guys,

I'm in a process of trying to convince my developement team to use the
struts in a new project 
here. 

Can anyone tell me any site which is using struts ? There are some people
here wanting
to see "results"

Thanks in advance

Jefferson

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: [Announce] [New Extension] ApplicationResources.properties fr om Database

2002-09-11 Thread Juraj Lenharcik

with this link:
http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

-Ursprüngliche Nachricht-
Von: Juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:34
An: 'Struts Users Mailing List'
Betreff: AW: [Announce] [New Extension] ApplicationResources.properties
fr om Database


I had some OCR Exceptions on unpacking the zip...

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:34
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Okay, I put the source in www.dirtroad.net/computer-programmer.  Open source
- hope you find it useful.

Mark

-Original Message-
From: Juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 8:16 AM
To: 'Struts Users Mailing List'
Subject: AW: [Announce] [New Extension] ApplicationResources.properties
fr om Database


I would be interessted; Whats about XMLRessources? ;-)

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:07
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Cool.  I wrote a generic class to turn any key-value properties strings in a
database table into a java.util.Properties object.  If anybody's interested,
I can make that available as well.

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 12:55 AM
To: Struts Users Mailing List
Subject: RE: [Announce] [New Extension] ApplicationResources.properties
from Database


Sorry for the delay.  I've decided to post this on our website.

Please feel free to download and try it out.

 http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

If for some reason the site goes down, just send me an email and I'll get it
to you.




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 10, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: [Announce] [New Extension] ApplicationResources.properties from
> Database
>
>
> For anyone interested, I have finished implementing DBMessageResources
> which allows you to keep the key-value pairs (from your
> ApplicationResources.properties) in a single database table.
>
> You can load your property files into a table (generic schema is provided)
> and with this extension, by only modifying  in the
> struts-config.xml your application will run WITHOUT ANY code changes. (See
> the readme.txt file included)
>
> This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
> database configuration and connection pool management.
>
> I have included a modified version of the (1.1b2) struts-example to
> demonstrate.
>
> I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
> (If anyone requires a 1.0.x compatible, I can look at that also)
>
> I will get this project available as soon as I work through some
> cvs issues
> on sf.net:
>
> If anyone is REALLY itching to get their hands on it sooner, send me a
> email.
>
> For those who were waiting, thanks for your patience.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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

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

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

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

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

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




AW: [Announce] [New Extension] ApplicationResources.properties fr om Database

2002-09-11 Thread Juraj Lenharcik

I had some OCR Exceptions on unpacking the zip...

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:34
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Okay, I put the source in www.dirtroad.net/computer-programmer.  Open source
- hope you find it useful.

Mark

-Original Message-----
From: Juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 8:16 AM
To: 'Struts Users Mailing List'
Subject: AW: [Announce] [New Extension] ApplicationResources.properties
fr om Database


I would be interessted; Whats about XMLRessources? ;-)

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:07
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Cool.  I wrote a generic class to turn any key-value properties strings in a
database table into a java.util.Properties object.  If anybody's interested,
I can make that available as well.

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 12:55 AM
To: Struts Users Mailing List
Subject: RE: [Announce] [New Extension] ApplicationResources.properties
from Database


Sorry for the delay.  I've decided to post this on our website.

Please feel free to download and try it out.

 http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

If for some reason the site goes down, just send me an email and I'll get it
to you.




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 10, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: [Announce] [New Extension] ApplicationResources.properties from
> Database
>
>
> For anyone interested, I have finished implementing DBMessageResources
> which allows you to keep the key-value pairs (from your
> ApplicationResources.properties) in a single database table.
>
> You can load your property files into a table (generic schema is provided)
> and with this extension, by only modifying  in the
> struts-config.xml your application will run WITHOUT ANY code changes. (See
> the readme.txt file included)
>
> This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
> database configuration and connection pool management.
>
> I have included a modified version of the (1.1b2) struts-example to
> demonstrate.
>
> I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
> (If anyone requires a 1.0.x compatible, I can look at that also)
>
> I will get this project available as soon as I work through some
> cvs issues
> on sf.net:
>
> If anyone is REALLY itching to get their hands on it sooner, send me a
> email.
>
> For those who were waiting, thanks for your patience.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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

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

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

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

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




AW: [Announce] [New Extension] ApplicationResources.properties fr om Database

2002-09-11 Thread Juraj Lenharcik

I would be interessted; Whats about XMLRessources? ;-)

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:07
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Cool.  I wrote a generic class to turn any key-value properties strings in a
database table into a java.util.Properties object.  If anybody's interested,
I can make that available as well.

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 12:55 AM
To: Struts Users Mailing List
Subject: RE: [Announce] [New Extension] ApplicationResources.properties
from Database


Sorry for the delay.  I've decided to post this on our website.

Please feel free to download and try it out.

 http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

If for some reason the site goes down, just send me an email and I'll get it
to you.




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 10, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: [Announce] [New Extension] ApplicationResources.properties from
> Database
>
>
> For anyone interested, I have finished implementing DBMessageResources
> which allows you to keep the key-value pairs (from your
> ApplicationResources.properties) in a single database table.
>
> You can load your property files into a table (generic schema is provided)
> and with this extension, by only modifying  in the
> struts-config.xml your application will run WITHOUT ANY code changes. (See
> the readme.txt file included)
>
> This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
> database configuration and connection pool management.
>
> I have included a modified version of the (1.1b2) struts-example to
> demonstrate.
>
> I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
> (If anyone requires a 1.0.x compatible, I can look at that also)
>
> I will get this project available as soon as I work through some
> cvs issues
> on sf.net:
>
> If anyone is REALLY itching to get their hands on it sooner, send me a
> email.
>
> For those who were waiting, thanks for your patience.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Tomcat 4.1.10

2002-09-11 Thread Juraj Lenharcik

post it to the tomcat group please

-Ursprüngliche Nachricht-
Von: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 11:04
An: Lista de correo Struts
Betreff: Tomcat 4.1.10


There is out the new stable release of tomcat. I tried it and Tomcat don't
found any of my classes (under WEB-INF/lib or WEB-INF/classes), so they
don't find the struts.jar file. I tried the examples that come with tomcat,
and there are a lot that don't work too.

Anyone has tried it? I'm under Win2000.

Thanks!!


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: WYSIWYG for Struts?

2002-09-10 Thread Juraj Lenharcik

Dreamweaver provides a support

-Ursprüngliche Nachricht-
Von: Dan Walker [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 10. September 2002 14:32
An: [EMAIL PROTECTED]
Betreff: WYSIWYG for Struts?


What page design tools are you using with Struts (Frontpage, etc.)?  Does
any 
product really handle Struts custom tags well?

Thanks.
-Dan

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Struts vs Jade

2002-09-10 Thread Juraj Lenharcik

Hi,

in my opinion Jade is really something for webdesigners. I think struts has
a handicap on the view development. There should be a more intensive
cooperation to include the struts taglibt into products like Dreamweaver.
There is a smart support yet, but it doesn't work really. I think the
handling on the view layer has to be improved. I work since 1 year with
struts, but the view layer brings always some problems with. For the view
layer are the features supported by Jade (if really) better.

But I would hear a meaning by someone, who has done something with Jade. I
don't know anyone. 


Juraj




-Ursprüngliche Nachricht-
Von: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 10. September 2002 10:45
An: Lista de correo Struts
Betreff: Struts vs Jade


I have seen in the Jade homepage, a comparative between Struts and Salmon:

http://www.salmonllc.com/website/Jsp/vanity/JadeWhitePaper.jsp?nav=5&NavBarI
d=JadeWhitePaper

I've seen the videos of Salmon/Jade and it is interesting, but I think it is
more focused to visual development.

What do you think of Jade?


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Handling runtime exceptions in Struts?

2002-09-09 Thread Juraj Lenharcik

Hi Declan,

there are some new tags (since servlet api 2.3):


  
java.sql.SQLException
/ausnahmen/sqlException.jsp
   

  
java.io.IOException
/ausnahmen/ioException.jsp
  

Here you can create error pages for different kinds of errors. An another
possibility would be to catch the exceptions in the action servlet and
forward to the errorpage.

Juraj



-Ursprüngliche Nachricht-
Von: Declan O'Shanahan (CAPE)
[mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. September 2002 14:19
An: [EMAIL PROTECTED]
Betreff: Handling runtime exceptions in Struts?


Hi there,

I was wondering if there a way with Struts to catch runtime exceptions by
default and have them displayed by an error page? I am trying to handle a
Servlet Exception that is thrown because of a missing key in the Application
Resources properties file.

Regards,

Declan O'Shanahan.



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: ApplicationResources.properties to DB?

2002-08-29 Thread Juraj Lenharcik

Hi,

is this feature provided for the next releases? I mean this feature should
be supported. There should be at least connectors for databases and
xml-application ressources (like in ant, the xml property files).  



Juraj


-Ursprüngliche Nachricht-
Von: Tero P Paananen [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 29. August 2002 16:41
An: Struts Users Mailing List
Betreff: RE: ApplicationResources.properties to DB?


> Has anybody given any thought to (much less actually done it) placing
> properties files into the database and having the app server load/methods
> call a persistent bean containing the keys/values?  We are developing for
> different clients using basically the same framework and I am thinking
that
> rather than maintain separate properties files in various physical
> locations, to put the properties into the database, write a Java interface
> defining the extraction methods, and implement concrete classes for each
> app to load that app's properties.

This was discussed, briefly, a few months ago.

It would be very easy to extend the MessageResources classes
in Struts to read from a database instead of properties file.

All you need to do is extent PropertyMessageResources and
overload the loadLocale() method.

-TPP

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




WG: iterate - create - html:text not bean:write

2002-05-24 Thread Juraj Lenharcik

> Hi,
> 
> I have a bean with an ArrayList. These entries should be presented on the
> jsp as input fields. What is the best way?
> 
> 
>  <== Not bean:write something like
>   for each entry
> 
> 
> 
> Juraj

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




iterate - create - html:text not bean:write

2002-05-24 Thread Juraj Lenharcik

Hi,

I have a bean with an ArrayList. These entries should be presented on the
jsp as input fields. What is the best way?


 <== Not bean:write something like
  for each entry



Juraj

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: apache + tomcat + *.do mapping problem

2002-04-24 Thread juraj Lenharcik

Hi,

perhaps it is a configuration error. Your provider has to pass the *.do to
tomcat. I think your provider pass only *.jsp to tomcat


juraj

-Ursprüngliche Nachricht-
Von: Oliver Kiessler [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 24. April 2002 10:46
An: Struts Users Mailing List
Betreff: apache + tomcat + *.do mapping problem


hello,
can't solve this problem: i have webspace with a provider that uses
apache 1.3.2something and tomcat 3.2.23. i deployed the struts-example
webapp just for testing. so i opened my webapp in my browser and found
out that all the .do mappings do not work. whenever i access tomcat
directly (port 8080) everything is fine. what can i do?

thanks in advance,
oli




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Question to Sessions in Struts Framework

2002-04-18 Thread juraj Lenharcik

Hi,

can someone tell me, if there is a automatically session creating after
calling mapping.findForward? The problem is that I use a session.invalidate
in an ActionServlet. My SessionListener create an output, that this session
was destroyed, but after this, the Listener signaled, that a new session was
produced. 

If i link direct to a JSP and call the invalidate methode i don't get a new
sessionCreated message. 

Is somewhere in the way from a forward to the destination JSP a new session
produced. Sorry I looked in the struts sources, but I am not sure. I think
the creation of the new Locale could be the cause.


Thanks
juraj


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: can not access a member of class ... with modifiers - Error

2002-04-10 Thread juraj Lenharcik

hi,

ok i have it; my generated action-class wasn't ''public''


-Ursprüngliche Nachricht-
Von: juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 10. April 2002 16:14
An: Struts-User@Jakarta. Apache. Org (E-Mail)
Betreff: can not access a member of class ... with modifiers - Error


Hi,

can someone tell me what this error has to say?

 org.apache.struts.action.ActionServlet: Error creating Act
ion instance for path '/login', class name
'com.di.security.auth.authentication.
LoginAction'^M
java.lang.IllegalAccessException: Class
org.apache.struts.action.ActionServlet c
an not access a member of class
com.di.security.auth.authentication.LoginAction
with modifiers ""^M
at java.lang.Thread.run(Thread.java:536)^M...


thank you
juraj

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

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




can not access a member of class ... with modifiers - Error

2002-04-10 Thread juraj Lenharcik

Hi,

can someone tell me what this error has to say?

 org.apache.struts.action.ActionServlet: Error creating Act
ion instance for path '/login', class name
'com.di.security.auth.authentication.
LoginAction'^M
java.lang.IllegalAccessException: Class
org.apache.struts.action.ActionServlet c
an not access a member of class
com.di.security.auth.authentication.LoginAction
with modifiers ""^M
at java.lang.Thread.run(Thread.java:536)^M...


thank you
juraj

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: [ANN] Routines to validate Date in Struts

2001-11-29 Thread juraj Lenharcik

Hello,

is there not already a validator present in the commons? /1 can yo explain
what the essentials differences are? perhaps a documentation of the
abilities. your side is not so meaningful for a non spanish speaker. ;-)


thanks

1- http://home.earthlink.net/~dwinterfeldt/





-Ursprüngliche Nachricht-
Von: Iñigo Serrano [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 27. November 2001 03:01
An: Struts User
Betreff: [ANN] Routines to validate Date in Struts


Hello

I am developing a routines (ISValidator) to validate data in diferents
scenarios, command line argumets, Servlets Parameters, etc,...

I have develop also some classes to use ISValidator in Struts 1.0 

With this routines the process of validating a form is more easy and
sistematic i think.

I have modified the example LogonForm to work with IsValidator.

The example is in
http://www.inigoserrano.com/ISValidator/en/ejemploStrutsCompleto0010ISValida
tor.htm

The routines and this page are in English but the rest of the web is in
spanish (I am translating it to English). To download the routines just go
to the download option in the menu and acept the license, you have the
option to download in zip and in tar.gz

The routines are licensed under the GNU GPL 2

I hope it can be usefull for somebody

Iñigo
-
http://www.inigoserrano.com



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Log4J and Struts

2001-11-22 Thread juraj Lenharcik

thanks for the tip. i will try it.

- juraj

-Ursprüngliche Nachricht-
Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 22. November 2001 11:10
An: Struts Users Mailing List
Betreff: RE: Log4J and Struts


Startup servlet? I have no need for that one - either you name your
property file log4j.properties, or you specify the environment variable
log4j.configuration, and log4j will pick it up by itself.

Thus I have _no_ initialization code for log4j. The only things that are
changed in my code is "import org.apache.log4j.Category;" and "private
static final Category logcat = Category.getInstance(MyClass.class);".
This is precisely what makes log4j superior to all other logging
mechanisms I've yet seen (though I have to admit I don't study them all,
because I'm more than content with log4j).

tomK


> -----Original Message-
> From: juraj Lenharcik [mailto:[EMAIL PROTECTED]] 
> Sent: donderdag 22 november 2001 11:05
> To: 'Struts Users Mailing List'
> Subject: AW: Log4J and Struts
> 
> 
> i have it in web-inf/classes and will be invoced by a startup servlet.
> 
> -Ursprüngliche Nachricht-
> Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 22. November 2001 10:30
> An: Struts Users Mailing List
> Betreff: RE: Log4J and Struts
> 
> 
> Somewhere in the classpath. For Tomcat, I put it in
> TOMCAT_HOME/webapps//WEB-INF/classes
> 
> hth,
> tomK
> 
> > -Original Message-
> > From: storck [mailto:[EMAIL PROTECTED]] 
> > Sent: donderdag 22 november 2001 9:30
> > To: Struts User (E-Mail)
> > Subject: Log4J and Struts
> > 
> > 
> > Hi,
> > 
> > where must I put the config-file for Log4J so I can use log4j 
> > within struts?
> > 
> > Many thanks!
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:struts-user-> [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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

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




AW: Log4J and Struts

2001-11-22 Thread juraj Lenharcik

i have it in web-inf/classes and will be invoced by a startup servlet.

-Ursprüngliche Nachricht-
Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 22. November 2001 10:30
An: Struts Users Mailing List
Betreff: RE: Log4J and Struts


Somewhere in the classpath. For Tomcat, I put it in
TOMCAT_HOME/webapps//WEB-INF/classes

hth,
tomK

> -Original Message-
> From: storck [mailto:[EMAIL PROTECTED]] 
> Sent: donderdag 22 november 2001 9:30
> To: Struts User (E-Mail)
> Subject: Log4J and Struts
> 
> 
> Hi,
> 
> where must I put the config-file for Log4J so I can use log4j 
> within struts?
> 
> Many thanks!
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




access a error with logic (error added in form not action)

2001-10-26 Thread juraj Lenharcik

hello,

i have a input field and i check it in the FORM-bean (Not action!), if it is
ok; when not i put it to the errors (errors.add("count", new
ActionError("error.count")); ) and return to the input jsp.
Now i want to output a error message. i did it with  but now i want to output a error message from a other
source (xml or database). I need to check if the error with the property
count is available. i tried:


   
  
 
  
   


can someone send me a snipset of a code segment how it is possible to access
the error?


thank 
juraj 





Application Ressources from database? - check with "present" for an error

2001-10-25 Thread juraj Lenharcik

hi all,

want to ask how i can use the tags with a source like a database intead of
ApplicationRessources.properties. a example is to use error messages from
database. when it is not possible, how can i check with the iterate tag if a
error id is there?

example:
 





greetings
juraj
 



Application Ressources from database?

2001-10-25 Thread juraj Lenharcik

hi all,

want to ask how i can use the tags with a source like a database intead of
ApplicationRessources.properties. a example is to use error messages from
database. when it is not possible, how can i check with the iterate tag if a
error id is there?

example:
 





greetings
juraj
 



AW: Struts Reference Site

2001-10-18 Thread juraj Lenharcik

we do something in struts, too for daimler chrysler.

greetings
juraj

-Ursprüngliche Nachricht-
Von: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 18. Oktober 2001 16:02
An: [EMAIL PROTECTED]
Betreff: AW: Struts Reference Site



Alan,

I could show you some sites we created for DaimlerChrysler's internal use -
but I'm not allowed to...

Greetings,
Bernhard


> -Ursprungliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 18. Oktober 2001 10:18
> An: [EMAIL PROTECTED]
> Betreff: Re: Struts Reference Site
>
>
>
> Am looking for a commercial site that uses struts
>
> I need to demonstrate that they are used in the real world
>
> Best Regards
>
> Alan
>
>



AW: Implement menu into Struts ( Newbie question )

2001-09-14 Thread juraj Lenharcik

hi claudio,

i think it is of course the best way to do it with your ActionBean. it
exists a struts based taglib collection named struts light
http://struts.application-servers.com/ . theres a menu implemented in struts
and jsp. i think it is exactly tat, what you need. i tried the menu some
time ago, but i had problems to run it, when you have a hierarchical
structure with a deep more than two. but for a simple use it should suffice.


juraj

 

-Ursprüngliche Nachricht-
Von: Claudio Parnenzini [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 14. September 2001 13:52
An: [EMAIL PROTECTED]
Betreff: Implement menu into Struts ( Newbie question )


Hi all,

I would like to know how is the best way to implement a standard menu 
wrote in Javascript with Struts. My web application have a top frame that 
contains my menu, when you click on to an item, I would like to call a 
jsp page ( Targeted into the body frame ) that display data from a DB.

Is the best way to do it by calling an Action class that take data from 
the DB and after call the JSP page ? 
Or is there an other way to do it???

Any link or example are really appreciate.

Regards

Claudio Parnenzini



AW: AW: Bug in Struts validator !

2001-09-14 Thread juraj Lenharcik

no problem ;-)

-Ursprüngliche Nachricht-
Von: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. September 2001 17:58
An: [EMAIL PROTECTED]
Betreff: Re: AW: Bug in Struts validator !


My bad.  I'm blind.  I'll fix it and check it into
CVS.

David

--- juraj Lenharcik <[EMAIL PROTECTED]>
wrote:
> when i set the locale for germany , the fromatter
> object is still null after
> the check. i set this line:
> 
> formatter =
> DateFormat.getDateInstance(DateFormat.SHORT,
> locale);
> 
> instead of:
>   DateFormat.getDateInstance(DateFormat.SHORT,
> locale);
> 
> after this the formatter object was written and is
> not null.
> 
> 
> juraj
> 
> -Ursprüngliche Nachricht-
> Von: David Winterfeldt
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 13. September 2001 16:41
> An: [EMAIL PROTECTED]
> Betreff: Re: Bug in Struts validator !
> 
> 
> I don't see that you changed anything except to add
> braces around the if statement.  It already checks
> if
> the locale is null and uses the default locale if it
> is null.  Am I missing what you changed?
> 
> David
> 
> --- juraj Lenharcik <[EMAIL PROTECTED]>
> wrote:
> > hi all,
> > 
> > In the class GenericValidator, when you use an
> > another locale than the
> > default you get a null pointer exception. i tried
> it
> > with the german locale
> > settings. i fixed the bug in this lines:
> > 
> >   DateFormat formatter = null;
> >   if (locale != null){
> > ==>  formatter =
> > DateFormat.getDateInstance(DateFormat.SHORT,
> > locale);
> >   }else{
> > ==>  formatter =
> > DateFormat.getDateInstance(DateFormat.SHORT,
> > Locale.getDefault());
> >   }   
> >   formatter.setLenient(false);
> > 
> > can someone change it and check it into the cvs?
> > 
> > 
> > thanks & bye
> > juraj
> > 
> 
> 
> __
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
>
http://dailynews.yahoo.com/fc/US/Emergency_Information/


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/



AW: Bug in Struts validator !

2001-09-13 Thread juraj Lenharcik

when i set the locale for germany , the fromatter object is still null after
the check. i set this line:

formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale);

instead of:
DateFormat.getDateInstance(DateFormat.SHORT, locale);

after this the formatter object was written and is not null.


juraj

-Ursprüngliche Nachricht-
Von: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. September 2001 16:41
An: [EMAIL PROTECTED]
Betreff: Re: Bug in Struts validator !


I don't see that you changed anything except to add
braces around the if statement.  It already checks if
the locale is null and uses the default locale if it
is null.  Am I missing what you changed?

David

--- juraj Lenharcik <[EMAIL PROTECTED]>
wrote:
> hi all,
> 
> In the class GenericValidator, when you use an
> another locale than the
> default you get a null pointer exception. i tried it
> with the german locale
> settings. i fixed the bug in this lines:
> 
> DateFormat formatter = null;
> if (locale != null){
> ==>formatter =
> DateFormat.getDateInstance(DateFormat.SHORT,
> locale);
> }else{
> ==>formatter =
> DateFormat.getDateInstance(DateFormat.SHORT,
> Locale.getDefault());
> }   
>   formatter.setLenient(false);
> 
> can someone change it and check it into the cvs?
> 
> 
> thanks & bye
> juraj
> 


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/



AW: Bug in Struts validator !

2001-09-13 Thread juraj Lenharcik

when i set the locale for germany , the fromatter object is still null after
the check. i set this line:

formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale);

instead of:
DateFormat.getDateInstance(DateFormat.SHORT, locale);

after this the formatter object was written and is not null.


juraj



-Ursprüngliche Nachricht-
Von: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. September 2001 16:41
An: [EMAIL PROTECTED]
Betreff: Re: Bug in Struts validator !


I don't see that you changed anything except to add
braces around the if statement.  It already checks if
the locale is null and uses the default locale if it
is null.  Am I missing what you changed?

David

--- juraj Lenharcik <[EMAIL PROTECTED]>
wrote:
> hi all,
> 
> In the class GenericValidator, when you use an
> another locale than the
> default you get a null pointer exception. i tried it
> with the german locale
> settings. i fixed the bug in this lines:
> 
> DateFormat formatter = null;
> if (locale != null){
> ==>formatter =
> DateFormat.getDateInstance(DateFormat.SHORT,
> locale);
> }else{
> ==>formatter =
> DateFormat.getDateInstance(DateFormat.SHORT,
> Locale.getDefault());
> }   
>   formatter.setLenient(false);
> 
> can someone change it and check it into the cvs?
> 
> 
> thanks & bye
> juraj
> 


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/



AW: Unit Testing Actions

2001-09-11 Thread juraj Lenharcik

yes i had user httunit too. it used not only xml as input, but also a xml
file as output for reports. ths xml reports were transformed with xsl to
html for nightly reports like gump (apache).


juraj

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 11. September 2001 09:58
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Unit Testing Actions


We test them using our own test framework sitting on top of HTTPUnit. It
uses an XML file as input (e.g with urls and expected text/errors etc),
rather than writing code.
--
dIon Gillard, Multitask Consulting
Work:  http://www.multitask.com.au
JavaNews: http://www.multitask.com.au/JavaNews
- Forwarded by dIon Gillard/Multitask Consulting/AU on 11/09/2001 05:56
PM -
Unit Testing Actions


What's the best way to unit test Struts Actions?  Create mock objects
(request, session, servlet, etc.)?  J2EEUnit, Catctus, HTTP Unit?  Which
approach are people having the most success with?

Also, Craig M. mentioned a while back about a unit testing framework for
Struts itself.  How is that coming along?  Just curious.

Thanks!

Steve Molitor
[EMAIL PROTECTED]




Bug in Struts validator !

2001-09-11 Thread juraj Lenharcik

hi all,

In the class GenericValidator, when you use an another locale than the
default you get a null pointer exception. i tried it with the german locale
settings. i fixed the bug in this lines:

  DateFormat formatter = null;
  if (locale != null){
==>  formatter = DateFormat.getDateInstance(DateFormat.SHORT,
locale);
  }else{
==>  formatter = DateFormat.getDateInstance(DateFormat.SHORT,
Locale.getDefault());
  }   
  formatter.setLenient(false);

can someone change it and check it into the cvs?


thanks & bye
juraj




fasthashmap for validator

2001-09-10 Thread juraj Lenharcik

hi,

can some one tell me where to download the struts.util.fasthasmap? i need it
for the struts validator; 

thanks
juraj




AW: Example to use javascript to validate field input in JSP not null and be integer ?

2001-09-10 Thread juraj Lenharcik

why not server side? with ActionForm and validate?

jsp:
=





Datum von: 


...

the form bean:
=

public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
ActionErrors errors = new ActionErrors();

if (from == null || from.length() == 0 || blabla = blubb) {
  errors.add("datumFrom", new
ActionError("error.filter.datum")); 
}
return errors;
}

and the struts config:


  when failure return to form  :   input="/cstree/content.jsp"
<==
validate="true" >





juraj

-Ursprüngliche Nachricht-
Von: Julia Yang [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 19:33
An: [EMAIL PROTECTED]
Betreff: Example to use javascript to validate field input in JSP not
null and be integer ?


 
All
Does anybody can give me a small Example or explanation on how to use
javascript to validate field input in JSP not null and be integer ?
 
 
Thanks
Julia
 



How to iterate without trouble

2001-09-10 Thread juraj Lenharcik

Cause of the lots of Questions about the ITERATE Tag, here is a simple
example how to iterate over a Hastable (using the Interface
java.util.Map.Entry):

Juraj & Michael from Germany
Struts Oldbiez (over 1.5 month of experience)   ;-)


Action:


Hashtable values = new Hashtable(); 

HttpSession session = request.getSession();
session.setAttribute("content", values);

String successMessage = "werte ok";
request.setAttribute("successMessage", successMessage);

request.setAttribute("data", theForm);

View (Jsp):
---


 
 

- 
 




AW: Does not work proper?

2001-09-10 Thread juraj Lenharcik

dont know, never used

-Ursprüngliche Nachricht-
Von: Marcel Andres [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 17:44
An: struts-user
Betreff: RE: Does  not work proper?


hi juraj

thanks for your responde. yes, in my action I have the following code:

ActionErrors errors = new ActionErrors();
...
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error_name));

Is it not right, like this?

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 5:23 PM
To: [EMAIL PROTECTED]
Subject: AW: Does  not work proper?


hi marcel,

did you have registered an error in your actionServlet?
you have to put something like : errors.add("test", new
ActionError("test.error"));
your Application Ressource describes the key: test.error=This is an error

in your jsp you can then output the error with:


the way with validate values in the form bean, like yours, is similar.


juraj


-Ursprüngliche Nachricht-
Von: Marcel Andres [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 17:06
An: struts-user
Betreff: Does  not work proper?


Hi there

Like most of you, I am using the -tag to show errors on the JSP
page. My problem is, that I don't get any message on the JSP page. I do the
following check before I return to the form:

if (!errors.empty()) {
saveErrors(request, errors);
return (new ActionForward(mapping.getInput()));
}

When I check the values, "errors.empty()" it is set to false, and the value
for "errors.size()" is 1.

On the JSP, I am using a template with header, main, and footer. In the
header I declared this:

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





 
  
   
  
 



Any comments would be appreciated.

Marcel



AW: Does struts validate input field in JSP type by itself ?

2001-09-10 Thread juraj Lenharcik

hi julia,

you get, as far as I know, only strings for settings. you can validate the
string in your ActionForm within the validate method. you have to look if
the string can be transfered to a integer; when no you can add an error and
redirect back to the jsp.


public void setCompanyID(String newCompanyID) {
this.companyID = newCompanyID}


juraj



-Ursprüngliche Nachricht-
Von: Julia Yang [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 17:26
An: [EMAIL PROTECTED]
Betreff: Does struts validate input field in JSP type by itself ?


Hi, all
Do you know if struts validate input fields in JSP by itself, which has
matched getter and setter methods in bean,?
For example: You have field called companyID in JSP and in you xxxForm
bean you have 
int companyID();
public int getCompanyID(){
return this.companmyID;}
public void setCompanyID(int newCompanyID) {
this.companyID = companyID}
My question is: if I put a String in JSP companyID field, can I let
struts tell me error message that companyID has to be integer ? How ?

Thanks 

Julia




AW: Does not work proper?

2001-09-10 Thread juraj Lenharcik

hi marcel,

did you have registered an error in your actionServlet?
you have to put something like : errors.add("test", new
ActionError("test.error"));
your Application Ressource describes the key: test.error=This is an error

in your jsp you can then output the error with:


the way with validate values in the form bean, like yours, is similar.


juraj


-Ursprüngliche Nachricht-
Von: Marcel Andres [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 17:06
An: struts-user
Betreff: Does  not work proper?


Hi there

Like most of you, I am using the -tag to show errors on the JSP
page. My problem is, that I don't get any message on the JSP page. I do the
following check before I return to the form:

if (!errors.empty()) {
saveErrors(request, errors);
return (new ActionForward(mapping.getInput()));
}

When I check the values, "errors.empty()" it is set to false, and the value
for "errors.size()" is 1.

On the JSP, I am using a template with header, main, and footer. In the
header I declared this:

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





 
  
   
  
 



Any comments would be appreciated.

Marcel



WG: struts or tomcat 3.2.1 bug?

2001-09-07 Thread juraj Lenharcik

hello,

the stange thing is, when i get the bean with useBean then i can access all
elements and put them out. no problems perform.

then i put my iterate tag to the jsp. when i debug the jsp i can see that
the bean is correctly in the scope and CAN BE ACCESSED! the iterator runs
ONCE trought the bean writes and then the scope of the bean is suddenly
lost. then i get my meaningful jsp - exception. what could be the problem???


there should be no startup mistake.


thanks
juraj


 -Ursprüngliche Nachricht-
Von:juraj Lenharcik  
Gesendet:   Donnerstag, 6. September 2001 17:37
An: [EMAIL PROTECTED]
Betreff:struts or tomcat 3.2.1 bug?

does anyone knows about a bug in tomcat 3.2.1 with struts? i mean there was
a message few weeks ago, but i cant find it again. can someone give me a
tip?

the problem is, that i have an application under resin 2.0.2 running and
when i put it on tomcat 3.2.1 it doesnt run. i get an exception:
javax.servlet.ServletException: Cannot find bean data in scope session.


thanks
juraj




struts or tomcat 3.2.1 bug?

2001-09-06 Thread juraj Lenharcik

does anyone knows about a bug in tomcat 3.2.1 with struts? i mean there was
a message few weeks ago, but i cant find it again. can someone give me a
tip?

the problem is, that i have an application under resin 2.0.2 running and
when i put it on tomcat 3.2.1 it doesnt run. i get an exception:
javax.servlet.ServletException: Cannot find bean data in scope session.


thanks
juraj




AW: "Cannot find bean element in scope null" - Error in action forwar d page - but the next page works !

2001-09-04 Thread juraj Lenharcik

put scope="request" to your write tag

-Ursprüngliche Nachricht-
Von: Hamelmann Stefan [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. September 2001 10:30
An: '[EMAIL PROTECTED]'
Betreff: "Cannot find bean element in scope null" - Error in action
forwar d page - but the next page works !


Hi

I have an action class setting a session attribute ( java bean class )
forwarding to a jsp page which calls  for that bean.
I got a "Cannot find bean element in scope null" error message for element.


  

  

When I make the same call " a page later " everything works fine.

I got the error in Struts 1.0 and Struts 1.1.4 with Tomcat 3.2.3 and Tomcat
4.0 B7

Thanx in advance, Stefan



AW: Help: Cannot find bean BEAN in scope null

2001-08-30 Thread juraj Lenharcik

put scope="request" to your tag


-Ursprüngliche Nachricht-
Von: Gary Kephart [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 20:32
An: Struts User
Betreff: Help: Cannot find bean BEAN in scope null


I get this message in the log file:

Cannot find bean org.apache.struts.taglib.html.BEAN in scope null

Does anyone know why this happened and how to fix it?

Thanks,
  Gary
--
Gary Kephart   | Basis 100
Software Engineer  | 4 Park Plaza, Suite 800
[EMAIL PROTECTED]  | Irvine, CA 92614
(949) 852-8600x262 | http://www.basis100.com

This communication is intended only for the use of the individual or
entity to whom/which it is addressed, and information contained in this
communication is privileged and confidential.  If the receiver of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly

prohibited.  If you have received this communication in error, please
notify us at the above telephone number (so that we may correct our
internal records) and delete this communication without making a copy of

it.  Thank you.



AW: Logic Tags

2001-08-29 Thread juraj Lenharcik

do you have 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
in your jsp?



-Ursprüngliche Nachricht-
Von: Mike Bungay [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 17:52
An: '[EMAIL PROTECTED]'
Betreff: RE: Logic Tags


Yes But i just passed in a string value not a variable because I don't
really care what the value is I just want to check that it's present

-----Original Message-
From: juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:32 AM
To: '[EMAIL PROTECTED]'
Subject: AW: Logic Tags


did you have:

String message = "blabla";
request.setAttribute("success", message);

in your actionBean?


-juraj

-Ursprüngliche Nachricht-
Von: Mike Bungay [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 17:17
An: '[EMAIL PROTECTED]'
Betreff: RE: Logic Tags


I am passing the success (request.setAttribute("success","yes");) parameter
back to the jsp but in the jsp when I try this code: 

 
  
window.open("welcome.jsp", "popupPage", "top=0,left=0,resizable=yes,
status=yes" +   ",width=" + screen.width +
",height=" + screen.height);



the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??



AW: Logic Tags

2001-08-29 Thread juraj Lenharcik

did you have:

String message = "blabla";
request.setAttribute("success", message);

in your actionBean?


-juraj

-Ursprüngliche Nachricht-
Von: Mike Bungay [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 17:17
An: '[EMAIL PROTECTED]'
Betreff: RE: Logic Tags


I am passing the success (request.setAttribute("success","yes");) parameter
back to the jsp but in the jsp when I try this code: 

 
  
window.open("welcome.jsp", "popupPage", "top=0,left=0,resizable=yes,
status=yes" +   ",width=" + screen.width +
",height=" + screen.height);



the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??



AW: digister formbean forward

2001-08-28 Thread juraj Lenharcik

sorry i have solved the problem (too tired now...)


until later, with the next digister problem ;-)



-Ursprüngliche Nachricht-
Von: juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 28. August 2001 18:59
An: '[EMAIL PROTECTED]'
Betreff: digister formbean forward


hi,

i have implemented an actionservlet which reads out a xml config file for a
database configuration. i can add the required values to a session and the
forward jsp can access them. but when i construkt a formbean for these
values, then i can`t access the values. i become allway only null values.
the jsp has scope request. can someone tell me how to do it, that the next
jsp becomes the correct instance of this form bean?

juraj



digister formbean forward

2001-08-28 Thread juraj Lenharcik

hi,

i have implemented an actionservlet which reads out a xml config file for a
database configuration. i can add the required values to a session and the
forward jsp can access them. but when i construkt a formbean for these
values, then i can`t access the values. i become allway only null values.
the jsp has scope request. can someone tell me how to do it, that the next
jsp becomes the correct instance of this form bean?

juraj



digester problem

2001-08-28 Thread juraj Lenharcik

hi all,

i want to access some tags form my actionServlet, to configure some Beans.
My simple XmlFile:


  


the config Form bean are only get/set methods. and the actionservlet:

InputStream is = this.getClass().getResourceAsStream("db.xml");
BufferedInputStream bis = new BufferedInputStream(is);
Digester digester = new Digester();
digester.push(this);
digester.setDebug(1);   
digester.setNamespaceAware(true);
digester.setValidating(false);

digester.addObjectCreate("database/user","di.workerClient.action.Content");
digester.addSetProperties("database/user");
//digester.addSetNext("database/user", "addContent");
 
digester.parse(bis);
bis.close();

System.out.println("user: " + content.getUsername());
System.out.println("passwd: " + content.getPasswd());   

as output i became only null values. has anyone an idea why (craig???
please)

thanks
juraj




AW: Struts and HttpUnit

2001-08-23 Thread juraj Lenharcik

download httpunit; try the examples; there is no difference between struts
generated frontend or not struts generated. you will need the jtidy too, to
parse the html files (response). with httpunit you can test the
functionality from websites ->named black box tests.
the interessting thing with httpunit woud be, when you connect them with ant
and do them continous as a cron job. you can then create then xml logs with
ant ..



juraj


-Ursprüngliche Nachricht-
Von: Matt Raible [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 24. August 2001 00:07
An: [EMAIL PROTECTED]
Betreff: Struts and HttpUnit


Has anyone used HttpUnit to test their struts application?  I'd be willing
to
help compose a bunch of tests for the struts-example if someone can point me
in
the right direction.

Matt

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



struts light bug ?

2001-08-20 Thread juraj Lenharcik

hi all,

does anyone have experience with struts light from jean noel ribette ? i
have a problem with his menu tag. i have implemented a wonderfull deep
search and want to create a tree-menu with the results now. i have created
the necessary code, but this could not be correctly realized. the struts
light flips out ;-) , when there are two menu items like that:











! --> problem start here:   
1.  
2.  









the output shows like that:

menu.test.menu1 
menu.test.menu3 
menu.test.item2 
menu.test.item2 
menu.test.menu4 
> menu.test.item4   
> menu.test.item4   
menu.test.menu3 
menu.test.item2 
menu.test.item2 
menu.test.menu4 
> menu.test.item4   
> menu.test.item4   

does anyone have an idea, or the mailaddress from jean? his
[EMAIL PROTECTED]   is not
availeble now. the example on his page works
(http://struts.application-servers.com/).


thanks
juraj