struts 1.1 rc with tomcat 4?

2003-06-03 Thread Kristine Weissbarth
hi, I'm relatively new at struts and I'm currently working with 1.0.2 version. But as I want to make use of the easier validation coming with the newer versions (1.1 rc) I would like to update. My problem is that every time when I installed the newer struts version my tomcat container (4.1.24)

RE: Branch Too Large Exception with Nested Iterator

2003-06-03 Thread Kommana, Sridhar
This is related to a hard limit in the JVM. Each tag generates a if within the service method of the Servlet generated from the JSP. If the then or else of this if statement becomes to large it can no longer be compiled. The size of these two branches is than related to the number and type of

Re: Branch Too Large Exception with Nested Iterator

2003-06-03 Thread Arron Bates
Hi, 1) I am using Nested Iterator to display the content as text boxes. In each row I have 10 fields, If the rows are increasing I am getting the Branch Too Large Exception. I have 3 types of grids in a page, If I kept 2 Grids it is working fine, If I kpet 3 Grids then it is giving error.

RE: wondering

2003-06-03 Thread Witbeck, Shane
I recommend using Dreamweaver MX or IntelliJ IDEA for JSP development. Both support code complete on taglibs. Shane -Original Message- From: Patrick Refondini [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 7:37 AM To: Struts Users Mailing List Subject: Re: wondering Have a look

Exception java.io.NotSerializableException

2003-06-03 Thread Abhinav (Cognizant)
Why am I getting such an exception Jun 2, 2003 6:39:51 PM IST Error HTTP [WebAppServletContext(4443267,Struts2,/Struts2)] Could not deserialize context attribute java.io.NotSerializableException: org.apache.struts.action.RequestProcessor This happens only some times. ** Message

Re: How to prevent access to pdf files

2003-06-03 Thread Xu Cheng
The click should create a HTTP request. I would suggest that you put logging statements in your filter to figure out what happened. Did you configure your filter properly in web.xml so that it will intercept the requests to those PDF files? On Monday 02 June 2003 16:10, Tapan Nanawati wrote:

Re: html:button - How do you detect which button was clicked.

2003-06-03 Thread sjones
Thanks i will try this. Brandon Goodin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Read the docs on DispatchAction/LookupDispatchAction. But, basically, give your buttons both the same name. Then whichever one is clicked will be the value. Then you can determine what needs to be

multiple selection from list box

2003-06-03 Thread Kaja.Mohideen
Hi, How to handle html:select multiple=true property=to in form beans, actions..In my problem I have to select multiple items from a list box and store in DB..Since the struts archive is down i couldn't find out answer for this question..Anybody can help me out..Thanks in advance,, ..Kaja

[OT] RE: Jobless in Montana

2003-06-03 Thread Mark Galbreath
I heard the State zoo was looking for developers about a month ago. -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 6:31 PM To: Struts Users Mailing List Subject: RE: DynaActionForm weekend? I'm not familiar with that term since I became

RequestProcessor.processPopulate happens more than once when one Struts action forwards to another

2003-06-03 Thread Ahearn, Denis
Hi, When one Struts action forwards to another Struts action, and the first action was invoked by a form post, is it correct behavior that the RequestProcessor.processPopulate method is called when the second action is processed? It seems to me that the form should only be populated from the

RE: [OT] RE: Jobless in Montana

2003-06-03 Thread Brandon Goodin
:-)) Montana has a zoo? ;-) No, Montana is a zoo. With no fences. And if there are developers around here, they aren't using a computer they are building shopping centers and banks for all the rich people that want to come here and NOT do business. Brandon Goodin -Original Message-

RE: RequestProcessor.processPopulate happens more than once when one Struts action forwards to another

2003-06-03 Thread Andrew Hill
Thats actually the expected behaviour and its because you are doing what is known as 'action chaining'. Its generally discouraged for reasons such as that you mention. This topic has been discussed recently actually, so if you do a search of the archive on action chaining you should be able to

