Re: DynaActionForm problem (newbie probably :)

2005-01-31 Thread Robin Ericsson
Kishore Senji wrote: The idea is that the Converter should be available only when saving the specific form (atleast for now). Once you register it, the same converter is available for that type from that point onwards. It doesn't matter whether you do it in the Plugin or an Action. So, if you

Re: How to send result into Pop-up window

2005-01-31 Thread Manisha Sathe
Now i get pop-up window but some other problems i am facing As u mentioned this will fail if i make use of validator javascript functions on search citeria. I thought i will use serverside validation - but now what's happening is i get validation errors on my new pop-up window and not on my

RE: [OT] Logging Question

2005-01-31 Thread McDonnell, Colm (MLIM)
snip I've been told at work that we cannot use it because it isn't J2EE-compliant... I'm awaiting clarification on what that actually means in this context /snip Probably because the configureAndWatch() method in o.a.l.x.DOMConfigurator will cause a 'file watcher' thread to be spawned. The fact

Re: [OT] Logging Question

2005-01-31 Thread Dakota Jack
Log4J in a cluster is an issue if you are using FileAppender. The problem arises because of multiple process from multiple machines writing to the same file. Either you need to synchronize these processes by writing a buffer around the FileAppender or use some other appender like the

[OT] Re: Another ODBC OT Question

2005-01-31 Thread Erik Weber
Thanks for the post. I didn't realize MySQL had implemented so much of JDBC 3. A standard API for retrieval of RDBMS-generated keys rocks! This on top of the recent improvements in driver performance. Awesome. Erik Brandon Mercer wrote: Erik Weber wrote: Sorry for all those local disk links and

Re: [OT] Logging Question

2005-01-31 Thread Eddie Bush
That would depend upon how your cluster is setup though too. Each node in our clusters/farms has its own independent disk, running its own independent copy of the app ... and has its own independent log file. I can't imagine why someone would use a shared mount in a cluster environment. The

Re: How to send result into Pop-up window

2005-01-31 Thread Keshav Shetty
Hi Manisah, As I understand this problem is not exactly related to struts but with the controlling the flow. With my knowledge of struts we can't do validation in main page and show the report in the popup screen. Don't worry I have a alternative solution for this. Please refer the attached

Re: Another ODBC OT Question

2005-01-31 Thread Kwok Peng Tuck
Depends on your database. Most db's like MaxDB, Oracle and so on which support sequences can retreive the current value of the sequence after it has been used. Usually something along the lines of SEQ.CURRVAL for Oracle. Typically you can only use it if you've used the sequence in the first

Re: Another ODBC OT Question

2005-01-31 Thread Martin Gainty
Brandon: With regards to Oracle Accessing Sequence will work if you make sure the Sequence is SELECTED within your session otherwise you should use SEQ.nextval to ensure you get a unique and valid value for your sequence for details Please read

Re: DynaActionForm problem (newbie probably :)

2005-01-31 Thread Hubert Rabago
Last time I checked (which was a couple of months back), Struts uses the static methods of BeanUtils. This means that they just use the same instance used by all classes for the same application. The same goes for ConvertUtils.register(). So, from what I understand, once you register a

Re: DynaActionForm problem (newbie probably :)

2005-01-31 Thread Joe Germuska
At 9:02 AM -0600 1/31/05, Hubert Rabago wrote: Last time I checked (which was a couple of months back), Struts uses the static methods of BeanUtils. This means that they just use the same instance used by all classes for the same application. The same goes for ConvertUtils.register(). So, from

Re: DynaActionForm problem (newbie probably :)

2005-01-31 Thread Hubert Rabago
I think as far as configuration is concerned, it shouldn't be about the developer configuring multiple BeanUtils instances, but configuring how individual fields should be formatted. This is what I went for with FormDef. http://www.rabago.net/struts/formdef/manual.htm#specifyingformats On Mon,

Re: DynaActionForm problem (newbie probably :)

