RE: form and action in struts-config

2002-10-29 Thread Sri Sankaran
: Tuesday, October 29, 2002 9:50 AM To: Struts Users Mailing List Subject: RE: form and action in struts-config Sri The third suggestion too did not work .. Any more suggestions.. Naga Phone: 860-686-1643 -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran;sas.com] Sent: Tuesday

RE: form and action in struts-config

2002-10-29 Thread Sri Sankaran
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: form-bean name=cultureForm

RE: form and action in struts-config

2002-10-29 Thread Sri Sankaran
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 valid HTML

RE: html:option with iterate

2002-10-28 Thread Sri Sankaran
It is much easier if you use the 'collection' attribute of the html:options 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

RE: Huge action instance synchronization problem

2002-10-28 Thread Sri Sankaran
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 Message- From: Sri

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: 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: Checkbox problem

2002-10-24 Thread Sri Sankaran
I suppose you have several checkboxes corresponding to the List of objects. Are you using the html:multibox 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

RE: Conditional colour cell with logic:iterate

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

RE: nested:text not being evaluated

2002-10-23 Thread Sri Sankaran
, 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: Wednesday, October 23, 2002 2:29 PM To: Struts Users Mailing List Subject: RE: nested:text not being

RE: nested:iterate 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

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: logic:equal within a nested logic:iterate

2002-10-18 Thread Sri Sankaran
Have you tried the following for line 6: logic:equal name=type property=cat_id value=%=category.getCat_id()% 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

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

RE: nested:iterate building columns

