Re: Help required with struts for dynamic row addition in jsp

2005-11-16 Thread Nandakishore Nekkanti
hi I am new to struts.But i did one similar to ur requirement.Here is that i did that using logic:notEmpty and logic:iterate Take one bean and set all the properties(all the html controls) in that bean iterating through a loop as many times u can and store them in one ArrayList.Use this

Re: Help required with struts for dynamic row addition in jsp

2005-11-16 Thread Michael Jouravlev
This is an older simpler version: http://superinterface.com/rdapp/viewList.do And source code for it: http://superinterface.com/files/prgpattern.zip This is a newer version: http://www.superinterface.com/strutsdialog/crudactionlite.do Source code for it is in the main download for Struts Dialogs

Form Beans

2005-11-16 Thread Asad Habib
Hello. I am new to Struts and would like some advice. Is it better to use one form bean to capture data from several forms that are being submitted in succession or to use one form bean per form (i.e. multiple form beans)? What are the advantages or disadvantages of either approach? Also, I

Tag html:text

2005-11-16 Thread Thomas Colin de Verdière
Hello, I think the attribute onselect is missing on tag html:text. Struts 1.2.7 (and Struts 1.2.8) Is this an issue ? I put in the tld the new attribute and it works. Should i submit an issue ? Thomas de Verdière - To

RE: Form Beans

