RE: Nested properties of form bean not being updated !

2002-11-04 Thread Sri Sankaran
ht be able to try ??? Cheers Giles -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran@;sas.com] Sent: Tuesday, 5 November 2002 2:12 AM To: Struts Users Mailing List Subject: RE: Nested properties of form bean not being updated ! Holy cow! Yes, you gave enough details.. Looking

RE: Re[4]: Nested Tags situation any light would be appreciated

2002-11-04 Thread Sri Sankaran
all.however, you know your business needs better so Sri -Original Message- From: Rick Reumann [mailto:maillist@;reumann.net] Sent: Monday, November 04, 2002 3:00 PM To: Sri Sankaran Cc: Struts-User Subject: Re[4]: Nested Tags situation any light would be appreciated On Monday, No

RE: html:link with multiple parameters

2002-11-04 Thread Sri Sankaran
This was just battled at quite some length earlier today. Please see http://marc.theaimsgroup.com/?l=struts-user&m=103639896111848&w=2. Sri -Original Message- From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com] Sent: Monday, November 04, 2002 3:09 PM To: Struts (E-mail) Subject: ht

RE: Re[2]: Nested Tags situation any light would be appreciated

2002-11-04 Thread Sri Sankaran
: Rick Reumann [mailto:maillist@;reumann.net] Sent: Monday, November 04, 2002 2:09 PM To: Struts Users Mailing List Cc: Sri Sankaran Subject: Re[2]: Nested Tags situation any light would be appreciated On Monday, November 4, 2002, 1:43:35 PM, Sri wrote: SS> That brings us to what happens w

RE: Nested Tags situation any light would be appreciated

2002-11-04 Thread Sri Sankaran
Your JSP looks ok. The fact that the data is displaying correctly in the first place suggests that the various elements in struts-config are ok as well. That brings us to what happens when the page is submitted. You *should* (as a test) be able to set up an action that does nothing and just

RE: Nested properties of form bean not being updated !

2002-11-04 Thread Sri Sankaran
Oops! My second bullet should begin as: * Even though 64_eng_del.jsp is an included file, it ends with a . You probably want to leave that for the *includer* -- your top-level JSP -Original Message- From: Sri Sankaran Sent: Monday, November 04, 2002 10:12 AM To: Struts Users

RE: Nested properties of form bean not being updated !

