[OS-webwork] [JIRA-Opensymphony] Created: (XW-53) Add MessageFormat support for text messages from xwork-message.properties

2003-06-10 Thread legendaryservice
Message: A new issue has been created in JIRA. - View the issue: http://jira.opensymphony.com/secure/ViewIssue.jspa?key=XW-53 Here is an overview of the issue: --

Re: [OS-webwork] webwork 1.3 and servlet 2.2

2003-06-10 Thread Cameron Taggart
As a followup to my post... I was able to get WebWork 1.3 to work with a servlet 2.2 container (Tomcat 3.x). I added the 4 class files found in the servlet 2.3 jar that WebWork depends on and I switched the view from JSP to Velocity and it is working just fine. I'll give Sun ONE 6 WebServer a tr

Re: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Rickard Öberg
Michael Blake Day wrote: First of all I have to ask: why won't you store a template in a relational database? One word: overkill. Since the database is already a bottleneck in most applications, I try to relieve the stress as much as possible. Usually putting templates (which are used on every re

RE: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Heng Sin Low
A transactional rdbms is not good for this type of thing for performance reason. However a lightweight java database engine like jisp should fit in very well. The key thing here is that the db must support super fast, non transactional read very well. --- Michael Blake Day <[EMAIL PROTECTED]> wrot

RE: [OS-webwork] Expression Validation

2003-06-10 Thread Toby Hede
well even with what I had originally, my expression should invalidate the data if the string less than 10, if you see what I mean. the problem actually seems to be that the expression does nothing, regardless of what the actual expression is. I have tried: string.length() < 10 string.length() >

RE: [OS-webwork] Configuration in /WEB-INF

2003-06-10 Thread Les . Stroud
The hardest problem with that is that you can't use context.getRealPath() to get the location of WEB-INF in an unpacked war config (per servlet spec). Honestly, classpath is usually the best solution. -Original Message- From: Mathias Bogaert [mailto:[EMAIL PROTECTED] Sent: Tuesday, June

[OS-webwork] Configuration in /WEB-INF

2003-06-10 Thread Mathias Bogaert
Guys, It seems like we are having a lot of problems with finding configuration files in the classpath etc. Also, I dislike putting configuration files other than .properties on the classpath. That's why I propose putting it all (components.xml, xwork.xml etc)under /WEB-INF directly (same as SiteMe

Re: [OS-webwork] ww2 on websphere 5

2003-06-10 Thread Hendrik van der Linde
This may have to do, or be similar to http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-186 I think I saw this error on JBoss too. Hendrik On dinsdag, jun 10, 2003, at 15:38 Europe/Amsterdam, Andre Mermegas wrote: Hrm ok, that's a good quick fix for now, thanks. The IoC stuff seems

RE: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Michael Blake Day
> Michael Blake Day wrote: > > Right, but I've always been against sticking templates into a relational > > database system, and I've never heard of any other good > alternative database > > for document storage. > > First of all I have to ask: why won't you store a template in a > relational datab

RE: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Les . Stroud
Not that my opinion matters much :), but I'm not sure what the advantages of a database are for files. The performance of a database for file retrieval is less than that of file system access. You are not planning to use the database for what it is good for (queries). You would have to write too

RE: [OS-webwork] Setters that take 2 parameters in Actions

2003-06-10 Thread Måns af Klercker
Hi Douglass, OGNL/XWork/WebWork2 doesn't support this, but we needed this kind of support in our (Swing) app, so we have patched OGNL to support this kind of "mapped property". Basically, your tag would look like: The patch is *very much* a hack but it seems to be working OK for us, and I can p

Re: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Rickard Öberg
Anthony Eden wrote: Or (as we do) you can simply give Velocity a String with the template. And of course, String's are easy to store in databases. I assume you are not allowing the use of #parse or #include since if you are or plan on allowing it then you will need to use a ResourceLoader. Early

Re: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Anthony Eden
Michael Blake Day wrote: Right, but I've always been against sticking templates into a relational database system, and I've never heard of any other good alternative database for document storage. First of all I have to ask: why won't you store a template in a relational database? As for altern

Re: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Anthony Eden
Rickard Öberg wrote: Anthony Eden wrote: Are you trying to allow modifications of Velocity templates stored in an unexpanded WAR? There is not an easy way to do this as far as I know. Well, it shouldn't be *that* hard, but it'd be a hassle when you do upgrades *shiver* I think it is ha

