RE: Iterate certain number of times?

2001-05-01 Thread dhay
Does anyone know if any of the other taglibs provides a for loop? Dave [EMAIL PROTECTED] on 04/30/2001 01:27:07 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: RE: Iterate certain number of times? Hey that's pretty cool.

RE: Shopping Cart Project

2001-05-02 Thread dhay
Me too Fei Xie [EMAIL PROTECTED] on 05/02/2001 10:41:47 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: RE: Shopping Cart Project Joe, I still can't access to the website http://mycart.cjb.net/. Am I the only one who is

Submitting requests for Struts additions

2001-05-02 Thread dhay
Is there a specific way to submit requests for improvements to Struts? Or is list monitored by those responsible?! Dave

Changes in Tomcat 3.3?

2001-05-03 Thread dhay
Does anyone out there know whether I have to change somekind of document base in Tomcat 3.3? I have moved to it from 3.2 and none of my images are showing up, including those with struts html:image tag. Any help appreciated! Dave

Unchecking radio buttons?

2001-05-08 Thread dhay
Hi. I have a set of radio buttons. However, if I check one of them, I am not able to uncheck it! Any ideas what I am missing? Many thanks, Dave

Re: Form Attribute limitation

2001-05-08 Thread dhay
check the bean naming rules (previous messages in this list highlight the problem). Problem arises from lower/upper case combination with first two letters. DAve Nageshwar Charka [EMAIL PROTECTED] on 05/08/2001 04:07:09 PM Please respond to [EMAIL PROTECTED] To: '[EMAIL PROTECTED]'

Re: Unchecking radio buttons?

2001-05-08 Thread dhay
thanks for the replies. Yes, I need the checkbox capabilities, not radio buttons. Question with these, though - is there an equivalent to the checked attribute in HTML reference speck? I am creating checkbox with the following: html:checkbox property=notFolders value=true/, and underlying

Re: Unchecking radio buttons?

2001-05-09 Thread dhay
Thanks for that (although I don't like inserting scriptlets!). My problem, though, is that the underlying value in my form bean is not being displayed in the checkbox - it is set to FALSE, and yet the box appears checked. Is this an error in Struts? Also, am concerned that the HTML spec is

Re: how to forward from one action servlet to another?

2001-05-10 Thread dhay
Alex, if I understand you correctly, you can set up the forwarding in your struts-config.xml to point to the next action path: eg !-- Process Log filter -- action path=/ProcessLogFilter type=beans.ProcessLogFilterAction name=LogFilterForm

RE: Checkbox Arrays - Internationalising them?!

2001-05-11 Thread dhay
Hal, thanks for your input on multi-box - they are working great! BUT...I need to get the bean:write internationalized - does anyone know if this is possible? ie I want to do a bean:message on the output from a bean:write... I think this qu has been asked before, but I looked through the

Re: Help!!

2001-04-02 Thread dhay
As was explained in earlier post: To stop subscription for this address, mail: [EMAIL PROTECTED] where john = your username, host.domain = your domain name. Dave Jaganathan, Rupa [EMAIL PROTECTED] on 04/02/2001 12:23:28 PM Please respond to [EMAIL PROTECTED] To: '[EMAIL PROTECTED]'

Re: Why do I get this stacktrace?

2001-04-20 Thread dhay
I believe it is because Tomcat 3.2.1 doesn't reload!! (although it should!). There are various messages in the archive about this. Dave Jim Crossley [EMAIL PROTECTED] on 04/20/2001 10:59:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David

Re: getting bean properity in the scriptlet varible

2001-04-20 Thread dhay
You might try casting link to the type that it is, and then execute getLinkName() on that? Dave Sundaram Ramasamy [EMAIL PROTECTED] on 04/20/2001 09:07:45 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: getting bean properity

RE: Comparing two dynamic values

2001-05-15 Thread dhay
Tony, You could make the href point to an action path, and that way you will go through the action before displaying page... Dave Tony Karas [EMAIL PROTECTED] on 05/15/2001 07:12:40 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark)

redirect errors back to initial frame

2001-05-30 Thread dhay
Hi everyone. I have the same problem that David Firmin posted back on the 8th March, but have not seen any solution posted. I have set the target frame in my html:form tag to be a different frame. However, if errors occur with the first filter page, the errors should be displayed in the

RE: Precompiling JSP Pages?