2005-01-31 Thread Jeff Beal
Joe Germuska wrote: At 9:02 AM -0600 1/31/05, Hubert Rabago wrote: I only recently became aware of BeanUtils' non-static object counterparts, and I haven't had a chance to use them yet or figure out if Struts can use them. I think I raised this question recently on the user list, but if not,

Re: Accessing Database Information

2005-01-31 Thread Larry Meadors
Read Rick's ibatis tutorial, it covers DAO quite well: http://reumann.net/struts/ibatisLesson1.do On Sun, 30 Jan 2005 09:57:03 -0700, Wendy Smoak [EMAIL PROTECTED] wrote: From: Brandon Mercer [EMAIL PROTECTED] They both talk about accessing information from a database and DAO and DTO and

[OT] Thanks

2005-01-31 Thread bmf5
I'm moving to a new project and won't need to subscribe to this list for the time being. Before moving on though, I wanted to say thank you to everyone. The people here are great. Seven months ago I had heard and read of Struts but never used it. I'm now leaving behind a small web app

Coupling between view and domain model (off topic)

2005-01-31 Thread Leandro Melo
Hi all. This might seem more a design question than a struts specific question. Anyway, if anyone could help me out a little here. I`m going to explain what is my approach for an specific situation, then you tell me what you think about that, ok. When i`m designinig the web interface for a

Re: Coupling between view and domain model (off topic)

2005-01-31 Thread Vic
See if this methodology helps you separate the 2. When I start a project I do not care about DB or model; I only care what the client wants, like what fields, where, etc. I work w/ them to create html mock ups as requirments. Is this what they want? Once that's done, it's easy. I rename HTML

question about form buttons

