RE: executeBatch

2004-07-25 Thread ravi.vedala
Wot does log say ?? Can you give us the log output ? Regds r-a-v-i -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 12:26 PM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: executeBatch Hi, I experimented this executeBatc

Re: Tag question (JSP organization)

2004-07-25 Thread Erik Weber
Raghuram, the thread was started by me ;) and was entitled "Prepopulating forms". It was a long thread and might give you some ideas. Here is a snip from a reply by Joe Germuska that I thought of when I read your post: At 12:16 PM -0400 7/12/04, Erik Weber wrote: Joe, thanks for your opinion.

Re: executeBatch

2004-07-25 Thread Shailender Jain
Hi, I experimented this executeBatch with 13500 records. Here are the results Number of Records At one Time Time 100 20 Seconds 200

RE: Need a synchronizer token

2004-07-25 Thread Kataria, Satish
The synchronizer token pattern in struts is typically used for avoiding double submits The method savetoken() creates a unique token and stores it as a hidden field.The call to this method is typically made in the action class loading the page. Thereafter we use istokenvalid() to determine whethe

RE: Tag question (JSP organization)

2004-07-25 Thread Raghuram Kanadam
I'm not sure I caught the thread. What does "despite how many Struts developers use the same form bean for both form prepopulation and user input processing, the form bean really was only designed for the latter" imply? Does it mean to say that a form is always a target of a submit? A

Re: Need a synchronizer token

2004-07-25 Thread Erik Weber
Thanks, Kataria. But, after looking at these methods, I'm still not sure how you set the hidden field in the form. For example, what name do you use for the parameter? Or is this handled by a Struts tag? Erik Kataria, Satish wrote: Refer to the documentation of the action class. It has savetoke

Re: Tag question (JSP organization)