2002-10-18 Thread Sri Sankaran
My original reply to your post (http://marc.theaimsgroup.com/?l=struts-userm=103471355803751) should do what you need. I would suggest using nested 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

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: nested:iterate building columns

2002-10-18 Thread Sri Sankaran
/nested:iterate HTH Sri -Original Message- From: Adam Sherman [mailto:adam;teachandtravel.com] Sent: Friday, October 18, 2002 2:15 PM To: Struts Users Mailing List Subject: Re: nested:iterate building columns Sri Sankaran wrote: My original reply to your post (http://marc.theaimsgroup.com/?l

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 to

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 html:select. It should answer all your questions. Sri -Original Message- From: Marcus Biel

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

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

RE: Structure Advice for logic:iterate

2002-10-15 Thread Sri Sankaran
. -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.1 and indexed properties

RE: pass 2 parameter using html:link tag

2002-10-15 Thread Sri Sankaran
Use the 'name' and 'property' attributes to html:link name=someBean property=propertyReturningAMapOfParameters ... See http://jakarta.apache.org/struts/userGuide/struts-html.html#link Sri -Original Message- From: Maizatulakmam Ali [mailto:[EMAIL PROTECTED]] Sent:

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

RE: Radio buttons inside an iterate tag?

2002-10-10 Thread Sri Sankaran
You *should* be able to do html:radio property=key value=%=resView.getKey()%/ I am doing it in my application (yes, within an iteration). I would, in addition, set the type attribute for the logic:iterate to the fully qualified class name of the object in each iteration (resView). Sri

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 html:radio is commented out). You could be right about logic:iterate not make the id

RE: Radio buttons inside an iterate tag?

2002-10-10 Thread Sri Sankaran
I think that's it. I glossed over that detail since nested:iterate 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

RE: Pre-popluating the select dropdown.

2002-10-09 Thread Sri Sankaran
You do not set the 'value' attribute of the html:select. html:select name=device property=deviceID html:option value=1one/html:option html:option value=2two/html:option /html:select Set the value of the property 'deviceID' of the bean 'device' to '2' and you'll see two displayed

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

[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: nested logic:equal

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. You

RE: nested logic:equal

2002-10-08 Thread Sri Sankaran
org.apache.struts.taglib.logic.CompareTagBase is not applicable for the arguments (java.lang.Object) Sri Sankaran Sri.Sankaran@ To: Struts Users Mailing List [EMAIL PROTECTED] sas.com cc

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

[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:

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

2002-10-03 Thread Sri Sankaran
='tiles:getAsString name=body/' name=body Also remember that you can only use valid url here, not 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

RE: Multiple selected for html:select

2002-10-03 Thread Sri Sankaran
The property attribute of the html:select 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. html:select property=foo size=4 multiple=true html:options

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. html:checkbox property=color value=red/ This checkbox will appear selected if getColor() returns red. Sri -Original Message- From: Sanjeev [mailto:[EMAIL

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

[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

[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 nested:root name=dependencies nested:iterate property=types nested:equal property=name

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 html:options. You can maintain the collection that makes up the options in the form bean for the page. Initialization must be handled via the

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

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 selects? Hard to believe!

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 html:errors/ 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

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 logic:iterate Sri -Original Message- From: deepank [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002

FW: very frustrating logic:iterate

2002-09-24 Thread Sri Sankaran
(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 [EMAIL PROTECTED

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: 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

RE: Please help ...

2002-09-20 Thread Sri Sankaran
You *should* be able to do exactly that. The type attribute of the logic:iterate 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

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 html:select is driven by the value of its property attribute. So, for example, if you have html:select property=userChoice size=1 html:option value=redBlood/html:option html:option value=greenLeaves/html:option html:option value=blueSky/html:option /html:select

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

2002-09-18 Thread Sri Sankaran
Have you tried using logic:present? Even better yet, if you are using Struts 1.1, you can use logic:empty. logic:present name=formBean property=localTaxCodes %-- Do whatever with the list --% /logic:present I think it may require that the list be null (as opposed to being empty). If so,

RE: Relative Path Error-- Pls help!

2002-09-09 Thread Sri Sankaran
I hope you meant head html:base/ /head 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:

RE: [Tag] nested 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 nested 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

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

[Tag] nested 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 nested:root name=sitebean nested:equal property=cartBean.haveModelBasedItems value=true etc This page fails to load with a NullPointerException. My hunt for its cause has lead me to the

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

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 nested:root name=aBean table

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

RE: How to use nested:iteration tag?

2002-09-04 Thread Sri Sankaran
, it should work with Collections too. -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 4:12 PM To: Struts Users Mailing List Subject: RE: How to use nested:iteration tag? Somewhere in the nested docs it says to have

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 that

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: 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: A

RE: Question about multibox

2002-09-03 Thread Sri Sankaran
Here's an example. You can replace nested:iterate with logic:iterate 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

RE: html:options 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

[logic]Testing for null value

2002-08-30 Thread Sri Sankaran
Using Struts 1.0.2 on Tomcat 4.0.2 I see that the logic:empty is only available in Struts 1.1 How does one test for a null value using Struts 1.0 tags? logic:equal property=foo value=%=null% %-- do something --% /logic:equal will not work since deep in the bowels of the logic:equal it does

RE: [Taglib] Testing for null value using logic

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 logic You should look at logic:present .../ and logic:notPresent .../ Sri Sankaran wrote: Using Struts 1.0.2 on Tomcat

RE: [Taglib] Testing for null value using logic

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

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 html:form tag. So, since you are simply refreshing the page it worked. Did I miss something? Sri -Original Message- From: Craig Tataryn

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: [Buttons] How do i code this in struts

2002-08-30 Thread Sri Sankaran
(); return false;/ The method does return me a string. I am getting the following error: The request sent by the client was syntactically incorrect (/%=%20proc.getBigBrotherReport()%). Susmita -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Friday

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

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 Mailing List

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

2002-08-29 Thread Sri Sankaran
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 -Original Message- From: Sri

RE: bean:write .../

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 bean:write is foo, the getter

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 nested:multibox within a nested:iterate To display the checkboxes, I have the following arrangement: nested:iterate property=products nested:multibox

RE: Display of label associated to drop-down

2002-08-27 Thread Sri Sankaran
To you therapyCode select tag add an onchange (note:it isn't onChange) element that submits the page. The action for the page can then set the therapyArrayList and re-direct the user to the same page html:select property=therapyCode1 onclick=formname.submit() %-- etc --% Hope that helps

RE: Iterate: No getter method problem

2002-08-27 Thread Sri Sankaran
Try using logic:iterate id=. name=mybean property=list Note that the property value is 'list' and not 'List'. Unless instructed otherwise, per JavaBeans spec, this'll result in a call to 'getList' (now with an uppercase 'l') -- just like your method is named. Sri -Original

RE: Cannot retrieve mapping for action /loginForm error

2002-08-27 Thread Sri Sankaran
I think your action should be 'login'. 'loginForm' is your form bean. Sri -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 11:32 AM To: Struts Users Mailing List Subject: Cannot retrieve mapping for action /loginForm error Hi, I am

RE: Cannot retrieve mapping for action /loginForm error

2002-08-27 Thread Sri Sankaran
or action mapping, also since i am using DynaValidatorForm, i have no class loginForm bean, so what will be the form-name if using DynaValidatorForm Ashish Sri Sankaran wrote:I think your action should be 'login'. 'loginForm' is your form bean. Sri -Original Message- From: Ashish Kulkarni

RE: changing location of example

2002-08-27 Thread Sri Sankaran
You shouldn't have to *extract* a war file. Simply drop it into Tomcat's webapps directory and re-start Tomcat. Sri -Original Message- From: Christof Schneider [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 1:09 PM To: Struts Users Mailing List Subject: changing location

RE: Display of label associated to drop-down

2002-08-27 Thread Sri Sankaran
index? If so, any idea what the code would look like? Thanks -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 5:44 AM To: Struts Users Mailing List Subject: RE: Display of label associated to drop-down To you therapyCode select tag add

RE: one more question about html:select and html:option tag

2002-08-27 Thread Sri Sankaran
Remove the multiple=false. I know, what you've done is intuitively correct, however, the docs on the multiple attribute read If set to any arbitrary value, the rendered select element will support multiple selections. (RT Expr) Sri -Original Message- From: Ashish Kulkarni

RE: Display of label associated to drop-down

2002-08-27 Thread Sri Sankaran
- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 12:11 PM To: Struts Users Mailing List Subject: RE: Display of label associated to drop-down The indexed=true is valid only inside an logic:iterate tag. If your page is lightweight enough you could load the codes

RE: Editable/non-editable fields

2002-08-26 Thread Sri Sankaran
If I understand you question correctly, you want to dynamically determine whether to display the data in an editable manner or not. You could save the condition (that determines whether to allow edits or not) in the form bean and then do something like: logic:equal property=canEdit value=true

Hesitation leads to NullPointerException

2002-08-26 Thread Sri Sankaran
Using Struts 1.0.2 on Tomcat 4.0.2 bizarre.alert I have a problem that only occurs if the user lingers on a page for a while (say a few minutes). If after this duration, the user triggers any action, the application crashes with a NullPointerException. I have debugged the exception as being

RE: Hesitation leads to NullPointerException

2002-08-26 Thread Sri Sankaran
) --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 11:54 AM To: Struts-User Subject: Hesitation leads to NullPointerException Using Struts 1.0.2 on Tomcat 4.0.2 bizarre.alert I

RE: what does [RT Expr] mean in struts documentation

2002-08-26 Thread Sri Sankaran
Run Time Expression. For example if the value attribute of tag foo is annotated [RT Expr] it means you can embed JSP scriptlets such as: html:foo value='%=hi!%'/ Sri -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 4:08 PM To: Struts

RE: Anybody knows or uses IntelliJIDEA

2002-08-22 Thread Sri Sankaran
curmudgeon As if it weren't bad enough that this has nothing to do with Struts you bombard this list repeatedly with the same messageLet's keep that to Fridays shall we? /curmudgeon -Original Message- From: Sutiwan Kariya [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002

RE: Struts event cycle

2002-08-21 Thread Sri Sankaran
The information at http://www.jguru.com/faq/printableview.jsp?EID=827776 might help. Sri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 3:41 AM To: [EMAIL PROTECTED] Subject: Re: Struts event cycle Hello again! Another quick

RE: Nesting beans

2002-08-21 Thread Sri Sankaran
When you are using the nested extension remember to use the nested:xyz tags as opposed to the html:xyz tags. Now, if you have a collection of SessionBean objects in your LoginBean your jsp would have something like: nested:iterate property=nameOfVectorIVar nested:write property=requestId/

RE: Nesting beans

2002-08-21 Thread Sri Sankaran
10:26 AM To: Struts Users Mailing List Subject: Re: Nesting beans but the tag 'nested' isn't that only in 1.1 onwards? i cant find it in the 1.0 api Sri Sankaran wrote: When you are using the nested extension remember to use the nested:xyz tags as opposed to the html:xyz tags. Now

RE: Escaping HTML in html:multibox../

2002-08-20 Thread Sri Sankaran
Robert: I think the only way to achieve dynamism in the value attribute is to use a JSP scriptlet such as: html:multibox property=upgradeLicenseKeys value=%=element.getLicenseKeyId()%/ What is it that you are trying to achieve? I have used multibox in an iteration (complete with

RE: html:errors/ not displaying message?

2002-08-20 Thread Sri Sankaran
You mean html:html locale=true ? -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 3:23 PM To: 'Struts Users Mailing List' Subject: RE: html:errors/ not displaying message? Checked. it's there. I seem to remember a post sometime ago

RE: struts newbie

2002-08-16 Thread Sri Sankaran
Have you looked at the sample applications that ship with Struts? SS -Original Message- From: Lito Ang [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 5:29 AM To: Struts Users Mailing List Subject: struts newbie hi, i'm new to struts. just want to ask where i can find

RE: Does anybody know how to PRE-select MULTIPLE options with the selct tag?EOM

2002-08-15 Thread Sri Sankaran
html:options .../ /html:select Thanks, Jim Sri Sankaran wrote:See sample app that ships with Struts. struts-exercise-taglib/html-select.jsp Sri -Original Message- From: Jim Lee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 4:31 PM To: Struts Users Mailing List Subject

RE: Space problem

2002-08-14 Thread Sri Sankaran
Looks like you have a quoting () problem. The value attribute doesn't begin with a quote but ends with one. -Original Message- From: Tarun Sainanee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 10:02 AM To: Struts Users Mailing List Subject: Re: Space problem this is

RE: Does anybody know how to PRE-select MULTIPLE options with the selct tag?EOM

2002-08-14 Thread Sri Sankaran
See sample app that ships with Struts. struts-exercise-taglib/html-select.jsp Sri -Original Message- From: Jim Lee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 4:31 PM To: Struts Users Mailing List Subject: Does anybody know how to PRE-select MULTIPLE options with the

No getter error

2002-08-13 Thread Sri Sankaran
Using Struts 1.0.2 on Tomcat 4.0.2 I am blue in the face having stared at this error for the last several hours and can't figure out what is wrong. The problem: When attempting to display a page I receive the error No getter method for property itemsArray of bean cart Page snippet:

RE: No getter error

2002-08-13 Thread Sri Sankaran
com.sas.mis.qs.struts.bean.CartBean class?? -Message d'origine- De : Sri Sankaran [mailto:[EMAIL PROTECTED]] Envoye : mardi 13 aout 2002 13:45 A : Struts-User Objet : No getter error Using Struts 1.0.2 on Tomcat 4.0.2 I am blue in the face having stared at this error for the last several hours

RE: No getter error

2002-08-13 Thread Sri Sankaran
though that a String[] is expected, so you probably should specify the attribute type in your nested:iterate tag, that match your Object Class -Message d'origine- De : Sri Sankaran [mailto:[EMAIL PROTECTED]] Envoye : mardi 13 aout 2002 14:10 A : Struts Users Mailing List Objet : RE

<    1   2   3   4   5   >