Re:

2003-08-29 Thread Yakov Belov
Thanks Adam,
your comments make sense if I was using Struts1.1, but for reasons out of my
control I am using Struts1.0 and the struts-config_1_0.dtd doesnt define
 tag ... so, I can't use it.

But I can use the  tag,
however I can not define a new bundle with some key because of absense of
the  in the dtd. Is there another way to define a bundle
other than a default one?

I feel like a total newbie in this issue.

Thanks in advance.

Yakov Belov



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



struts-user@jakarta.apache.org

2003-08-28 Thread Yakov Belov
( I stole someone's topic - sorrry :)

Hi All,

I am wondering which file to insert  into.
Is it struts-config.xml for the application?

Also, do I understand correctly?:

1) "key" is the id for the bundle to be used, say in 
2) "parameter" is the actual file name of the bundle - without ".properties"
3) the default location for *.properties files /WEB-INF/classes

Thank you for your comments,

Yakov Belov



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



Re: How to use Map in ActionForm

2003-08-28 Thread Yakov Belov
Hi All,

I am wondering which file to insert  into.
Is it struts-config.xml for the application?

Also, do I understand correctly?:

1) "key" is the id for the bundle to be used, say in 
2) "parameter" is the actual file name of the bundle - without ".properties"
3) the default location for *.properties files /WEB-INF/classes

Thank you for your comments,

Yakov Belov



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



Re:

2003-08-27 Thread Yakov Belov
Thanks Amin.
But I still have a query.

I use 

in my ActionForm:
ActionErrors errors = new ActionErrors();
errors.add("persDet1", new ActionError("error.option.required"));

and then in the jsp file:


where persDet.properties exists and has error.option.required key in it.
Is this all fine so far?

The problem is I get an error message:
Can not find message resource under persDet key

Do you know what's going on?

Best Regards,
Yakov
- Original Message - 
From: "Mohd Amin Mohd Din" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 1:24 PM
Subject: RE: 


> Refers to the properties file. Since errors message key is a constant,
> therefore it does not need to refer to a specific line in the properties
> file.
> 
> Amin
> 
> -Original Message-
> From: Yakov Belov [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 27, 2003 10:54 AM
> To: Struts Users Mailing List
> Subject: 
> 
> Dear All,
> 
> I have a question about  tag. There is an optional
> attribute,
> "bundle" as in />
> 
> My question is how do I use bundle attribute; is it a reference to a
> properties file or reference to a line in the default properties file?
> 
> Thank you in advance,
> Yakov Belov
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re:

2003-08-27 Thread Yakov Belov
Thanks Amin.
But I still have a query.

I use 

in my ActionForm:
ActionErrors errors = new ActionErrors();
errors.add("persDet1", new ActionError("error.option.required"));

and then in the jsp file:


where persDet.properties exists and has error.option.required key in it.
Is this all fine so far?

The problem is I get an error message:
Can not find message resource under persDet key

Do you know what's going on?

Best Regards,
Yakov
- Original Message - 
From: "Mohd Amin Mohd Din" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 1:24 PM
Subject: RE: 


> Refers to the properties file. Since errors message key is a constant,
> therefore it does not need to refer to a specific line in the properties
> file.
> 
> Amin
> 
> -Original Message-
> From: Yakov Belov [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 27, 2003 10:54 AM
> To: Struts Users Mailing List
> Subject: 
> 
> Dear All,
> 
> I have a question about  tag. There is an optional
> attribute,
> "bundle" as in />
> 
> My question is how do I use bundle attribute; is it a reference to a
> properties file or reference to a line in the default properties file?
> 
> Thank you in advance,
> Yakov Belov
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



struts-user@jakarta.apache.org

2003-08-27 Thread Yakov Belov
Dear All,

I have a question about  tag. There is an optional attribute,
"bundle" as in />

My question is how do I use bundle attribute; is it a reference to a
properties file or reference to a line in the default properties file?

Thank you in advance,
Yakov Belov



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



Re: Problem using SSL with Struts, Tomcat 4.1.12 on IIS

2003-01-28 Thread Yakov Belov
Maybe you need to define the resources which are accessed via SSL and the
ones which are not, something like in web.xml:



xxx
/resources/*



CONFIDENTIAL or NONE



Good luck,
Yakov

- Original Message -
From: "Gogte, Sushrut" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 4:54 AM
Subject: Problem using SSL with Struts, Tomcat 4.1.12 on IIS


> I am using Struts 1.0.2 with Tomcat 4.1.12 running on IIS 4.0 web server.
>
> In my application, I am using a template which inserts a navigation menu
on
> the left hand side of the screen, using Struts.  This menu is composed of
> links and images.
> When I run my application in non-secure mode, it is running fine.
However,
> when I try to use SSL, so that I access it with https://... instead of
> http://..., the links are getting converted to http://...:443 (I am using
> the standard 443 port for SSL connections).  The same is happening with
the
> images, and therefore, they are not showing up. I am using relative links,
> because I have different environments (DEV, QA, PROD), and don't want to
> hardcode the server name in my JSP pages.
>
> This used to work fine with Struts on Tomcat 3.2, but after upgrading to
> 4.1.12, this is the behavior I am seeing.  Has anyone else seen anything
> like this, and if so, how did you fix it?
>
> Thanks a lot,
>
> Sushrut
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



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




PJA libraries

2003-01-17 Thread Yakov Belov
Dear All,

this might be the wrong mailing-list to send this question to, however maybe not.

I am using PJA (pure java graphics implementation) libraries for my chart drawing with 
Struts on Tomcat.

To use these libraries I need to change the system a bit, like this:

System.setProperty ("awt.toolkit", "com.eteks.awt.PJAToolkit");
System.setProperty ("java.awt.graphicsenv", "com.eteks.java2d.PJAGraphicsEnvironment");
System.setProperty ("java.awt.fonts", "/usr/share/fonts/default/TrueType");

and I place all the jar files under WEB-INF/lib for the application. However when I 
try to draw an image, I receive:

java.lang.Error: Could not find class: com.eteks.java2d.PJAGraphicsEnvironment

where com.eteks.java2d.PJAGraphicsEnvironment is a class in one of the jar files. What 
might be the problem?

Thanks in advance,
Yakov

P.S. I should try Tomcat mailing list as well.