Re: how to call method with struts tag?

2001-10-23 Thread John Yu
Ken, Oops, I overlooked the fact that you were iterating over a Map. For Map, your row bean will be of the type Map.Entry which has two properties, key and value. Your MyBean instance is stored in the value property. To retrieve it, you can do something like: logic:iterate id=row name=result

AW: Auto-generating ActionForms

2001-10-23 Thread storck
Robert Parker: Is it possible that you could send me a (complete) example ? Thanks! -Ursprüngliche Nachricht- Von: Robert Parker [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 23. Oktober 2001 01:17 An: [EMAIL PROTECTED] Betreff: Re: Auto-generating ActionForms I've used something

[ANNOUNCE] Fast Track to MVC / JSP Framework Public Workshop

2001-10-23 Thread Vic Cekvenich
Title: !- - commercial Master Struts in three Days! The date is fast approaching. Join our workshop and discover how the MVC/J2EE platform provides a number of benefits for organizations developing intranet and Internet applications. MVC designs require that you separate the

ActionFormBean

2001-10-23 Thread David A. D. Konrad
Hi, I have used ActionForm's so far, but will also look at ActionFormBean's. Can anyone point out * what is the difference between an ActionForm and an ActionFormBean? * when to use a ActionFormBean? I really hope anyone can answer this, since its obviously (at least to me) that one

RE: ActionFormBean

2001-10-23 Thread Geddes, Mark (ANTS)
No difference. An ActionForm bean is a class that extends the ActionForm class, and happens to be a bean. -Original Message- From: David A. D. Konrad [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 09:04 To: [EMAIL PROTECTED] Subject: ActionFormBean Hi, I have used ActionForm's so

Re: ActionFormBean

2001-10-23 Thread David A. D. Konrad
Hi Mark Geddes, No difference. An ActionForm bean is a class that extends the ActionForm class, and happens to be a bean. Thank you, but what is a bean in this context? I'll guess you not talk about EntityBeans? ;-) As I see it, an ActionFormBean is an ordinary class with a name and type

RE: ActionFormBean

2001-10-23 Thread Geddes, Mark (ANTS)
Not EJBs just regular beans. Check out this tutorial: http://developer.java.sun.com/developer/onlineTraining/Beans/JBeansAPI/short course.html Mark -Original Message- From: David A. D. Konrad [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 09:28 To: [EMAIL PROTECTED] Subject: Re:

RE: Form properties reset ?

2001-10-23 Thread Tom Klaasen (TeleRelay)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: maandag 22 oktober 2001 19:03 To: [EMAIL PROTECTED] Subject: Re: Form properties reset ? Yes, I would expect this. Any properties you set in the form bean from the first action will be cleared

automatically calling validate() of ActionForm

2001-10-23 Thread struts
Hi! my application doesn't automatically call the validate() function in my ActionForm-extending class. I added the form to the struts-config file in the right manner, but it won't work. The form is filled and passed to the Action-class, but it won't execute validate(). If I try to call

RE: automatically calling validate() of ActionForm

2001-10-23 Thread Geddes, Mark (ANTS)
Does you action element in struts-config include the attribute validate=true ? Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 10:57 To: [EMAIL PROTECTED] Subject: automatically calling validate() of ActionForm Hi! my application

Re: Form properties reset ?

2001-10-23 Thread Ted Husted
If you specify an ActionForm in the mapping for an Action, the contract is that the ActionServlet will autopopulate the form (see BeanUtils.populate()). Since there can only be one ActionForm under a given name in a given request, to fulfill its contract, the ActionServlet will use whatever form

RE: automatically calling validate() of ActionForm

2001-10-23 Thread struts
Whoops, that seems to be it :). Thank you! On Tue, 23 Oct 2001, Geddes, Mark (ANTS) wrote: Does you action element in struts-config include the attribute validate=true ? Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 10:57

problem with html:errors tag

2001-10-23 Thread Scriven, Marcos
When I get errors with my form validation, I cannot seem to place them where I want them. I have tried html:errors / and html:errors property=firstName/ 1) In both cases (and even when there is no errors tag at all), I get all of the errors at the top of my page... any ideas why? 2) Once I get