2001-05-31 Thread dhay
I am pre-compiling all my jsps using Ant and jspc. Let me know if more info along these lines would help you. Dave Deadman, Hal [EMAIL PROTECTED] on 05/31/2001 12:59:16 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: RE:

Re: Precompiling JSP Pages?

2001-05-31 Thread dhay
Please find attached my ant file, which should be self-explanatory. Set-up is to use Tomcat 3.3's jspc. You have to change your server configuration to use the pre-compiled JSPs. I added the following mappings in web.xml in my WEB-INF directory: ... !-- to use compiled jsps --

Size on html:file tag??

2001-06-01 Thread dhay
Hi everyone. I am using the html:file tag, and running up against an error, saying the size attribute is invalid! It is clearly marked as valid in the docs! Is this a bug? I can take off the size= and it displays fine. My tag looks like this: html:file property=filename size=60/. Help is

html:file tag question

2001-06-06 Thread dhay
Hi everyone. I was wondering if anyone know what will be submitted if I use the html:file tag WITHOUT setting the enctype to multipart/form-data on my form tag? A string? I do not want to actually upload the file, just get the filename requested. Many thanks, Dave

Can I have NO action?!

2001-06-06 Thread dhay
Hi. I have a form where I display the current filename, and allow them to change it. As such, I don't need to do anything in the action, just let Struts populate the form bean. How do I go about this? Do I need an action that does nothing in its perform method? Or can I set things up so no

Re: Problem with nested html:form