2005-11-16 Thread Ayusman dikshit
I think one form bean per form. Regards Ayusman -Original Message- From: Asad Habib [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 4:11 PM To: user@struts.apache.org Subject: Form Beans Hello. I am new to Struts and would like some advice. Is it better to use one form bean

Re: Form Beans

2005-11-16 Thread Ed Griebel
If you will be calling the forms in succession, like in a workflow or wizard (for example, if form #2 will never be displayed except after form #1), I would definitely put them in a single formbean and then make the actions all session scope. If you don't you will end up doing a lot of copying of

The dreaded Servlet action is not available

2005-11-16 Thread Graham Leggett
Hi all, I have been trying to set up a new Struts project from scratch, and having set up a basic action class, etc I fire off a browser at my URL, and I get the dreaded Servlet action is not available error. As this message by itself is meaningless, I have been trying to hunt down the

Re: The dreaded Servlet action is not available

2005-11-16 Thread erikweber
On some older versions of Struts you had to declare the load-on-startup for the ActionServlet, to make sure it was instantiated before any requests arrived. Not sure if that is the problem. Erik -Original Message- From: Graham Leggett [EMAIL PROTECTED] Sent: Nov 16, 2005 9:18 AM To:

Re: Is it Possible!

2005-11-16 Thread Martin Gainty
yes ..Also keep in mind that the convention in locale specific implementations is to use ApplicationResources_language_country.properties (where language is optional) and country is mandatory when there is more than one ApplicationResources_*.properties So In the US it would be

Re: The dreaded Servlet action is not available

2005-11-16 Thread erikweber
Sorry, looks like you *did* do that. I didn't see it. Erik -Original Message- From: [EMAIL PROTECTED] Sent: Nov 16, 2005 9:39 AM To: Struts Users Mailing List user@struts.apache.org Subject: Re: The dreaded Servlet action is not available On some older versions of Struts you had to

Re: The dreaded Servlet action is not available

2005-11-16 Thread Hubert Rabago
The times I came across this, it was related to an error in my struts-config.xml. Hubert On 11/16/05, Graham Leggett [EMAIL PROTECTED] wrote: Hi all, I have been trying to set up a new Struts project from scratch, and having set up a basic action class, etc I fire off a browser at my URL,

Re: The dreaded Servlet action is not available

2005-11-16 Thread Graham Leggett
Hubert Rabago wrote: The times I came across this, it was related to an error in my struts-config.xml. Same with me - and the last time I had problems with struts-config I managed to find the error by stepping through the struts source code with a debugger (having long since given up hope

No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread fea jabi
I am trying to use the DynaActionForm. form-bean name=CustForm type=org.apache.struts.action.DynaActionForm dynamic=true form-property name=custName type=java.lang.String/ form-property name=typeName type=java.lang.String/ form-property name=typeNameDesc

Re: The dreaded Servlet action is not available

2005-11-16 Thread Frank W. Zammetti
Here's a hint... Create the following two files in your webapp's classes folder with the following content: commons-logging.properties -- org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog simplelog.properties

disable a field

2005-11-16 Thread Kanuri, Chand
hi all, i am having a dropdown list in my jsp(in my struts webapp). on the selection of particular option in the dropdown ,a particular text field(of a property title) has to be disabled. how can i achieve this? any ideas? regards and thanks in advance This e-mail (and any attachments) may

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Ext . Ilitia2
Hi, I'm not sure, but I think you have several mistakes... First, You have put CustForm in the property name of the form, but in the property name of the action you have put SetupForm and in the class you have put CustForm again In the jsp you have put html:form

Re: AW: STRUTS PHP

2005-11-16 Thread Rahul Akolkar
On 11/16/05, Martin Kindler [EMAIL PROTECTED] wrote: I googled a bit for a taglib providing a tag to include any http-sources in my jsp-pages (as you know I want to include PHP-generated pages) and found the Jakarta IO-taglib (http://jakarta.apache.org/taglibs/doc/io-doc/intro.html). I have

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread fea jabi
I have right ones but still getting the same error. From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org CC: user@struts.apache.org Subject: Re: No getter method servlet Exception. using DynaActionForm Date:

Re: The dreaded Servlet action is not available

2005-11-16 Thread Graham Leggett
Frank W. Zammetti wrote: Here's a hint... Create the following two files in your webapp's classes folder with the following content: commons-logging.properties -- org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog simplelog.properties

Re: Tag html:text

2005-11-16 Thread Rahul Akolkar
On 11/16/05, Thomas Colin de Verdière [EMAIL PROTECTED] wrote: Hello, I think the attribute onselect is missing on tag html:text. Struts 1.2.7 (and Struts 1.2.8) Is this an issue ? I put in the tld the new attribute and it works. Should i submit an issue ? snip/ The Struts HTML taglib, in

Re: Is Struts supports indexed property like itemForSale[1].lineDetail[4].selected ... I searched but haven't found how?

2005-11-16 Thread Rahul Akolkar
On 11/16/05, David Gagnon [EMAIL PROTECTED] wrote: Hi all, Sorry for this question that I tought trivial . but I haven't found my answer in the list . .so I ask you. logic:iterate name=purchaseConsolidationItemForSaleForm property=itemForSale id=itemForSale indexId=ctr

[OT]AW: AW: STRUTS PHP

2005-11-16 Thread Martin Kindler
You are right: This is off-topic! For me the c:import seems to be exactly what I need. Thanks for the tip. Martin -Ursprüngliche Nachricht- Von: Rahul Akolkar [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. November 2005 16:31 An: Struts Users Mailing List Betreff: Re: AW:

Source code for struts v1.2.7 on ibiblio's maven repo

2005-11-16 Thread Graham Leggett
Hi all, To help debug my struts config, I downloaded the v1.2.7 source to go alongside the v1.2.7 struts file from the maven repository at http://www.ibiblio.org/maven/struts/jars/ to be used with breakpoints in a debugger. When a breakpoint is triggered, the source is offset in Eclipse -

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Rahul Akolkar
On 11/16/05, fea jabi [EMAIL PROTECTED] wrote: I have right ones but still getting the same error. snip/ DynaActionForm properties need to be accessed in JSPs via the internal Map. 36794 [1] is probably good related reading. -Rahul [1] http://issues.apache.org/bugzilla/show_bug.cgi?id=36794

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Dave Newton
fea jabi wrote: DynaActionForm setupForm = (DynaActionForm) form; ModuleConfig moduleConfig = RequestUtils.getModuleConfig(request, getServlet().getServletContext()); FormBeanConfig formConfig = moduleConfig.findFormBeanConfig(CustForm); DynaActionFormClass

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread fea jabi
DynaActionForm setupForm = (DynaActionForm) form; ModuleConfig moduleConfig = RequestUtils.getModuleConfig(request, getServlet().getServletContext()); FormBeanConfig formConfig = moduleConfig.findFormBeanConfig(CustForm); DynaActionFormClass dynaClass =

Re: Source code for struts v1.2.7 on ibiblio's maven repo

2005-11-16 Thread Graham Leggett
Graham Leggett wrote: Does anybody know what source tree was used to build the maven available build of struts v1.2.7? I spoke too soon - it's an Eclipse problem, it was picking up a copy of the source from a totally separate project, instead of the source it was told to use in the attach

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Dave Newton
fea jabi wrote: When I debug after DynaActionForm setupForm = (DynaActionForm) form; my setupForm is null Is your struts config as you posted earlier? i.e., the name attribute refers to a Dyna form that doesn't exist in the form-beans section? That won't work. ModuleConfig moduleConfig

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread fea jabi
Thanks for hepling me. here is the code form-bean name=SetupForm type=org.apache.struts.action.DynaActionForm dynamic=true form-property name=custName type=java.lang.String/ form-property name=typeName type=java.lang.String/ form-property name=typeNameDesc

A simple question about web design

2005-11-16 Thread Comain Chen
Hey, I am a new bie and the title maybe not approriate. My problem is : In a online-shopping site, we may have a tree of product categories, like: root book |electrical |

Re: Validator - how to check a checkbox - solution

2005-11-16 Thread Jeff Beal
On 11/15/05, Michael Jouravlev [EMAIL PROTECTED] wrote: But then you rely on the undocumented feature/gotcha in BeanUtils. What if the way the parameters are processed is changed in future versions? I think that this approach of setting false as default is useful not only for Validator usage,

Re: Form Beans

2005-11-16 Thread Michael Jouravlev
On 11/16/05, Asad Habib [EMAIL PROTECTED] wrote: Hello. I am new to Struts and would like some advice. Is it better to use one form bean to capture data from several forms that are being submitted in succession or to use one form bean per form (i.e. multiple form beans)? What are the

Re: Form Beans

2005-11-16 Thread Frank W. Zammetti
If you go with the original intent of the ActionForm (as I understand it), the canonical answer would be that one HTML form should always map to one ActionForm. Today, people have used ActionForms in all sorts of non-canonical ways, and have found that some are better than others. For

RE: returning user to the page they where on when they submitted the form?

2005-11-16 Thread Mick Knutson
My issue is that this action is called from many different pages. How do I accomplish that? -Original Message- From: Deepa Khetan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 7:38 PM To: Struts Users Mailing List Subject: Re: returning user to the page they where on when

Re: Form Beans

2005-11-16 Thread Asad Habib
Hello Michael. Thanks for your input. Doesn't this approach defeat the purpose of using Struts though? Simplicity is achieved but then the web app can no longer be considered a standard Struts app, can it? - Asad On Wed, 16 Nov 2005, Michael Jouravlev wrote: On 11/16/05, Asad Habib [EMAIL

Dynamically creating columns from a DynaBean-Example

2005-11-16 Thread starki78
Hi! Although there is currently no struts tag used I would be very grateful for some comments about it! Goal is to implement a table with dynamically created columns using the displaytag library and bean.utils! Has someone experience with this? The example works but how can you do it better?

Re: Form Beans

2005-11-16 Thread Michael Jouravlev
On 11/16/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: The one thing to keep in mind if you go [one ActionForm] route is to be sure you don't have a field on one page with the same name as another. I had one junior developer make that mistake and it drove him nuts trying to figure out what

struts mailreader logic-iterate

2005-11-16 Thread Patrick Wang
Hi, I am new to struts and played with the struts mail reader framework and could not resolve the following puzzling, In Registration.jsp there is an iteration statement. logic:iterate id=subscription name=user property=subscriptions I searched on web and did some of my

Re: Form Beans

2005-11-16 Thread Michael Jouravlev
Right, it is not standard Struts in terms of approach used. But it still is standard Struts because the library is just an add-on for Struts. It does not substitute any of Struts classes, it does not require you to use custom RequestProcessor, you don't have to use extended syntax in

Re: Form Beans

2005-11-16 Thread Hubert Rabago
Well, I'm not Michael, but... On 11/16/05, Asad Habib [EMAIL PROTECTED] wrote: Hello Michael. Thanks for your input. Doesn't this approach defeat the purpose of using Struts though? I don't believe so. We're trying to make Struts more flexible and more extensible, and as a result we hope that

ibiblio Question

2005-11-16 Thread Mike Darretta
Recently, someone referred to an ibiblio contact for adding the new commons-validator jar. Could you please reply with that contact info again? We are having problems with certain jars that seem to have been rolled back to prior versions on ibiblio. Thanks, Mike

Re: returning user to the page they where on when they submitted the form?

2005-11-16 Thread Alexandre Simon
An Action Class can be mapped more than one time, right ? Mick Knutson wrote: My issue is that this action is called from many different pages. How do I accomplish that? -Original Message- From: Deepa Khetan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 7:38 PM To:

Wizard page data corruption (was: Re: Form Beans)

2005-11-16 Thread Frank W. Zammetti
Imagine you have a single ActionForm with a firstName field. Now imagine you have two wizard pages that are used in sequence, and you want to use the same ActionForm for both. Assume the form is stored in session, as you would expect in a wizard. Now, imagine there is a firstName field on

Re: indexed properties and validation

2005-11-16 Thread Mario_Hernandez
No one?? [EMAIL PROTECTED] 11/15/2005 04:15 PM Please respond to Struts Users Mailing List user@struts.apache.org To user@struts.apache.org cc Subject indexed properties and validation I've got a form with an indexed propety contained in an array list, with values such as ssn. It has

RE: Wizard page data corruption (was: Re: Form Beans)

2005-11-16 Thread bsimonin
I hope I understand what you are asking. A couple of things come to mind about threads and Servlets. If one uses Instance variables in Servlets then each instance of that Servlet has a unique variable and there is no data corruption. However if one uses Class variables then each instance of

DTD files in lib of struts download

2005-11-16 Thread Garner, Shawn
I had a question about the .dtd files in the lib directory when I downloaded the struts 1.2.7. Do I need the .dtd files or are they optional? I never had any in my project before I don't think. Shawn This

Re: Wizard page data corruption

2005-11-16 Thread Frank W. Zammetti
No, I think you misunderstood :) Let's say we are designing a wizard flow with three pages, plus one confirmation page at the end. Each page has a single HTML form on it. The first page has this in the form: input type=text name=firstName The second page has this: input type=text

Re: Posting from 1JSP to 2Actions and 2Forms

2005-11-16 Thread Oleg
Hehe I see, but unfortunatelly its the only way I can see how to implement this kind of functionality. The only way to avoid chaining here would be to separate this one jsp page in two and have client input form in two different steps. Problem is that this is not what client wants :) so chaining

Re: DTD files in lib of struts download

2005-11-16 Thread Craig McClanahan
On 11/16/05, Garner, Shawn [EMAIL PROTECTED] wrote: I had a question about the .dtd files in the lib directory when I downloaded the struts 1.2.7. Do I need the .dtd files or are they optional? I never had any in my project before I don't think. You are not required to include the dtd

Re: DTD files in lib of struts download

2005-11-16 Thread Wendy Smoak
On 11/16/05, Garner, Shawn [EMAIL PROTECTED] wrote: I had a question about the .dtd files in the lib directory when I downloaded the struts 1.2.7. Do I need the .dtd files or are they optional? I never had any in my project before I don't think. They are just provided for convenience, you

RE: DTD files in lib of struts download

2005-11-16 Thread Garner, Shawn
Can't you just look inside the jar file at it then? Seems like it causes clutter and confusion. Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Wednesday, November 16, 2005 1:37 PM To: Struts Users Mailing List Subject: Re:

Re: Struts ModuleConfig when forwarding between modules

2005-11-16 Thread Adam Hardy
Brian Sayatovic/AMIG on 14/11/05 23:48, wrote: I ran into an instance where an Action in module A is forwarding to a page that is designed for module B. However, the resources that the page sees are the resources from module A. I'm using Struts 1.1. I've goine through the source quite a bit.

Tiles/Action design question

2005-11-16 Thread Keith Sader
I've got a form that will be included in one of three pages. Essentially this form captures the same data at different levels in an inventory of rolling stock. The grouping is as follows: 1.) Inventory Defaults - applies to all inventory 2.) Fleet level defaults - applies to a group of

Re: Wizard page data corruption

2005-11-16 Thread Frank W. Zammetti
Michael Jouravlev wrote: Then you display page 2, it loads firstName from ActionForm and displays it. If you change the name and submit page 2, it stores changed name back in ActionForm. If you go back to page 1 and the page is not cached, it will be reloaded from server with updated firstName.

RE: Wizard page data corruption

2005-11-16 Thread bsimonin
Yes now it makes sense and the Wizard is working as it should or at least as it should if you are using LookupDispatchAction (which to me is an elegant wizard solution). I agree with Michael Jouravlev the wizard is working as designed. I guess you *could* put the first name on the second

RE: Is it Possible!

2005-11-16 Thread Garner, Shawn
I use the ServletContext when the Servlet loads to get files relatively like this: context.getResourceAsStream(/WEB-INF/MyPersonalXMLFile.xml) Shawn -Original Message- From: Shailesh Barde [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 10:21 PM To: user@struts.apache.org

RE: Ignorant multibox question.

2005-11-16 Thread bsimonin
Actually I got it to work elegantly with the following code: c:forEach items=${myForm.groups} var=groups trtd html-el:multibox property=chosenGroups value=${groups}/ c:out value=${groups}/ br/ /td/tr /c:forEach But thanks for the link

Re: A simple question about web design

2005-11-16 Thread Marcio Ghiraldelli
Look for Prizetags Tree Taglib. It was the most elegant way I found to do it... an MVC web tree implementation. - Original Message - From: Comain Chen [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, November 16, 2005 1:27 PM Subject: A simple question about web design

Re: Wizard page data corruption

2005-11-16 Thread Frank W. Zammetti
[EMAIL PROTECTED] wrote: But the point of the wizard is to share data between the pages. In a sense that's true, but I think the larger point of a wizard is to collect a batch of information by breaking it up into smaller chunks and allowing the user to deal with the smaller chunks rather

Re: Struts ModuleConfig when forwarding between modules

2005-11-16 Thread Brian Sayatovic/AMIG
One thing I'm not using, but if I did, I'd be worried about, is resources. Form what I can tell, the message resources for a module are set into a request attribute by the RequestUtil.selectModule() method. But this is only done in an action servlet. So, if I've intended a JSP to rely on

Fwd: Re: Struts ModuleConfig when forwarding between modules

2005-11-16 Thread Brian Holzer
**DISCLAIMER** This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this

Fwd: Re: Struts ModuleConfig when forwarding between modules

2005-11-16 Thread Brian Holzer
**DISCLAIMER** This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this

Message Resources from DB

2005-11-16 Thread Brian Russell
I know this topic has come up before but.. Does anyone have a suggestion on a method for pulling Message Resources from a DB, as well as making sure a restart of the app isn't required when the message key/value is updated in the db? Is there a recommended, working, solution out there (i.e. OJB

Re: Message Resources from DB

2005-11-16 Thread James Mitchell
What database would you like to use? -- James Mitchell 678.910.8017 Skpe: jmitchtx On Nov 16, 2005, at 3:41 PM, Brian Russell wrote: I know this topic has come up before but.. Does anyone have a suggestion on a method for pulling Message Resources from a DB, as well as making sure a

Re: Struts ModuleConfig when forwarding between modules

2005-11-16 Thread Adam Hardy
As Brian Holzer said in his reply (did you see it? It wasn't threaded), the message resources can be managed well with taglibs and declarations in the web.xml if you are using jstl. I won't ask why you have to do what you're doing. Sounds like a nightmare :( Adam Brian Sayatovic/AMIG on

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Laurie Harper
At least part of your problem is the way you're trying to setup the action form. Struts will create an instance of the form bean for you, which is what is passed into execute() via the 'form' parameter. You're referencing that in the first line of your execute() method. However, you then go

Re: Fwd: Re: Struts ModuleConfig when forwarding between modules

2005-11-16 Thread Adam Hardy
No problem - I did see your message but after I sent my reply. Initially I thought no-one had replied to Brian's OP. Unfortunately your posts are not threading with the other posts on the topic - I think you need to set your email software to include some header or other - References:

RE: Message Resources from DB

2005-11-16 Thread Brian Russell
Ah.. the man himself! I'm using MySql. I set up my database with the tables from the scripts in the /sql directory. And of course did the rest of the steps (i.e. updating struts-config, placing xml files in /WEB-INF/classes dir, etc.) Thanks! Brian Russell www.closerware.com -Original

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread fea jabi
thanks for your response. Understood better now. I am not sure why but the setupForm is null in the Action when debugged thru the code. DynaActionForm setupForm = (DynaActionForm) form; System.out.println(In PrepareSetupAction : setupform is : + setupForm); Any idea of why it's so? Is

RE: Message Resources from DB

2005-11-16 Thread Mick Knutson
Can you send me the solution to that? I don't have that book, I have an older version without that solution. -Original Message- From: Brian Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 12:58 PM To: 'Struts Users Mailing List' Subject: RE: Message Resources from DB

RE: Message Resources from DB

2005-11-16 Thread Brian Russell
I got James's solution from: http://sourceforge.net/project/showfiles.php?group_id=49385package_id=7 6369 I also found another solution at: http://sourceforge.net/project/showfiles.php?group_id=49385package_id=1 49742 And I know the team is working on a solution to be included in

Re: returning user to the page they where on when they submitted the form?

2005-11-16 Thread Laurie Harper
The answer is, there is no simple answer... assuming I understand what you want to do, that is. I think what you're saying is you have a tile which contains a form and which you include on multiple logical pages, and that when the form contained in the tile is submitted you want to return to

Re: Tag html:text

2005-11-16 Thread Niall Pemberton
I agree, the BaseHandlerTag has all the code required for onselect, but none of the tags define it as an attribute in the TLD. As it is part of the HTML 4 spec, it looks like an oversight to me. Please file a bug report for this. http://issues.apache.org/bugzilla/ thanks. Niall - Original

migrating a Struts application

2005-11-16 Thread Chad Armstrong
Hello, I'm pretty new to Struts but just inherited a project from a prior developer and am getting up to speed. Currently, I can run my project as a JBuilder project, and under the covers, JBuilder runs Tomcat for me and everything just works. However, now I want to run it without JBuilder,

Re: Is Struts supports indexed property like itemForSale[1].lineDetail[4].selected ... I searched but haven't found how?

2005-11-16 Thread Niall Pemberton
As Rahul points out the nested taglib should do what you want. Validator doesn't support two levels like this - one option would be to use the extends validator I wrote: http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html#twolevels Niall - Original Message - From: David

Re: Tag html:text

2005-11-16 Thread Rahul Akolkar
On 11/16/05, Niall Pemberton [EMAIL PROTECTED] wrote: I agree, the BaseHandlerTag has all the code required for onselect, but none of the tags define it as an attribute in the TLD. As it is part of the HTML 4 spec, it looks like an oversight to me. Please file a bug report for this. snip/

Re: Tag html:text

2005-11-16 Thread Niall Pemberton
Ha! thanks, that missed my radar. Niall - Original Message - From: Rahul Akolkar [EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 9:28 PM On 11/16/05, Niall Pemberton [EMAIL PROTECTED] wrote: I agree, the BaseHandlerTag has all the code required for onselect, but none of the

Re: html:rewrite with params

2005-11-16 Thread Laurie Harper
You don't need to save the parameter, you can just append it to the URL you forward to at the end of your SwitchLanguage action, assuming you know it should be there. RedirectAction in Struts 1.2.7 and up gives you a relatively easy way to add parameters to a forward mapping before you return

Re: Can't get definitions factory from context

2005-11-16 Thread Laurie Harper
Hmm, I'm not sure how just adding validation rules for the form prevents the JSP from rendering, since you don't have client-side validation enabled. Are you sure there are no other errors generated, either when you request your login.jsp or during server startup? Do you have any

Re: Validator framework hijacks requests! :(

2005-11-16 Thread Laurie Harper
Raghu Kanchustambham wrote: Thanks Laurie. It works with the way you suggested. But it makes a lot of things clumsy.. 1. I need to have different action class mappings potentially for each of the CRUD operations... though all of them use the same dispatch action class. Well, only for each

Re: html:rewrite with params

2005-11-16 Thread Frank W. Zammetti
I just wanted to point out the 3rd question on this page: http://husted.com/struts/FAQ/view-i18n.htm Laurie, your a committer now... this seems to me like a good inclusions for the Actions package. Any thoughts from anyone? Frank Laurie Harper wrote: You don't need to save the parameter,

Re: How to disable a particular selected checkbox in html:multibox

2005-11-16 Thread Laurie Harper
sma3har wrote: How can I disable a particular checkbox based on a value in the selected items. Here is my code. There are two arraylist of disease and names. logic:iterate id=disease name=AddressForm property=diseases logic:iterate id=name name=AddressForm property=names bean:write

Re: disable a field

2005-11-16 Thread Laurie Harper
Kanuri, Chand wrote: hi all, i am having a dropdown list in my jsp(in my struts webapp). on the selection of particular option in the dropdown ,a particular text field(of a property title) has to be disabled. how can i achieve this? any ideas? Are you looking for a Javascript solution to

TagSupport.id vs. Struts' styleId

2005-11-16 Thread Brian Sayatovic/AMIG
What is the id attribute in TagSupport for. Some have guessed its for the HTML ID attribute, but nothign in TagSupport renders it. IN fact, when Struts' own taglib needs to set the HTML ID attribute, the styleId attribute of the tag is set instead. Why not use the inherited id attribute

Re: Tiles/Action design question

2005-11-16 Thread Laurie Harper
Keith Sader wrote: I've got a form that will be included in one of three pages. Essentially this form captures the same data at different levels in an inventory of rolling stock. The grouping is as follows: 1.) Inventory Defaults - applies to all inventory 2.) Fleet level defaults - applies

Re: TagSupport.id vs. Struts' styleId

2005-11-16 Thread Craig McClanahan
On 11/16/05, Brian Sayatovic/AMIG [EMAIL PROTECTED] wrote: What is the id attribute in TagSupport for. Some have guessed its for the HTML ID attribute, but nothign in TagSupport renders it. IN fact, when Struts' own taglib needs to set the HTML ID attribute, the styleId attribute of the tag

Re: Tiles/Action design question

2005-11-16 Thread Greg Reddin
On Nov 16, 2005, at 4:31 PM, Laurie Harper wrote: I'm not sure exactly what you meant by 'polymorphism off of a submit' so this might be completely off-base but... Passing the action into the tile definition may be one option, depending on how your tiles and actions are set up. Another

Re: Message Resources from DB

2005-11-16 Thread James Mitchell
No, you are not wrong. Struts will likely be changed to use Commons Resources after a 1.3.x goes GA. Of course, Commons Resources needs to go GA itself soon. I have already written several Database implementations for Commons Resources (Hibernate, iBatis, JDBC-only). However, some of

RE: Message Resources from DB

2005-11-16 Thread Brian Russell
I am using straight jdbc. I downloaded the latest from cvs for commons-resource, and built the jar.. but have yet to fool around with it. I had emailed Bill Siggelkow and he let me know about the Commons Resources, and although he wasn't sure of its status he did give me this advice: The only

Re: DTD files in lib of struts download

2005-11-16 Thread Laurie Harper
If you happen to know to look inside the jar file you can ;-) Your IDE or XML editting tool of choice might not be able to, though. As Wendy said, they're provided unpackaged for convenience. L. Garner, Shawn wrote: Can't you just look inside the jar file at it then? Seems like it causes

Re: Tiles/Action design question

2005-11-16 Thread Laurie Harper
Greg Reddin wrote: On Nov 16, 2005, at 4:31 PM, Laurie Harper wrote: I'm not sure exactly what you meant by 'polymorphism off of a submit' so this might be completely off-base but... Passing the action into the tile definition may be one option, depending on how your tiles and actions are

Re: Tiles/Action design question

2005-11-16 Thread Keith Sader
On 11/16/05, Laurie Harper [EMAIL PROTECTED] wrote: Keith Sader wrote: I'm not sure exactly what you meant by 'polymorphism off of a submit' so this might be completely off-base but... Passing the action into the tile definition may be one option, depending on how your tiles and actions are

Validation without using a DynaValidatorForm

2005-11-16 Thread Jesus Salvo Jr.
Hi, Struts 1.2.7 I have existing ActionForm and Action classes, whereby validation is done via the validate() method in the ActionForm bean. These are just basic validations. What I want to do is get rid of the validate() method and make use of the validation framework ( e.g. validation.xml

Re: Validation without using a DynaValidatorForm

2005-11-16 Thread Wendy Smoak
On 11/16/05, Jesus Salvo Jr. [EMAIL PROTECTED] wrote: Struts 1.2.7 What I am confused about is that validation via the validation.xml seems only to work ( or so I believe after reading various documentations and samples ) if one uses DynaValidatorForm instead of an ActionForm. I haven't

Re: Validation without using a DynaValidatorForm

2005-11-16 Thread Jesus Salvo Jr.
On Thursday 17 November 2005 13:24, Wendy Smoak wrote: On 11/16/05, Jesus Salvo Jr. [EMAIL PROTECTED] wrote: Struts 1.2.7 What I am confused about is that validation via the validation.xml seems only to work ( or so I believe after reading various documentations and samples ) if one

RE: [OT]AW: AW: STRUTS PHP

2005-11-16 Thread Jim Douglas
Thanks for the reply, if I get it working the weekend I post how I did it. Jim From: Martin Kindler [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Subject: [OT]AW: AW: STRUTS PHP Date: Wed, 16 Nov 2005 16:44:56 +0100 You are right: This

Re: [shale] why shale?

2005-11-16 Thread Craig McClanahan
On 11/16/05, pc leung [EMAIL PROTECTED] wrote: After downloading MyFaces, I can write a little webapp already. In the shale home page. it lists out a number of features. Together with MyFaces, does shale implement more features than sun jsf? Well, yes ... but so would adding Shale to the

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Laurie Harper
What you have below looks right to me; the action mapping has 'name' set to your action form, so you should be getting an instance of it in the action. Double check you haven't gotten your config out of sync along the way. L. fea jabi wrote: thanks for your response. Understood better now.

Using Dates in a ActionForm

2005-11-16 Thread Jesus Salvo Jr.
Struts 1.2.7 How do u use a ActionForm formbean with a java.util.Date as a property ? The form bean is defined as follows in struts-config.xml: form-bean name=campaignForm type=com.mig.provisioning.CampaignForm/ .. and the actual bean has the following methods: public void

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Yujun Liang
Did you place your form-bean inside form-beans? form-beans form-bean name=CustForm type=org.apache.struts.action .DynaActionForm dynamic=true form-property name=custName type=java.lang.String/ form-property name=typeName type=java.lang.String/ form-property name=typeNameDesc

  1   2   >