2004-07-25 Thread Erik Weber
Well, during an earlier thread on this topic, one of the Struts contributors (I think he was a contributor -- can't remember who it was) posted that, despite how many Struts developers use the same form bean for both form prepopulation and user input processing, the form bean really was only de

RE: Tag question (JSP organization)

2004-07-25 Thread Raghuram Kanadam
The purpose of our setup action is that the form must be prepopulated. Is it not? Then why not have a method on the form that wud prepopulate it, and call this with the session/request object whenever it needs to be rendered . The form wud be rendered using html:form so I thought we could as wel

Re: Tag question (JSP organization)

2004-07-25 Thread Erik Weber
I'm sorry Raghuram, I'm not able to understand your question. Could you elaborate? Thanks, Erik Raghuram Kanadam wrote: Erik, If prepopulation is an issue we are dealing with quit often, why cant we have a method similar to prepopulate which would be called whenever the html:form is call

RE: Need a synchronizer token

2004-07-25 Thread Kataria, Satish
Refer to the documentation of the action class. It has savetoken() & istokenvalid() method to implement the synchronizer token patter. Thanks, Satish -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 11:11 AM To: Struts Users Mailing List Subject

RE: Tag question (JSP organization)

2004-07-25 Thread Raghuram Kanadam
Erik, If prepopulation is an issue we are dealing with quit often, why cant we have a method similar to prepopulate which would be called whenever the html:form is called? -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 2:17 AM To: Stru

Need a synchronizer token

2004-07-25 Thread Erik Weber
I know I've seen somewhere that Struts handles the synchronizer token pattern -- where a synchronizer token is embedded as a hidden form field and compared with an expected value stored as a session attribute before a write action is performed -- but I don't know exactly where to look. Can some

RE: Form Population

2004-07-25 Thread Kataria, Satish
Hi, I am not very clear what the problem statement is. Can you elaborate it. Thanks, Satish -Original Message- From: Isaias Barroso [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 5:25 PM To: [EMAIL PROTECTED] Subject: Form Population Hi all, I've a ActionForm that have 3 field

RE: Intermediate loading page

2004-07-25 Thread Raghuram Kanadam
Well if you are using NS 6+, it still supports the div versions also. NS4+ have the layers requirement. I'm not sure I got the entire context but, we had a problem to prevent a user from resubmitting a form twice (Yes I know tokens could do, but), we wanted a JS to it for us. So we used the fac

RE: Changing a field from not updatable to updatable at runtime...?

2004-07-25 Thread tiwari.rajeev
If Satish has stated the problem correctly, it can be achieved by using JavaScript function and on call to that function, change the status editable as true/flase. - regards Raj (+91-11-31261821) -Original Message- From: Kataria, Satish [mailto:[EMAIL PROTECTED] Sent: Monday, July 26,

RE: processing multiple records in a batch...JSP...db

2004-07-25 Thread Kataria, Satish
I am afraid that there is no built-in functionality in struts to process multiple Records. You can always write a custom tag to achive the same. Thanks, Satish -Original Message- From: Research labs [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 9:46 AM To: [EMAIL PROTECTED] Subj

RE: Changing a field from not updatable to updatable at runtime...?

2004-07-25 Thread Kataria, Satish
I assume that by updateable you mean editable. Thus to state ur problem better "how to change an uneditable field to editable field(e.g text field)" Please ignore the below statement if the assumption is incorrect There is no ready made way to make a field from uneditable to editable however You

RE: Changing a field from not updatable to updatable at runtime...?

2004-07-25 Thread tiwari.rajeev
Can you please elaborate the problem - regards Raj (+91-11-31261821) -Original Message- From: Research labs [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 9:45 AM To: [EMAIL PROTECTED] Subject: Re: Changing a field from not updatable to updatable at runtime...? Is it possible to

RE: executeBatch

2004-07-25 Thread tiwari.rajeev
Wow giri, Same reply - regards Raj ([EMAIL PROTECTED]) (+91-11-31261821) -Original Message- From: Giri Senji [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 10:10 AM To: Struts Users Mailing List Subject: Re: executeBatch Why not break it into 30 requests of executeBatch( with 10

RE: executeBatch

2004-07-25 Thread tiwari.rajeev
Did you experiment breaking the batch to 2-3 packs? (500-800 in one go). - regards Raj (+91-11-31261821) -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 10:07 AM To: [EMAIL PROTECTED] Subject: executeBatch Hi, I want to insert some 3000

Re: executeBatch

2004-07-25 Thread Giri Senji
Why not break it into 30 requests of executeBatch( with 100 records each time) On Mon, 26 Jul 2004 10:06:43 +0530, Shailender Jain <[EMAIL PROTECTED]> wrote: > Hi, > > I want to insert some 3000 records in the database. > > I tried using executeBatch() to insert all the records at a go. > But

executeBatch

2004-07-25 Thread Shailender Jain
Hi, I want to insert some 3000 records in the database. I tried using executeBatch() to insert all the records at a go. But the application gets hang and nothing happens. When i try using PreparedStatement then it does work and just takes some 30 seconds. I am using Informix as the database a

Re: Intermediate loading page

2004-07-25 Thread Shailender Jain
Hi Puneet, I am really in needs of such a type of javascript code. This code should work both on IE and netscape. I know i need to use the and tag. Any indicator for such a type of code will be really helpfull. Regards Shailender Jain [EMAIL PROTECTED] wrote: > > But if you change your app

RE: debugging prepared statements...view built SQl...Newbe?

2004-07-25 Thread tiwari.rajeev
I will also love to know this answer - regards Raj (+91-11-31261821) -Original Message- From: Research labs [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 9:44 AM To: [EMAIL PROTECTED] Subject: debugging prepared statements...view built SQl...Newbe? Is there anything in Struts t

RE: Intermediate loading page

2004-07-25 Thread puneet . a
But if you change your approach of showing "work in process" label, while the report is being generated, to this one, both your problems get solved. "write some _javascript_ that will show a layer which is opaque in the browser, and let that layer show some text like 'processing...' in blinking m

RE: some best practices questions

2004-07-25 Thread tiwari.rajeev
Just in continuation to discussion, as Peter says, My comment would be that *data* caching should be done in the data layer > (like I would like to make small comment on the same, Data Caching should be keeping in mind that kind of data we need to cache. If cached data is of presentation spe

Re: debugging prepared statements...view built SQl...Newbe?

2004-07-25 Thread Research labs
Thank for your very prompt response, I will investigate MySQl db. Ola. --- Peng Tuck Kwok <[EMAIL PROTECTED]> wrote: > Nope, don't think so. > If you are preparing your own sql statements you can > print them out > through a logger (tedious I know but still > workable). > Some database drivers

Re: ActionErrors and ActionMessages

2004-07-25 Thread jthompson
Please excuse the question - turns out I'm using Struts 1.1 Regards, John [EMAIL PROTECTED] Ph (09) 372-5010 |-+> | | [EMAIL PROTECTED]| | | o.nz | | || | |

Re: debugging prepared statements...view built SQl...Newbe?

2004-07-25 Thread Peng Tuck Kwok
Nope, don't think so. If you are preparing your own sql statements you can print them out through a logger (tedious I know but still workable). Some database drivers do support jdbc logging, where statements executed against the database will be logged to a text file. You'll probably need to look

processing multiple records in a batch...JSP...db

2004-07-25 Thread Research labs
Please, is there anything built into Struts for processing multiple records in a batch? Detail: If a database query brings back more than one record and the records are stored in a collection, I want the user to be able to bring one record at a time into the JSP screen by pressing the up or down a

Re: Changing a field from not updatable to updatable at runtime...?

2004-07-25 Thread Research labs
Is it possible to change the property of JSP fields dynamically at runtime e.g. changing a field from not updatable to updatable at runtime? Thank you. Ola ___ALL-NEW Yahoo! Messenger - all new features

debugging prepared statements...view built SQl...Newbe?

2004-07-25 Thread Research labs
Is there anything in Struts that will enable me view the SQL query that has been built by a prepared statement? Thank you. ___ALL-NEW Yahoo! Messenger - all new features - even more fun! http://www.all

Re: some best practices questions

2004-07-25 Thread puneet . a
One of our application had more than 300 screens, we used struts and most of those screens had a drop-down list. We stored all of them in servlet context, and every JSP got a copy of it in "pre-populate place holder". The peak user load was abt 500, and its working just fine...!!! Regards, Puneet

ActionErrors and ActionMessages

2004-07-25 Thread jthompson
I'm trying to use the saveErrors method in an Action class using (request,actionMessages) as parameters, instead of (request,actionErrors) which has been deprecated. I keep getting the following error at compilation though: saveErrors(javax.servlet.http.HttpServletRequest,org.apache.struts.ac

RE: HELP Re: Mail Delivery Failure

2004-07-25 Thread Jan Behrens
Yes, please! > -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 25, 2004 8:37 PM > To: Struts Users Mailing List > Subject: HELP Re: Mail Delivery Failure > > > I've gotten about fifty of these in the last couple of weeks. Can > someone remove this p

HELP Re: Mail Delivery Failure

2004-07-25 Thread Erik Weber
I've gotten about fifty of these in the last couple of weeks. Can someone remove this person from the list? Thanks, Erik [EMAIL PROTECTED] wrote: Delivery Failure Report. The following message was incorrectly addressed. Recipient: "[EMAIL PROTECTED]" is unrecognised. Please contact "[EMAIL PROTEC

Re: Form Bean and decions based on Business Logic calls

2004-07-25 Thread Muhammad Momin Rashid
Thank you for your answer, aparently in my persuit for something different I had overlooked such basic things. You answer has refreshed my knowledge. Sometimes we press too hard for answers which are already in front of us. Once again thanks for your time and effort. I really appreciate your gui

RE: application resources and escape characters

2004-07-25 Thread Jan Behrens
In response to my own post: I apologize for being stupid. I did not realize that the properties editor of my IDE (netbeans) automatically converted escape characters as well as other special characters... So every \n I typed became a \\n :( No wonder it didn't work. Cheers, Jan > -Origina