RE: onclick attribute doesnt work in html:img tag?

2002-11-19 Thread Míguel Ángel Mulero Martínez
I use too the a href onClick=img /a This works too. The a href has the onClick event. Regards, Miguel -Mensaje original- De: Ronald Mathies [mailto:[EMAIL PROTECTED]] Enviado el: martes, 19 de noviembre de 2002 8:34 Para: Struts Users Mailing List Asunto: Re: onclick

RE: Showing the success message

2002-11-19 Thread Míguel Ángel Mulero Martínez
Put a message in the action (for example: request.setAttribute(message, Operation OK)) And in the HTML page put: bean:write name=message ignore=true / The ignore=true only prints the message if it exists. Regards, Miguel -Mensaje original- De: Alireza Fattahi [mailto:[EMAIL

RE: Showing the success message

2002-11-19 Thread Krishnakumar N
You can also use the ActionMessages.add(...) methods in conjunction with the html:messages tag to display success messages. Cheers, Krishna -Original Message- From: Míguel Ángel Mulero Martínez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 1:37 PM To: Struts Users Mailing

RE: Showing the success message

2002-11-19 Thread Andrew Hill
I believe that ActionMessages were created for just this purpose. -Original Message- From: Míguel Ángel Mulero Martínez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 16:07 To: Struts Users Mailing List Subject: RE: Showing the success message Put a message in the action

Message with key in template:put tag

2002-11-19 Thread Jean-Baptiste Onofré
Hello, i use template taglib in my JSPs. For exemple i have this template file : %@ taglib uri=/WEB-INF/struts-template.tld prefix=template % body heas title template:get name=title/ /title /head body And i would put in the template:put tag a entry of my ApplicationResource.properties like

Access temporary files

2002-11-19 Thread Bernhard Oberndorfer
Hello Is there a way to access or to get the name of an temporary file which was uploaded as FormFile(I use the html:file tag)? DiskFile, which implements FormFile, for example provides a method getFilePath() to get the temporary file path. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

Re: [TILES] Dynamically overriding Tiles Definitions

2002-11-19 Thread Cedric Dumoulin
Affan Qureshi wrote: Thanks. I got the attributes form the Tiles Context but only on the JSP that had a tiles:insert. Can I somehow make the Tiles Definition session scoped? Also in case of nested Tiles, will there be multiple Tile Contexts? Definitions declared in the configuration file

RE: [ANNOUNCEMENT] Easy Struts 0.6.1 Eclipse plugin

2002-11-19 Thread Emmanuel Boudrant
Hi, Can you report a bug at : http://sourceforge.net/tracker/?group_id=54542atid=474084* With this attachement : [ECLIPSE_DIR]\workspace\.metadata\.log Thanx for using Easy Struts -emmanuel --- Alex Almero [EMAIL PROTECTED] a écrit : wizards doens't work with eclipse. env: jdk 1.4.0_02

jsp name in action

2002-11-19 Thread Amit Badheka
How can I get the jsp name in the action from where the form is submitted? I can not use input attribute as it is the input type is not static, and the action class is called from three different jsps. pls help.

Re: Tiles referencing actions.

2002-11-19 Thread Cedric Dumoulin
A forward change the current request processing from one servlet to another, but stay on server side, and the request object is the same. A redirect send a response to the client (the browser), instructing it to send another request to the specified URL. The request object change because

Initialization of DynaValidatorForm

2002-11-19 Thread Bas Passon
Hi, Does anyone know how to retrieve a dyna form bean before the request to the corresponding action is made. I would like to set some initial values for the form. I noticed it can be done from the struts-config.xml, but that option is not flexible enough since the initial values depend on the

RE: jsp name in action

2002-11-19 Thread shirishchandra . sakhare
Hi Amit, I think the struts way will be to define 3 different mappings to call the action class from the 3 different jsps.And in each mapping define parameter=jsp1 ,parameter =jsp2 etc. In actiin class u can do, String reqSource = mapping.getParameter();So this helps u to decide the request

RE: Initialization of DynaValidatorForm

2002-11-19 Thread Alireza Fattahi
We had the same problem. We solved it in this way: Link to an action instead of jsp page, do your initialization, and forward to jsp. For example insertUserForm.do?dispatch=initial -Original Message- From: Bas Passon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 12:55 PM

Re: Initialization of DynaValidatorForm

2002-11-19 Thread Gemes Tibor
2002. november 19. 10:25 dátummal Bas Passon ezt írtad: Hi, Does anyone know how to retrieve a dyna form bean before the request to the corresponding action is made. I would like to set some initial values for the form. I noticed it can be done from the struts-config.xml, but that option is

RE: (Newbie Question) How to use java code as attributes in struts tags

2002-11-19 Thread shirishchandra . sakhare
U need to put the scriptlet code also in double quotes... logic:iterate name=causeCodeTable property=causeCodeTable offset=%=causeCodeTable.getCurrentIndex()% length=%=causeCodeTable.getMaxDisplayValue()%

AW: Problem with forward

2002-11-19 Thread sem . Gottofrey
Hi Daniel, have you try to set the following header: response.setHeader(Content-disposition, attachment; filename=\myFile.pdf\); HTH Robert -Ursprüngliche Nachricht- Von: Daniel Jaffa [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 18. November 2002 22:43 An: Struts Users

Using Google like search results

2002-11-19 Thread Alireza Fattahi
Hi, There is a search result page that returns more than 10 results per page. The result is returned in an arraylist or vector of objects. We want to navigate between results Like in google.com. Is there any special tag, or code which can help use? Of course this code or object must get the

RE: Using Google like search results

2002-11-19 Thread Divakar Satyanarayan
http://www.javanovic.com/articles/paging.html -Original Message- From: Alireza Fattahi [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 3:24 PM To: 'Struts Users Mailing List' Subject: Using Google like search results Hi, There is a search result page that

Using the nested iterate tag

2002-11-19 Thread Vidya P.S.
Title: Message Hi, In a JSP, I need to iterate through a collection of beans, say BeanA, which is stored in the session. BeanAcontains the attributes- ID (a String)and an arrayList.The array list contained in BeanA contains a collection of beans of type, say, BeanB. BeanB has an attribute,

Opening a popup from a html:link

2002-11-19 Thread ROSSEL Olivier
I have a Logout link (for the moment it is a html:link). Whern clicked, I would like to open a pop-up to ask the user to confirm the logout. What's the correct way to do that? May be, I should manage all that with standard script and a tags. But in that case, I will have to give a relative path

RE: Using the nested iterate tag

2002-11-19 Thread C.Bhaskaran
Title: Message Hi Vidya, You can use nested iterate tag to achive this functionality. Rgds C.Bhaskaran -Original Message-From: Vidya P.S. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 4:41 PMTo: [EMAIL PROTECTED]Subject: Using the nested iterate tag Hi,

RE: Opening a popup from a html:link

2002-11-19 Thread Míguel Ángel Mulero Martínez
Use JavaScript. The html:link has the onclick parameter. To create a relative path, use the html:rewrite. Regards, Miguel -Mensaje original- De: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Enviado el: martes, 19 de noviembre de 2002 12:12 Para: '[EMAIL PROTECTED]' Asunto: Opening a

Re: Opening a popup from a html:link

2002-11-19 Thread Gemes Tibor
2002. november 19. 12:12 dtummal ROSSEL Olivier ezt rtad: I have a Logout link (for the moment it is a html:link). Whern clicked, I would like to open a pop-up to ask the user to confirm the logout. What's the correct way to do that? May be, I should manage all that with standard script and

Re: struts-tiles.war doesn't work (Nov 18th nightly)

2002-11-19 Thread Cedric Dumoulin
Tiles is now in the main trunck of Struts. The tiles contrib folder is not maintained, and should normally not be present. Use tiles-documentation.war instead. Cedric Wendy Smoak wrote: The struts-tiles.war file from the contrib directory of the nightly build from the 18th does not

html:hidden and request parameter

2002-11-19 Thread Jean-Baptiste Onofré
Hello all, in a jsp, i use : input type=hidden name=command value=% out.print(\+request.getParameter(command)+\); % I would like to use the html:hidden.. tag from struts html taglib. Somebody has a sample ? Best regards -- Jean-Baptiste Onofré (Nanthrax) Membre fondateur de phpFR.org

Re: [Validator] Not validating any more since update? - Urgent

2002-11-19 Thread shakeel . mahate
Hi Axel, If you are using JBoss with Tomcat, simply commons-validator to the lib directory. And it should work. -Shakeel Axel wrote: Hi. After updating struts and all common libs (including common-validator) from nightly-build 2002-07-31 to nightly-build 2002-11-11 (and later on

Design pattern for search and search result pages

2002-11-19 Thread Alireza Fattahi
Hi, Imagine an application has 10-15 search and search result pages. We use dynform to get the information from search page form. So we do not write any code (form object) for this part. We search database and now want to return the results. Should we create an object like

Re: html:hidden and request parameter

2002-11-19 Thread Gemes Tibor
2002. november 19. 12:49 dátummal Jean-Baptiste Onofré ezt írtad: Hello all, in a jsp, i use : input type=hidden name=command value=% out.print(\+request.getParameter(command)+\); % I would like to use the html:hidden.. tag from struts html taglib. Somebody has a sample ? html:hidden

RE: html:hidden and request parameter

2002-11-19 Thread Míguel Ángel Mulero Martínez
For this tag I think that the value of the hidden field must be in the ActionForm associated with the Action in Struts-config.xml. Regards, Miguel -Mensaje original- De: Jean-Baptiste Onofré [mailto:[EMAIL PROTECTED]] Enviado el: martes, 19 de noviembre de 2002 12:49 Para: [EMAIL

Re: Initialization of DynaValidatorForm

2002-11-19 Thread Karim Saloojee
Taken from James Turner's mail: ApplicationConfig appConfig = (ApplicationConfig)request.getAttribute(Action.APPLICATION_KEY); FormBeanConfig formBeanConfig = appConfig.findFormBeanConfig(myDynaActionForm); String beanType = formBeanConfig.getType(); DynaActionForm bean;

Hidden and taglib

2002-11-19 Thread Jean-Baptiste Onofré
Re all, the html:hidden property=command/ don't work. I have in html generated : input tye=hidden name=command value= whereas i must have, for example : input type=hidden name=command value=3 With JSP pure code, it work : input type=hidden name=command value=%= request.getParameter(command) %

Struts in CMS ?

2002-11-19 Thread Fabrice FOUREL
Hello, Does anyboy know if opencms (or another cms tool) support Struts-based application ? I saw there's an integration of JSPs (and JSP tags). Thanks. Fabrice Fourel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: MySQL connection pooling problems!! (please help)

2002-11-19 Thread Dragan Ljubojevic
I have same problem and only what I found is this: Segment from MySql documentation A.2.2  MySQL server has gone away Error: By default, the mysql server closes the connection after 8 hours if nothing has happened. You

Re: Hidden and taglib

2002-11-19 Thread Andy
In the form bean, i really have : String command; do u have a getter for command? Regards, Andy - Original Message - From: Jean-Baptiste Onofré [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 19, 2002 9:30 PM Subject: Hidden and taglib Re all, the html:hidden

RE: Hidden and taglib

2002-11-19 Thread Míguel Ángel Mulero Martínez
The parameter command MUST BE in the ActionForm, not in the request. Regards, Miguel -Mensaje original- De: Jean-Baptiste Onofré [mailto:[EMAIL PROTECTED]] Enviado el: martes, 19 de noviembre de 2002 13:30 Para: [EMAIL PROTECTED] Asunto: Hidden and taglib Re all, the

Re: Struts in CMS ?

2002-11-19 Thread V. Cekvenich
If you look into the Struts resources for this and other questions like this before posting same question over and over again. In the Struts resources page http://jakarta.apache.org/struts/resources/examples.html you will find 1st thing is listed a CMS / Portal system with best practices

Re: When I use enctype=multipart/form-data ...

2002-11-19 Thread Kris Schneider
Reza, Assuming you hit the Action, update the form, and then forward to the JSP, shouldn't that be something like: logic:equal name=yourFormName property=dispatch value=update Your code updates a property on a form, not a request parameter. Quoting Reza Aliakbari [EMAIL PROTECTED]: Dears,

RE: Hidden and taglib

2002-11-19 Thread Taariq Levack
The parameter command MUST BE in the ActionForm, not in the request. Regards, Miguel urm, is that a best practice tip or hard and fast rule? cos if he chooses to have the Action set the requestAttribute(command) then it doesn't need to be set in the ActionForm, either way the action sets it. But

Loosing my parameter in the multipart request

2002-11-19 Thread Murray, Christopher
Hey there guys n gals, I seem to be loosing a parameter of my request when I submit a multi-part form. In the page I have a, input type=hidden name=userAction/ this is written to by a call to, a href=javascript:submitFormDispatch('UploadForm','performUpload')LINK/a which calls,

Re: Loosing my parameter in the multipart request

2002-11-19 Thread Kris Schneider
If the request content type isn't application/x-www-form-urlencoded, then the getParameter family of methods won't work. However, I'm guessing that Struts will handle this for you if you make userAction a property on an ActionForm. Your app logic may need to change in that case since Struts will

Query regarding initialization of jsp form

2002-11-19 Thread K.P.Bhat
Hi, I am facing the following issue with regard to jsp form initialization by struts When a primitive data type such as int or double is used in the form bean , the corresponding jsp shows the form elment initialized to 0 or 0.0 as the case may be. How do i prevent this from happening

Re: Hidden and taglib

2002-11-19 Thread matthew yee-king
html:hidden property=command value='%=request.getParameter(command) %'/ You don't need to use scriptlets in jsps when you are using action forms. in fact thats one of the reasons for using actionforms and it keeps your framework in an an MVC stylee. putting scriptlets in jsps is

Re: MySQL connection pooling problems!! (please help)

2002-11-19 Thread matthew yee-king
You could try setting the autoReconnect parameter on the mysql url: jdbc:mysql://mydomain:3306/mydatabase?autoReconnect=true cheers matthew On Tue, 19 Nov 2002 13:44:34 +0100 Dragan Ljubojevic [EMAIL PROTECTED] wrote: I have same problem and only what I found is this: Segment from MySql

RE: Query regarding initialization of jsp form

2002-11-19 Thread Andrew Hill
Thats why its better to always use Strings for the form properties and convert to the appropriate type for the business logic back in the action. -Original Message- From: K.P.Bhat [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 21:48 To: 'Struts Users Mailing List' Subject:

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Andrew Hill
The multipart request is indeed a different request object. (It uses an org.apache.struts.upload.MultipartRequestWrapper) Why? Because getParameter() doesnt normally work on a multipart request! (Sun give some excuses about not parsing it for you cos multipart submissions arent a 'standard' or

RE: Struts in CMS ?

2002-11-19 Thread Kevin A. Smith
The Roller weblogging package uses Struts. Here's a couple of links: Project home page: http://www.rollerweblogger.org/page/project Develper Diary: http://rollerweblogger.org/page/roller --Kevin -Original Message- From: Fabrice FOUREL [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November

RE: Query regarding initialization of jsp form

2002-11-19 Thread shirishchandra . sakhare
If you are sure that 0 or 0.0 is never a valid value, one way of avoiding this will be to use struts logic:notEqual tag. logic:notEqual name=FromBeanA property=age value=0 Age = html:text name=FromBeanA property=age / logic:notEqual -Original Message- From: kpbhat [mailto:[EMAIL

which one to buy? Struts books? Any ideas?

2002-11-19 Thread Dudley . Butt
Hi all, here is a list of struts books available, without being biased, can anyone tell me which books will be worth buying, and why? I'm not new to struts, although i haven't been using it for a year or so. I need to have a decent book to bring me up to date with the latest struts goodies.

Re: Using Google like search results

2002-11-19 Thread Jana Navaneethan
- Original Message - From: Divakar Satyanarayan [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, November 19, 2002 4:58 AM Subject: RE: Using Google like search results http://www.javanovic.com/articles/paging.html -Original Message- From:

RE: Newbie: Nested Tag Trouble

2002-11-19 Thread Sri Sankaran
Don't see anything wrong from what I've seen. So is it silently failing on displaying the firstName? Have you tried debugging it? How about displaying something from WebappUser -- does *that* work? Can you add a simple toString() to your Person class and try : nested:root name=userSession

Select boxes with multiple = true

2002-11-19 Thread Martyn Inglis
Does anyone have an ideas as to the method for setting values in a multiple select list? I have select lists, populating onto the page from EJBs. I have a seperate EJB Value bean which contains the specific values required for that instance. Can I set these values to be selected on

Re: Access temporary files

2002-11-19 Thread Dan Tran
Configure your controller, via Struts config, to have multipartClass set to org.apache.struts.upload.DiskMultipartRequestHandler Hope this helps -D - Original Message - From: Bernhard Oberndorfer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 19, 2002 12:57 AM Subject:

Re: Select boxes with multiple = true

2002-11-19 Thread David Graham
Yes and it's easy. See the html taglib reference in the users guide on the select tag and options tag. BTW, it's multiple=multiple :-). David From: Martyn Inglis [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]

struggling with indexed/repeating input fields

2002-11-19 Thread Kevin HaleBoyes
I've asked this question several times on this mailing list but I've never received an answer that would help. I've dug a bit deeper and understand more about the problem but I'm still really struggling with indexed/repeating input fields so I thought I'd ask again. I'm starting to wonder if it

RE: Struts in CMS ?

2002-11-19 Thread James Higginbotham
Blogging != CMS.. Google CMS and get a formal definition. I just did a requirements gathering project to find a true CMS solution, and I don't know how many people classified blogging and cheesy web site publishing as a CMS solution (well, at least 350 before I quite counting). Just a pet peave of

Re: Select boxes with multiple = true

2002-11-19 Thread Martyn Inglis
I can't see much reference to the use if multiple in these docs ( http://jakarta.apache.org/struts/struts-html.html#options ) I'm assuming they are what you meant. It allows me to create the drop down, but pre-selecting options still eludes me. If you could supply a URL it would be very much

[OT] What's a CMS?

2002-11-19 Thread Kevin A. Smith
I respectfully disagree on your Blogging != CMS assertion. At least for the more fully-featured blogging systems (Roller, Radio, and Blogger). I think of these as one-person/single-site CMS's. --Kevin -Original Message- From: James Higginbotham [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

Calling a JSP from a tile.

2002-11-19 Thread ROSSEL Olivier
A JSP usually have a html:html main tag. This tag is supposed (mainly) to provide a html tag in the output. But if you call this JSP from a tile, you get an html tag in the middle of your tile. Of course you do not want that. Can the tag html:html check if a html has already been opened, and

RE: Select boxes with multiple = true

2002-11-19 Thread Sri Sankaran
Please look at html-select.jsp that is in the struts-exercise-taglib application that ships with Struts. html:select property=multipleSelect size=10 multiple=true html:options name=multipleValues labelName=multipleValues/ /html:select multipleSelect is an array that holds the selected -- or

Re: struggling with indexed/repeating input fields

2002-11-19 Thread Leonardo Maciel
Kevin, I finally got logic:iterate ... html:text ... indexed=true/ ... /logic:iterate to work. The sample code came from http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12084.html Thank you Dave. I built Dave's code on top of struts-example. All necessary code is attached. On the

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Murray, Christopher
It would also appear that the request parameters are only revealed once the ActionForm has been populated. i.e. my reset method exploded but when I commented it out the validate worked fine. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 13:39

Re: Newbie: Nested Tag Trouble

2002-11-19 Thread Seth Milder
Sri Sankaran wrote: Don't see anything wrong from what I've seen. So is it silently failing on displaying the firstName? Have you tried debugging it? How about displaying something from WebappUser -- does *that* work? Can you add a simple toString() to your Person class and try : Thanks

Re: Select boxes with multiple = true

2002-11-19 Thread Martyn Inglis
I don't have any of that stuff, only the jar file. I'll get it now. Martyn Sri Sankaran wrote: Please look at html-select.jsp that is in the struts-exercise-taglib application that ships with Struts. html:select property=multipleSelect size=10 multiple=true html:options name=multipleValues

PlugIn - and PlugIn Properties

2002-11-19 Thread Bradley G Smith
Does someone have a good example of using a Struts PlugIn with PlugIn properties they would be willing to share. I tried to follow the code in the Tiles PlugIn but this seemed to be overly complex for what I need. Thanks, Brad Smith -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Andrew Hill
Did you have any luck with the (ugly) workaround I suggested? -Original Message- From: Murray, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 21:41 To: 'Struts Users Mailing List' Subject: RE: Loosing my parameter in the multipart request It would also appear

Re: PlugIn - and PlugIn Properties

2002-11-19 Thread Eddie Bush
Take a look at the validator's plugin. Basically what happens is that you use the set-property element to set the properties of your plugin. It's really straight-forward. Just use the same name in the set-property element as the name of your plugin property. I used the ValidatorPlugIn for

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Kris Schneider
Sure, but that's just the normal flow of form processing: reset - populate - validate Quoting Murray, Christopher [EMAIL PROTECTED]: It would also appear that the request parameters are only revealed once the ActionForm has been populated. i.e. my reset method exploded but when I

Re: struggling with indexed/repeating input fields

2002-11-19 Thread shakeel . mahate
Hi Kevin, I struggled for the last two days on the indexed property and now I have it working. Here is what I did: MyFormBean: Object[] items MyData getItem(int) void setItem(int, Object) Object[] getItems() MyData: String name String address String

RE: Calling a JSP from a tile.

2002-11-19 Thread Quentin.Cope
Rossel I am no tiles guru but I think you should take a step back and think of why it is that you want to have a jsp that is both called as a tile and as a standalone page. Once I started using tiles I created a single definition that does the html stuff. The rest of my jsp's are only every

Selective error message display

2002-11-19 Thread James Childers
All, I know this question has been asked before, but I couldn't find the answer in the archive. I would like to be able to selectively display an error, depending on what exactly it was. Here is the code from my validate method in my VacationFinderForm: if (retCal.before(depCal))

Re: PlugIn - and PlugIn Properties

2002-11-19 Thread Kevin . Bedell
The standard Struts example application uses a memory plugin that is not so complicated. It has an example specifying an XML file as a property. Bradley G Smith [EMAIL PROTECTED] on 11/19/2002 10:39:49 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:[EMAIL

RE: html:errors/

2002-11-19 Thread Karr, David
It's been a few weeks since I've reviewed this, but I don't believe there's an easy way to get what you want. There is a bug on Bugzilla, #13565, where we've been hashing out some thoughts on this. If this is really an issue for you, please write a comment on the bug report with details of

RE: struggling with indexed/repeating input fields

2002-11-19 Thread Dinesh Samson J
Greetings Kevin, For me the iterate tag is working. But I have a problem. My requirement is, I will show a list, from which I will be selecting a particular detail and click on edit in the same row. This will take some of the values in that row and pass it on to the next jsp/action. I am

Re: Return to same JSP

2002-11-19 Thread Max Kutny
MR 1. Look up an ActionMapping. MR 2. If the ActionMapping has an ActionForm specified, it instantiates MR(or MR retrieves from session scope) the ActionForm and populates it based on MR the request. MR 3. If the ActionMapping specifies validate, Struts calls the MR ActionForm's

RE: which one to buy? Struts books? Any ideas?

2002-11-19 Thread James Mitchell
You need to buy both. They complement each other. James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original

RE: which one to buy? Struts books? Any ideas?

2002-11-19 Thread Michael C. Clark
I've read the Goodwill book a couple of times. If you're not new to struts, it may not be of great value. It will get you up and running, is clearly and succinctly written and has good, though *basic* examples. -Mike Original Message From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Dynaform error

2002-11-19 Thread Jordan Thomas
Hi, I have set up my form using dynaform functionality. Everything seemed OK, until the point when I started adding my validation functionality. Anyway, it seems to be that when I add my validator:javascript formName=loginForm/ tag to the top of my page I get the following error: 14:36:08,436

Struts nightly - Beanutils exception

2002-11-19 Thread James Higginbotham
Hi, I am upgrading from a Jan 2002 nightly binary to the 11/13/02 nightly binary and I am seeing the following exception during a form bean population. I saw that a bug was in the commons-beanutils jar recently, so I upgraded that to the 11/19/02 jar and still no help. Please let me know what

RE: struggling with indexed/repeating input fields

2002-11-19 Thread shirishchandra . sakhare
can you please explain the problem preperly? If u are showing the list using html:text and pressing submitting button then there is no reason why the values will not be passed over.But as u are on the same form , all the rows will be submitted instead of just the one from where the button is

Re: Selective error message display

2002-11-19 Thread Kris Schneider
James, For 1.1, you might try something like: logic:messagesPresent property=returningMonthError tr td colspan=2 html:errors property=returningMonthError/ /td /tr /logic:messagesPresent Quoting James Childers [EMAIL PROTECTED]: All, I know this question has been asked

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Murray, Christopher
what if you wanted to retrieve a request parameter for a branch in your reset method ? -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 15:55 To: Struts Users Mailing List Subject: RE: Loosing my parameter in the multipart request Sure, but

iterate tag - can you set an increment?

2002-11-19 Thread Andy Kriger
Is there any way to set an iteration increment on the iterate tag? For example, iterate through the array returning every 2nd item. If not, can anyone tell me how I might do this without resorting to scriplets (or only using them minimally)? Here's the code I'm trying to use. The first TD is the

Re: struggling with indexed/repeating input fields

2002-11-19 Thread Leonardo Maciel
I GOT IT! I forgot to send the struts-config.xml and there were the difference VERY-IMPORTANT if I set the action scope=request I get: javax.servlet.ServletException: BeanUtils.populate ... Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 0 or Caused by:

Struts Tiles ( was: struts-tiles.war doesn't work (Nov 18th nightly) )

2002-11-19 Thread Wendy Smoak
Cedric wrote: Tiles is now in the main trunck of Struts. The tiles contrib folder is not maintained, and should normally not be present. Use tiles-documentation.war instead. Thank you! I'm just trying to get started with tiles, and I grabbed everything I could find with 'tiles' in the

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Andrew Hill
Im rather in agreement. It really should parse the request parameters before reset is called so they are available to the reset method. I suppose I should try and find time to log it in bugzilla. Christopher - you got time to log it as a bug? -Original Message- From: Murray, Christopher

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Kris Schneider
Sure, you can do anything with the request object you want. The caveat is that the getParameter methods will only work if the requirements of the following section of the 2.3 spec have been met: SRV.4.1.1 When Parameters Are Available The following are the conditions that must be met before post

Problem with getter method not being found

2002-11-19 Thread Jordan Thomas
Hi, I have a problem where my bean appears to be not finding the firstName field in my JSP. This is seems strange because it the firstName field is declared in my dynaform. I am using tiles and the workflow framework and version 1.1b of struts and I have tried the latest nightly build.

RE: iterate tag - can you set an increment?

2002-11-19 Thread Karr, David
I don't believe there is a clean way to do that with logic:iterate. You might consider writing an enhancement request in Bugzilla for this, if it's important to you. Also, assuming you don't need indexed tags, I believe you could use the JSTL c:forEach tag for this, as it has a step attribute.

RE: Re: struggling with indexed/repeating input fields

2002-11-19 Thread shirishchandra . sakhare
HI, I think u are suggesting that every form has to be in session scope which is dangerous and will unnecessarily clog the session object. If u have problems when calling setters on u r form because the list on form is smaller, i will suggest following approach. public class MyForm {

RE: iterate tag - can you set an increment?

2002-11-19 Thread Quentin.Cope
Andy How about logic:iterate id=idx name=myBean property=array scope=session indexId=index tr logic:iterate id=idrow name=myBean property=array scope=session offset=index length=2 tdbean:write name=idrow property=long_desc//td

Managing message keys

2002-11-19 Thread edgar
In a large project with a large number of app.properties keys does anyone have ideas about 'key management'. Thanks in advance. Edgar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Kris Schneider
Just to clarify, your specific situation violates #3. The content type of your request is multipart/form-data, right? Quoting Kris Schneider [EMAIL PROTECTED]: Sure, you can do anything with the request object you want. The caveat is that the getParameter methods will only work if the

RE: Selective error message display

2002-11-19 Thread James Childers
Kris, Unfortunately we are limited to using 1.0.2. Thanks for the suggestion, though. -= J -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 10:40 AM To: Struts Users Mailing List Subject: Re: Selective error message display

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Andrew Hill
Yep. Thats what he is using. Struts is kind enough to provide the request wrapper object that will provide the parameters , but it doesnt populate it until after reset() is called. It would be far more useful if it did it earlier (IMHO at the start of request processing!). -Original

RE: Selective error message display

2002-11-19 Thread Kris Schneider
James, I know the feeling ;-). Well, you could always check out the code for the 1.1 tag and develop your own for 1.0.2. I know that feeling too... Quoting James Childers [EMAIL PROTECTED]: Kris, Unfortunately we are limited to using 1.0.2. Thanks for the suggestion, though. -= J

ActionForm validation and select repopulation

2002-11-19 Thread Fernando Hernandez
Hi all, I really tried to look for this in the archives, but the speed was too slow and I have been there for an hour without a proper answer. Here is my situation: I have a form which contains a select input(among other inputs) in a .jsp. When my corresponding ActionForm validates what was

Stxx+Tiles

2002-11-19 Thread Fabrice FOUREL
Does anybody knows if there's a simple method to integrate Stxx and Tiles. I'd like to use XSL instead of JSP. The first problem is the common inheritance of ActionServlet by com.oroad.stxx.action.ActionServlet for Stxx and org.apache.struts.tiles.ActionComponentServlet for Tiles. I tried to

RE: iterate tag - can you set an increment?

2002-11-19 Thread Andy Kriger
Then idx won't increment correctly, no? idx=0, idrow=0,1 idx=1, idrow=1,2 (repetition of elemtent 1) ...etc... -Original Message- From: Quentin.Cope [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 11:54 To: Struts Users Mailing List Subject: RE: iterate tag - can you set an

FW: Dynaform error

2002-11-19 Thread Jordan Thomas
OK, found the problem. I've been looking at this for hours. :O( In my JSP I was using then old struts-validate tld for my validator:javascript formName=loginForm/ tag. It's now part of the struts-html tld. Cheers Jordan -Original Message- From: Jordan Thomas [mailto:[EMAIL PROTECTED]]

RE: iterate tag - can you set an increment?

2002-11-19 Thread Andy Kriger
Is it possible to access the idx variable in a scriplet during iteration? -Original Message- From: Quentin.Cope [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 11:54 To: Struts Users Mailing List Subject: RE: iterate tag - can you set an increment? Andy How about

  1   2   >