2005-01-31 Thread Norris Shelton
I need 3 buttons 1) normal submit button - works correctly - yeah c:url var=addImage value='/images/buttonAdd.jpg'/ html:image src=${addImage} alt=Add value=add/ 2) reset button - press this and any changes since the last form submit are removed Tried (displayed image, but

Re: Coupling between view and domain model (off topic)

2005-01-31 Thread Leandro Melo
Vic, the separation of view and model is clear on your approach, liked it. However, there`s still one of the coupling i mentioned. Suppose that one year later your client decided to change the information contained in one of the pages. He now wants the all the stuff from 2 pages in only 1 page.

Why is JCL thread-safe in an Action?

2005-01-31 Thread Frank W. Zammetti (MLists)
Today I find myself converting an existing webapp from using Log4J directly to using JCL instead. As per the JCL User's Guide, I'm creating a private static Log variable in all my classes, Struts Actions included. My question is, why is this OK? Static variables in Actions are a Bad Thing,

Why is JCL thread-safe in an Action?

2005-01-31 Thread fzlists
Today I find myself converting an existing webapp from using Log4J directly to using JCL instead. As per the JCL User's Guide, I'm creating a private static Log variable in all my classes, Struts Actions included. My question is, why is this OK? Static variables in Actions are a Bad Thing,

Re: Why is JCL thread-safe in an Action?

2005-01-31 Thread Dakota Jack
snip Static variables in Actions are a Bad Thing, that's a ell-known fact, but why is a Log instance an exception to this rule? Is it only a bad thing to have static members that might be updated? Is that the difference here? /snip The documentation for Action says: Instance and static

Re: Why is JCL thread-safe in an Action?

2005-01-31 Thread fzlists
Makes sense, thanks. Somewhere along the line I got it in my head that all static vars are bad. It makes sense that they wouldn't be, I guess I just got it in my head that they are always bad and never really questioned why. If nothing else, that quote you references says it all quite clearly.

PreparedStatements

2005-01-31 Thread sudip shrestha
Using JDBC- JTOpen 4.6 for AS/400 DB2 I have a PreparedStatement that inserts 25 values into a table with 25 attributes... When I supply 23 or less attributes with values, the insert operation works normally. However, if I supply 24 or 25 attributes it throws an exception: java.sql.SQLException:

Re: Coupling between view and domain model (off topic)

2005-01-31 Thread Vic
I guess it be a new case. If there are 2 logical forms like master (name) and detail(list of transactions, that means the 1 form bean has to mirror it so you would have to nest a bean. (and... once the client approves... I would write a DAO). As far as MDA I myself use requirments based

Re: PreparedStatements

2005-01-31 Thread sudip shrestha
It seems that it is a bug with OS/400 R 5.1. It has been documented before: http://www-124.ibm.com/developerworks/bugs/?func=detailbugbug_id=3160group_id=29 On Mon, 31 Jan 2005 12:48:55 -0600, sudip shrestha [EMAIL PROTECTED] wrote: Using JDBC- JTOpen 4.6 for AS/400 DB2 I have a

Re: PreparedStatements

2005-01-31 Thread Woodchuck
afaik, there is no parameter limit your problem is probably related to the actual data value you're trying to set as parameter values for your preparedstatement. just my guess. find out whether your problem is always happening on specific parameters or not... ie. the 24th or 25th parameter that

Struts 2.0 or Struts 0.0?

2005-01-31 Thread Alex Kravets
So what do you guys think? http://www.theserverside.com/news/thread.tss?thread_id=31509 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Logging Question

2005-01-31 Thread Frank W. Zammetti
Well, I got an actual answer... Here's what I was told... Log4J is not J2EE complient so we should not be coding to it directly. Log4J requires direct file manipulation. J2EE forbids direct file manipulation, requires URL of file://... usage. WAS uses commons logging in it's implementation,

Re: PreparedStatements

2005-01-31 Thread Jeff_Caswell
And it would seem this may be the ptf: http://www-912.ibm.com/j_dir/JTOpen.nsf/8178b1c14b1e9b6b8525624f0062fe9f/a81403b611a0583686256bab006d7543?OpenDocument JC

Re: Why is JCL thread-safe in an Action?

2005-01-31 Thread Vic
That's great about Java. I am going the other way, from JCL to the new log4j: http://logging.apache.org/log4j/docs/ugli.html .V [EMAIL PROTECTED] wrote: Today I find myself converting an existing webapp from using Log4J directly to using JCL instead. As per the JCL User's Guide, I'm creating a

Re: Why is JCL thread-safe in an Action?

2005-01-31 Thread Kris Schneider
I'll be looking into UGLI as well, but I currently code directly to the log4j API. Not that it doesn't have it's own set of issues in a J2EE environment, but my impression is that JCL can be much worse. Here's something else to chew on: http://www.qos.ch/logging/thinkAgain.jsp Vic wrote:

[UNICODE characters in Mask validation rule]

2005-01-31 Thread Carlos Cajina
Good evening. I'm a little stuck trying to create a global constant in validation.xml that allows the mask rule to validate special spanish characters like Ñ [ UNICODE = \u00d1 ] for names, surnames, city names and so... Can someone give a hint ;^) ? Mi RegExp is like this: ^[A-Z.Ñ\s]*$

Re: Why is JCL thread-safe in an Action?

2005-01-31 Thread Kris Schneider
In the spirit of equal time: http://wiki.apache.org/jakarta-commons/Commons_20Logging_20FUD To summarize the last paragraph (that quotes an entry from the blog of one of JCL's creators), JCL is intended to be used by *library* code so it can leverage the logging implementation used by the

Re: How to send result into Pop-up window

2005-01-31 Thread Manisha Sathe
Thanks a lot, i think i can work this out. Btw, i could not receive the attached file (may be because it is through forum) Would appreciate if can forward attachement again to [EMAIL PROTECTED] Thanks once again, regards Manisha Keshav Shetty [EMAIL PROTECTED] wrote: Hi Manisah, As I

Re: Struts 2.0 or Struts 0.0?

2005-01-31 Thread Vic
Well, the marketing department of Sturts is in hot water for this one. To: [EMAIL PROTECTED] wait, we don't have one. Oh, well... who cares. Some people just can't comprehend that there are 2 or more MVC frameworks out there. .V Alex Kravets wrote: So what do you guys think?

Re: [UNICODE characters in Mask validation rule]

2005-01-31 Thread Kishore Senji
Good evening. I'm a little stuck trying to create a global constant in validation.xml that allows the mask rule to validate special spanish characters like Ñ [ UNICODE = \u00d1 ] for names, surnames, city names and so... Can someone give a hint ;^) ? Mi RegExp is like this: ^[A-Z.Ñ\s]*$

Re: Struts 2.0 or Struts 0.0?

2005-01-31 Thread Craig McClanahan
To the why is it named Shale instead of Struts question ... I would very much like it to be called Struts, but in the Apache development culture that cannot happen until the committers agree that it *is* Struts. I have proposed that Shale indeed be adopted in that way, and will continue to

Re: Struts 2.0 or Struts 0.0?

2005-01-31 Thread Curtis Taylor
I think Mr. McClanahan summed it up nicely ;-) Alex Kravets wrote: So what do you guys think? http://www.theserverside.com/news/thread.tss?thread_id=31509 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

any free tools to design layout with Struts?

2005-01-31 Thread Daniel PC Leung
When the layouts are done by Tiles and they are composed of a number of JSP files and Tiles definitions, any tools to facilitate layout design? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Error Pages

2005-01-31 Thread Curtis Taylor
Hi Tim, One (maybe obvious) question: Does your tiles-defs.xml definition for public.error have a path to your jsp? If not, that could wreak all kinds of error havoc... Tim Christopher wrote: Hi, I'm trying to setup custom error pages using Tomcat but keep on getting the following error: [EMAIL

Re: Struts 2.0 or Struts 0.0?

2005-01-31 Thread Craig McClanahan
On Mon, 31 Jan 2005 21:04:34 -0600, Vic [EMAIL PROTECTED] wrote: Craig McClanahan wrote: I have proposed that Shale indeed be adopted in that way, and will continue to encourage it; :-) (It took me a year after Struts .06 was out to find it, it took me a year to use CoR after that was

Re: Error Pages

2005-01-31 Thread Kishore Senji
[EMAIL PROTECTED]: Exception Processing ErrorPage[errorCode=404, location=/errors/404.do] ClientAbortException: java.net.SocketException: Software caused connection abort: socket write error at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:331) sniprest

Re: [UNICODE characters in Mask validation rule]

2005-01-31 Thread Carlos Cajina - Hotmail
Hi Kishore, thanks for the tip... I tried what you suggested but it didn't work... while googling for answers I read somewhere that including UNICODE codes was only possible in *.properties files, not in *.XML ... from my experience, that seems to be right... Anyway, I'm going through the

Re: [UNICODE characters in Mask validation rule]

2005-01-31 Thread Carlos Cajina - Hotmail
I just couldn't resist :^P ... Tomorrow I'll try it, but for now this looks like a simpler solution to the character encoding problem: http://www.servletsuite.com/servlets/encflt.htm - Original Message - From: Kishore Senji [EMAIL PROTECTED] To: Struts Users Mailing List

Re: [UNICODE characters in Mask validation rule]

2005-01-31 Thread Kishore Senji
Hi Kishore, thanks for the tip... I tried what you suggested but it didn't work... while googling for answers I read somewhere that including UNICODE codes was only possible in *.properties files, not in *.XML ... from my experience, that seems to be right... You are right. You have to

Re: Using XML in struts

2005-01-31 Thread [EMAIL PROTECTED]
You Try with bean:resource tag You can access it.. Jay Chandran wrote: Hi all, How can i read XML files using struts? is this possible? Can any one provide a link or give an example for reading XML files using struts? :-) Jay

Re: [UNICODE characters in Mask validation rule]

2005-01-31 Thread Kishore Senji
Here is the test case import java.io.*; import java.util.*; import org.apache.commons.validator.*; public class TestValidatorMask{ public static void main(String[] args) throws Exception { ValidatorResources vr = new ValidatorResources(getFormSetAsInputStream()); Form form =