[OT] RE: Struts IRC online

2003-06-03 Thread Mark Galbreath
Where the f*ck did this asshole come from? I hope you know Java better than you know English, pal. -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Saturday, May 31, 2003 5:54 PM To: Struts Users Mailing List Subject: RE: Struts IRC online Hey It's a flame...

[Nested] Order of Population of nested properties

2003-06-03 Thread Andrew Hill
(Forwarding to list as it looks like Arron's reply didnt make it there) -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED] Sent: Monday, 2 June 2003 21:44 To: [EMAIL PROTECTED] Subject: RE: [Nested] Order of Population of nested properties As Andrew mentioned, try to get all

RE: [OT] RE: Struts IRC online

2003-06-03 Thread Andrew Hill
english I say! steady on old boy - no need to be a pratt about it what!? /english -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Monday, 2 June 2003 21:51 To: 'Struts Users Mailing List' Subject: [OT] RE: Struts IRC online Where the f*ck did this asshole come

Struts Validation Question

2003-06-03 Thread Ranj Nadarajah
I've been trying to make validator work with our application. However, I've not been very successful. Here is what I did. Please let me know if I missed anything. I've created a form with firstName and LastName fields. The validator should see if that the form is not empty. Howver, when I

RE: [OT] RE: Struts IRC online

2003-06-03 Thread Brandon Goodin
No! No! Don't stir the ugly pot. You don't want to see what's on the bottom!! =8-O Brandon Goodin -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 8:00 AM To: Struts Users Mailing List Subject: RE: [OT] RE: Struts IRC online english I say!

RE: DateUtilities for ActionForms?

2003-06-03 Thread Mark Galbreath
java.sql.Date is a subclass of java.util.Date (as is java.sql.TimeStamp) and as far as I can see, is the only reason for the latter's existence. As David Flannigan points out in Java In A Nutshell, 4th Ed (O'Reilly 2002), p. 654: Since Java 1.1 many of the methods in the Date class have been

RE: A few questions about html:select and html:option tags

2003-06-03 Thread Kandi Potter
Is this method of achieving #2 (selection from one dropdown affected contents of a second dropdown) completely frowned upon? We were asked to avoid javascript. html:select name=incidentForm property=region onchange=submit() in action class: only doPost() when save button pressed else

Re: [Nested] Order of Population of nested properties

2003-06-03 Thread Affan Qureshi
Thanks for your reply. Well doing stuff in action is the cleaner approach unless u can use DOM (which is at least quicker). But I solved this by moving the property one level up in the nested hierarchy. Although it doesn't make sense there but it always gets populated before the nested beans. Also

RE: Struts Validation Question

2003-06-03 Thread Bailey, Shane C.
What does your action mapping look like in the struts-config? Also, I believe, by the time you are in the action validation will already be performed (once you have it working properly). So you don't have a call to validate() or anything to do with validation in the action. -Original

Re: Struts Validation Question