PROB:Double Submit upon Reload/Refresh Button Clicked

2001-10-23 Thread L. Yeung
An action is performed and forwards succesfully to the same page and whenever Reload/Refresh is clicked, the previous action is used instead of clearing out. I've tried resetToken but still didnt work. Any workarounds? __ Do You Yahoo!? Make a

Re: problem with html:errors tag

2001-10-23 Thread Rob Breeds
1. You need to put the html:errors property=whatever/ where you want them to appear. If you have several input fields, put a html:errors property=whatever/ next to each input field. The header and footer are for formatting but they are optional. Rob Breeds

RE: problem with html:errors tag

2001-10-23 Thread Scriven, Marcos
Thanks - but that's exactly what I did! I have two text boxes, firstName and lastName I triple checked the property names and capitalisation, and I still get all the errors. Also, I would have thought that not including any error tag would mean no errors would be displayed. Marcos

populate checkbox back to frombean

2001-10-23 Thread Roland Berger
Hi all I have searched the mailinglist for the following problem but did not find the answer: How is it possible to populate the state of a checkbox (checked or unchecked) back to the corresponding property in the formbean when the user clicks the submit button. The formbeans are stored in an

RE: problem with html:errors tag

2001-10-23 Thread Rob Breeds
you still get error messages even without the html:errors/ tag? Sounds like a restart web app required? in the ActionForm validation() method, how do you populate Errors? Rob

RE: problem with html:errors tag