2002-11-04 Thread Sri Sankaran
/** * Sets the engagementReviewerID. * @param engagementReviewerID The engagementReviewerID to set */ public void setEngagementReviewerID(Integer engagementReviewerID) { this.engagementReviewerID = engagementReviewerID; } /** * Sets the engagementReviewerName. * @param engagementReviewerName The engagementReviewerNam

RE:

2002-11-04 Thread Sri Sankaran
You *should* be able to use the Map approach. Simply build a map whose keys are the expected parameter names and the corresponding values are the data you wish to send. For example: Click Me! In your form bean, the getter getParams() returns a Map such as: public Map getParams() { Map map

RE: [OT] static vs. application scope

2002-11-02 Thread Sri Sankaran
t: RE: [OT] static vs. application scope It's not going to be available to anything outside its class with the stated signature, static or not. Mark -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran@;sas.com] Sent: Friday, November 01, 2002 4:45 PM To: Struts-User Subject:

[OT] static vs. application scope

2002-11-01 Thread Sri Sankaran
What is the difference between making a property available in application scope as opposed to making it static to a class? As a simple (contrived) example, I want to maintain a mapping of car model and manufacturer. This being, un-changing I could implement it as a static property of some clas

RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-11-01 Thread Sri Sankaran
With my browser (IE 6), a few seconds after the page loads, the download dialog window pops up. In fact there is also a link on the top of the page in case it doesn't. It is: http://unc.dl.sourceforge.net/sourceforge/solareclipse/net.sourceforge.solareclipse.web.ui_0.2.0.zip (which happens to

RE: Requests and the stop button / links / etc...

2002-11-01 Thread Sri Sankaran
You are correct, 'Stop'ping is purely a client-side action. Sri -Original Message- From: Andrew Hill [mailto:andrew.david.hill@;gridnode.com] Sent: Friday, November 01, 2002 8:50 AM To: Struts Users Mailing List Subject: Requests and the stop button / links / etc... Just want to confirm

RE: Nested properties of form bean not being updated !

2002-11-01 Thread Sri Sankaran
You have a clear description of what you are trying to accomplish but I don't know *how* you are going about it. Need a look-see at your code. In particular, how are your struts-config and JSP set up? Show the pertinent form-bean and action mapping from your config and a portion (at least) or

RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Sri Sankaran
What plug-in do you recommend for JSP editing? When I looked (a few months ago) the choice was pretty light and even those were very weak on code completion and error hightlighting. Sri -Original Message- From: David Graham [mailto:dgraham1980@;hotmail.com] Sent: Thursday, October 31,

RE: [ANNOUNCE] Struts Console v3.0

2002-10-31 Thread Sri Sankaran
IBM's keeping SWT close to the chest with its licensing makes developing with it very onerous -- maybe that'll change. Thinlets seemed pretty snappy. Sri -Original Message- From: Galbreath, Mark [mailto:Galbreath@;tessco.com] Sent: Thursday, October 31, 2002 5:55 AM To: 'Struts Users M

RE: Can Nested Tag lib go 2 Level Deep.

2002-10-30 Thread Sri Sankaran
> > 4.)Here is B > http://desistar.no-ip.org:8080/strutshop/flowstep.txt > > 5.)Here is C > http://desistar.no-ip.org:8080/strutshop/flowstepevent.txt > > Buds. Thanks for your help. > > Regards > Gopal > > --- Sri Sankaran <[EMAIL PROTECTED]>

RE: Can Nested Tag lib go 2 Level Deep.

2002-10-30 Thread Sri Sankaran
Yes, this is very much doable. I would take a closer look at the getter in class B -- in particular the case, is it getHldC(). Is it working ok for the first level? That would indicate if you are getting the right *kind* of object. Sri -Original Message- From: Gopal Mukkamala [mailto

RE: form and action in struts-config

2002-10-29 Thread Sri Sankaran
only with this one. Naga Vankineni Phone: 860-686-1643 -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran@;sas.com] Sent: Tuesday, October 29, 2002 11:11 AM To: Struts Users Mailing List Subject: RE: form and action in struts-config You cannot nest form tags. That isn't

RE: form and action in struts-config

2002-10-29 Thread Sri Sankaran
are the attchmnts of action class and jsp. Naga Vankineni Phone: 860-686-1643 -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran@;sas.com] Sent: Tuesday, October 29, 2002 10:08 AM To: Struts Users Mailing List Subject: RE: form and action in struts-config OK, so you have: Wha

RE: form and action in struts-config

2002-10-29 Thread Sri Sankaran
ction' attribute value of the is 'test.do' (assuming you are using the usual Struts convention) -Original Message- From: Sri Sankaran Sent: Tuesday, October 29, 2002 9:22 AM To: Struts Users Mailing List Subject: RE: form and action in struts-config A few suggestions: * T

RE: form and action in struts-config

2002-10-29 Thread Sri Sankaran
Oops! Major brain fart. Change the suggestions: Ignore the first suggestion. The third suggestion should read: * Make sure that the 'action' attribute value of the is 'test.do' (assuming you are using the usual Struts convention) -Original Message- From: Sri San

RE: form and action in struts-config

2002-10-29 Thread Sri Sankaran
A few suggestions: * Try setting the 'name' attribute in the mapping to '/cultureForm' * Make sure you using a in your culture.jsp file. * Make sure that the 'action' attribute value of the is 'cultureForm.do' (assuming you are using the usual Struts convention) Sri -Original Message-

RE: Huge action instance synchronization problem

2002-10-28 Thread Sri Sankaran
27;Struts Users Mailing List' Subject: RE: Huge action instance synchronization problem Thank you, but what happens if I set the execute method from the action synchronized? I did that and it works fine. I have also run some tests to see if performance drops but it did not. -Original Me

RE: Huge action instance synchronization problem

2002-10-28 Thread Sri Sankaran
It is good practice to have a delegate class that handles all business logic. This will not only ensure that you don't run into problems such as you state but also de-couples your business logic from the Struts framework -- which *should* be used only for controlling your presentation. public

RE: html:option with iterate

2002-10-28 Thread Sri Sankaran
It is much easier if you use the 'collection' attribute of the tag. See http://jakarta.apache.org/struts/userGuide/struts-html.html#options. Also take a look at the html-select.jsp file that is in the struts-exercise-taglib application that ships with Struts. Sri -Original Message-

RE: Using Struts Taglib Outside of Struts

2002-10-25 Thread Sri Sankaran
Just use the struts jar and make the necessary taglib entries in your application's web.xml. Sri -Original Message- From: Vinh Tran [mailto:vinht@;processintelligence.com] Sent: Friday, October 25, 2002 9:42 AM To: [EMAIL PROTECTED] Subject: Using Struts Taglib Outside of Struts I am

RE: multibox : problem with preselected array

2002-10-25 Thread Sri Sankaran
How is the TestForm(boolean) constructor being invoked? The Struts framework will simply invoke the default constructor. How are you "setting the selected string array in Action class"? Are you creating this form bean in the Action class then setting the array? If so, are you persisting this

RE: Checkbox problem

2002-10-24 Thread Sri Sankaran
I suppose you have several checkboxes corresponding to the List of objects. Are you using the tag? If not, you should. The Struts framework will save the selected values in a String array that you provide. The value stored will be the value of the checkbox. For example if the checkbox is

RE: nested:text not being evaluated

2002-10-23 Thread Sri Sankaran
To: 'Struts Users Mailing List' Subject: RE: nested:text not being evaluated Sri, Thanks, that worked! Any explanation on what the difference is between using single and double quotes? Mike -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran@;sas.com] Sent: W

RE: nested:text not being evaluated

2002-10-23 Thread Sri Sankaran
Try deriving the entire string that represents your onclick attribute value form a scriptlet (note the user of single and double quotes): onclick='<%="showTable("+pageContext.getAttribute("rowIndex")+","+pageContext.getAttribute("columnIndex")+")"%>' Note: In addition I have taken the liberty to

RE: Conditional colour cell with logic:iterate

2002-10-23 Thread Sri Sankaran
age- From: Sri Sankaran Sent: Wednesday, October 23, 2002 12:30 PM To: Struts Users Mailing List Subject: RE: Conditional colour cell with logic:iterate .warning { background-color: #FF8000; } .error { background-color: #FF; } .normal { background-color: #FF; /* or whatever your nor

RE: Conditional colour cell with logic:iterate

2002-10-23 Thread Sri Sankaran
.warning { background-color: #FF8000; } .error { background-color: #FF; } .normal { background-color: #FF; /* or whatever your normal background color may be */ <% String cellClass = null; String status = anItem.getStatus();