2003-06-03 Thread Shashank Dixit
Test msg .. pls ignore Shashank S. Dixit Senior Software Engineer Datamatics Ltd. Contact: 28291253 ext 133 Mobile: 9820930075 - Original Message - From: Bailey, Shane C. [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, June 02, 2003 7:32 PM Subject:

RE: DateUtilities for ActionForms?

2003-06-03 Thread Andrew Hill
snip is the only reason for the latter's existence /snip Which is the latter? java.util.Date or java.sql.TimeStamp? Ive never figured out the reason for having a seperate sql version. Dont see why they couldnt just use java.util.Date... TimeStamp on the otherhand provides support (in a rather

Test

2003-06-03 Thread Shashank Dixit
Test Msg... Pls ignore Shashank S. Dixit Senior Software Engineer Datamatics Ltd. Contact: 28291253 ext 133 Mobile: 9820930075

RE: [OT] RE: Struts IRC online

2003-06-03 Thread Andrew Hill
I would imagine that after all that stirring and scratching the bottom of the pot (barrel?) is heavily MARKed... ;- -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, 2 June 2003 22:09 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [OT] RE:

VIEW best pratice

2003-06-03 Thread José Moreira
Hello what's the best practice of transporting data from the MODEL to the VIEW (in my case JSP) ? In my case, i to retrieve a list of beans (Task) in a java.util.Vector which i want to format and display. For that i have an allTasks bean whose vector property (temporary name)

RE: Test

2003-06-03 Thread Paananen, Tero
Test Msg... Pls ignore Test failed. Try again. -TPP - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by

RE: Weblogic 6.1 Compatibility Problems

2003-06-03 Thread Mark Galbreath
Yes, SP3 for WebLogic 6.1, not Windoze. -Original Message- From: Yves Sy [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 9:18 PM To: Struts Users Mailing List Subject: RE: Weblogic 6.1 Compatibility Problems i'm using XP. and anyway, its more tied with the weblogic implementation

RE: VIEW best pratice

2003-06-03 Thread Brandon Goodin
... in a java.util.Vector for starters. why are you using Vector? use an ArrayList. which i want to format and display. For that i have an allTasks bean whose vector property (temporary name) contains an array of populated beans, that I'm trying to logic:iterate in the JSP, with no success... I

RE: DateUtilities for ActionForms?

2003-06-03 Thread Mark Galbreath
I gnu you would get me on that! -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 10:19 AM snip is the only reason for the latter's existence /snip Which is the latter? java.util.Date or java.sql.TimeStamp? Ive never figured out the reason for

RE: VIEW best pratice

2003-06-03 Thread Brandon Goodin
Also, this notation should work. I think. logic:iterate id=myObject name=myObject.myArray bean:write name=myObject property=myProperty/ /logic:iterate Brandon Goodin -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 8:32 AM To: Struts Users

RE: Weblogic 6.1 Compatibility Problems

2003-06-03 Thread Yves Sy
Service pack 4 for Weblogic is already installed actually... We've already resorted to using a custom tag to convert primitive data type outputs to String. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 10:27 PM To: 'Struts Users Mailing

switch between selects

2003-06-03 Thread Ionel Gardais
Hi, I'd like to allow a user to select items using a kind of switch lists. That is, two lists are displayed, one with all items and one empty. To add an item, the user should click on a add button that adds the selected item to the previoulsy empty list and removes it from the originated list.

Web Page acess to struts-user archive?

2003-06-03 Thread José Fortunato H. Tomás
Hi! Is there any Web Page to query and access to the history or archive for this mailling list? Tnx! -- José Tomás LINK Consulting SA - http://www.link.pt UPI - Unidade de Portais e Intranets Av. Duque D'Ávila 23 5º Dto. - 1000-138 Lisboa Telf: (+351) 213 100 095 Telm: (+351) 964 324 814

RE: switch between selects

2003-06-03 Thread Kruse, Matt
I'd like to allow a user to select items using a kind of switch lists. Do you know how to perform this using Struts ? Or maybe another method ? Unless you want to go back to the server with each click of 'add' and 'delete' etc (not recommended) you'll need to use JavaScript. I have a library

how to print ActionMessages that were saved in an Action?

2003-06-03 Thread António Santos
Hi all, I'm new here and this is my first post. I'm trying to insert an ActionMessage in the request inside an Action class. I'm using the following code: ActionMessages messages = new ActionMessages(); ActionMessage newmessage = new ActionMessage(messages.general, XXX);

Re: Web Page acess to struts-user archive?

2003-06-03 Thread Leander Jedamus
Hi! Try http://marc.theaimsgroup.com/?l=apache-httpd-usersr=1w=2 Am Montag, 2. Juni 2003 16:47 schrieb José Fortunato H. Tomás: Hi! Is there any Web Page to query and access to the history or archive for this mailling list? Tnx! -- Leander Jedamus Presse- und Öffentlichkeitsarbeit FH

RE: Struts 1.1

2003-06-03 Thread jay
OK, let's look at it another way. If Struts 1.1 is ready for prime time, why don't the authors trust it enough to release it? If the authors don't trust it enough to give it their stamp of approval (bugs or no bugs), why should our company? I know I'm not going to convince you of their

RE: Web Page acess to struts-user archive?

2003-06-03 Thread Paananen, Tero
Is there any Web Page to query and access to the history or archive for this mailling list? http://www.google.com/search?q=struts-user+%22mailing+list+archive%22 -TPP - This email may contain confidential and

RE: Web Page acess to struts-user archive?

2003-06-03 Thread Andrew Hill
Yep. http://nagoya.apache.org/eyebrowse/SummarizeList?listId=42 And theres also the aims one that someone posted already, though I seem to be having trouble getting to it right now. -Original Message- From: José Fortunato H. Tomás [mailto:[EMAIL PROTECTED] Sent: Monday, 2 June 2003 22:47

RE: how to print ActionMessages that were saved in an Action?

2003-06-03 Thread Cruz, Edward J.
Try, logic:messagesPresent message=true html:messages id=message message=true bean:write name=message / /html:messages /logic:messagesPresent The message=true attribute tells the message tags to check for ActionMessages as opposed to actionErrors. Jamie Cruz Software Engineering

RE: [OT] slackers

2003-06-03 Thread Chappell, Simon P
Apply at Lands' End, dude! :-) Send me your resume and I'll pass it to HR. Simon -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 9:55 PM To: Struts Users Mailing List Subject: RE: [OT] slackers I guess Montana and Tokyo have a lot in

RE: Struts 1.1

2003-06-03 Thread Andrew Hill
snip I know I'm not going to convince you of their decision, but at least our company lets us use open source software in development. Lots of companies don't even have that freedom. /snip Pity more companies arent like that. I rather like the idea of potential competitors falling by the wayside

Dynamic value in a html:text Tag

2003-06-03 Thread Marco Miedl
Hi, I want to initialize the fields of a Struts Form with the html:text-Tag. In my request there is a bean with the getter and setter I need. Now I tried this: html:text value=bean:write name=myLink property=URL/ property=URL size=25 maxlength=256/html:text and I got the following Error:

sendind data to the View (using XML)

2003-06-03 Thread António Santos
Hi, Can some of you please tell me if sending data to the View in an XML formatted string as an attribute in the HTTP Request is a good practice? This will force the JSP to do XML parsing, but I think this is a fairly good idea in order to send lots of data (example: several rows of a DB) to the

RE: [OT] slackers

2003-06-03 Thread Chen, Gin
Okay I understood about 2 words from the last 3 posts. Although 'bangin coconuts' sounds like it should have been filtered by my company's proxy. -Tim -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 1:54 AM To: Struts Users Mailing List Subject:

How we solved our tomcat/oracle connectivity issues

2003-06-03 Thread Raible, Matt
A while back, I e-mailed this list regarding Tomcat - Oracle connectivity issues across a firewall. Basically, the firewall would kill connection pool-based connections after 90 minutes. We finally figured out a solution (rather than workarounds) - and the best news is - it's from the Oracle

RE: Struts can not accept a date field if it is blank

2003-06-03 Thread Chen, Gin
Thats the way that I do it if my form is also my vo. I have: String getFormattedDate() { //code to format the java.util.Date here return formattedDate; } void setFormattedDate(String formattedDate) { //code to set the java.util.Date here } Hope that helps, -Tim

RE: [OT] slackers

2003-06-03 Thread Andrew Hill
Yeh, I really should get around to submitting a patch in bugzilla for the docs to point out to people that a vital prerequisite for participation in the struts list is to grok monty python... ;- -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Monday, 2 June 2003 23:26

Newbie.... Best Practices for ActionForms

2003-06-03 Thread Aaron Longwell
I am beginning my first Struts project with this setup: mySQL Database Tomcat 4 OJB (ObjectRelationalBridge) My questions: 1) What is the best practice for the properties in an ActionForm bean? Because HTTP sends everything from forms as strings, do I make all properties Strings, then convert

Re: Dynamic value in a html:text Tag

2003-06-03 Thread Dirk Markert
Hello Marco, Monday, June 2, 2003, 5:24:02 PM, you wrote: MM Hi, MM I want to initialize the fields of a Struts Form with the html:text-Tag. Why don't you initialize your fields inside your action or inside the reset method of your form? MM In my request there is a bean with the getter and

RE: Dynamic value in a html:text Tag

2003-06-03 Thread Wendy Smoak
I want to initialize the fields of a Struts Form with the html:text-Tag. In my request there is a bean with the getter and setter I need. Now I tried this: html:text value=bean:write name=myLink property=URL/ property=URL size=25 maxlength=256/html:text You cannot nest tags like that.

Re: [OT] slackers

2003-06-03 Thread Jeff Kyser
Yeah, but you better send 'em to Stranger in a Strange Land first so they will grok 'grok' :) -jeff On Monday, June 2, 2003, at 10:34 AM, Andrew Hill wrote: Yeh, I really should get around to submitting a patch in bugzilla for the docs to point out to people that a vital prerequisite for

RE: Newbie.... Best Practices for ActionForms

2003-06-03 Thread Chen, Gin
1) Having it that way is definetly the easiest/safest route to go. Check out BeanUtils (jakarta commons) for BeanUtils and PropertyUtils. They will help do the conversion to the types you need for you. 2) Same as above. There are alot of other date practices that work. Check the archives to see

