error in borrowObject of AbandonedObjectPool

2004-08-22 Thread Jitesh Sinha
Hello All, Any ideas why the following error will come "VBJ ThreadPool Worker" daemon prio=5 tid=0x00c59538 nid=0x5ae8 waiting for monitor entry [e677d000..e677fc30] at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool .java:111) - waiting to lock <

How to do validation for dynamically creating Multiple Fields

2004-08-22 Thread Jitender K Chukkavenkata
Return Receipt Your How to do validation for dynamically creating Multiple document Fields :

Validating Dynamically Creating Rows

2004-08-22 Thread Bharathiraja
hi everybody, In my application, i am having multilines with facility for adding multiline dynamically .I representing those fields through nested tags.These tag gets set through array of Objects. So in this scenario how can i validate my multiline fields. if i add new row and try to sa

How to do validation for dynamically creating Multiple Fields

2004-08-22 Thread Bharathiraja
hi everybody, In my application, i am having multilines with facility for adding multiline dynamically .I representing those fields through nested tags.These tag gets set through array of Objects. So in this scenario how can i validate my multiline fields. if i add new row and try to sa

UploadBean, Struts and JavaZoom

2004-08-22 Thread Michael McGrady
Has anyone used the JavaZoom UploadBean with struts? Looks like a pretty good deal, actually, if it is not buggy, etc. Any thoughts on this? Michael McGrady - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: How to avoid duplicated submission by token?

2004-08-22 Thread Michael McGrady
Rick Reumann wrote: >HI, Ping, you have so many different things going on in one action >execute method that it is very difficult to follow everything. Also, you >are doing a lot of things that do not need to be done (usually) from >your action such as calling form.reset(), removing form bean, rem

Re: Catching MaxLengthExceededException

2004-08-22 Thread Shinobu Kawai
Hi Antony, > Where I can catch the > org.apache.struts.upload.MaxLengthExceededException thrown when the file > size exceeds in Struts 1.0. I need to a message and redirect user to the > previous page. I can catch it in web.xml which catches the exception. But it > seems not to be an elegant

Catching MaxLengthExceededException

2004-08-22 Thread Antony Paul
Hi all, Where I can catch the org.apache.struts.upload.MaxLengthExceededException thrown when the file size exceeds in Struts 1.0. I need to a message and redirect user to the previous page. I can catch it in web.xml which catches the exception. But it seems not to be an elegant solution. I wan

need help on format attribute of bean:write

2004-08-22 Thread Jitender K Chukkavenkata
Return Receipt Your need help on format attribute of bean:write document :

Re: setting a collection in my form bean using iterate or forEach

2004-08-22 Thread Rick Reumann
Lynn Stevens wrote: I think I see what you are saying, but in my case I am collecting information from the user that I have never seen before. Don't know what they will enter into the field. I mean, I could put default information in there like "Enter lot number here", but I have no idea what

Re: setting a collection in my form bean using iterate or forEach

2004-08-22 Thread Lynn Stevens
Hi Rick, Thanks for helping! I think I see what you are saying, but in my case I am collecting information from the user that I have never seen before. Don't know what they will enter into the field. I mean, I could put default information in there like "Enter lot number here", but I have no i

Re: setting a collection in my form bean using iterate or forEach

2004-08-22 Thread Rick Reumann
Lynn Stevens wrote: No I am not getting any errors. I would paste the code now, but its at work and I am at home...I will paste it in the moring. If I am inside an iterate tag, it does not iterate at all because the String[] is empty. But why is empty? In other words if these are text fields

Re: setting a collection in my form bean using iterate or forEach

2004-08-22 Thread Lynn Stevens
No I am not getting any errors. I would paste the code now, but its at work and I am at home...I will paste it in the moring. If I am inside an iterate tag, it does not iterate at all because the String[] is empty. If I change to a for:Each jstl tag and tell it to loop say 3 times, it prefil

Re: How to avoid duplicated submission by token?

2004-08-22 Thread Ping Cheung Leung
Thanks Rick. Let me find out what DispatchAction is and then come back. --- Rick Reumann <[EMAIL PROTECTED]> 內容: > HI, Ping, you have so many different things going on > in one action > execute method that it is very difficult to follow > everything. Also, you > are doing a lot of things that do

Re: How to avoid duplicated submission by token?

