Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Adam Hardy
Yes, and the website's now at http://struts.apache.org On 04/05/2004 02:09 AM Craig Tataryn wrote: Thanks, I'll check that out. Hey, did the mailing list address change or something? I've always mailed to [EMAIL PROTECTED] and now I see the reply-to generated by the list manager is now [EMAIL

RE: TokenProcesor and synchronization

2004-04-04 Thread Prasad, Kamakshya
Hi, Thanks Craig. I got that. But I had some more issues. I downloaded the code from the given link http://www.javaworld.com/javatips/jw-javatip136_p.html and deployed in my server. If I submit a page and then refresh it, it works as mentioned in the document But while submitting if I click

Re: Design Question

2004-04-04 Thread Craig R. McClanahan
Erez Efrati wrote: Hi, I am developing an EJB/Struts J2EE application. Up to now I have dealt with the design of the customer web application side and I came to the admin area - the back office web application part. I should also point out that I am using the securityFilter filter for authent

Re: TokenProcesor and synchronization

2004-04-04 Thread Craig R. McClanahan
Prasad, Kamakshya wrote: Hi, It might be a silly question... but curiosity... Why we need to synchronize at all? Each user session will be unique in the server and so the extracted variables from that session. KP It's not a silly question ... this is an issue that *lots* of people don't und

RE: why I got "response already committed" exception

2004-04-04 Thread Mu Mike
I tried, got the same exception From: "Sanoj, Antony (IE10)" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: RE: why I got "response already committed" exception Date: Sun, 4 Apr 2004 22:56:39 -0700 Try

RE: why I got "response already committed" exception