RE: Newbie.... Best Practices for ActionForms

2003-06-03 Thread Andrew Hill
1.) Yes (I even do this for true/false checkboxes!) 2.) See #1. For my dates Im using several fields (d,m,y etc...) and some javascript to extract/concatenate into a hidden field in the format -MM-dd HH:mm:ss , but its pretty ugly and I dont like it much (luckily only have one place I need to

RE: Dynamic value in a html:text Tag

2003-06-03 Thread Chen, Gin
Use html-el html-el:text value=${myLink.URL} property=URL ... -Tim -Original Message- From: Marco Miedl [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 11:24 AM To: Struts Users Mailing List Subject: Dynamic value in a html:text Tag Hi, I want to initialize the fields of a Struts

Re: Web Page acess to struts-user archive?

2003-06-03 Thread Phil Steitz
Leander Jedamus wrote: Hi! Try http://marc.theaimsgroup.com/?l=apache-httpd-usersr=1w=2 I think you meant http://marc.theaimsgroup.com/?l=struts-userr=1w=2 This archive seems to get updated very quickly. Am Montag, 2. Juni 2003 16:47 schrieb José Fortunato H. Tomás: Hi! Is there any Web Page

RE: [OT] slackers

2003-06-03 Thread Andrew Hill
Or for those in a hurry: http://whatis.techtarget.com/definition/0,,sid9_gci212216,00.html Not sure If actually read SIASL you know! I probably might have a long time ago , but if so Ive forgotten already. Time for a visit to the library methinks! (Well not right now, it being 11:30pm and all...)

RE: Newbie.... Best Practices for ActionForms

2003-06-03 Thread James Childers
1) What is the best practice for the properties in an ActionForm bean? Because HTTP sends everything from forms as strings, do I make all properties Strings, then convert them in the Action (after validating of course)? Yes. The documentation suggests that all form properties be