2004-08-22 Thread Rick Reumann
HI, Ping, you have so many different things going on in one action execute method that it is very difficult to follow everything. Also, you are doing a lot of things that do not need to be done (usually) from your action such as calling form.reset(), removing form bean, removing mappings, etc. You

Re: Tiles set up

2004-08-22 Thread Leandro Melo
You can also try this: http://www.onjava.com/pub/a/onjava/excerpt/progjakstruts_14/index4.html There are definitions examples there. Leandro. --- Shinobu Kawai <[EMAIL PROTECTED]> escreveu: > > Hi Andy, > > > I am (still!) trying to set up Tiles in my Struts > app. > > I am hoping to use

RE: dealing with check boxes

2004-08-22 Thread Jignesh Kapadia
Jim, Thanks for you reply. But I really don't want to clear all my check boxes. When I display my list for the first time I want to show the checkboxes checked or unchecked depending on the boolean value of one of the attribute of iterating object. Say my page displays f

How to avoid duplicated submission by token?

2004-08-22 Thread Ping Cheung Leung
My attention is to prevent duplicated submission. I have refered to the struts-example. It checks the valid of token by IsValidToken(). However when a form is displayed at the first time, it always is invalid. Moreover, according to the struts-example, it saveToken when it finds error. The behavi

Re: setting a collection in my form bean usin iterate or forEach

2004-08-22 Thread Rick Reumann
Lynn Stevens wrote: If I put a String[] or ArrayList in my DynaActionForm, this does not seem to work. Does anyone know if this is possible? Its driving me mad! Sure it'll work. Be more specific of how you are setting stuff up (paste the dyna/action form definition and the form code. Also, a

Re: Tiles set up

2004-08-22 Thread Shinobu Kawai
Hi Andy, > I am (still!) trying to set up Tiles in my Struts app. > I am hoping to use Tiles definitions, but can't find any usable (working) > simple examples to build from. Even the one at Cedric Dumoulin's site > doesn't use this (best practice?) feature. > I have tried a 'cut n shut' from

Re: setting a collection in my form bean usin iterate or forEach

2004-08-22 Thread Kishore Senji
> or ArrayList or some ordered collection. If I put a String[] or ArrayList > in my > DynaActionForm, this does not seem to work. I have tried to prepopulate Does it throw any exception? The important thing while iterating over a collection and setting the indexed properties, you have to get the

Re: setting a collection in my form bean usin iterate or forEach

2004-08-22 Thread Shinobu Kawai
Hi Lynn, > and populate a list. I need to dynamically lay out the textfields, so I > won't know in > advance how many I am placing on that page. This is why I need to put them > within an iterate of forEach tag... > > Does anyone know if this is possible? Its driving me mad! I have heard tha

setting a collection in my form bean usin iterate or forEach

2004-08-22 Thread Lynn Stevens
I was wondering if someone could help me out with this question: I know that I can use the logic:iterate tag to loop over an existing collection in my form bean. However, I want to do the opposite. I want to make n number of html:textfields and then when the user hits submit, I want to have the

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Michael, I thought you said you hadn't actually done the upload. That's what I'm talking about. So, even if you can get a file path to show up in a text input in response to hitting a browse image button, I still think it will not work, even in IE. Even though you are on a mis

Re: image button for file upload

2004-08-22 Thread Dean A. Hoover
Michael, I thought you said you hadn't actually done the upload. That's what I'm talking about. So, even if you can get a file path to show up in a text input in response to hitting a browse image button, I still think it will not work, even in IE. Even though you are on a mission to make what you'

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Michael, I'm still researching on the web and alot of what I am seeing is that it is not possible. There is mention that this is strongly controlled by the browser for security purposes, to prevent malicious websites from uploading files on the client box by just doing javascr

Re: image button for file upload

2004-08-22 Thread Dean A. Hoover
Michael, I'm still researching on the web and alot of what I am seeing is that it is not possible. There is mention that this is strongly controlled by the browser for security purposes, to prevent malicious websites from uploading files on the client box by just doing javascript hacks. Seems to ma

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Michael McGrady wrote: Hi, Dean, I am a pretty meat and potatoes kind of genius. I need to solve one thing at a time. So, right now I am going to stick with only the image deal with file uploads. I have the following which works okay with IE but not with Mozilla. W

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Michael McGrady wrote: Hi, Dean, I am a pretty meat and potatoes kind of genius. I need to solve one thing at a time. So, right now I am going to stick with only the image deal with file uploads. I have the following which works okay with IE but not with Mozilla. W