Re: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Matt Ho
An alternate methodology would be to configure within velocity.properties an additional file location for your templates. This could then be mapped to a shared network directory on a NetApp file server or some other similar device. M Michael Blake Day wrote: Right, but I've always been against

Re: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Rickard Öberg
Anthony Eden wrote: Are you trying to allow modifications of Velocity templates stored in an unexpanded WAR? There is not an easy way to do this as far as I know. Well, it shouldn't be *that* hard, but it'd be a hassle when you do upgrades *shiver* This is not to say it can't be done but

RE: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Michael Blake Day
Right, but I've always been against sticking templates into a relational database system, and I've never heard of any other good alternative database for document storage. I suppose that using an unpacked WAR is one solution, but what about the issue of security? Content people should not have wr

Re: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Rickard Öberg
Michael Blake Day wrote: How do you guys allow customers to modify velocity templates without mucking with WAR files? We have portlets which render pieces of pages, and a portlet have a map (string->object) as configuration. We typically have a "template" entry which contains the template to be u

Re: [OS-webwork] Portlet ?

2003-06-10 Thread Rickard Öberg
Fernando Martins wrote: I just came to a point that I would really love to start using portlets all over my Portal. I even find myself coding having in mind how everything will fit into portlets. Unfortanetly nothing new on: http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-6 Are there a

Re: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Anthony Eden
Are you trying to allow modifications of Velocity templates stored in an unexpanded WAR? There is not an easy way to do this as far as I know. This is not to say it can't be done but its probably not worth the hassle since the interface to files in the Servlet API is geared towards reading onl

[OS-webwork] [JIRA-Opensymphony] Created: (XW-52) buildValidators doesn't look for validators for every super class

2003-06-10 Thread legendaryservice
Message: A new issue has been created in JIRA. - View the issue: http://jira.opensymphony.com/secure/ViewIssue.jspa?key=XW-52 Here is an overview of the issue: --

RE: [OS-webwork] JavaOne meetings +

2003-06-10 Thread Michael Blake Day
How do you guys allow customers to modify velocity templates without mucking with WAR files? Blake > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Rickard Öberg > Sent: Sunday, June 08, 2003 2:21 AM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork]

RE: [OS-webwork] ww2 on websphere 5

2003-06-10 Thread Andre Mermegas
Hrm ok, that's a good quick fix for now, thanks. The IoC stuff seems really cool though, not sure if I'd use it, but it'd be nice to have the option. Hopefully I can track down why ww2/ws5 can't find that components.xml file and all will be peachy again. Regards, -Andre Mermegas -Original M

Re: [OS-webwork] resource bundles in WW ?

2003-06-10 Thread Dick Zetterberg
See comments inline. - Original Message - From: "Miroslav Kes" <[EMAIL PROTECTED]> > Hi, > > I started experimenting with WW some days ago trying to convert a simple > application in which I originaly used Struts. Now I got to the point > when I would like to deploy it but found ther

[OS-webwork] resource bundles in WW ?

2003-06-10 Thread Miroslav Kes
Hi, I started experimenting with WW some days ago trying to convert a simple application in which I originaly used Struts. Now I got to the point when I would like to deploy it but found there was one open question left. How does the WW access resource bundles for i18n-ized texts? I looked at

Re: [OS-webwork] How ActionTag in WW2 work?

2003-06-10 Thread Dick Zetterberg
I do not think the methods in BaseActionSupport should be changed to load the locale earlier. That was only an example of a method depending on the ActionContext. There might be other occasions when you need the context in a method that You have created. Keeping a reference to the context will h

Re: [OS-webwork] ww2 on websphere 5

2003-06-10 Thread Pat Lightbody
It sounds like WebWork can't find the components.xml file. If you don't have one and don't plan to use the IoC part of XWork, just remove the IoC stuff from web.xml (the filter and the two listeners). -Pat - Original Message - From: "Andre Mermegas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

Re: [OS-webwork] Expression Validation

2003-06-10 Thread Pat Lightbody
Have you tried string.length() < 10? The validation expression stuff is a little funky.. sometime I think opposite of what it is (true validates, false doesn't -- or vice-versa). -Pat - Original Message - From: "Toby Hede" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 09,

[OS-webwork] webwork 1.3 and servlet 2.2

2003-06-10 Thread Cameron Taggart
Has anyone had any luck running WebWork 1.3 in a container only implementing the servlet 2.2 spec? The output from the webwork form fields is being written first in the html instead of where it should be within the html. Any ideas/solutions? Situation: I just finished writing an Intranet applica