Re: Newbie.... Best Practices for ActionForms

2003-06-03 Thread Aaron Longwell
Thanks, I am planning to use the struts validator if I'm hearing you right... this is the process? In ActionForm: String StartDate; String End Date; In Struts Validator: validate the strings against a RegEx datetime mask In Action: 1) Convert my Event ValueObject (VO)'s date values to

RE: [OT] slackers

2003-06-03 Thread Chen, Gin
So now we're speaking Martian? *sigh* -Tim -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 11:48 AM To: Struts Users Mailing List Subject: RE: [OT] slackers Or for those in a hurry:

Tiles - putlist , add and beanName

2003-06-03 Thread henrik . bentel
Hi according to the tld and documentation the following should be possible: definition name=someInfo extends=test.somePage put name=InfoHeader value=Some Info / putList name=InfoMessages add beanName=myMessageBean beanScope=request/ /putList /definition The beanName attribute

Actions, forwards and little old anchor

2003-06-03 Thread Jonathan Holloway
Hi, I'm trying to forward to an anchor within a page frmo the struts-config.xml file. Now, I understand I can do this as follows: forward name=finishadd path=main.jsp#the_marker redirect=true/ The anchor is definately defined in the page. The problem is that I'm using

Re: [OT] slackers

2003-06-03 Thread Erik Price
Matthew Van Horn wrote: fjords is not a horse breed. Fjords are glacier-thingies in Norway. Actually they're more like rivers with cliffs on either side. Even dead parrots know that. At least dead Norwegian parrots. plumage = feathers Or were you joking? not sure... my bad day is continuing...