Re: image button for file upload

2004-08-22 Thread Dean A. Hoover
Michael McGrady wrote: Hi, Dean, I am a pretty meat and potatoes kind of genius. I need to solve one thing at a time. So, right now I am going to stick with only the image deal with file uploads. I have the following which works okay with IE but not with Mozilla. What does the jsp do? Ar

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Michael, Sure. Basically I want to do the same thing you are apparently questing for: the ability to replace standard browser buttons with images. I have an application that I want to retrofit to this, and I have used LookupDispatchAction and other approaches in it. I have

Re: image button for file upload

2004-08-22 Thread Dean A. Hoover
Michael, Sure. Basically I want to do the same thing you are apparently questing for: the ability to replace standard browser buttons with images. I have an application that I want to retrofit to this, and I have used LookupDispatchAction and other approaches in it. I have a wizard (workflow) typ

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Wow, you've been busy. Just getting back to look at what has been suggested. I did a little poking around on the internet and found: If you want to do the button thing with the forms, you first have to learn how to do it with the html and only then take it to struts. Stru

Re: MappingDispatchAction dilema

2004-08-22 Thread Kishore Senji
> Then each action would implement our 2 parameter show method, and return > a String which could be passed to the ActionMapping by the CommonAction > superclass. This would significantly simplify the code in our Action > classes, reducing repetition between each one, and ensuring that they > each

Tiles set up

2004-08-22 Thread andy wix
Hi, I am (still!) trying to set up Tiles in my Struts app. I am hoping to use Tiles definitions, but can't find any usable (working) simple examples to build from. Even the one at Cedric Dumoulin's site doesn't use this (best practice?) feature. I have tried a 'cut n shut' from the stuff bundled

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Erik Weber wrote: Awesome. Now, do you have any idea how I could change the font or the text of the button, without actually making it an image? Well that is an entirely different matter, Erik, and a much simpler one. But, it is not the problem I have. I am trying to put together for struts o

MappingDispatchAction dilema

2004-08-22 Thread Stephen Houston
Hi, We have a bit of dilemma on our project, and I want to get some feedback from other Struts developers on whether or not what we are thinking of doing goes against Struts best practices. We are using Struts 1.2 and all our Action inherit from a CommonAction which extends MappingDispatchAction,

Re: JSTL

2004-08-22 Thread Kishore Senji
In the Struts tags documentation, for most of the tags, the equivalent of Jstl is given. What bean tag are you having trouble with? Kishore Senji. On Sun, 22 Aug 2004 18:57:53 +1000, Mike Young <[EMAIL PROTECTED]> wrote: > Hi ALL, > > Are there any good resources on how to convert pages using ex

Re: Creating List Catgeories from a Single Collection

2004-08-22 Thread Kishore Senji
> I have a collection that contains the following data: > EmpId CourseIdDate_Taken Assessment > 12341 01/01/2000 PASS > 12342 01/02/2001 PASS > 12344 01/05/2002 PASS > 12341 01/04/2003 PASS >

Re: image button for file upload

2004-08-22 Thread Dean A. Hoover
Wow, you've been busy. Just getting back to look at what has been suggested. I did a little poking around on the internet and found: http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20398679.html It uses 2 forms to do this. Can't get it to (really) work. Can't get yours to work either. I ha

RE: Creating List Catgeories from a Single Collection

2004-08-22 Thread Ruben Cepeda
Mike, A question is this collection been generated from a database via a sql statement, because if it is you would be able to change the sql to "group by" the "EmpID" which would get you almost all the way to the output you want. All that would be left is to do a bit of scripting to only displa

Re: image button for file upload

2004-08-22 Thread Erik Weber
Awesome. Now, do you have any idea how I could change the font or the text of the button, without actually making it an image? Michael McGrady wrote: So far I have this, Erik, which works in IE but not in Mozilla. Anyone have any other ideas on this? I did this before but lost it in a compute

Re: image button for file upload

2004-08-22 Thread Michael McGrady
So far I have this, Erik, which works in IE but not in Mozilla. Anyone have any other ideas on this? I did this before but lost it in a computer crash. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: null with Action Error Messages !!

2004-08-22 Thread jacob skariah
Hi, I have included the errors.header and errors.footer in my properties file, but do i have to add these errors in my Actionform validate method manually as i add it for username and password. or would it be displayed automatically for all errors. And i am not useing {0} for error message for