RE: struts Newbie - login screen

2002-10-21 Thread Sri Sankaran
What's wrong if the user navigates back and views the login screen? Your application can just discard the earlier session and re-initialize. Don't try to circumvent standard browser behavior. Sri -Original Message- From: deepank [mailto:deepank@;sasken.com] Sent: Monday, October 21,

RE: & building columns

2002-10-21 Thread Sri Sankaran
The value of the property attribute must be (in v1.1) something that implements the Map or List interface. I see that your getInformationSessionsIterator() method returns an Iterator. Also, the method corresponding to a property of 'informationsessionsiterator' *must* be 'getInformationsession

RE: nested:select default value

2002-10-18 Thread Sri Sankaran
Have you ensured that the case of the strings match? Make sure that processResp is "PMA" and not "pma". Sri -Original Message- From: Rea, Ron [mailto:rear@;coramhc.com] Sent: Friday, October 18, 2002 5:07 PM To: '[EMAIL PROTECTED]' Subject: nested:select default value Hello, I need

RE: & building columns

2002-10-18 Thread Sri Sankaran
ding columns Sri Sankaran wrote: > Re: NullPointerException A: My guess is that the object returned by a > >getLocation() call on the objects in your informationsessions > collection is null. >The code block OK, after many loops and out.println's, I've established th