RE: Newbie.... Best Practices for ActionForms

2003-06-03 Thread Andrew Hill
Here ya go mate. Dont think theres anything struts specific, just a case of applying the appropriate java date classes, but its a pita to try and grok the little blighters so Ive given you some example code pasted from one of my classes you can eyeball instead. Chop it about a bit so teacher

RE: [OT] slackers

2003-06-03 Thread Andrew Hill
Tis but a matter of time before the now inevitable posting in Klingon... rofl -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Monday, 2 June 2003 23:58 To: 'Struts Users Mailing List' Subject: RE: [OT] slackers So now we're speaking Martian? *sigh* -Tim -Original

Re: How to prevent access to pdf files

2003-06-03 Thread Erik Price
Tapan Nanawati wrote: Hi all, I am on a page. There are a list of pdf files on the page. If a user clicks on a pdf file, I want him to be redirected to a login page if he is not logged in. However this doesnt seem to be happening even with filters. Does the click on a pdf file not recognized as

Re: Web Page acess to struts-user archive?

2003-06-03 Thread Chris Halverson
José Fortunato H. Tomás [EMAIL PROTECTED] writes: Is there any Web Page to query and access to the history or archive for this mailling list? www.gmane.org, search under group: gmane.comp.jakarta.struts.user cdh -- Chris D. Halverson http://www.halverson.org/

RE: [OT] slackers

2003-06-03 Thread Andrew Hill
snip fjords is not a horse breed. Fjords are glacier-thingies in Norway. Actually they're more like rivers with cliffs on either side. snip More like like an ex-glacier, a glacier that has shuffled off its mortal coil, run down the curtain and joined the choir invisible... snip I thought he was

Re: Newbie.... Best Practices for ActionForms

2003-06-03 Thread Aaron Longwell
Thanks for the sample code I'll just strip out the Locale business (my app is in an Intranet... only 4 users). Andrew Hill wrote: Here ya go mate. Dont think theres anything struts specific, just a case of applying the appropriate java date classes, but its a pita to try and grok the

RE: Newbie.... Best Practices for ActionForms