Re: Error loading Applet in IE within Struts application (fixed)

2004-08-22 Thread Axel Seinsche
The problem seems to be fixed. The codebase was missing. Firefox and Mozilla didn't care about, but IE. Nevertheless the applet runs if it is executed on the same server but outside the Struts application. Axel - To unsubscribe,

Re: image button for file upload

2004-08-22 Thread Michael McGrady
No worries, Erik! Let's roll our own. We can work together on this. The key for a starter is using the attribute of style='display:none' in the tag, i.e. I am looking around for more. When we get a workable solution for IE, it probably won't work for Mozilla, etc. and we can go from there

Re: HTTP status 500 - No input attribute for mapping path /login

2004-08-22 Thread Erik Weber
Sounds to me like your action mapping element for the login action (in struts-config.xml) is missing the "input" attribute. Struts uses this to decide what page to return to if you have a form failure (caused by invalid input, for example). Erik Chris wrote: Howdy , I am using Struts 1.1 and TC5,

Re: HTTP status 500 - No input attribute for mapping path /login

2004-08-22 Thread Erik Weber
Sounds to me like your action mapping element for the login action (in struts-config.xml) is missing the "input" attribute. Struts uses this to decide what page to return to if you have a form failure (caused by invalid input, for example). Erik Chris wrote: Howdy , I am using Struts 1.1 and

RE: HTTP status 500 - No input attribute for mapping path /login

2004-08-22 Thread Robert Taylor
It seems that you have this action path set to validate user input. When validation fails, Struts looks in its action mapping for the input attribute value which tells it where to go when validation fails. Apparently you don't have an input attribute defined for your /login action mapping. robert

HTTP status 500 - No input attribute for mapping path /login

2004-08-22 Thread Chris
Howdy , I am using Struts 1.1 and TC5, my web app throw an exception: HTTP status 500 - No input attribute for mapping path /login (No more Exception stack printed) I couldn't find solution by googling. Would you please give me a hint? Regards. Chris

Re: image button for file upload

2004-08-22 Thread Erik Weber
Well I was mistaken. He did not know of a way to customize the button, only that you can customize the text field with CSS. He made the text field flush with the button and tuned the colors so that the text field and button appeared to be one custom element. But it's still the same old button.

JSTL

2004-08-22 Thread Mike Young
Hi ALL, Are there any good resources on how to convert pages using existing struts tags (logic / bean / html etc) to utilise JSTL tags? I am struggling to see how I incorporate conventional struts bean tags within JSTL logic tags. ---

Creating List Catgeories from a Single Collection

2004-08-22 Thread Mike Young
I have a collection that contains the following data: EmpId CourseIdDate_Taken Assessment 12341 01/01/2000 PASS 12342 01/02/2001 PASS 12344 01/05/2002 PASS 12341 01/04/2003 PASS 14321

Re: JAAS, JBoss and Struts (I've had JAAS about enough!)

2004-08-22 Thread Erik Weber
Leandro, your tenacity is inspiring. Keep working at it. The "final" solution for me (which is, of course, never final) is programming my own role-based security within the confines of my application, combined with an Apache web server that serves as a gateway to my application server, presiding

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Erik Weber wrote: I hope one of you guys will post an example when you figure out how to do this . . . I have a friend who has a site with custom file upload forms (using image buttons). Perhaps I will ask him about it . . . Erik Michael McGrady wrote: Ergo, research should begin on Any id

Re: image button for file upload

2004-08-22 Thread Erik Weber
I hope one of you guys will post an example when you figure out how to do this . . . I have a friend who has a site with custom file upload forms (using image buttons). Perhaps I will ask him about it . . . Erik Michael McGrady wrote: Ergo, research should begin on Any ideas? Dean Hoover

Re: Security - From tradition to struts

2004-08-22 Thread Erik Weber
Thank you Susan. I have some plans to take a stab at some documentation. Unfortunately right now I have relentless clients, approaching deadlines and bills to pay! (yeah yeah, who doesn't?) And as far as security goes, I'm not qualified at this point, in my opinion. But, I'll get there. Erik S

Re: Can I generate a token without Action class?

2004-08-22 Thread Erik Weber
The documentation on this confuses me, so I cannot tell you whether this pattern is "correct", but it does seem to work: public class EditARecordAction extends SomeBaseAction { public static String VIEW = "viewEditForm"; public static final String UPDATE = "processEditForm"; public ActionFo