2001-06-06 Thread dhay
I do not believe that you are allowed to have nested forms in html (though correct me if I'm wrong!). Dave Marc Eckart [EMAIL PROTECTED] on 06/06/2001 06:10:33 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Problem with

Re: Problem with nested html:form

2001-06-06 Thread dhay
Can you explain your situation further? Would frames help? Dave Marc Eckart [EMAIL PROTECTED] on 06/06/2001 06:20:28 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Re: Problem with nested html:form I do not believe that

Re: Can I have NO action?!

2001-06-07 Thread dhay
respond to Oleg V Alexeev [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Re: Can I have NO action?! Hello dhay, Thursday, June 07, 2001, 1:34:00 AM, you wrote: dlc Hi. I have a form where I display the current filename, and allow

Re: uploading file requires immediate serialization location?

2001-06-11 Thread dhay
Martin, Hi. Can I pick your brain about an earlier post? I asked what would happen if I have a html:file tag on my form, but without changing the enctype to multipart/form-data? Do you know if I just then get a String containing the filename selected/entered? thanks, Dave Martin

Iterate tag update?

2001-06-13 Thread dhay
I have a question similar to Mark Kettner's. Could someone give an update on the iterate tag, and where it stands with the ability to get hold of the current index. I need to have each field in each table row with a different name (ie include the index in it) to reference particular one using

Re: struts-config.xml - How do I open a success path as a new window???

2001-06-14 Thread dhay
You could use javascript to set the target in the form tag to _blank if you want it in a new window. As Pete said, however, the drawback is that they may have Javascript turned off. Dave Linnea Ahlbeck [EMAIL PROTECTED] on 06/14/2001 10:30:04 AM Please respond to [EMAIL PROTECTED] To:

Re: Storing Edited elements from an html form in a collection

2001-06-14 Thread dhay
Mark, Not sure if I understand your question, but I think that Struts will handle it for you. For example, if you are iterating through a collection a displaying a text field in each row which is editable, Struts will automatically make any changes entered to the underlying collection.

Proposal to add indexed to tags for Grid/Matrix-type use of Struts

2001-06-14 Thread dhay
Hi everyone. I have been working on adding the new functionality of the iterate tag (the getIndex() method) to relevant tags to allow me to refer to each of them in each row in a table ie creating indexed names such as name=myCollection[i].myProperty (search mailing list for Grid or Matrix

Re: Storing Edited elements from an html form in a collection

2001-06-18 Thread dhay
Mark, Hi. I have the following in my jsp (same as yours as far as I can see): logic:iterate id=parameter name=ParametersForm property=parameterList TR TD WIDTH=40%FONT SIZE=2 FACE=Helvetica,Verdana,Arial html:text name=parameter property=value size=30//FONT

Re: Proposal to add indexed to tags for Grid/Matrix-type use ofStruts

2001-06-19 Thread dhay
Hi everyone. I have now finished updating several html Struts tags to produce indexed names such as input type=text name=parameter[0].value value=Mac when used within an iterate tag. These tags involve only minor changes to the existing tags, and to trigger them, indexed=true is added

Breaking MVC separation?

2001-06-19 Thread dhay
I have a small architectural question... I have a LoggingForm bean for displaying the logging parameters on our own server. This contains several variables - boolean whether logging enabled, String current severity, Vector of possible severities, along with Vector of categories, each of which

Re: form is null in Action

2001-06-20 Thread dhay
Have you got the session for this form in your struts-config set to request? It caught me out too - if so, it looks for form in request, not in session. Dave Michelle Popovits [EMAIL PROTECTED] on 06/20/2001 10:56:41 AM Please respond to [EMAIL PROTECTED]; Please respond to

Re: indexed property in from bean

2001-06-21 Thread dhay
Not sure what you mean! Can you explain further... Dave rajiv mulay [EMAIL PROTECTED] on 06/21/2001 07:35:32 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: indexed property in from bean Hi, how to provide the indexed

Value not being updated...

2001-06-21 Thread dhay
Hi. I have inherited some Struts code, and the value of the checkbox is not getting updated on submit. Does anyone have any idea why? The code: logic:iterate id=category name=LoggingForm property=categoryList TR TD WIDTH=30%FONT SIZE=2

Re: Value not being updated...

2001-06-21 Thread dhay
Whoops - sorry, typo. I should have said the value of the SELECTbox (not checkbox!) is not getting updated (ie category.value)! thanks, Dave David_Hay/Lex/Lexmark.LEXMARK@sweeper.lex.lexmark.com on 06/21/2001 11:46:56 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:

re: problems with building Struts

2001-06-22 Thread dhay
Hi. Not sure who posted a message on this earlier (or exact title of it) - deleted it by mistake before I could reply! (and mailing-list page seems to be well behind on messages posted). I had similar problem, and fixed it by downloading xalan, and using BOTH the xerces.jar and xalan.jar as

Re: How can I pass extra information on Submit button?

2001-06-25 Thread dhay
As already posted to the list, I have been working to change most of the tags to generate indexed names within an iterate loop, for just this kind of situation. I have just changed the code for submit, so that the index of your iterated collection is added to the name ie name=submit[0] etc.

Re: indexed tags (was - How can I pass extra information on Submit button?)

2001-06-26 Thread dhay
Hi Laine, Yep, I am hoping that it will be included in the formal releases. Hopefully tomorrow or Thursday I will post it all to the -dev list to see about this. Hopefully that will mean it will be in a daily build soon. Not sure when 1.1 will start being released. The code I have posted is

Re: How can I pass extra information on Submit button?

2001-06-26 Thread dhay
Hi Jerzy, To get the value of the property in your form bean, don't add value= to the hidden tag ie html:hidden name=geoEntityForm property=recordId Don't want to push my changes on you, but sure is easy to use the submit button with an indexed name! ;-) Dave Jerzy Kalat [EMAIL

Re: How can I pass extra information on Submit button?

2001-06-26 Thread dhay
Yeah, that's one of the problems with changes - take a while to become official! Ah, thought you just wanted to set the recordId in the hidden field...Peter Alfors just posted how to do it if you want it set to the element.id. Cheers, Dave Jerzy Kalat [EMAIL PROTECTED] on 06/26/2001

Re: Minimizing the code in JSP file......by removing the for loop

2001-06-26 Thread dhay
Michael, I just use the collection and property value on my html:options, and Struts does the rest! ie html:options collection=... property=... (and you can use the labelProperty if you want too) Check out the documentation on it... Dave Michael Skariah [EMAIL PROTECTED] on 06/26/2001

RE: Struts iterate tag

2001-06-26 Thread dhay
In case any of you are interested in these examples... Dave -- Forwarded by David Hay/Lex/Lexmark on 06/26/2001 05:52 PM --- David Hay 06/26/2001 05:37 PM To: Jason Rosenblum [EMAIL PROTECTED] @ LEXMTA cc: Subject: RE: Struts iterate tag

RE: HTML:link tag

2001-06-27 Thread dhay
Matt, Not sure I follow what you are trying to do. Do you want to post some more info...? Cheers, Dave Matt Raible [EMAIL PROTECTED] on 06/26/2001 11:06:02 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark)

Re: Indexed Properties

2001-06-27 Thread dhay
Jason, I believe you need a public User getUser(int index) { return (users[i]); } For the examples I sent you, I have the following form: public final class ParametersForm extends ActionForm { // --- Instance

RE: working with reports

2001-06-28 Thread dhay
Michael, Hi. Maybe I'm missing something, but why don't you use the html:options tag? It will do it all for you!! Dave Michael Skariah [EMAIL PROTECTED] on 06/27/2001 07:18:54 PM Please respond to [EMAIL PROTECTED]; Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: Iterator+Checkbox

2001-06-28 Thread dhay
Hi. What do you get at the moment for the delete values in the form bean? What you are asking for should be possible (if I am understanding what you are asking for!!). Do you have the delete values set to false in your reset function? There are lots of messages in the list about this.

Re: multiple form fields

2001-06-28 Thread dhay
If you want to iterate through a collection, with a text field for each element, then the additions I made to the Struts tag will do this for you. It automatically produces numbered input fields, when you add indexed=true to the tag ie html:text name=parameter property=value

RE: multiple form fields

2001-06-28 Thread dhay
Paul, I just comiled it fine, using that build! Just copy the .java files in [struts]\src\share\org\apache\struts\taglib\html and it should build fine. Let me know if you still have problems (others are using it fine, too, and sounds like with good results). Cheers, Dave Paul Beer

RE: multiple form fields

2001-06-28 Thread dhay
Paul, a concrete example using modified tag: jsp: logic:iterate id=parameter name=ParametersForm property=parameterList . html:text name=parameter property=value indexed=true onchange=validate(this)/ . /logic:iterate in my

RE: multiple form fields (I HATE CTRL-S )

2001-06-29 Thread dhay
Hi Paul. Just got in (tied up this am). Agree with everything that Niall said. Just wanted to confirm that you don't get an error when you actually BUILD Struts? ie you get the error when you try and use the tag, and check that you have copied the struts-html.tld into your directory too?

Re: request for an html:errors property=value indexed=true tag

2001-06-29 Thread dhay
Hi Jakob, This would be somewhat different to all the other tags, and trying to get my head around this, and how it would work in practice. Specifically, how would you see adding an error to the ActionErrors that you want to display later for a particular attribute? In the errors tag, I can

Re: html:select and indexed

2001-07-05 Thread dhay
Jason, Should work fine, if you have the latest code I posted. Select name is indexed (options don't need to be!). Cheers, Dave Jason Rosenblum [EMAIL PROTECTED] on 07/02/2001 03:16:15 PM Please respond to [EMAIL PROTECTED] To: Struts (E-mail) [EMAIL PROTECTED] cc:(bcc: David

Re: iteration question?

2001-07-05 Thread dhay
Rama, Did you get this working? Shouldn't be a problem - just add the html:link as one of your columns. If you want the index of the current row to be included, you can try the tag extension I posted (and Ted Husted has on his site) which automatically includes the index a parameter in the

Re: Regarding JavaOne Presentations

2001-07-05 Thread dhay
Hi Klaus, Did you actually get to the slides?! I went to sun.java.com and logged on to developer connection, and then went to link below and clicked on the pdf link under Craig's presentation. Prompted me for password, and won't let me in! Dave Klaus Sonnenleiter [EMAIL PROTECTED] on

Re: husted.com

2001-07-05 Thread dhay
Nope! If you're looking for my code it's at http://husted.com/about/struts/indexed-tags.htm Cheers, Dave Rama Krishna [EMAIL PROTECTED] on 07/05/2001 01:28:00 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: husted.com is

Re: Regarding JavaOne Presentations

2001-07-05 Thread dhay
Note: Slides are available for conference attendees only. I thought the whole point was to allow those who didn't go to see them?! I'm sure Craig said they would be available after the fact Dave Ray Allis [EMAIL PROTECTED] on 07/05/2001 03:21:03 PM Please respond to [EMAIL

Re: Struts and Javascript

2001-07-06 Thread dhay
Only other thought is could you include the description as the value? I know it's not perfect, but then you could pass the select object into the function, and display the value using javascript. If you don't have too many options, Peter's suggestion to create javascript array may be best

Re: Iterate problem - Any Solutions !!!!!! - SOLVED FINALLY

2001-07-10 Thread dhay
Hi Suhas, No sure what you mean by that... By the way, do you have to have an array? If you make it a collection, you can do away with the index altogether! Dave suhas [EMAIL PROTECTED] on 07/10/2001 11:52:20 AM Please respond to [EMAIL PROTECTED]; Please respond to suhas [EMAIL

Re: Updation using iterate tag

2001-07-11 Thread dhay
Hi Sandeep, Try this: logic:iterate id=price name=MyFormBean property=pricesVector TR TD bean:write name=price property=oldPrice/ /TD TD html:text name=price property=newPrice / /TD /TR /logic:iterate and

Returning to called page after loggin on...

2001-07-11 Thread dhay
Hi everyone. I am placing a tag on each page to check the user is logged on, which, as expected, takes them to a login page if they are not. However, I want to then return them to the page they tried to access before being asked to log on. Do I need to save the name of the page somewhere, or

Re: Standard JSP Tag Library (JSPTL): Early Access

2001-07-11 Thread dhay
Caught by the second paragraph of link The JSPTL requires a servlet container that supports the proposed Java Servlet 2.3 and JavaServer Pages 1.2 specification. The Jakarta Project Tomcat 4 servlet container supports the new proposed specification and can be used for testing the JSPTL Anyone

Re: Long Story short

2001-07-11 Thread dhay
Frank, Do you have your struts-config set up correctly? You might check that a new form is not being created... Dave PS Do you need the indexed naming? If you don't, you don't need to use the changed tags... Frank Ling [EMAIL PROTECTED] on 07/11/2001 01:19:29 PM Please respond to

Re: Updation using iterate tag

2001-07-11 Thread dhay
Whoops - my bad (thanks, Gregor!). Had some old code which I hadn't fully tested and copied in... Was using the indexed names for referencing, and hadn't thought through the saving stuff!! Apologies. Sandeep, you have two options here: use scriptlets, or my changed tags which are available

Re: Indexed Tags Functionality

2001-07-16 Thread dhay
Sure can! That's what I do... Dave DHarty [EMAIL PROTECTED] on 07/16/2001 10:26:11 AM Please respond to [EMAIL PROTECTED] To: Struts User [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Indexed Tags Functionality I was just reviewing the indexed tags funtionality

Re: Indexed Tags Functionality

2001-07-16 Thread dhay
PS You obviously also need a setParameterList(ArrayList paramList). Dave DHarty [EMAIL PROTECTED] on 07/16/2001 10:26:11 AM Please respond to [EMAIL PROTECTED] To: Struts User [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Indexed Tags Functionality I was just

Re: Trapping an html:option value

2001-07-19 Thread dhay
Have you tried the onchange method? Dave Melissa Rabin [EMAIL PROTECTED] on 07/18/2001 11:03:53 AM Please respond to [EMAIL PROTECTED]; Please respond to [EMAIL PROTECTED] To: Struts-User [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Trapping an html:option

Re: Long Story short

2001-07-19 Thread dhay
Torsten, Hi. Please find attached some of my code, as requested in your mail to me directly (was not a problem!). Here's what I do: I basically call ShowParameters to get the underlying parameters, and fill the form, which is in Session scope. User is then presented with parameters.jsp

Re: Hot to get the iterated objects ?

2001-07-19 Thread dhay
Hi Prashanth, Just posted an example of how to do this, using the indexed tags (see http://husted.com/about/struts/indexed-tags.htm). Note: these should be in the nightly build fairly soon!! Cheers, Dave Prashanth_Thm [EMAIL PROTECTED] on 07/19/2001 10:38:57 AM Please respond to

RE: html:select/options

2001-07-19 Thread dhay
Not sure I understand... I just set the value of roleName in my FORM, and whatever is set there is reflected as the selected item - ie just leave off the value= altogether (as Jason's code). Dave DHarty [EMAIL PROTECTED] on 07/19/2001 01:33:39 PM Please respond to [EMAIL PROTECTED] To:

Re: question about html:text tag

2001-07-19 Thread dhay
try disabled=true (with a d!) Dave D M [EMAIL PROTECTED] on 07/19/2001 04:30:26 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: question about html:text tag Hi, I don't know if this question has been already submitted.

Where did it go?!

2001-07-20 Thread dhay
Hi everyone. I have something strange happening. I have a 2 frame frameset, with buttons in the top fram to let a user view a logfile in the lower frame, or download it. If the chose to download the file, I get the ServletOutputStream from the response in my action, and write to it. I then

Repost: Where did it go?!

2001-07-23 Thread dhay
Hi everyone. Apologies for reposting, but I am really stuck on this one, and wondering if anyone has any ideas?! After calling the action below to download a data directory, everything goes fine, but somehow I lose the response output stream permanently! Thereafter, whatever I try and view

Re: Repost: Where did it go?!

2001-07-23 Thread dhay
a problem with holding onto the session between your two frames. If this is a possibility, then set a session variable in the lower frame and try printing out your session information in the top frame to see what is going on. Brian dhay@lexmark. com

Re: Repost: Where did it go?!

2001-07-23 Thread dhay
session information in the top frame to see what is going on. Brian dhay@lexmark. com To: [EMAIL PROTECTED] cc: 07/23/2001 Subject: Repost: Where did it go

Debugging struts?

2001-07-25 Thread dhay
Hi. I'm thinking of trying to debug my struts stuff in Netbeans. Does anyone use this successfully, and do you know if it works with Tomcat 3.3 m2? Thanks, Dave

Re: Problem initializing (pre-selected) html:select multiple=true

2001-07-25 Thread dhay
Hi. If you want Struts to display values pre-selected, you should leave off the value= on the select tag altogether. I haven't tried it with multiple=true, but use html:select property=category to display the value I previously assigned in my form under category.

Creation of form bean

2001-07-26 Thread dhay
Hi. Just a quick question - if I link directly to a jsp which contains an html:form tag with a formbean specified which I use on submit, is the formbean created by Struts? Or do I need to go through an empty action just to create it? thanks, Dave

Creation of form bean

2001-07-26 Thread dhay
Sorry - please ignore the question! Thought it did, but wasn't working - typo! Cheers, Dave -- Forwarded by David Hay/Lex/Lexmark on 07/26/2001 04:33 PM --- David Hay 07/26/2001 04:17 PM To: [EMAIL PROTECTED] cc: Subject: Creation of form

Indexed tags

2001-07-26 Thread dhay
Just to let you know the nightly builds now include the indexed tags. Cheers, Dave

Re: dynamically setting the html:select property

2001-08-13 Thread dhay
If you use the nightly build, you can do this using the indexed=true property, without using scriptlets. Dave [EMAIL PROTECTED] on 08/08/2001 08:30:56 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: dynamically setting the

Re: indexed properties weirdness. I'm desperate...

2001-08-13 Thread dhay
Hi Marcel, Unfortunately using the indexed tags you cannot currently use nested properties. This is on my todo list, but I just got back from vacation and may take a while. Solution with scriptlets was posted a while back, I believe, Cheers, Dave Marcel Maré [EMAIL PROTECTED] on

Re: How to use the indexed property-Please get me going?

2001-08-13 Thread dhay
Alex, You should not need the indexed=true with the bean:write - as no update is needed. It should automatically display the value for the current iteration. eg in my example: logic:iterate id=parameter name=ParametersForm property=parameterList TR TD WIDTH=50%

Re: html:link parameter within logic:iterate

2001-08-13 Thread dhay
Hi - did you get this working? You can use the indexed=true attribute, with indexId=stencilName to achieve this, using the indexed tags in the nightly build. Cheers, Dave Warwick Boote [EMAIL PROTECTED] on 07/30/2001 05:42:09 AM Please respond to [EMAIL PROTECTED] To: Struts-User

Re: Index within iterate tags

2001-08-14 Thread dhay
Hi Nicola, Believe there is a way to extract it already (but never used it)...but If you only need the index for javascript, can't you obtain it from the name of your indexed field ie pass the field in as a param to your function? I do this with a button defined with

Re: Downloading a file from a action class

2001-08-14 Thread dhay
Jeff, I have done it. Just return null, and it works fine. btw, I have a wierd problem when I use it with frames - I lose the output *after* I do the download ie other actions are still excecuted, but I don't see any output! Can you let me know if you run into anything similar? Thanks,

Re: findForward and Errors

2001-08-14 Thread dhay
You certainly can. You just need to save the errors before you return, using saveErrors(request, errors); Cheers, Dave Shawn Sohl [EMAIL PROTECTED] on 08/14/2001 01:51:53 PM Please respond to [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED], '[EMAIL

Re: onclick handler in the context of a struts iterate tag

2001-08-14 Thread dhay
Not sure I understand you - could you post some more info? Not quite sure why you can't pass info in the link? Do you want a hidden field instead? Cheers, Dave Larry Maturo [EMAIL PROTECTED] on 08/14/2001 11:11:45 AM Please respond to [EMAIL PROTECTED]; Please respond to [EMAIL

RE: onclick handler in the context of a struts iterate tag

2001-08-14 Thread dhay
Larry, Hi. You are correct that you cannot access the session using Javascript. Are you using the same form for all three pages? If so, you could use a hidden field, and set it in p1, and then in the action from p3. Presumably what you display in p2 depends on the value you pass -

RE: onclick handler in the context of a struts iterate tag

2001-08-14 Thread dhay
Hi again, You can set the value of the hidden field from your action, if it is part of your form bean. Also, do you have an action prior to displaying p2 which fills the form etc? Inserting a simple one may make it easier to do what you're trying to do... Cheers, Dave Larry Maturo

RE: onclick handler in the context of a struts iterate tag

2001-08-14 Thread dhay
But you can get a copy of the form for p2, in your p3 action, set the value in p2's form and save it in either request or session scope before you forward to it. That way struts will find it and use it, instead of creating a new one, and you have access to your value in p2's action. cheers,

RE: action mapping not working

2001-08-15 Thread dhay
Larry, If you want the action to be called, you should forward to the action, not the jsp eg forward name=showLog path=/ShowLog.do / hth, Dave Larry Maturo [EMAIL PROTECTED] on 08/15/2001 11:54:26 AM Please respond to [EMAIL PROTECTED]; Please respond to [EMAIL

RE: action mapping not working

2001-08-15 Thread dhay
Larry, Presumably you call your action Question from somewhere, execute it, and when it's done, you forward to question.jsp, not to the Question action again! Hence the action has already executed, and you want to go to the jsp page. With the others, I guess you want to perform the action

RE: action mapping not working

2001-08-15 Thread dhay
...but when you finish going through the Action class (Question), you want to then go to the jsp, not the action again, which would give you an infinite loop! ;-) Dave Larry Maturo [EMAIL PROTECTED] on 08/15/2001 01:23:32 PM Please respond to [EMAIL PROTECTED]; Please respond to

Re: Seeking clarification of indexed attribute

2001-08-15 Thread dhay
Hi Jim, The changes I made are *NOT* part of 1.0, but have been added since, so they are part of 1.1 nightly builds. Dave [EMAIL PROTECTED] on 08/15/2001 04:19:12 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Seeking

RE: Linking HREF with Action

2001-08-16 Thread dhay
Is it not possible to not use a form at all? Section 1.3 of the user guide says: At a minimum, a mapping must specify (1) a request path and (2) the object type to act upon the request.. However when I try leaving off the form name in config file, and in html:form tag, I get an error. I can

welcome file in web.xml with pre-compiled jsp's?

2001-08-21 Thread dhay
Hi everyone, I am pre-compiling my jsp's in my struts web app, and everything works fine, except specifying the welcome file in the web.xml. If I do not pre-compile everything, having index.jsp as the first page works great. However, when I pre-compile index.jsp it doesn't work. Putting an

pre-selected values in multi-select box not working?

2003-03-24 Thread dhay
Hi. Can anyone tell me if this is working please? I have a String[] which holds the values selected in a multi-select box. The submission part works fine, but pre-selecting the values does not. ie if I populate the String[] with values that should show up already selected when the page is

[Off Topic] re-pre-compiling only jsps that have changed - was Re: Filterto redirect to welcome action when pre-compiling JSPs

2003-03-25 Thread dhay
Hi. Apologies for going slightly off topic (!), and the long title, but with all this talk about pre-compiling JSPs, thought I'd jump in with a question that relates to jasper no-longer recognising when a file has changed due to the new _jsp which it seems to add to the end of files it compiles.

RE: pre-selected values in multi-select box not working?

2003-03-25 Thread dhay
Hi Sri / Mohan, Does the value need to be a String or a String[] if multiple=true is set, for value to be pre-selected? Many thanks, David Sri Sankaran [EMAIL PROTECTED] on 03/24/2003 09:53:13 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:Struts Users

RE: pre-selected values in multi-select box not working?

2003-03-26 Thread dhay
Okay, here's the code (thought I could get away with just another qu, but was looking at the wrong code!!). in my form bean: String[] _promptValues = new String[0]; in my jsp: html:select size=5 multiple=true styleId=multiSelect name =promptForm

  1   2   3   >