2003-06-03 Thread Andrew Hill
You could probably lose the timezone stuff too then - just concentrate on the DateFormat -Original Message- From: Aaron Longwell [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 June 2003 00:21 To: Struts Users Mailing List Subject: Re: Newbie Best Practices for ActionForms Thanks for the

tag newbie - easy question

2003-06-03 Thread Mike Whittaker
What goes in name= to access a bean in the collection as specified below collection is an ArrayList of beans, each bean has a getMyProperty() method logic:iterate id=myList collection=%= request.getAttribute(myList) % bean:write name= property=myProperty/ /logic:iterate Thankyou --

RE: tag newbie - easy question

2003-06-03 Thread Mike Jasnowski
myList -Original Message- From: Mike Whittaker [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 12:46 PM To: Struts List Subject: tag newbie - easy question What goes in name= to access a bean in the collection as specified below collection is an ArrayList of beans, each bean has

RE: tag newbie - easy question

2003-06-03 Thread Bailey, Shane C.
Correct me if I am wrong but I believe you can do this: logic:iterate id=myListRef name=myList scope=request bean:write name=myListRef property=[dataMemberNameOfObjInList]/ /logic:iterate where [dataMemberNameOfObjInList] is a fill in the blank with what it says and not a real piece

Re: Struts 1.1

2003-06-03 Thread Ted Husted
[EMAIL PROTECTED] wrote: So, my question was, why do they think the code isn't good enough for a release? Now it seems that Struts 1.1 is ready, some other component isn't ready. If that's the case, can that component be removed, then added in a 1.2 release? If it's another jar, it's

RE: tag newbie - easy question

2003-06-03 Thread Mike Whittaker
As I thought but: 'No getter method for property myProperty of bean myList' The ArrayList is a raw ArrayList, It isn't a wrapper. myList What goes in name= to access a bean in the collection as specified below collection is an ArrayList of beans, each bean has a getMyProperty() method

Re: Struts 1.1

2003-06-03 Thread David Graham
Meanwhile, most of the Struts committers are using the Release Candidate in production. We do trust it in our own companies. I am using Struts 1.1 RC1 in production with no problems. The 1.1 release problems are well known and this discussion has been rehashed over and over again. We can only

Re: tag newbie - easy question

2003-06-03 Thread Jeff Kyser
make it easy on yourself and use the nested tags: nested:iterate property=myList nested:write property=myProperty/ /nested:iterate -jeff On Monday, June 2, 2003, at 11:46 AM, Mike Whittaker wrote: What goes in name= to access a bean in the collection as specified below collection is

RE: Struts 1.1

2003-06-03 Thread Andrew Hill
Using 1.1b1 in production no worries mate. She'll be right eh? Only thing I had to patch was to copy in some code from the rc3 requestprocessor to deal with some problems forwarding multipart requests, and drop in a newer common-logging.jar ... Piece of cake! Since everything (that we use) is

Trouble decting which button is pressed | html:buttonhtml:submit

2003-06-03 Thread sjones
detecting which button is clicked. seems like the jsp page does not send anything to the form-bean for a html:button or an html:submit LogonOK.jsp - %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %

RE: [OT] slackers

2003-06-03 Thread Chen, Gin
I have it worse. I am staring at our DBAs. -Tim -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 12:19 PM To: Struts Users Mailing List Subject: RE: [OT] slackers snip fjords is not a horse breed. Fjords are glacier-thingies in Norway. Actually

first time action

2003-06-03 Thread Alawadhi, Mona
Hello Everyone, I have some methods in my FormBean that I would want to call only the first time I go through the Action class (load the page). Any ideas? Mona * The information in this email is confidential and may

RE: Trouble decting which button is pressed | html:buttonhtml:submit

2003-06-03 Thread Brandon Goodin
Are you getting any errors or what is your logging output? Brandon Goodin -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of sjones Sent: Monday, June 02, 2003 11:11 AM To: [EMAIL PROTECTED] Subject: Trouble decting which button is pressed | html:buttonhtml:submit

RE: [OT] slackers

2003-06-03 Thread Brandon Goodin
Well, at least I have a window looking out upon a lush green forest in Montana. Brandon Goodin -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 11:16 AM To: 'Struts Users Mailing List' Subject: RE: [OT] slackers I have it worse. I am staring at

RE: first time action

2003-06-03 Thread Brandon Goodin
It would be good to provide a more clear use case. Usually you don't have any methods in your ActionForm than the usual getter/setters, validate and reset. So, I'm not sure what you are asking. Please, be more specific about what you are trying to accomplish. Brandon Goodin -Original

Re: Tiles - putlist , add and beanName

2003-06-03 Thread henrik . bentel
I discovered a problem with this definition. On startup if I have validation turned on, I get the following message in my log file from the configuration in previous message:: digester.Digester (Digester.java, 1434) Parse Error at line 45 column -1: Attribute beanName is not declared for

RE: first time action

2003-06-03 Thread Alawadhi, Mona
Hello Brandon, I call SetPageDefaults the first time my page loads. In my JSP, there are links for the Action : href=ActionClass.do?parameter=A so, the action gets called again and again. Also, I have different radio buttons along the page to be selected (the defaults are set for those buttons

RE: first time action

2003-06-03 Thread Brandon Goodin
I am a little confused. I am not sure where you are getting your default values from. Are they set as a result of client preferences or are they standard for everyone. If they are standard for all, it might be best to define the default values for your ActionForm within the constructor of the

RE: tag newbie - easy question

2003-06-03 Thread Mike Jasnowski
Oop, sorry, I should have read your post more carefully, missed the ArrayList part. -Original Message- From: Mike Whittaker [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 12:56 PM To: Struts Users Mailing List Subject: RE: tag newbie - easy question As I thought but: 'No getter

Re: tag newbie - easy question

2003-06-03 Thread Mark Lowe
I've done this as a scriptlet that can be pasted into a referring action after... % java.util.ArrayList myList = new java.util.ArrayList(); myList.add(I); myList.add(Love); myList.add(Sparrows); pageContext.setAttribute(myList,myList); % logic:iterate id=foo name=myList bean:write

RE: first time action

2003-06-03 Thread Alawadhi, Mona
Brandon, The values are standard for all. I've tried including the call for setPageDefaults() in the constructor of the ActionForm class, but it didn't work. My guess is that the form is not created/passed yet since the 'execute' method comes after the constructor. I tried to create a FormBean

RE: first time action

2003-06-03 Thread Mike Jasnowski
You can submit a form via javascript using code like: document.formName.submit(); Where formName is the value of the Name attribute of your form tag. -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 2:41 PM To: 'Struts Users Mailing List'

Struts vs. WebWork

2003-06-03 Thread Eric
Does anyone know the different between Struts and WebWork? Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Extending ActionServlet

2003-06-03 Thread Bailey, Shane C.
Can anyone point me to a code example which extends ActionServlet? I tried the most simplest way I could think of but it didn't work: package my.pack; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import

RE: first time action

2003-06-03 Thread Brandon Goodin
Something sounds fairly wrong with your design. What you are doing is a common thing. You shouldn't have to do javascrtipt to accomplish it. Could you please post your code. It seems that you are confusing the function of the various classes. For example, FormBean and ActionForm are two terms for

RE: Struts vs. WebWork

2003-06-03 Thread Brandon Goodin
This will tell you. http://www.waferproject.org Brandon Goodin -Original Message- From: Eric [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 12:49 PM To: [EMAIL PROTECTED] Subject: Struts vs. WebWork Does anyone know the different between Struts and WebWork? Eric

Question DynaValidatorForm

2003-06-03 Thread mohan
Hi All, I do not understand what a DynaValidatorForm/Action does can anyone help with some notes on what it is exactly and how it works or if u can point some resources on the web, it would really be helpful. I am trying to do a generic Registration form and i know DynaValidator is tha way but i

Re: Trouble decting which button is pressed | html:buttonhtml:submit

2003-06-03 Thread sjones
Nevermind, i have it working now. but thanks for the quick response. Brandon Goodin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Are you getting any errors or what is your logging output? Brandon Goodin -Original Message- From: news [mailto:[EMAIL PROTECTED]

RE: first time action

2003-06-03 Thread Brandon Goodin
FYI: A form instance is always created by the ActionServlet/RequestProcessor before the execute method is called (assuming your struts-config has one mapped). Hence, the reason why a Form is part of the execute signature in the Action class and why you are able to cast the Form. Brandon Goodin

RE: first time action

2003-06-03 Thread Tim Torbeyns
Hi you're probably missing something the default behaviour of an actionform is that the constructor is called only once (at the creation of the form) after it is created every form is stored in the session under the name you gave it in the form-bean tag of the struts-config file so when you have

  1   2   3   >