RE: Searching the mailing list

2003-07-17 Thread Sri Sankaran
Try using http://marc.theaimsgroup.com/?l=struts-user instead. Sri -Original Message- From: Gregory F. March [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 9:42 AM To: Struts Users Mailing List Subject: Searching the mailing list Hi. It seems that searching using this link

RE: 2 iterators on one page problem

2003-07-15 Thread Sri Sankaran
Download the jar http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar and add it to your classpath. See if that does the trick. This jar patches some bugs with the nested classes included with Struts. Sri -Original Message- From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED]

RE: retention of the ActionForm values for display only fields

2003-07-11 Thread Sri Sankaran
Since the name fields are non-form fields they are not submitted and hence are not part of the request. Therefore, when validation fails, there is nothing to send back to the browser. Sri -Original Message- From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED] Sent: Friday, July 11,

RE: retention of the ActionForm values for display only fields

2003-07-11 Thread Sri Sankaran
If you really want to stay with request scope, a (hacky) way around it would be to have the names as hidden form fields as well. Sri -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 10:49 AM To: Struts Users Mailing List Subject: RE: retention

RE: need help with nested:iterate tag -- NullPointerException

2003-07-11 Thread Sri Sankaran
This subject is addressed by Arron in an earlier message (http://marc.theaimsgroup.com/?l=struts-userm=103848775020380w=2). Sri -Original Message- From: Wes Rood [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 12:15 PM To: [EMAIL PROTECTED] Subject: need help with nested:iterate

RE: [FRIDAY] Burnt Ashes

2003-07-10 Thread Sri Sankaran
Funny story but a hoax. See http://www.snopes.com/crime/clever/cigarson.asp. Sri -Original Message- From: Joel Wickard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 9:23 PM To: Struts Users Mailing List Subject: Re: [FRIDAY] Burnt Ashes This is a true story and was the 1st

RE: NestedIterateTag won't let go of collection

2003-07-09 Thread Sri Sankaran
Disabled pooling. No cigar :( Sri -Original Message- From: Edgar Dollin [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 7:06 AM To: Sri Sankaran; '[EMAIL PROTECTED]' Subject: RE: NestedIterateTag won't let go of collection There is a known bug if the collection is passed

RE: NestedIterateTag won't let go of collection

2003-07-09 Thread Sri Sankaran
Got disabling of tag pooling to work. I had to force a re-compilation of the JSPs. Sri -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 10:55 AM To: Edgar Dollin; [EMAIL PROTECTED] Subject: RE: NestedIterateTag won't let go of collection

NestedIterateTag won't let go of collection

2003-07-08 Thread Sri Sankaran
Using: Struts 1.1 Servlet Container: Tomcat 4.1.24 In the process of studying the memory footprint of my application, I found that certain objects were not getting garbage collected even though there were no apparent references. The biggest culprit was a rather large collection that was being

RE: Using Nested Extension

2003-04-03 Thread Sri Sankaran
I have used it extensively with no problems. Simply get the necessary nested_tags_10.jar from http://www.keyboardmonkey.com/next/index.jsp, add it to your application's classpath and you are good to go. Sri -Original Message- From: Ritesh Singhal [mailto:[EMAIL PROTECTED] Sent:

RE: checkbox

2003-04-03 Thread Sri Sankaran
All this is fine and dandy but isn't form-submission typically a POST operation? If you use html:form the default is POST. Sri -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 6:34 AM To: Struts Users Mailing List Subject: RE: checkbox

RE: [OT] Re: A bean:define question

2003-04-02 Thread Sri Sankaran
snip/ I've always been confused by people who ask things like, Does IDE X support JSP debugging?. Well, if you need to debug your JSP, you've got way too much logic in there and no IDE will save you. Not necessarily. JSP debugging is definitely handy when you are working with a

RE: [OT] Re: A bean:define question

2003-04-02 Thread Sri Sankaran
-Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 9:09 AM To: Struts Users Mailing List Subject: Re: [OT] Re: A bean:define question Sri Sankaran írta: JSP debugging is definitely handy when you are working with a not-yet

RE: web.xml DTD for Servlet 2.3 Struts 1.1

2003-04-02 Thread Sri Sankaran
http://java.sun.com/dtd/ -Original Message- From: Wei, Robert (MAN-Corporate) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 4:35 PM To: 'Struts Users Mailing List' Subject: web.xml DTD for Servlet 2.3 Struts 1.1 I am using struts 1.1 and need to config filters for my web

RE: How to do ORing using struts:logic Tag

2003-04-01 Thread Sri Sankaran
Your two options are: Option 1: logic:equal name=user_role value=guest %-- do something --% /logic:equal logic:equal name=user_role value=temp %-- do same thing --% /logic:equal Option 2: Write a method in your form bean that returns true iff the value of user_role is guest

RE: [OT] Taglib reference and IntelliJ

2003-03-28 Thread Sri Sankaran
I have had that happen to me in the past. After verifying that the TLDs are indeed at c:\jakarta-tomcat-4.0.4\webapps\test\WEB-INF\tlds, I suggest re-starting IDEA. I think that's what fixed it for me. Sri -Original Message- From: Steve [mailto:[EMAIL PROTECTED] Sent: Friday, March

RE: [OT] Taglib reference and IntelliJ

2003-03-28 Thread Sri Sankaran
seems so straightforward I figured I was missing something obvious. Any other suggestions? Steve -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 1:32 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [OT] Taglib reference

RE: reset method not being called for DynaValidatorForm

2003-03-26 Thread Sri Sankaran
So I guess you have extended the DynaValidatorForm. Let me ask the obvious question: is your type attribute of this form-bean element the fully qualified name of this class? 'Cause if you don't Struts will invoke DynaValidatorForm's reset functionality. Sri -Original Message- From:

RE: How to get the label[] and the value[] both from a select box?

2003-03-26 Thread Sri Sankaran
Instead of two String[]s build a form-bean with a collection of LabelValueBeans (http://jakarta.apache.org/struts/api/org/apache/struts/util/LabelValueBean.html). You can find sample implementations in html-select.jsp which is in the struts-exercise-taglib application that ships with Struts.

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

2003-03-26 Thread Sri Sankaran
=comboValues/ /html:select Obviously have appropriate get/setters for promptValues. In my action, I set promptValues to those that Strings I want selected, but nothing happens when the page is loaded. This *should* work, right? Cheers, David Sri Sankaran [EMAIL PROTECTED

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

2003-03-26 Thread Sri Sankaran
List Subject: RE: pre-selected values in multi-select box not working? Hi, Yep, got getPromptValues(), and yep, I call action to populate form before forwarding on success to page. Cheers, David Sri Sankaran [EMAIL PROTECTED] on 03/26/2003 12:53:15 PM Please respond to Struts Users

RE: question about ActionForm parameter of Action.execute() metho d

2003-03-26 Thread Sri Sankaran
Yes Sri -Original Message- From: Kevin HaleBoyes [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 1:31 PM To: Struts Users Mailing List Subject: RE: question about ActionForm parameter of Action.execute() metho d --- Wendy Smoak [EMAIL PROTECTED] wrote: Kevin wrote: Can

[TILES] Passing attributes to tiles

2003-03-25 Thread Sri Sankaran
Using Struts 1.1b3 Consider a simple page layout comprised of two tiles, a body and a (wizard-like) navigation bar. I would like to conditionally disable certain navigational buttons on some pages. I am trying to use the tiles:put and tiles:useAttribute to no avail. Here's a sample tile

RE: struts: JSP expression not evaluated

2003-03-25 Thread Sri Sankaran
snip/ !-- the link won't read blah.do?arg=1 -- html:link href=blah.do?arg=%=var% Link /html:link /body /html The href attribute must either *entirely* be a run time expression (%=..%) or *entirely* a literal.

RE: [TILES] Passing attributes to tiles

2003-03-25 Thread Sri Sankaran
Answering my own question. In tile-1.jsp when I define an attribute (tiles:useAttribute) with request scope, I can reference it any of the contained tiles just like any other Java bean. Sri -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 1

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

2003-03-25 Thread Sri Sankaran
[] 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 Mailing List [EMAIL PROTECTED] cc: Subject:RE: pre-selected values in multi

RE: Declaration of the Struts tag librairies

2003-03-24 Thread Sri Sankaran
Looking at the documentation for the web.xml, it reads: taglib-uri: The taglib-uri element describes a URI, relative to the location of the web.xml document, identifying a Tag Library used in the Web Application. taglib-location: the taglib-location element contains the location (as a

RE: Form not populating from post to struts.

2003-03-24 Thread Sri Sankaran
So, what *are* you seeing? That * the action is called without the form being populated? * is the form being *created*? * form-bean isn't created and action isn't called? * ... Sri -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:18 AM

RE: One tag in other tag's attribute's value

2003-03-24 Thread Sri Sankaran
Try bean:define id=foo name=row property=id/ html:link action=%=/Delete.do?id=+foo%Delete /html:link Sri -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:45 AM To: Struts Users List Subject: One tag in other tag's attribute's value

RE: [OT] Estimating a Struts-based project

2003-03-24 Thread Sri Sankaran
W-H-A-A-T? I can't hear you. Can you speak up?! -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 12:39 PM To: Struts Users Mailing List Subject: RE: [OT] Estimating a Struts-based project I usually triple them, but there's the damage

RE: Where to place lookup val logic when not using an Action Form?

2003-03-24 Thread Sri Sankaran
All the information needed for the JSP must be available in the collection of user objects. So, the action -- that invokes the call to the database -- is also responsible for setting the stage as needed by the JSP by get the role names for all the role ids. Sri -Original Message-

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

2003-03-24 Thread Sri Sankaran
Need more information. Please post relevant portions of your form-bean and JSP. Have you taken a look at the html-select.jsp in the struts-exercise-taglib application that ships with Struts? Sri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March

RE: Problem in invoking Action Class

2003-03-23 Thread Sri Sankaran
Is your input attribute value (/OrderMediaMain.jsp) refer to the same location as you are trying to submit? Look at the Root Cause portion of your stack trace; it reads: Can't find bundle for base name etc.ebusiness, locale en_US Does etc.business mean anything to you? Sri -Original

RE: Question : Turning off logging for Struts in Tomcat

2003-03-20 Thread Sri Sankaran
Setting log4j.logger.org=warn in my log4j.properties does it for me. Of course, as you know, this silences all logs from any org.* packages. You can get more fine-grained control if you have some org.* packages in which you *are* interested. Sri -Original Message- From: Henry Voyer

RE: bean:write question

2003-03-19 Thread Sri Sankaran
That can be elegantly handled with JSTL as c:out value=${user.address.city} default=help!/ Sri -Original Message- From: teknokrat [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 10:35 AM To: [EMAIL PROTECTED] Subject: Re: bean:write question [EMAIL PROTECTED] wrote: hello

RE: Beginner question

2003-03-19 Thread Sri Sankaran
I would shy away from chaining actions. When the user submits a request to add a new item, the action that handles this request should (a) call the necessary business layer methods that in turn update the database (b) load object(s) needed by the next view (JSP) in the request or

RE: Using different actionform types before and after a display page.

2003-03-19 Thread Sri Sankaran
What do you mean by does not seem to work? Do you get null values? NPE? Is your ActionFormA still in scope (available) in SetupActionB? In other words, can you get a non-null value for either of request.getAttribute(ActionFormA.key); or session.getAttribute(ActionFormA.key); Sri

RE: struts tools, generators or dev aids for IntelliJ

2003-03-19 Thread Sri Sankaran
Struts console www.jamesholmes.com/struts -Original Message- From: Butt, Dudley [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 12:37 PM To: '[EMAIL PROTECTED]' Subject: struts tools, generators or dev aids for IntelliJ Hi, Was just wondering if anyone out there knows of any

RE: [Q] why bean:write can't be used without NAME as html:text can?

2003-03-19 Thread Sri Sankaran
Probably because unlike html:text, bean:write doesn't *have* to inside a form and so a bean isn't guaranteed? Sri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 1:58 PM To: [EMAIL PROTECTED] Subject: [Q] why bean:write can't be used

RE: Are action forms reused?

2003-03-18 Thread Sri Sankaran
I am using struts 1.1. What I would like to know is whether a new form bean is created in the following situation: An action sets a form bean as an attribute and passes it for display to the appropriate jsp page and its contents displayed. This form is updated and submitted to a

RE: Nested tags and recursion (Arron tree example)

2003-03-17 Thread Sri Sankaran
I was trying to visualize/interact with a tree structure using Struts, and looking through the archives I found references to using Nested tags, which at that moment were an extension provided by Arron Bates (http://www.keyboardmonkey.com). As I believe, since Struts 1.1, Nested Tags

[OT] Using the NDC while logging

2003-03-17 Thread Sri Sankaran
I would welcome your opinion on the proper use of the Nested Diagnostic Context (NDC) when logging using log4j. As you know in a multi-threaded servlet environment, the NDC provides valuable contextual information to help make sense of otherwise hopelessly interleaved messages in the log

RE: How to create table in struts?

2003-03-14 Thread Sri Sankaran
While Struts provides a tag library, formatting of data is left to the user. It is up to you to present the data in a tabular format. That being said, the display tag library may come of help. You can find it at http://edhill.its.uiowa.edu/display-0.8/. Some folks on this list have

RE: Issues with unsubscribing

2003-03-13 Thread Sri Sankaran
snip/ I have filters for most to reduce the pain. I dread the day that I go on a week-long vacation ;-) Why not set up filters that'll just delete the messages? Matt Sri - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: Nested Radio Buttons + Mutual Exclusion

2003-03-13 Thread Sri Sankaran
Does anybody know how to use the nested:radio button component so That you can have mutually exclusive sets of radio buttons? I think you are referring to radio button groups when you mutually exclusive sets. Going on that premise, radio buttons with the same name are grouped by the

RE: html:messages/ not displaying messages

2003-03-13 Thread Sri Sankaran
snip/ html:messages id=msg property=messages message=true c:out value=${msg}/ /html:messages Can you do that? Don't you have to use html-el:messages if you want to use c:out? Have you tried html:messages id=msg property=messages message=true bean:write name=msg/ /html:messages

RE: Where to find more about Struts JSF - Server Faces?

2003-03-12 Thread Sri Sankaran
Have you tried http://java.sun.com/j2ee/javaserverfaces/? Sri -Original Message- From: niksa_os [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:16 AM To: Struts Users Mailing List Subject: Where to find more about Struts JSF - Server Faces? Can I use it in real development

RE: servlet reference in form bean in null?

2003-03-12 Thread Sri Sankaran
I think he means the getServlet() method of ActionForm. Sri -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:26 PM To: 'Struts Users Mailing List' Subject: RE: servlet reference in form bean in null? Might have if you posted the code

RE: Web sites using struts

2003-03-10 Thread Sri Sankaran
Check out http://marc.theaimsgroup.com/?l=struts-userm=104627418203266w=2. Sri -Original Message- From: Damm, Gary [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:35 PM To: [EMAIL PROTECTED] Subject: Web sites using struts I know this has been asked before but I'm getting

RE: basic question

2003-03-08 Thread Sri Sankaran
1)The question I have is where will the JSP's reside. will they be deployed on the web-server or the application server. JavaServer Pages (JSPs) help build the HTML that will be rendered on the client (browser). Since one person's application server is not in another's lexicon, let me

RE: nested:checkbox fail to set the property to false

2003-03-08 Thread Sri Sankaran
-Original Message- From: Joao Araujo [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:33 PM To: [EMAIL PROTECTED] Subject: nested:checkbox fail to set the property to false Hi, I am using nested:checkbox for a boolean property. Unfortunately, struts

RE: [Repost] Cannot Cast to Map

2003-03-07 Thread Sri Sankaran
Jerry: If the only thing that's changed is the version of Struts you are using, we can safely (?) assume that there is no need to dig through the JSP. We can take a few gumshoe steps. One at a time: * Use 1.1rc1 but remove the nested classes from the jar and place the (extracted) nested

RE: [Repost] Cannot Cast to Map

2003-03-07 Thread Sri Sankaran
The first test below ...place the (extracted) nested classes from 1.1b3 in your WEB-INF/lib... should read ...place the (extracted) nested classes from 1.1b3 in your WEB-INF/classes... Sri -Original Message- From: Sri Sankaran Sent: Friday, March 07, 2003 10:24 AM

RE: error in action

2003-03-07 Thread Sri Sankaran
Are you saying that you have a problem with: public execute(...) { . . return mapping.getInputForward(); } Sri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 8:16 AM To: Struts Users Mailing List Subject: error in action Hi, if

RE: Search result page with logic:iterate

2003-03-07 Thread Sri Sankaran
Look at the display tag library at http://edhill.its.uiowa.edu/display-0.8/. Some folks on this list have continued work on it; you can find developments at http://sourceforge.net/projects/displaytag. I'm sure this should help with your pagination needs. Sri -Original Message- From:

RE: crazy error

2003-03-07 Thread Sri Sankaran
Remove the 'name' and 'type' attribute out of your html:form. Why? * They are deprecated (in Struts 1.1) * If the name doesn't exactly match what you have in your config, it'll result in a new instance of the bean * You don't need it -- you action mapping definition for the

RE: [OT] How to make a method deprecated

2003-03-06 Thread Sri Sankaran
Use the @deprecated Javadoc tag. Sri -Original Message- From: Chiming Huang [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 11:27 AM To: [EMAIL PROTECTED] Subject: [OT] How to make a method deprecated Hi, In java, I would like to make a method deprecated. So that javac

RE: html:multibox and bean:write

2003-02-28 Thread Sri Sankaran
You cannot emded a tag inside another tag. You can achieve what you are trying as follows value=%=styleData.getKey()% Sri -Original Message- From: shashi_struts [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 7:23 AM To: Struts Users Mailing List Subject: html:multibox

RE: one more prepopulate question

2003-02-28 Thread Sri Sankaran
Here's what you are trying to do index.jsp - redirects to index.do - needs to build a bunch'o forms - forwards to home.jsp Am I understanding you correctly? The action corresponding to the path index can create any number of form-beans and persist them in any scope before

RE: action form error messages

2003-02-28 Thread Sri Sankaran
There are a few possibilities * your bean (form-bean or other) does not have a property called seriesnumber. Case is very important. Struts is looking for a method named getSeriesnumber(). Make sure you have such a method and that it is public * the tag that is causing this error isn't

RE: [update] nested tags...

2003-02-28 Thread Sri Sankaran
Arron: Can you please re-build the jar? Tomcat 4.1.18 throws a java.util.zip.ZipException: invalid END header (bad central directory offset) Error. Methinks, well I'll just unzip it and put it in WEB-INF/classes; unfortunately, Winzip too has problems with it. not.lazy I don't want to

RE: one more prepopulate question

2003-02-28 Thread Sri Sankaran
action path=/setupMultipleForms type=foo.bar.SetUpFormsAction name=form1 scope=request validate=false forward name=continue path=/severalFormsOnAPage.jsp/ /action So now in the SetUpFormsAction you can

RE: html:form WITHIN a logic:iterate tag

2003-02-27 Thread Sri Sankaran
Couple of things to note: * The attribute value for a tag must either be *entirely* a literal or *entirely* a JSP expression. In other words you can't have foo=bar%=baz.getXYZ()% * The name attribute of an html:form is deprecated in Struts 1.1 I would recommend simply using your hidden

RE: html:form WITHIN a logic:iterate tag

2003-02-27 Thread Sri Sankaran
Another option is to provide a radio button for each row and then only one Edit and one Delete button is required. Sri -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 9:40 AM To: Struts Users Mailing List Subject: Re: html:form WITHIN a

RE: Session Problems

2003-02-27 Thread Sri Sankaran
Can you summarize the form bean you are using for the first page? What are its properties? How is the Collection maintained? How is the bean being created? Sri -Original Message- From: JONATHAN PHILIP HOLLOWAY [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 12:01 PM To:

RE: multi page forms and action mappings

2003-02-27 Thread Sri Sankaran
Can you define an action mapping each for the various steps each of which (possibly) uses the same Action class. This will allow you to specify distinct input attributes. Sri -Original Message- From: Ryan Kennedy [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 2:09 PM

RE: Session Problems

2003-02-27 Thread Sri Sankaran
); //Now the address has been added return to the add person page return (mapping.findForward(addPerson)); } The address is added but the next time I try to add an address to old one Is overwritten.. Jon. -Original Message- From: Sri Sankaran [mailto:[EMAIL

RE: populating textbox with bean property

2003-02-26 Thread Sri Sankaran
Just like you did with the bean:write. html:text name=system property=name size=50/ Or am I missing something from your question? Sri -Original Message- From: Chonalal, Anil (Contractor) [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:02 AM To: '[EMAIL

RE: Action without FormBean

2003-02-26 Thread Sri Sankaran
Yes, you *must* have a name attribute if you are going to use an html:form. Here's a snippet from the docs for html:form If the name and type attributes are not specified, then the form bean will be located, and created if necessary, based on the form bean specification for the associated

[OT] DTD URL in web.xml

2003-02-26 Thread Sri Sankaran
Does the servlet container actually access the location specified for the DTD in the DOCTYPE statement of the web.xml? Couple of reasons for this question: * JRun 3.1 is having heartache with my app that I just ported to Struts 1.1. It throws a ServletException with the message External

RE: [OT] DTD URL in web.xml

2003-02-26 Thread Sri Sankaran
not :( Sri P.S. I *have* seen the earlier posts on this subject such as http://marc.theaimsgroup.com/?l=struts-userm=103643076609041w=2 -Original Message- From: Sri Sankaran Sent: Wednesday, February 26, 2003 3:17 PM To: Struts-User Subject: [OT] DTD URL in web.xml Does the servlet

RE: Action input

2003-02-26 Thread Sri Sankaran
If your intent is to re-use the same action class you can simply create an action mapping for each usage. The only thing that has to be unique is the path. Each action mapping can, of course, define it's own input attribute; effectively providing the dynamism you seek. Sri -Original

RE: Nested:Checkbox

2003-02-26 Thread Sri Sankaran
Nothing obvious jumps out. However, have you tried the updated nested jar that Arron made available a few days ago? See http://marc.theaimsgroup.com/?l=struts-userm=104600916205585w=2. Sri -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26,

RE: [Q] can I use ArrayList type for http:multibox property ?

2003-02-26 Thread Sri Sankaran
Quoting the docs ..Renders an HTML input element of type checkbox, whose checked status is initialized based on whether the specified value matches one of the elements of the underlying property's array of current values... I'd guess it must be an Object[]. I have used it only with String[]s.

RE: [Q] what is right way to display list of checkbox(es) in two or three columns?

2003-02-25 Thread Sri Sankaran
Management of layout must be handled by yourself. The tags don't get involved in this process. If using Struts tags you might have to resort to scriptlets in conjunction with the iteration index to manage your layout. Or if scriptlets are anathema, you can use JSTL or Struts-EL. Still

RE: Reporting an Exception message in a JSP.

2003-02-25 Thread Sri Sankaran
You can still use the fact that argument to the constructor of an ActionError is the key to resource. You could set up your app resources with some.key=Could not proceed because of {0} error Then you can create the ActionError as new ActionError(some.key, exception.getMessage()); Sri

RE: multibox?

2003-02-25 Thread Sri Sankaran
Have you looked at html-multibox.jsp that is in the struts-exercise-taglib application that ships with Struts? Sri -Original Message- From: Jobe, Mike [EESUS] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:46 AM To: '[EMAIL PROTECTED]' Subject: multibox? Can anyone

RE: Searching the Archive

2003-02-25 Thread Sri Sankaran
Are you asking how to make the default selection of an html:select the first option? As you have pointed out you can set the property attribute of the html:select equal the value of the first option. Alternatively, *I think* if you leave the property blank, HTML rules indicate that the first

RE: Searching the Archive

2003-02-25 Thread Sri Sankaran
Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:36 AM To: Struts Users Mailing List Subject: RE: Searching the Archive Are you asking how to make the default selection of an html:select the first option? As you have pointed out you can set

RE: HELP - SOS - Single Form Bean Problem

2003-02-24 Thread Sri Sankaran
A possible cause of this symptom is that you are referring to the bean by a different name in the various locations. When using a form-bean 'fruit', Struts looks in the request/session for an object with key 'fruit'. If you want the same instance to be reused it has to be referred to as

RE: html:select multiple problems

2003-02-24 Thread Sri Sankaran
The example referenced by Jörg Maurer is available in Struts 1.0.2 as well. It includes the following tr th align=rightMultiple Select Allowed:/th td align=left html:select property=multipleSelect size=10 multiple=true html:options name=multipleValues

RE: html:select multiple problems

2003-02-24 Thread Sri Sankaran
So I have to create Collection-type classes to hold the values so that the select tag can populate them? That doesn't make sense, when with a non-multiple select I can just refer to a single String property. First let me explain the need for a LabelValueBean. I will then tell you why

RE: [ANN?] New Nested Tags -or- Nesters, lend me your containers...

2003-02-24 Thread Sri Sankaran
Alrighty, I know how to make it crash (don't fret Arron, I don't believe 'tis a nested issue) When I went a-sleuthing I noticed that the usage in my real app is slightly different from the two nested:root sections in my demo; instead, it is like this: nested:root name=x nested:write

RE: [ANN?] New Nested Tags -or- Nesters, lend me your containers...

2003-02-23 Thread Sri Sankaran
Arron: Still having the problem reported in bug # 16916. Following is the test configuration: OS: Windows XP Professional Container: Tomcat 4.1.18 Struts: 1.1b3 + km-nested-v2.jar You can confirm with a simple application in support of the JSP: % taglib uri=/tags/struts-nested

RE: [ANN?] New Nested Tags -or- Nesters, lend me your containers...

2003-02-23 Thread Sri Sankaran
Never mind... I had updated the WEB-INF/lib of ap-1 and tested ap-2 My test app works with the new nested jar in place. However I am still having problems with the real application; I will take a closer look at it 'morrow and keep you posted. Sri -Original Message- From: Sri

RE: [OT] What's your IQ?

2003-02-23 Thread Sri Sankaran
Too early for *beer*? Is that possible? -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 11:17 AM To: Struts Users Mailing List Subject: RE: [OT] What's your IQ? I'll go for the Microsoft bashing - it is only 8:16 - a little too early

RE: html select problem, help me please

2003-02-23 Thread Sri Sankaran
What is the error? -Original Message- From: Buics [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 10:08 PM To: Struts Users Mailing List Subject: html select problem, help me please I have a collection named code1data, in logic:iterate it works fine, but when I apply this to

RE: bean:message

2003-02-21 Thread Sri Sankaran
not aware of what docs to look at to find out more. I looked in Taglib Documentation and scanned the JavaDocs. If there's an obvious place where I should have found this, please enlighten me. I'd like to know more. Thanks again. -Original Message- From: Sri Sankaran [mailto:[EMAIL

RE: ActionForm fields blank

2003-02-21 Thread Sri Sankaran
It is recommended that you use only String type for your form-bean properties. You can then translate them into your business objects. For one thing, using the actual data type of the field -- such as int -- would make difficult the process of validation and reproduction of erroneous user

RE: Bean Style

2003-02-21 Thread Sri Sankaran
Form bean fields should be maintained as Strings. Remember that the sole purpose of the form-bean is to help with the presentation. You can transfer the data to its actual type in your business object beans. See the response from Craig to a related question at

RE: Where are my ActionForm's changes?

2003-02-21 Thread Sri Sankaran
/ /html:form I appreciate your help. Marwan --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED] wrote: What I have gleaned so far, is * the user is viewing JSP-1 * the user updates the data and submits (invoking the action mapping you have shown (path=/updateOrder) Questions

RE: Where are my ActionForm's changes?

2003-02-21 Thread Sri Sankaran
that the nested tags don't work with objects? Thanks, Marwan --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED] wrote: Get rid of the 'name' and 'type' attributes from the html:form. The reasons? * they are deprecated. See http://jakarta.apache.org/struts/userGuide/struts

RE: Where are my ActionForm's changes?

2003-02-21 Thread Sri Sankaran
=post action=/supplyWeb/updateOrder.do input type=hidden name=action value=updateOrder Thanks, Marwan --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED] wrote: Are the debug statements in the action showing the updated values? Can you check the source of the generated HTML and ensure

RE: Understanding the Iterate Tag

2003-02-21 Thread Sri Sankaran
Specify the 'type' attribute for the logic:iterate. The value should be the fully qualified class name of each 'result' object. Sri -Original Message- From: Brian Hart [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 3:31 PM To: [EMAIL PROTECTED] Subject: Re: Understanding

[OT] Welcome back Eddie (Was RE: ASP == STRUTS)

2003-02-20 Thread Sri Sankaran
Eddie Bush...now *that's* a name I hadn't heard in a while. Welcome back... Sri -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 10:32 AM To: Struts Users Mailing List Subject: Re: ASP == STRUTS You're not likely to have much success

RE: Form bean null

2003-02-20 Thread Sri Sankaran
Usually an indication that your setup is incorrect -- no name attribute for a mapping that uses html:form etc. Please take a look at the archives for previous references to the problem for hints. You can search using various tools. Take your pick of :

RE: Help on MultiBox !

2003-02-20 Thread Sri Sankaran
Have you tried experimenting with html-multibox.jsp that's in the struts-exercise-taglib application that ships with Struts? Sri -Original Message- From: Nandakumar Subramaniam [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 4:35 AM To: 'Struts Users Mailing List' Subject:

RE: Where are my ActionForm's changes?

2003-02-20 Thread Sri Sankaran
I'm not sure I understand completely. Are you returning to the same page after the form is submitted? What are you doing in the reset() and Action? That notwithstanding, here are some possibilities: * The text fields are not within a form * You are re-directing to the page and not forwarding

RE: html:hidden

2003-02-20 Thread Sri Sankaran
The hidden field is just a input type=hidden... So, do what you'd normally do with one of those. A field doesn't voluntarily collect data; JavaScript is the agent that can be used to populate the field. It's still a form-bean field and so is accessible on the server. Did I completely miss

RE: bean:message

2003-02-20 Thread Sri Sankaran
You can't nest as you have shown. Here's an alternative: bean:define id=foo bean:message key=date.digit.format/ /bean:define bean:write name=hwa property=placedOnHWATs format=%=foo%/ Sri -Original Message- From: Cohan, Sean [mailto:[EMAIL PROTECTED]] Sent: Thursday,

  1   2   3   4   5   >