2004-04-04 Thread Sanoj, Antony (IE10)
Try This will prevent the buffer from flushing before the target page specified by page attribute executes. But this can be done only in containers implementing jsp1.2 spec. -Original Message- From: Mu Mike [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:53 AM To

JSTL and enums

2004-04-04 Thread Matthew Fisher
Hi everyone, I have been given the enjoyable job of converting our jsp files from scriplet code to jstl and I have come accross this problem. I need to convert the following line: <%=TransactionType.newLine.getName()%> Naturally TransactionType was already imported, so I've set the enum list to t

why I got "response already committed" exception

2004-04-04 Thread Mu Mike
I have a body.jsp jsp page which has a statement like this there exists also a form in the jsp page ... dosub() { myform.target=window.opener.name; myform.submit(); } now I opened body.jsp in a "" which exists in another jsp page, but when I submitted the form, there threw the exceptio

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Craig Tataryn
Thanks, I'll check that out. Hey, did the mailing list address change or something? I've always mailed to [EMAIL PROTECTED] and now I see the reply-to generated by the list manager is now [EMAIL PROTECTED] Craig On Sun, 04 Apr 2004 23:05:42 +0200, Adam Hardy wrote: > > Craig, > why don't y

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Mark Lowe
Perhaps (again I have no tried) might render to On 4 Apr 2004, at 23:06, Mark Lowe wrote: Never tried what you're doing but. may render to On 4 Apr 2004, at 23:02, Craig Tataryn wrote: Just realized I missprinted something, my code now looks like: not as the "get" is not needed

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Mark Lowe
Never tried what you're doing but. may render to On 4 Apr 2004, at 23:02, Craig Tataryn wrote: Just realized I missprinted something, my code now looks like: not as the "get" is not needed. But again, let me know if anyone has any ideas on how I can get this working without subclassin

Re: ActionMapping getInclude()

2004-04-04 Thread Mark Lowe
Got it.. Dont worry. On 4 Apr 2004, at 23:08, Mark Lowe wrote: can anyone shed any light in getInclude and setInclude(String str) method.. I'm looking around but if anyone can save me time would be appreciated. Typical uses would be useful. I'm in the javadocs, but i dont get it . Mark -

ActionMapping getInclude()

2004-04-04 Thread Mark Lowe
can anyone shed any light in getInclude and setInclude(String str) method.. I'm looking around but if anyone can save me time would be appreciated. Typical uses would be useful. I'm in the javadocs, but i dont get it . Mark -

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Adam Hardy
Craig, why don't you use the nested:text tag and iterate over the address(texas) property? Adam On 04/04/2004 11:02 PM Craig Tataryn wrote: Just realized I missprinted something, my code now looks like: not as the "get" is not needed. But again, let me know if anyone has any ideas on how I ca

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Craig Tataryn
Just realized I missprinted something, my code now looks like: not as the "get" is not needed. But again, let me know if anyone has any ideas on how I can get this working without subclassing Vector. Thanks, Craig. On Sun, 04 Apr 2004 15:41:37 -0500 (CDT), "Craig Tataryn" wrote: > > I ha

validator javascript function names == action-paths

2004-04-04 Thread Adam Hardy
Hi folks, I am wondering whether I've lost the plot as far as the validator goes. I have been entering the action-path as the form name in the validation.xml and the javascript taglib. I am seeing the error below. I am not sure how long I failed to see the validation errors. It might be weeks.

HashMap of Vectors and Indexed Properies

2004-04-04 Thread Craig Tataryn
I have a property on my form bean I setup to work with Map-backed properties. Basically the hash map backing the property is keyed by region and contains an Address object representing a company's office within that region. So something like: would correctly render the getStreet1() property

Re: Validation errors displayed in reverse order

2004-04-04 Thread Niall Pemberton
Are the fields in this order in your validation.xml? Niall - Original Message - From: "P Cotton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 04, 2004 4:32 PM Subject: Validation errors displayed in reverse order > Hi everyone, > > I am having problems with the order

Re: Frequently Performed Action Tasks

2004-04-04 Thread Adam Hardy
Go round to his house 'n reprogram his computer with an axe? ;) My systems have never been so closely watched that this was a use-case which cropped up. I assume you are talking about some sort of public forum or BB where the administrator of the users is a seperate person to the server admini

Re: Frequently Performed Action Tasks

2004-04-04 Thread Joe Hertz
Adam, What would you do if someone suspended this user while he was logged in? -Joe > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 04, 2004 6:12 AM > To: Struts Users Mailing List > Subject: Re: Frequently Performed Action Tasks > > > Hey Joe,

Re: Validation errors displayed in reverse order

2004-04-04 Thread Joe Germuska
At 4:32 PM +0100 4/4/04, P Cotton wrote: Hi everyone, I am having problems with the order that validation errors are displayed using Struts. I am using validation.xml and have a JSP page with a list of form fields e.g. Is this the same as http://issues.apache.org/bugzilla/show_bug.cgi?id=27992 ?

view question

2004-04-04 Thread mustaoglu serdar
hi, is struts to jsp ? how can use struts for midlets (j2me) application. in other words at the view part , is it possible use midlets? is it possible? (using xml and xsl) thanks. - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today

Validation errors displayed in reverse order

2004-04-04 Thread P Cotton
Hi everyone, I am having problems with the order that validation errors are displayed using Struts. I am using validation.xml and have a JSP page with a list of form fields e.g. Field1 Textbox Field2 textbox Field3 textbox I can validate this fine and when forwarding back to the page, with ERRO

Re: indexedlistproperty validation problem

2004-04-04 Thread Mark Lowe
Lets have a butchers (look) at the action form (dyna or otherwise) and jsp.. Does it work if you just validate as required? or is your problem specify to the validations you're performing? On 4 Apr 2004, at 06:18, jolly wrote: Hi, I have face another validation problem to validate indexedListP

RE: Struts Validator

2004-04-04 Thread Matthew Clark
Hi Niall, Thanks for responding.. I thought more people would have done so but perhaps I am asking an obvious question to which I have missed the answer? The client is determined using the user's ID and Role.. It's a fairly typical authentication system where a user has roles and privileges. If

Re: Frequently Performed Action Tasks

2004-04-04 Thread Adam Hardy
Hey Joe, why don't you put the whole user bean in the session? I do. It's not so big that it causes problems under heavy load. You could then have a simple checkUser() in your base class that checks if the session bean is there before calling getUser(). I actually have my checkUser() in a filte

Re: integer validation problem

2004-04-04 Thread Adam Hardy
A lofty goal, Joe! What are you using on the back-end to connect to the database? Until I decided to go with xdoclet which generates the DTOs and the EJBs for me, I was wondering about using some sort of solution like you, where I used a DynaForm mothership that 'released' its Map to the back-

Frequently Performed Action Tasks

2004-04-04 Thread Joe Hertz
I'm considering doing something, and I'm trying to decide if it's safe to do. I'm sure this particular battle has been fought before. I'm curious what the results are from those who have waged it. A typical case: At the beginning of your action, you want to get the current user's record from th

Re: integer validation problem

2004-04-04 Thread Joe Hertz
Jolly, you answered it yourself: "I dont want to write another actionForm class that represent my DTO...I am in great trouble." This isn't Struts causing you the problem. It's the JSP spec. The automatic type conversion it does for you, will cause "null integers" to be sent into your DTO as