2001-10-23 Thread Scriven, Marcos
Hi Rob Here is my validate method (from the ActionForm bean): public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { log.debug(Validating form); ActionErrors errors = new ActionErrors(); if ((_firstName == null) || (_firstName.length() 1))

Re: Using static ints as values in html:submit

2001-10-23 Thread Jonathan M Crater
try this: html:submit property=submit value=%= Integer.toString(ButtonNames.SEARCH) % it's expecting a string as the value. Tony Li wrote: In my jsp, I have this line: html:submit property=submit value=search/ Instead of the string search, I would like to use something like:

Encapsulate EJB-Session-Beans in normal Java Beans!

2001-10-23 Thread storck
Would it be a good design to encapsulate my EJB-Session-Beans in normal Java Beans and to use those Java Beans inside a Struts-Action-Class so that I would have a more simple API to use my application-layer for other clients ? Any comments are welcome!

Testing within Struts Framework

2001-10-23 Thread Barry Nauta
I am currently looking at how to test my EJBs within Struts. I have been reading about JUnit, Cactus ( http://jakarta.apache.org/cactus/ ), MockObjects etc. I would like to go as far as implementing mouseclicks within the webpage to simulate user-interaction. Any suggestions/comments/known

Antigen found =*.vcf file

2001-10-23 Thread ANTIGEN_MG01
Antigen for Exchange found barry.nauta.vcf matching =*.vcf file filter. The file is currently Deleted. The message, Testing within Struts Framework, was sent from Barry Nauta and was discovered in IMC Queues\Inbound located at IBC/PA1/MG01. CONFIDENTIALITY NOTICE: This E-Mail is intended only

RE: HOW TO span a FormBean over several JSP's

2001-10-23 Thread Marcel Andres
Instead of having the parameter scope (in struts-conf.xml) set to request you should change it to session. Example: action path=/yourpath type=yourAction name=yourForm scope=session input=yourJSP1.jsp forward name=success path=/yourJSP2.jsp/ /action

RE: Getting the value of object in the iterate....

2001-10-23 Thread Strichartz, Beth
I have the same question... Does anyone out there know??? -Original Message-From: michael duggan [mailto:[EMAIL PROTECTED]]Sent: Monday, October 22, 2001 9:19 PMTo: [EMAIL PROTECTED]Subject: Getting the value of onject in the iterate If I am iterating over a

Q about A tags with Struts!

2001-10-23 Thread O'Neill, John H
Hi all, hope someone can help me with this! I want to send a request to an action using the following code A href= /LaunchPad2Action.doBFiscal Analytic/B/A The problem is that I want to send up parameters aswell as you would do normally like : A

Re: HOW TO span a FormBean over several JSP's

2001-10-23 Thread Ted Husted
I just posted a new version of Struts-Simple that includes a conventional wizard, and an early example of using the new workflow gimzo with Struts. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/

RE: Testing within Struts Framework

2001-10-23 Thread David Boardman
We have been using ant (http://jakarta.apache.org/ant/) to do a nightly build of all of our classes and ejbs and then deploy them to an instance of Orion application server. For each bean we write we write a corresponding JUnit test class that is named by prefixing the name of the bean with Test

Re: Q about A tags with Struts!

2001-10-23 Thread Gregor Rayman
O'Neill, John H JohnH.O'[EMAIL PROTECTED] asks: Hi all, hope someone can help me with this! I want to send a request to an action using the following code A href= /LaunchPad2Action.doBFiscal Analytic/B/A The problem is that I want to send up parameters aswell as you would do normally

RE: Validation Return Page

2001-10-23 Thread Stephen Owens
Much cleaner! Many thanks. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 4:51 PM To: [EMAIL PROTECTED] Subject: Re: Validation Return Page The input property is a URI -- not necessarily a page. So, in the case of a Wizard workflow, you

Problem: Tomcat 4.0 b7

2001-10-23 Thread Roumen Ganeff
Hi. I haven't found this described anywhere in the list archives, so I decided to ask here I instaled tomcat 4.0-b7 on windows 2000 SP2 I added this to server.xml Context path=/my-app docBase=my-web / and in the log file it produces the folllowing error: javax.servlet.ServletException: Class

RE: Getting the value of object in the iterate....

2001-10-23 Thread Stephen Owens
You should be able to do this using the bean:define tag, like so, logic:iterate id=Patients name=MyForm property=Patients indexId=index bean:write name=Patients property=account.ssn filter=true//td bean:define id=Patients name=Patients type=com.domain.Patients/

Re: Getting the value of object in the iterate....

2001-10-23 Thread Ted Husted
First could you guys turn off the HTML mail. It makes it much harder for the rest of us to respond. HTML mail is not permitted on Jakarta mailing lists. http://jakarta.apache.org/site/mail.html For logic:iterate id=Patients name=MyForm property=Patients indexId=index

RE: Q about A tags with Struts!

2001-10-23 Thread Stephen Owens
You can do this with the html:link tag. For a single parameter using a bean property as a value you woud do: html:link href=/LaunchPad2Action.do paramID=fundId paramName=fund paramProperty=id which would create a href=/LaunchPad2Action.do?fundId=7... For multiple parameters you have to use a

Problem with iterate tag

2001-10-23 Thread Bauer, John
I have a collection (an ArrayList) that I stored in the request scope in an action class: request.setAttribute(trans, transactions); In my JSP, I am attempting to use the iterate tag to access this collection and iterate over the contents (the collection contains

RE: Problem: Tomcat 4.0 b7

2001-10-23 Thread Esbrook, Scott
I ran into the ActionServlet is not a Servlet problem a while back. Solved when I updated servlet.jar from my jakarta-tomcat-4.0\common\lib dir to the dir where my struts compile was getting it. Hope this helps. Scott -Original Message- From: Roumen Ganeff [mailto:[EMAIL PROTECTED]]

AW: HOW TO span a FormBean over several JSP's

2001-10-23 Thread storck
Sorry, but I cant find the right link :( -Ursprungliche Nachricht- Von: Ted Husted [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 23. Oktober 2001 15:24 An: [EMAIL PROTECTED] Betreff: Re: HOW TO span a FormBean over several JSP's I just posted a new version of Struts-Simple that

Re: [ANNOUNCE] Fast Track to MVC / JSP Framework Public Workshop

2001-10-23 Thread Alex Lin
Based on my research, there're more Struts courses available in the states - FYI http://bravepoint.com/scripts/wsisa.dll/WService=training/training_course.html?courseid=354 http://www.avantsoft.com/jsp.html Vic Cekvenich wrote: !- - commercial Master Struts in three Days! The date is fast

Form to a database

2001-10-23 Thread rg
Title: Hello. I have a question about database. I want to use a Oracle database and I configured it to use built-in as connection pool. Is it possible that I can write content from a form directly in the database? In the struts-example I saw, that it's possible, that you can write the from

RE: Problem with iterate tag

2001-10-23 Thread Marcel Andres
John, can you give some more informations? For example: Your iterate-tag in the jsp. Did you define the iterate-tag on top of the page %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %. Do you get any errors? Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: problem with html:errors tag

2001-10-23 Thread Rob Breeds
looks OK to me. Do the variables _firstName and _lastName get populated by setFirstName() and setLastName()? Other than that I'm afraid I've no idea - I'm still writing my first struts app! Rob

RE: How to: Workflow-management with struts

2001-10-23 Thread Marcel Andres
There exist a simple workflow-extension for struts. See http://www.husted.com/struts/resources/workflow.htm. Perhaps, this can help you. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 4:17 PM To: [EMAIL PROTECTED] Subject:

Re: Dynamic XML extended defintions

2001-10-23 Thread Sandeep Takhar
I may have missed a reply on this one, but it seems to me that you only need to replace the one definition and not both of them: definition name=menu.license extends=menu.main putList name=flags add value=linknormal / add value=linkbold / add value=nolinkbold / /definition And add the

RE: Form to a database

2001-10-23 Thread Marcel Andres
In my opinion, it is not a proper way, if you write from a form directly into a database. Better practice would be, that you write a seperate data access class, which handles the interaction with the database. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: Getting the value of object in the iterate....

2001-10-23 Thread Strichartz, Beth
Thanks! I got that working.. Now I am having a problem sending to the JavaScript: html:submit property=buttonSelected value=Get onclick=return doSubmit(%= Patients.getAccount().getSsn()%); / Any ideas??? Error is : probably occurred due to an error in /ChangeEdit.jsp line 303:

Re: AW: HOW TO span a FormBean over several JSP's

2001-10-23 Thread Sandeep Takhar
http://www.husted.com/struts/resources/struts-simple.zip --- storck [EMAIL PROTECTED] wrote: Sorry, but I cant find the right link :( -Ursprungliche Nachricht- Von: Ted Husted [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 23. Oktober 2001 15:24 An: [EMAIL PROTECTED] Betreff: Re:

Initializing ArrayList used by options tag

2001-10-23 Thread lisa ward
Hi, I have an ArrayList which I use to populate the options on one of my JSP pages. Where is the best place to initialize this ArrayList? At the moment I am making database calls from within my form bean, so that when the form is initialized the values will be present. Should I be doing

Re: AW: HOW TO span a FormBean over several JSP's

2001-10-23 Thread Ted Husted
http://www.husted.com/struts/resources.htm#new storck wrote: Sorry, but I cant find the right link :( -Ursprungliche Nachricht- Von: Ted Husted [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 23. Oktober 2001 15:24 An: [EMAIL PROTECTED] Betreff: Re: HOW TO span a FormBean over

html:link forward question

2001-10-23 Thread lisa ward
Hi, Can anyone please tell me how to achieve forwarding of one page to another as well as have the information in the form submitted to the form bean in the process. Is this this possible or do I just have the wrong idea. Please help. Thank you for your speedy response. Lisa

Re: Getting the value of object in the iterate....

2001-10-23 Thread Ted Husted
How about input type=submit name=buttonSelected value=Get onclick=return doSubmit('bean:write ... /'); / instead. Or, you might have to expose the bean as a scripting variable before using it in a scriptlet. Strichartz, Beth wrote: Thanks! I got that working.. Now I am having a problem

using bean-include in a servlet

2001-10-23 Thread Ralf Krakowski
I want to use a servlet as a cache by using the bean-include tag in the struts taglib. How do I do it in a servlet? I have tested it in jsp files and it works really good but I want to use it in a servlet. I have looked at the java code when compiling the jsp but I can figure out how to use

Re: Initializing ArrayList used by options tag

2001-10-23 Thread Ted Husted
You should initialize the array list in the Action. Any accesses to the model should be handled from the Action, so that the view is just handed static data, ready to display. Hard won experience by legions of developers have shown that mixing the model with the view in a Web application causes

Re: AW: HOW TO span a FormBean over several JSP's

2001-10-23 Thread Will Spies/Towers Perrin
I deployed this into WebLogic 6.1 and received this error: Parsing of JSP File '/index.jsp' failed: /index.jsp(2): Could not parse deployment descriptor: java.io.IOException: cannot resolve

RE: Initializing ArrayList used by options tag

2001-10-23 Thread Marcel Andres
Hi Lisa, Best practice for a database access is, to hide these things in a seperate business object. This object can be invoked from the action class, from which you can set all the properties in the form bean (something like form.setProperty(...);. With this approach, you get a proper MVC

AW: AW: HOW TO span a FormBean over several JSP's

2001-10-23 Thread storck
Has someone used the workflow and wizard ? -Ursprungliche Nachricht- Von: Ted Husted [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 23. Oktober 2001 16:54 An: [EMAIL PROTECTED] Betreff: Re: AW: HOW TO span a FormBean over several JSP's http://www.husted.com/struts/resources.htm#new

RE: Getting the value of object in the iterate....

2001-10-23 Thread Strichartz, Beth
Ted, Is that an html:input or straight html input. I ask because the end tag is / I will try this... Beth. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 11:08 AM To: [EMAIL PROTECTED] Subject: Re: Getting the value of object in the

Re: AW: HOW TO span a FormBean over several JSP's

2001-10-23 Thread Will Spies/Towers Perrin
Correction: I deployed the scaffold.war not the Struts-Simple ( but I still have this problem ) - Forwarded by Will Spies/Towers Perrin on 10/23/01 11:16 AM -

Re: html:link forward question

2001-10-23 Thread Ted Husted
A page submits to an Action. If there is an ActionForm associated with the Action, it is automatically populated and handed to the perform method. The perform method returns an ActionForward, that could be another Action, a JavaServer page, or any other destination. So long as you continue to

RE: html:link forward question

2001-10-23 Thread Marcel Andres
If I understand you right, you would like to have access to the same information on the next form as well. If this is what you want to do, you should define the action in the struts-config.xml file with the attribute scope=session. This gives you the chance to have access to a bean during the

RE: How to handle a PopUp Form from another Form?

2001-10-23 Thread Martin, Margaret
Nimmi - In doing something similar to what you want to do I did the following: 1) Create javascript function to open a new modal window (I am only concerned with supporting IE5.5, so using #showModalDialog works for me 2) create the link using plain ol' html, with an onClick handler that points

RE: AW: HOW TO span a FormBean over several JSP's

2001-10-23 Thread Ravindran Ramaiah
Hi, I had successfuly implemented a similar workflow organizer. Through this architecture, 1. All the button clicks are dynamically routed. 2. Section-ing the fields in the xml, allows to control over each field. (change the background color/hide/enable) 3. Same JSPs can be reused for a

Re: html:link forward question

2001-10-23 Thread lisa ward
Hi again, This is my present scenario. I have a page that contains a number of checkboxes, which have been rendered using the struts multibox tag. The user needs to select at least one or more checkboxes before they can proceed. Once at least one check box has been selected I then proceed

RE: How To: Radio Buttons and Regular buttons

2001-10-23 Thread dhay
not sure why tomcat would crash on you using nightly build. What version are you using? I'm using 3.3 and works fine... Dave L. Yeung [EMAIL PROTECTED] on 10/22/2001 09:27:57 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject:

RE: Iterate with 3 array lists (urgent)

2001-10-23 Thread dhay
To get struts to auto-populate the changes on submit, you have to use indexed tags (either nightly build, or via scriplets) and add to your form bean a getter to get a single object from the collection. Cheers, Dave Andrew van der Voort [EMAIL PROTECTED] on 10/23/2001 12:22:22 AM Please

Generic selection forms

2001-10-23 Thread David Morris
Group, I have been trying to come up with a list of options related to a Struts-based application. I would appreciate your ideas and comments. At this point I have prototyped a few ideas and have not come up with a structure I am satisfied with. I am trying to build a report/inquiry

Re: populate checkbox back to frombean

2001-10-23 Thread dhay
You have to use an indexed tag (available in nightly build, or you can do same thing via scriptlets) so that the index of the collection is added to the name of the checkbox - eg ListMitgliederSelektionForm[0].selected. You also need to add a getListMitgliederSelektionForm(int i) in the array,

Validator and Backwards Compatibility

2001-10-23 Thread Sandeep Takhar
Outside of what is defined as differences in the revisions.html file -- what are the backwards compatibility issues. This is really an effort to understand what will be required when Struts1-1 goes final and what changes will be required. so... What are the backwards compatibility issues

RE: Getting the value of object in the iterate....

2001-10-23 Thread Strichartz, Beth
Thanks Ted!! :) -Original Message- From: Strichartz, Beth [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 11:17 AM To: [EMAIL PROTECTED] Subject: RE: Getting the value of object in the iterate Ted, Is that an html:input or straight html input. I ask because the end tag

RE: How to handle a PopUp Form from another Form?

2001-10-23 Thread Shamdasani Nimmi-ANS004
Margaret, I appreciate your suggestion. I do have to support this functionality on all browsers. If it is possible, can you send me the sample code. I do have some questions but looking at the code would help clear some. Thanks. -Nimmi -Original Message- From: Martin, Margaret

Multiple web.xml's?

2001-10-23 Thread dhay
Does anyone know if it is possible to use multiple modularized web.xml files (similar to multiple struts-config.xml files) ie Tomcat will read all web.xml files and merge them together? Cheers, Dave

RE: PrePopulating a form

2001-10-23 Thread Dave Remy
I am doing this (doing the GET to the action class to prepopulate the form) and it works well but there was one interesting thing that happened (assuming I have everything set up right). The validate() method in the related form bean was called as well. Consequently, I am having to start all of

Knowing where you came from

2001-10-23 Thread Eric Rizzo
In an Action, is there a way to determine if the request is coming from a forward from another Action or from an external request? I've thought about storing in the session the last known request object and then comparing against it every time any of my actions perform() get called to see if

24/7 availability

2001-10-23 Thread David Morris
Group, Another question, which is not entirely Struts related. We recently implemented a system that relies heavily on Struts in a 24/7 environment. Right now we have some opportunities to cycle Tomcat 3.2.3, which is what we are running Struts on. In the future those opportunities will get

Re: Knowing where you came from

2001-10-23 Thread martin . cooper
If you only want to know when an action is reached from another action, you can have the first action set an arbitrary request attribute before forwarding, and have the second action check for the existence of that attribute. Request attributes will live across forwards, but not across

Re: Testing within Struts Framework

2001-10-23 Thread Vincent Massol
- Original Message - From: David Boardman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 23, 2001 2:38 PM Subject: RE: Testing within Struts Framework We have been using ant (http://jakarta.apache.org/ant/) to do a nightly build of all of our classes and ejbs and

Re: Validator and Backwards Compatibility

2001-10-23 Thread Sandeep Takhar
thanks for the reply, I just tried the 9/25/2001 release and used the validator.war file as a starting point. All I did after that was delete the struts.jar and replace with struts1-0.jar. This does not work. Maybe I am doing something wrong? The error is about ActionMessages which is in the

Re: PrePopulating a form

2001-10-23 Thread Ted Husted
Checking for a submit control in the request is very clever. Another approach would be to setup an alternate ActionMapping with validate=false. This could either lead to a separate Action that prepopulated the form, or a task in the same Action, queued by a hidden property or the parameter

Re: AW: HOW TO span a FormBean over several JSP's

2001-10-23 Thread Ted Husted
On the Scaffold index page, it should actually be %@ taglib uri=/tags/struts-bean.tld prefix=bean % %@ taglib uri=/tags/struts-html.tld prefix=html % %@ taglib uri=/tags/struts-logic.tld prefix=logic % Though, there really isn't any functionality in the Scaffold package right now. It's just

Re: PoolMan JNDI probs

2001-10-23 Thread A. S. Drury
thanks for feedback, ted. i copied examplecode very much like that from a previous post of yours incorporated it into my struts code. however, it doesn't use jndi, right? am i missing something here?

RE: 24/7 availability

2001-10-23 Thread Zeltser, Mark
Migrate to Tomcat4, you can reload individual applications there. Mark. -Original Message- From: David Morris [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 2:31 PM To: [EMAIL PROTECTED] Subject: 24/7 availability Group, Another question, which is not

Validator and Struts 1.0

2001-10-23 Thread Sandeep Takhar
sorry David, but I accidentally deleted the thread that was started from my mail. I think that having a final release of validator for release 1.0 of struts is a great idea. One thing that you mentioned is that using bCancel as a javascript variable is optional. How to do this using the

Re: Validator and Backwards Compatibility

2001-10-23 Thread David Winterfeldt
I started upgrading the example to use some JSP tags (logic:messagesPresent html:messages) in the Struts nightly build, but if you take out those references it should probably work. David --- Sandeep Takhar [EMAIL PROTECTED] wrote: thanks for the reply, I just tried the 9/25/2001 release

Re: Problem with iterate tag

2001-10-23 Thread Brian Holzer
John, I am doing the same thing and this is how I am coding it. strutslogic:iterate name=UserCollection id=user tr class=body td nbsp; nbsp; nbsp; strutshtml:link href=edituser.do paramId=APP_USER_ID paramName=user paramProperty=APP_USER_ID

RE: Auto-generating ActionForms

2001-10-23 Thread Stephen Hood
David -- Thanks very much for the reply. I grabbed a recent nightly build and am now using the indexed tag functionality; it is a very helpful addition. However, I still find myself needing to write custom Actions to handle manipulation of complex documents (i.e. adding another item to a

What is proper way to determine ActionForm type?

2001-10-23 Thread Stephen Hood
I am trying to write a generic Action class that I can use with any ActionForm to add an item to any collection property it may contain. For example, if I had two ActionForms which each contain a collection (say AddressList and ProductList), I could call the same Action with either form, pass it

Re: PoolMan JNDI probs

2001-10-23 Thread Ted Husted
Poolman supports JNDI, but doesn't require it. A. S. Drury wrote: thanks for feedback, ted. i copied example code very much like that from a previous post of yours incorporated it into my struts code. however, it doesn't use jndi, right? am i missing something here?

Re: [ANNOUNCE] Fast Track to MVC / JSP Framework Public Workshop

2001-10-23 Thread Vic Cekvenich
Cool. I am real glad Struts is spreading. baseBeans.net courseware is more than 250 text pages (not slides), 6 months in making, not sure if that is a differentiator. It is on Struts 1.1 w/Tomcat4 and J2EE and talks about some good development designs using Struts; people have already signed up

Re: What is proper way to determine ActionForm type?

2001-10-23 Thread martin . cooper
You need to get the form bean data from the servlet, like this: ActionFormBean theFormBean = getServlet().findFormBean(formBeanName); -- Martin Cooper At 02:02 PM 10/23/01, Stephen Hood wrote: I am trying to write a generic Action class that I can use with any ActionForm to add an item to any

Re: What is proper way to determine ActionForm type?

2001-10-23 Thread Ted Husted
I'd consider using some type of polymorphism, where all of these ActionForms share a common ancestor, with a known method, like addItem(object), that would act as a wrapper. Each ActionForm could then override addItem to call whatever list is appropriate. ProductList extends ActionList

Creating your own ActionForm inside of an Action

2001-10-23 Thread Tony Li
Hi everyone, I have a situation in which I would like to do the following: 1) I'm at a jsp page, let's call it a.jsp. It has one link that looks like: html:link page=/mainMenu.do?action=customer Customer /html:link 2) My mainMenu action in struts-config.xml looks like