RE: & building columns

2002-10-18 Thread Sri Sankaran
things straight in my head I usually specify the index attribute with a singular 'a' on 'an' prefix. So the above iterate might look like HTH Sri -Original Message- From: Adam Sherman [mailto:adam@;teachandtravel.com] Sent: Friday, October 18, 2002 2:15 PM To:

RE: Tomcat not extracting war

2002-10-18 Thread Sri Sankaran
Do you see anything in the logs? Sri -Original Message- From: Mark Silva [mailto:msilva@;authenex.com] Sent: Friday, October 18, 2002 1:46 PM To: Struts Users Mailing List Subject: RE: Tomcat not extracting war i just checked. that property is set correctly. i believe it is a default

RE: & building columns

2002-10-18 Thread Sri Sankaran
My original reply to your post (http://marc.theaimsgroup.com/?l=struts-user&m=103471355803751) should do what you need. I would suggest using tags from top down. Note that it simply *extends* "normal" Struts tags. The beauty is that it knows its position in the tree and so you don't have to

RE: Session timeout jsp

2002-10-18 Thread Sri Sankaran
I suppose you want to display a timeout page when the user performs an action on the displayed page after the timeout period has elapsed. This can be accomplished by testing if the session is new; if so, we have a timeout and the user can be re-directed accordingly. If you want the page to aut

RE: logic:equal within a nested logic:iterate

2002-10-18 Thread Sri Sankaran
Have you tried the following for line 6: assuming that 'getCat_id()' is the getter for the cat_id property of category. Sri -Original Message- From: dave beres [mailto:daveberes99@;hotmail.com] Sent: Wednesday, October 16, 2002 3:49 PM To: [EMAIL PROTECTED] Subject: logic:equal within

RE: Ending a session

2002-10-16 Thread Sri Sankaran
Session.invalidate() is one way. Sri -Original Message- From: Marc AMIR-TAHMASSEB [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 3:26 AM To: [EMAIL PROTECTED] Subject: Ending a session Hi everybody, Is there a way to end a user session after a action ? Typically, i have

RE: dynamic select box

2002-10-16 Thread Sri Sankaran
Please look at the html-select.jsp file that is part of the struts-exercise-taglib application that ships with Struts. It demonstrates different ways of specifying the options for the . It should answer all your questions. Sri -Original Message- From: Marcus Biel [mailto:[EMAIL PROTE

RE: Structure Advice for logic:iterate

2002-10-15 Thread Sri Sankaran
Struts 1.1. -Original Message- From: Adam Sherman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 4:44 PM To: Struts Users Mailing List Subject: RE: Structure Advice for logic:iterate On 10/15/02 16:25:32 -0400, Sri Sankaran wrote: > (FYI: With the version in Struts 1.

RE: Structure Advice for logic:iterate

2002-10-15 Thread Sri Sankaran
Adam: Learn how to use the Nested extension. If you are using Struts 1.0 you can find it at http://www.keyboardmonkey.com/next/index.jsp. It is a part of Struts 1.1. Then, apply something like below. Create a form bean that has a collection of Day objects each of which in turn has a coll

RE: pass 2 parameter using html:link tag

2002-10-15 Thread Sri Sankaran
Use the 'name' and 'property' attributes to http://jakarta.apache.org/struts/userGuide/struts-html.html#link Sri -Original Message- From: Maizatulakmam Ali [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 5:13 AM To: [EMAIL PROTECTED] Subject: pass 2 parameter using html:link

RE: Radio buttons inside an iterate tag?

2002-10-10 Thread Sri Sankaran
I think that's it. I glossed over that detail since takes care of that for you. Sri -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 2:48 PM To: 'Struts Users Mailing List' Subject: RE: Radio buttons inside an iterate tag? > -Orig

RE: Radio buttons inside an iterate tag?

2002-10-10 Thread Sri Sankaran
I was going to suggest that something was amiss with your action mapping since the error message isn't reporting the name of the bean. However, I am puzzled by the fact that everything else works (when the is commented out). You could be right about not make the id attribute available. But

RE: Radio buttons inside an iterate tag?

2002-10-10 Thread Sri Sankaran
You *should* be able to do I am doing it in my application (yes, within an iteration). I would, in addition, set the type attribute for the to the fully qualified class name of the object in each iteration (resView). Sri -Original Message- From: Wendy Smoak [mailto:[EMAIL PR

RE: Searching the Archives...

2002-10-10 Thread Sri Sankaran
In most cases, it is pointless searching the mail-archive. As Jeff pointed out you either get nothing or everything and the kitchen sink. This is probably the reason why we get so many repeat questions. What are the chances that struts-user be archived elsewhere with a more useful/helpful sea

RE: Beginner ClassNotFoundException

2002-10-09 Thread Sri Sankaran
This list is for all struts users, beginners alike. Your problem could be because * your class LoginForm isn't in the classpath -- is it in WEB-INF/classes or WEB-INF/lib either as a .class or in a jar. If you correct it accordingly * your class LoginForm is actually in a package so that the

RE: Pre-popluating the select dropdown.

2002-10-09 Thread Sri Sankaran
You do not set the 'value' attribute of the . one two Set the value of the property 'deviceID' of the bean 'device' to '2' and you'll see "two" displayed (selected) by default automagically. As you can see this set up handles the dynamism that you require in the default selection. Sri

RE: nested

2002-10-08 Thread Sri Sankaran
mpareTagBase is not applicable for the arguments (java.lang.Object) "Sri Sankaran" sas.com> cc: Subject: RE: nested 0 && a < b) { do stuff } else if

RE: nested

2002-10-08 Thread Sri Sankaran
As was pointed out earlier, your if-else logic needs to be modified if(a > 0 && a < b) { do stuff } else if( a > 0) { do some other stuff } Assuming you have that Your JSP snippet doesn't seem to be testing 'less than b' at all. You cannot nest a tag within your value attribute. Y

[TESTING] Testing for thread-safeness

2002-10-08 Thread Sri Sankaran
Using Struts 1.0.2 Do you have any recommendations for testing a Struts-based application for thread-safeness? In particular, I want to ensure that my design of using local (on stack) business delegates to service the business logic won't get trampled on in a typical production environment

RE: How to set default

2002-10-04 Thread Sri Sankaran
Here is a reply I made to an earlier post on the same subject: This topic has been addressed *numerous* times on this list. However, I understand what a PITA searching on mail-archive is, so here goes: Firstly take a look at the html-select.jsp that is part of the struts-exercise-taglib appli

[SCAFFOLD] Using BaseAction without instance variables

2002-10-03 Thread Sri Sankaran
The design of the BaseAction and other classes in the o.a.s.scaffold package is very clean and allows for modular code development. However, how does one use the classes effectively without creating instance variables -- a big no, no when it comes to Struts Actions. For example, the BaseActio

RE: EL and the developer's roadmap

2002-10-03 Thread Sri Sankaran
and then there is http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL.html SS -Original Message- From: Kevin HaleBoyes [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 3:59 PM To: [EMAIL PROTECTED] Subject: RE: EL and the developer's roadmap > First time I've heard o

RE: Making the checkbox selected by default.

2002-10-03 Thread Sri Sankaran
It'll appear checked if the value of the property attribute (from your form-bean) matches the value of the value attribute. This checkbox will appear selected if getColor() returns "red". Sri -Original Message- From: Sanjeev [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 200

RE: Multiple selected for html:select

2002-10-03 Thread Sri Sankaran
The property attribute of the must allow for capturing multiple items. It should be a collection. Take a peek at html-select.jsp that is part of the struts-exercise-taglib application that ships with Struts. Form bean -- private String[] foo; public void setFoo(String[] in)

RE: [TILES] Frame's src attrib has html & not a url

2002-10-03 Thread Sri Sankaran
ot tiles definitions. This is because the url is interpreted by the client browser, not on the server. Cedric Sri Sankaran wrote: >Using Struts 1.0.2 and Tiles extension > >The page I am developing consists of frames. Upon display, all the >frames display a 404 error. Looki

[TILES] Frame's src attrib has html & not a url

2002-10-03 Thread Sri Sankaran
Using Struts 1.0.2 and Tiles extension The page I am developing consists of frames. Upon display, all the frames display a 404 error. Looking at the source of the HTML, I find that the src attribute doesn't point to a URL but contains the contents of the file at that url. My frameset page:

[Nested] Getting value from parent during iteration

2002-10-02 Thread Sri Sankaran
Using Struts 1.0.2 and Nested extension The value attribute doesn't support the nested syntax of walking up a tree a la "../foo". How is this result achieved? In my JSP I have the following Do stuff class DepBean { // available with session key 'dependencies' pri

RE: html:options

2002-09-30 Thread Sri Sankaran
The first technique couples your presentation with your business logic more closely than does the latter. So, my preference would be using the . You can maintain the collection that makes up the options in the form bean for the page. Initialization must be handled via the associated action cl

RE: can ActionError be returned by Action?

2002-09-27 Thread Sri Sankaran
Invoke the Action class' saveErrors() method to save it to the request. The will find it. Sri -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 12:40 PM To: Struts Users Mailing List Subject: can ActionError be returned by Action? Is t

RE: Please help decide a religious discussion

2002-09-27 Thread Sri Sankaran
Wait a minute. Is this the current setup? Action-A (does stuff, preps form-B for page-B) --> Forward to Page-B --> User does stuff and submits --> Validation of form-B fails --> Page-B re-displayed but with empty s? Hard to believe! I s

RE: [Cust-Taglibs] How to mark a option using html:select?

2002-09-27 Thread Sri Sankaran
This topic has been addressed *numerous* times on this list. However, I understand what a PITA searching on mail-archive is, so here goes: Firstly take a look at the html-select.jsp that is part of the struts-exercise-taglib application that ships with struts. It should answer all your questi

FW: very frustrating logic:iterate

2002-09-24 Thread Sri Sankaran
ical_per_v(String technical_per_v) { this.technical_per_v = technical_per_v; } public String getTechnical_per_v() { return this.technical_per_v; } } CLEARLY NO METHOD IS OVERLOADED STILL WHY THE ERROR AS BEFORE Please HELP!! Deepank ----- Original Message - From: "Sri Sankaran" <[EM

RE: very frustrating logic:iterate

2002-09-24 Thread Sri Sankaran
There was an earlier post where the user reported that his error disappeared after removing an overloaded setter. Another angle: Try providing the 'type' attribute for the Sri -Original Message- From: deepank [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 9:46 AM To: [

RE: Extending Action and DispatchAction

2002-09-23 Thread Sri Sankaran
I think what he means is: public class Foo extends Action { private void doCommonStuff() { } } public class Bar extends DispatchAction { private void doCommonStuff() { } } I think this calls for delegation to a class that just does the common stuff. public class Foo extends Action {

RE: Please help ...

2002-09-20 Thread Sri Sankaran
You *should* be able to do exactly that. The type attribute of the identifies the type of object you'll have in the iteration that you have said you'll call company (via the id attribute). So in the JSP you should be able to say: map.put("company", company.getId()); Does this give you a p

RE: Get only first value using logic:iterate

2002-09-20 Thread Sri Sankaran
Have you made sure that your collection has more than one item? If so, can you re-post your JSP snippet. Sri -Original Message- From: Cathy Osekizoglu [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 3:47 PM To: Struts Users Mailing List Subject: RE: Get only first value us

RE: [BEAN/LOGIC] How to avoid some ugliness

2002-09-18 Thread Sri Sankaran
Have you tried using ? Even better yet, if you are using Struts 1.1, you can use . <%-- Do whatever with the list --%> I think it may require that the list be null (as opposed to being empty). If so, you can resort to a lesser ugliness by creating a method that returns null if the list

RE: AAAARGH! SOMEONE! How do I set the default selection when I'm using html:options?

2002-09-18 Thread Sri Sankaran
The default value of a is driven by the value of its property attribute. So, for example, if you have Blood Leaves Sky and if the 'userChoice' property of the form bean is set to "green", then the default selection will show "Leaves". Please see html-select.jsp that is part of the s

RE: Relative Path Error-- Pls help!

2002-09-09 Thread Sri Sankaran
I hope you meant A leading slash ( / ) refers to the *server* root and not the context root. Sri > -Original Message- > From: Sutiwan Kariya [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 09, 2002 6:06 AM > To: Struts Users Mailing List > Subject: RE: Relative Path Error--

RE: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Sri Sankaran
Humor in bodily functions (of dysfunctions) is so slapstick. What are we ... teenagers? > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 06, 2002 10:21 AM > To: 'Struts Users Mailing List' > Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST!!!

RE: Prakash Malani article on JavaWorld

2002-09-06 Thread Sri Sankaran
What do you mean "can not be displayed"? o Are you seeing an field but no data -- does your form bean have a getId (make sure of the case)? Does it have a non-blank value? o Are you not seeing an input field at all? -- What does the source of the html look like? I'm sure you have the html

RE: [Tag] tag being interpreted as scriptlet!

2002-09-06 Thread Sri Sankaran
John: You were dead on! My jsp didn't have a taglib statement for the tags. Now I have to report a bug in the IDE. Its feature list includes flagging tags whose definitions are unknown. Since it didn't flag an error I didn't suspect anything wrong. Thanks. Sri > -Original Messa

RE: "No getter method" error, but ActionForm does have the getter

2002-09-05 Thread Sri Sankaran
Just a SWAG but I think your action mapping may need some looking into. In particular, since Struts is looking at some top-level class org.apache.struts.taglib.html.BEAN, I suspect that the action is not wired to the correct form bean that indeed has the getter. Sri > -Original Message---

[Tag] tag being interpreted as scriptlet!

2002-09-05 Thread Sri Sankaran
Using Struts 1.0.2 with nested extension on Tomcat 4.0.2 My JSP has the following construct etc This page fails to load with a NullPointerException. My hunt for its cause has lead me to the process of translating a JSP file into a Java file. The error is being raised because To

RE: iterate question

2002-09-04 Thread Sri Sankaran
Look at the nested extension @ http://www.keyboardmonkey.com/next/index.jsp. It is exactly for this purpose. It is included as part of Struts 1.1.x Sri > -Original Message- > From: Kirby Vandivort [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 04, 2002 12:13 PM > To: [EMAIL

RE: How to use nested:iteration tag?

2002-09-04 Thread Sri Sankaran
That's exactly what I do :) > -Original Message- > From: Michael [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 04, 2002 11:00 AM > To: 'Struts Users Mailing List' > Subject: RE: How to use nested:iteration tag? > > > > Somewhere in the nested docs it says to have a getter tha

RE: How to use nested:iteration tag?

2002-09-04 Thread Sri Sankaran
nd since the > nested:iterate is supposed to replace the logic:iterate, it > should work with Collections too. > > > > -Original Message- > > From: Sri Sankaran [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, September 04, 2002 4:12 PM > > To: Struts Us

RE: How to use nested:iteration tag?

2002-09-04 Thread Sri Sankaran
Somewhere in the nested docs it says to have a getter that returns an Object[]. So, if your bean has a collection called 'plants' then set the getter as follows: public Object[] getPlants() { return plants.toArray(); } Sri > -Original Message- > From: Michael [mailto:[EMAIL PR

RE: nested write issue

2002-09-04 Thread Sri Sankaran
Here's how you could display a table with variable number of rows and columns using the Nested tags. Assumptions: o Bean name - aBean o aBean contains a collection called rowCollection o Each element in colCollection contains a collection called colCollection

RE: Question about multibox

2002-09-03 Thread Sri Sankaran
Here's an example. You can replace with except that you'll have to specify the name attribute and the property must explicitly walk down (any) nested hierarchy. Aside: If, like me, you are using Struts 1.0 you want to use the nested facility (hint:use it, it'll save you a ton of work) you c

RE: A silly question...

2002-09-03 Thread Sri Sankaran
If you are forced to use Struts 1.0.2 you can get the tiles Jar from http://www.lifl.fr/~dumoulin/tiles/ Sri > -Original Message- > From: Miguel Angel Mulero Martinez > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 03, 2002 7:29 AM > To: Struts Users Mailing List > Subject: RE

RE: [Buttons] How do i code this in struts

2002-08-30 Thread Sri Sankaran
i > es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,wid > th=750,height= > 580');MyWindow.focus(); > return false;"/> > > The method does return me a string. I am getting the following error: > > The request sent by the client was syntactically inc

RE: [Buttons] How do i code this in struts

2002-08-30 Thread Sri Sankaran
What do you mean Struts-compliant? Struts is not involved here since you are using a standard html tag. Make sure that the getBigBrotherReport() method returns a string representation of a URL. Sri > -Original Message- > From: Susmita Pati [mailto:[EMAIL PROTECTED]] > Sent: Friday,

RE: Help me shake the cobwebs out...

2002-08-30 Thread Sri Sankaran
You haven't mentioned if there is *any* form-bean associated with this action mapping. You are forced to specify one only if you use the tag. So, since you are simply refreshing the page it worked. Did I miss something? Sri -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTE

RE: [Taglib] Testing for null value using

2002-08-30 Thread Sri Sankaran
I going to have to stick with Struts tags for now. JSTL requires Tomcat 4.0.4 or above and I have to deploy to Tomcat 3.x Sri P.S. I know I am developing on 4.0.2 -- I amn't doing anything new/funky and am testing to make sure it works on the target environment. -Original Message-

RE: [Taglib] Testing for null value using

2002-08-30 Thread Sri Sankaran
Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:21 AM To: Struts Users Mailing List Subject: Re: [Taglib] Testing for null value using You should look at and Sri Sankaran wrote: >Using Struts 1.0.2 on Tomcat 4.0.2 > >I see that the is only

[]Testing for null value

2002-08-30 Thread Sri Sankaran
Using Struts 1.0.2 on Tomcat 4.0.2 I see that the is only available in Struts 1.1 How does one test for a null value using Struts 1.0 tags? <%-- do something --%> will not work since deep in the bowels of the it does a value.length() and barfs on the null. An ugly workaround is for th

RE: tag help ASAP

2002-08-30 Thread Sri Sankaran
The sample application that ships with Struts (struts-exercise-taglib) gives you several options -- pardon the pun! Look at html-select.jsp. Sri -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 6:29 PM To: Struts Users Mailing List Su

RE: [Tag Protocol] How to let newbies know?

2002-08-29 Thread Sri Sankaran
espond - delete" cycle. You might not like it, but I intend to use it. James "If Sasquatch had the measles, how would you know? " Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://www.open-tools.org/struts-atlanta

RE: [Tag Protocol] How to let newbies know?

2002-08-29 Thread Sri Sankaran
to let newbies know? Have you taken time to look at some of the subject lines we get around here? The tags have the potential to help greatly. Simon >-Original Message- >From: Sri Sankaran [mailto:[EMAIL PROTECTED]] >Sent: Thursday, August 29, 2002 2:20 PM >To: Struts Users

RE: [Tag Protocol] How to let newbies know?

2002-08-29 Thread Sri Sankaran
I disagree with the need for a tag protocol. The whole point of the subject line is to annotate the message with a concise (summary) description. Now you want to annotate the annotation? Next someone'll ask for a description of the tag Sri -Original Message- From: James Mitch

Disabling checkboxes in a nested iteration conditionally

2002-08-28 Thread Sri Sankaran
Using Struts 1.0.2 with nested extension on Tomcat 4.0.2 How can one selectively disable some of the checkboxes rendered by a within a To display the checkboxes, I have the following arrangement: In order to be able to show some as disabled, I tried This results

RE:

2002-08-28 Thread Sri Sankaran
Since fullname shows up I assume that you have wired the action & bean to the page correctly. So, your form bean has public String getFullname() { ... } public String getAddress() { ... } Have you double-checked the spelling and case? If the property in your is foo, the getter has to be g

RE: Display of label associated to drop-down

2002-08-27 Thread Sri Sankaran
the therapyDesc from the collection? This collection is loaded from a database when the server is started. It is fairly static and used on several JSPs. It seems that is the collection is available on the page, I should be able to get at it? Am I wrong about that. -Original Message- F

<    1   2   3   4   5   >