Re: best way to put index of collection in option(s) tag ?

2002-06-09 Thread Sandeep Takhar
It seems to me that having the index is very similar to having a primary key. So maybe what you add to the collection should be given a primary key which may just be the index into the collection. sandeep --- Rick Reumann [EMAIL PROTECTED] wrote: What is the best way to put the index value of

Re: Multiple Select Problem

2002-06-23 Thread Sandeep Takhar
try using an array list. I think you need something that can be converted to an iterator?? sandeep --- Dave Weis [EMAIL PROTECTED] wrote: Hello I'm trying to make a multiple select on a form. I can't seem to get the correct type signatures on the getter and setter in the form. When I

Re: Making Action object as singleton

2002-06-23 Thread Sandeep Takhar
I'm pretty sure that action objects are created only once by the server. this question may have been answered before if this is not what you are looking for. sandeep --- Bhattad, Nilesh [EMAIL PROTECTED] wrote: Hello I have an Action object which is common for all JSP pages. It doesn't

Re: bean:write format

2002-06-26 Thread Sandeep Takhar
bean:message --- Graham Lounder [EMAIL PROTECTED] wrote: Hello All, I can't seem to find much documentation on the format option of the bean:write tag. I've search the mail archive and couldn't find anything. I was able to format numbers by using ###.##0.00 in the format option. My

Re: bean:define with message keys

2002-06-27 Thread Sandeep Takhar
it almost seems like you could use a tag library. i'm sure there is a better way than that as well.. sandeep --- Developer [EMAIL PROTECTED] wrote: Has anyone a cleaner way to do the following: bean:define id=confirmMessage value=return confirm(' / %

Re: Question- Reset method usage

2002-06-27 Thread Sandeep Takhar
before an action is called (on a request) the order is: reset processPopulate validate if validate=false in the config, only the first two are followed. if it is a cancel button than I don't think any of this is called. In version 1.1 if you define a jsp with an html:form which has a form

Tiles and Struts 1.0

2001-10-18 Thread Sandeep Takhar
Thanks for the previous reply Cedric ( I deleted it so I can't reply to it). I am still having a problem. I am using tiles-docs.war file. I downloaded the latest binary zip file and the tilesforstruts1-0.jar file does not seem to fix my problem -- i get the exact same error -- no classdeffound

Re: rtexprvalue not working in html:link tag!!!

2001-10-18 Thread Sandeep Takhar
Not sure if this is right, but try using single quotes. - Sandeep --- [EMAIL PROTECTED] wrote: Anyone know why my scriptlet in the following html:link tag is not being evaluated? ** % String somepage= index.jsp; %

Re: How to do this type of validation?

2001-10-19 Thread Sandeep Takhar
There is a validate extension that may do what you want? http://home.earthlink.net/~dwinterfeldt/ I believe that it is part of the nightly build as well. - Sandeep --- Alex Colic [EMAIL PROTECTED] wrote: Hi, could someone give me some architecture hints on how to do the following: Lets

Re: Include of a Action-output in a JSP

2001-10-19 Thread Sandeep Takhar
It is possible if you use tiles. Here is a link to the archive that gives the details: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg16127.html - Sandeep --- storck [EMAIL PROTECTED] wrote: HI, is the following possible ? I have a JSP named Table.jsp wich looks like the

Re: Tiles and template repeated files

2001-10-19 Thread Sandeep Takhar
I may be misunderstanding, but you are suggesting using the body of the put and how big can that body be...? It is possible just to define the individual jsp's without the need for this intermediary template jsp. This is a big advantage of tiles. You can define the definition in the

Re: how to refer to images from JSPs in WEB-INF?

2001-10-19 Thread Sandeep Takhar
try the following url: http://www.jguru.com/faq/view.jsp?EID=471953 I am not sure if this works for servlet api 2.2. sandeep --- Rob Breeds [EMAIL PROTECTED] wrote: The Struts example (or I read it somewhere on the husted.com pages) recommends putting JSPs under the WEB-INF folder so the

Re: How to stop form submit on javascript error?

2001-10-19 Thread Sandeep Takhar
a populated ActionErrors object, the action servlet does a forward to the resource you've defined by the input attribute in the mapping element. otherwise, it calls perform on your action class. Sandeep Takhar wrote: hmm, how would you do this on the java side of things in the form bean

Re: Dynamic XML extended defintions

2001-10-21 Thread Sandeep Takhar
here is a link to something that suggests it is possible -- may have to play around a bit. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg16127.html - sandeep --- iT meDic [EMAIL PROTECTED] wrote: Hi, I was wondering if it would be possible to overwrite the values(2 or 3

Re: errors not clearing when hitting BACK

2001-10-21 Thread Sandeep Takhar
this seems quite strange to me, unless you are doing something with the cache? normally when I hit the back button, the page is not refreshed and just shows as it previously showed the last time I was at the page. According to what you are saying, you are getting the old ActionErrors()

RE: iterate with 3 array lists (urgent)

2001-10-22 Thread Sandeep Takhar
I believe someone mentioned that indexed properties don't work even though the documentation says it does. The nightly downloads contain this functionality or this is an add on that you can download and install: http://husted.com/struts/resources.htm Go to Contributor Extensions and look at

Re: Dynamic XML extended defintions

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

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

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

Validator and Backwards Compatibility

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

Re: Validator and Backwards Compatibility

2001-10-23 Thread Sandeep Takhar
is in the nightly build but not the struts1-0 release. - sandeep --- David Winterfeldt [EMAIL PROTECTED] wrote: --- Sandeep Takhar [EMAIL PROTECTED] wrote: Outside of what is defined as differences in the revisions.html file -- what are the backwards compatibility issues. This is really an effort

Validator and Struts 1.0

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

Re: View-Document approach

2001-10-24 Thread Sandeep Takhar
you can use one form element and have the iterate tag go over these and then have the elementKey as a parameter using an html:link as the last column in the table. The example app does a good job of using this approach. Sandeep --- Nicolas_Parisé [EMAIL PROTECTED] wrote: Hi, I have a JSP

Re: Dynamic XML extended defintions

2001-10-24 Thread Sandeep Takhar
the itmes in the submenu.jsp. Thanks for your help anyway! still trying other methods, if i come up with an innovative way to handle the situation, i will post it as follow up, cheers. From: Sandeep Takhar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re

Re: Creating your own ActionForm inside of an Action

2001-10-24 Thread Sandeep Takhar
Here is something I pulled from the archive and the latest discussion seem to indicate that this is how it works: 1. Controller receives request. 2. Controller looks up mapping for Action and what ActionForm to use. 3. Reset is invoked on the bean. N.B. The instance of the ActionForm either

Validator Nightly builds and Struts 1.0

2001-10-24 Thread Sandeep Takhar
I get the following error message: classnotfoundexception: com.wintecinc.struts.validation.Constant on startup When I run the example I get the following error: NoClassDefFoundError: org/apache/struts/action/ActionMessages Even though the code that causes it is compatible with version 1.0:

Re: Validator and Struts 1.0

2001-10-25 Thread Sandeep Takhar
the validator has to offer. thanks for that. Sandeep --- David Winterfeldt [EMAIL PROTECTED] wrote: --- Sandeep Takhar [EMAIL PROTECTED] wrote: sorry David, but I accidentally deleted the thread that was started from my mail. I think that having a final release of validator for release 1.0

Struts mapper

2001-10-25 Thread Sandeep Takhar
I have downloaded and installed the mapper utilities available from Tim Husted's resource page http://husted.com/struts/resources.htm#extensions under Mapper Framework by Capco. It sounds promising and for a complex application can save a lot of time. I have been reading about it and have

Re: Design consideration: Client side validation

2001-10-26 Thread Sandeep Takhar
The struts validator performs client side validation, but then repeats again in case the user has turned off javascript. This is the preferred approach. The nice thing is, most validators are pre-configured for you and you don't have to write java or javascript code in order to use these

Re: RowTag Zip file

2001-10-26 Thread Sandeep Takhar
http://husted.com/struts/resources/rowtag.zip Sandeep --- [EMAIL PROTECTED] wrote: StrutsUsers-- Does anyone know where I can get a copy of the RowTag Zip file? (The link on the struts website is broken) Thanks! Jason

Re: onmouseover attribute of html:link

2001-10-27 Thread Sandeep Takhar
i think you may have to define a scripting variable to build the string first. It is probably not working because of the swapImage( at the start of the value and the container doesn't know what to do about the embedded scripting variables. - Sandeep --- lisa ward [EMAIL PROTECTED] wrote: Hi,

Re: Comment on using the Struts platform for this project.

2001-10-27 Thread Sandeep Takhar
I almost sounds like you could use xml/xsl for this piece. another product that does this kinda thing is dbForms, however the interface is not too pretty. I believe there are other weaknesses of this design, but for something that needs to be done quickly and is not an enterprise app, this may

Re: Nightly Build Problem

2001-10-27 Thread Sandeep Takhar
I think you need to be running tomcat 4. Apparently there are previous posts on this. Someone pointed this out to me as well. It was a problem with 3.2.x.. Sorry, but it escapes me as to what you should search for in the archives... Sandeep --- L. Yeung [EMAIL PROTECTED] wrote: My struts

Re: Different Actions calls in one html:form Tag

2001-10-27 Thread Sandeep Takhar
You may want to check Ted Husted's site for an alternative take on this: http://husted.com/about/scaffolding/catalog.htm Sandeep --- John Yu [EMAIL PROTECTED] wrote: Roland, (My email client can't display your example, not even in 'source view'...) Combining DispatchAction and the

Re: onmouseover attribute of html:link

2001-10-27 Thread Sandeep Takhar
I just realized something: You can't nest custom tag libraries. You're vlounge tag library is screwing things up. This is a limitation of xml and not custom tags, but that is the problem. - Sandeep --- lisa ward [EMAIL PROTECTED] wrote: Hi, Can anyone please tell me why this works: a

Struts Validation question

2001-10-31 Thread Sandeep Takhar
when using the struts validator, what happens if you define a validation for a field and the field does not exist? Does it skip the field (this is what I would like). - Sandeep __ Do You Yahoo!? Make a great connection at Yahoo! Personals.

Re: Struts-Validator problem: NoClassDefFoundError

2001-11-01 Thread Sandeep Takhar
search the archives for more postings, but I have heard different approaches when I posted the same problem. 1. Check to see that you are using the latest Struts nightly build. 2. If not using hte latest nightly build, this may work if you use Tomcat 4.0 3. Remove Jaxp, crimson and parser.jar

Re: Duplication of Template Files Solution

2001-11-01 Thread Sandeep Takhar
I believe there is a limitation to the size of the file that can be used like this. I don't know about performance. There are other benefits of using tiles -- at least for me these include dynamically creating the ui in the controller for hierarchical input forms (forms that are similar but

Re: Duplication of Template Files Solution

2001-11-01 Thread Sandeep Takhar
Tiles allows you to do this as well. btw: I have replied to another reply in this same thread about other things I like about tiles. In my usual haste I deleted the original message when I realized there was something more I wanted to say. - sandeep --- Darryl Pentz [EMAIL PROTECTED] wrote:

Re: Duplication of Template Files Solution

2001-11-01 Thread Sandeep Takhar
described) and this one will get rid of that duplicate jsp. - Sandeep --- Sandeep Takhar [EMAIL PROTECTED] wrote: Tiles allows you to do this as well. btw: I have replied to another reply in this same thread about other things I like about tiles. In my usual haste I deleted the original message

RE: Duplication of Template Files Solution

2001-11-01 Thread Sandeep Takhar
to reference the Tiles definition from the struts-config action mapping, hence my request above. thanks, Darryl -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED]] Sent: 01 November 2001 18:05 To: Struts Users Mailing List Subject: Re: Duplication of Template Files

RE: Duplication of Template Files Solution

2001-11-01 Thread Sandeep Takhar
Pentz [EMAIL PROTECTED] wrote: Cool. That's interesting. And you mentioned something about being able to manipulate placement of tiles from within the Action class. How is that done? - Darryl -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED]] Sent: 01 November

Re: Check session/BO @ the view without using Java

2001-11-01 Thread Sandeep Takhar
Interesting question, because this is what Struts is strong at. If you really need to add the code, than custom tags are a better way to go Here is one way I have seen it done using Struts (note the forward is to a pre-defined alias of a jsp page so the path of the jsp is hidden): %@ page

Re: Check session/BO @ the view without using Java

2001-11-01 Thread Sandeep Takhar
Struts does this with it's logic custom tag libraries. May have to change the data representation in order to use the logic tags though. check out the docs: http://jakarta.apache.org/struts/struts-logic.html - Sandeep --- Marc L. de Bruin [EMAIL PROTECTED] wrote: Sandeep Takhar wrote

Re: Capturing an outgoing response.

2001-11-02 Thread Sandeep Takhar
I believe there is also a tag that struts uses that can take the output servlet/jsp and place it in a bean. If you look at the code for this tag you will see how they get the output of a servlet and place it in a bean. This should work for any type of output. Unfortunately I don't have the

Re: html:errors

2001-11-02 Thread Sandeep Takhar
Have you defined the tag library in the jsp? --- Todd Fulton [EMAIL PROTECTED] wrote: I just can't seem to get the html:errors tag to display the errors passed through via my ActionForm object's validate() method. I have confirmed that the validate() method is working correctly -- as I'm

Re: action forward tag...

2001-11-02 Thread Sandeep Takhar
If you are not using framesets - I would suggest looking at using tiles or templates. These allow you to include header,footer,menu,body type layouts within the jsp -- here you would just reference the jsp file. sandeep --- John Nikolai [EMAIL PROTECTED] wrote: Hello all! I have an

Re: Digester content with elements

2001-11-02 Thread Sandeep Takhar
I don't understand how this is any different than the stuff that comes with the documentation. -sandeep --- Scott Atwell [EMAIL PROTECTED] wrote: Could you not use a DOM parser, e.g. xerces, to do this? Regards, Scott - Original Message - From: Bob Byron [EMAIL PROTECTED] To:

RE: Jbuilder 5.0 w/ Tomcat 4.0

2001-11-12 Thread Sandeep Takhar
If you haven't got a reply yet, you will need a jaxp 1.1 compliant parser. Easiest thing is to use xerces and get rid of jaxp.jar crimson.jar and parser.jar or equivalent. I am pretty sure about this, but I may be confusing tiles and the validator. Sandeep --- Tony Li [EMAIL PROTECTED] wrote:

RE: WAR file???

2001-11-12 Thread Sandeep Takhar
You can use jakarta-ant to automate this process as well. This will eventually save you time, because you won't be making any mistakes. my .2 cents. Sandeep --- Adriano Labate [EMAIL PROTECTED] wrote: Hi, I use the jar command: jar cf ..\regbl-app.war . to create a regbl-app.war web

Re: off subject ANT

2001-11-14 Thread Sandeep Takhar
just a quick thought: is it permissions? (I may have missed your intention) Sandeep --- Tom Tibbetts [EMAIL PROTECTED] wrote: Hi All, I know this is outside of Struts, but there seem to be a lot of Ant users here and I'm not getting any useable answers to an Ant question I have from the

RE: reusing form for readonly

2001-11-19 Thread Sandeep Takhar
The delete and view are almost the same no? Maybe you can use the if statements for these. For the others - it is really security related. I think you should put the logic in the perform() method and then forward to mapping.readMode() or mapping.editMode(). Maybe can use the same logic to

RE: localized html pages

2001-11-19 Thread Sandeep Takhar
=%=request.getParameter(processType)%/ %String processType=request.getParameter(processType); if(processType != null processType.equalsIgnoreCase(cancelreq)) { % html:submit styleClass=button value=Cancel/ % } % /html:form -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED

Re: Design question - Action Form vs Business Delegates/Value Objects

2001-11-22 Thread Sandeep Takhar
I'm interested in this mapper you talked about, thanks, btw: What is the difference between this one and the one on Ted Husted's? Are you talking about Mapco? Sandeep --- Sobkowski, Andrej [EMAIL PROTECTED] wrote: Hello, we're working on a quite large project with J2EE (including EJBs)

Re: Reg. Progressive Disclosure

2001-11-25 Thread Sandeep Takhar
I am thinking of implementing this with the tiles add-on (it is part of the nightly builds, but not part of struts 1.0). The action's perform() method does all the work using the tiles api. When the user does something that warrants changing the screen -- the user is submitted back to the same

Re: What's the correct way to get remote data in struts?

2001-11-25 Thread Sandeep Takhar
I don't have all the answers, but I am sure other people will elaborate in more detail. I know that I need a form bean to handle getting the form values to the class to fetch the headlines, but my questions are: 1. How do I populate it the *first* time a user visits the page (before any

Re: What's the correct way to get remote data in struts?

2001-11-25 Thread Sandeep Takhar
for configuring the actions for add/update/delete (I guess these are referred to as CRUD operations). You should check it out for sure. -Sandeep --- Sandeep Takhar [EMAIL PROTECTED] wrote: I don't have all the answers, but I am sure other people will elaborate in more detail. I know that I

Re: Struts Error Page Approach - Recommended / Struts Support

2001-11-29 Thread Sandeep Takhar
Thanks Ted Paul. As always, a useful piece of the puzzle. Just wondering what you need the isCause() method. I read the article about exception handling, but when you write the detail message -- won't this write the cause out for you? Where would you not have the cause? Also: the business

Simple discussion forum

2001-12-02 Thread Sandeep Takhar
Has anyone build a simple discussion forum or started one -- using Struts? Would you be willing to share it? The part I am struggling with the most is where to store the data. It does not need to be a complex application or even that scalable. Just something quick and dirty for now. thanks,

Re: Help-Loading 2nd FormBean in same action???Is there an easy way??

2001-12-03 Thread Sandeep Takhar
I think that you can use different actions mappings for each. From Ted-Husted's site: !-- start of cut paste -- Use multifunction Actions to service related ActionMappings Here's an example: In an Insert / Update workflow, there are usually three ActionMappings, one for add, to return an

Struts VAR

2001-12-03 Thread Sandeep Takhar
Does anyone know of any Struts Value Added Resellers. Someone that has added on to the struts framework and offers support/documentation/training? - thanks, Sandeep __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping.

Re: Help-Loading 2nd FormBean in same action???Is there an easy way??

2001-12-04 Thread Sandeep Takhar
own attributes. Original Message Follows From: Sandeep Takhar [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Help-Loading 2nd FormBean in same action???Is there an easy way?? Date: Mon, 3 Dec

Re: Advice on integrating struts within existing application

2001-12-10 Thread Sandeep Takhar
I haven't done what you are asking, but I will add what I know... --- [EMAIL PROTECTED] wrote: 2 - Are there any features that only work if adopted system wide? can't think of any, but I am a relative newbie and have trouble measuring the impact. 3 - Do I need to use the Struts - HTML tags? no

Different web apps and struts

2001-12-12 Thread Sandeep Takhar
there was a recent question in this list that I am trying to understand the implications of. I think that these are questions I should know the answer to, and possibly look up elsewhere, but there is some struts content eventually... If there are multiple web-apps on the same server or a

Re: Mixing Struts with XSLT

2001-12-13 Thread Sandeep Takhar
It makes sense to me and would like to know if there is an answer as well. This tackles one problem. What about the return? You have to generate XML again and than send it through the loop. Sandeep --- Dave Makower [EMAIL PROTECTED] wrote: We are currently using XML with XSLT in JSPs, in the

Re: Struts/FOP

2001-12-17 Thread Sandeep Takhar
when you emit RTF, can the users edit this format (unlike PDF). is there an import into word and does it lose the formatting? sorry for my ignorance. Sandeep --- Vic Cekvenich [EMAIL PROTECTED] wrote: Cocoon and Struts are different. Since I wanted to avoid server side production load

no action object

2001-12-18 Thread Sandeep Takhar
I have been searching the archives to no avail. Is it possible to forward to something without creating an action class and coding the perform method? this something would be plain html in most cases. thanks, Sandeep __ Do You Yahoo!? Check out

Re: no action object

2001-12-18 Thread Sandeep Takhar
I think I will just have a single action that forwards to success and that will suffice. I thought of this after I made the post. Sandeep --- Burr Sutter [EMAIL PROTECTED] wrote: Perhaps I don't understand your question. If you had no Action class where would you put the line of code that

JADE

2001-12-19 Thread Sandeep Takhar
there is an IBM UI Framework called JADE. We are currently evaluating it against Struts. Has anyone used it and done a comparison before? Does anyone have any comments about this UI Framework at all? btw: there is a newer version of Jade which is 2.5 and it is much closer to Struts now than

RE: JADE

2001-12-20 Thread Sandeep Takhar
to not answer your question, but I have been hunting for information about JADE, and have had no luck. Do you have any URLs, PDFs, anything that might give me more information? Thanks Sean. -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED]] Sent: 19 December

Re: Is there a global constructor I can use to initialise application wide beans?

2001-12-24 Thread Sandeep Takhar
Well - there are a number of ways of doing this. One way is to create a servlet and have it load on startup and do the work there. Sandeep --- [EMAIL PROTECTED] wrote: Hi I have some beans which I want to be visible application wide. I want them to be initilised when my struts

RE: JADE

2001-12-28 Thread Sandeep Takhar
no luck. Do you have any URLs, PDFs, anything that might give me more information? Thanks Sean. -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED]] Sent: 19 December 2001 21:01 To: Struts Mailing List Subject: JADE

Re: Guidance on image versions needed

2003-06-09 Thread Sandeep Takhar
can you store in the database and find in the resources. Really want to try and get away from if (company='') else if... sandeep --- Gregory F. March [EMAIL PROTECTED] wrote: Hi all, I have an application that changes the images loaded depending on an attribte of the user (e.g. what

RE: classloading error in struts

2003-06-09 Thread Sandeep Takhar
Weblogic 6.1 doesn't like having more than one 'decimal' in the name of jar files. could this be the problem?? sandeep --- Andrew Hill [EMAIL PROTECTED] wrote: Hmm... And Actions work? - just the ActionError class not found when using a JSP? Wierd. Cant think of anything else then Im afraid

Re: [Tiles Beginner Question] Href Tile Definitions

2003-06-09 Thread Sandeep Takhar
I think you don't want to create an action to handle the tiles reference right? If not, then you can simply create a global action that forwards to display say.. action path=/home scope=request type=org.apache.struts.actions.ForwardAction validate=false /action

Re: [Tiles Beginner Question] Href Tile Definitions

2003-06-09 Thread Sandeep Takhar
sorry I accidently hit tab on the last reply and it sent the email somehow (some weird combination of keystrokes). What I wanted to finish was the action... action path=/home scope=request type=com.xxx.xxx.FowardAction validate=false forward name=display

Re: Populating Drop-down

2003-06-10 Thread Sandeep Takhar
someone else has replied, but just some more hints. You can look at html:optionsCollection which as support for labelValueBeans. The idea about using using the tiles:controller is an excellent one, but I have not done this. You will probably want it in application context and not load them all

Re: logic:iterate and html:text indexed=true/

2003-06-10 Thread Sandeep Takhar
my small understanding on how to use this is as follows: logic:iterate name=form_name property=property_name id=property_name html:text property=some_property indexed=true ok -- 1. form_name is the name of the form 2. property_name is the name of the property and for some reason the id= also

RE: Varying number of field

2003-06-10 Thread Sandeep Takhar
You can always post to a map. Let me see if I can find a link... Look at 4.3.2: http://jakarta.apache.org/struts/userGuide/building_controller.html sandeep --- Andrew Hill [EMAIL PROTECTED] wrote: Check out the nested form stuff. See: http://www.keyboardmonkey.com/pilotlight/index.jsp

RE: logic:iterate and html:text indexed=true/

2003-06-10 Thread Sandeep Takhar
- you can call any page object anything you want. Mark -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 2:41 PM To: Struts Users Mailing List Subject: Re: logic:iterate and html:text indexed=true/ my small understanding on how

Re: Validating search box's

2003-06-10 Thread Sandeep Takhar
I think you want to use instead of || sandeep --- Jason Meredith [EMAIL PROTECTED] wrote: I have a search facility that returns records from a database. There are 9 fields to search from, at least one field has to pass a value in order to return records, but it can be anyone of them.

RE: What are indexed struts-html tags and how to use them?

2003-06-10 Thread Sandeep Takhar
There is an error in that getPerson(int index) should return a Person object or something with name etc. sandeep --- Sashi Ravipati [EMAIL PROTECTED] wrote: I want to accomplish something which is similar to what is shown in the example

Re: Guidance on image versions needed

2003-06-10 Thread Sandeep Takhar
storing in the back-end wouldn't make sense since it is view level information. Maybe have something in the database like logoId and key off of that. sandeep --- Gregory F. March [EMAIL PROTECTED] wrote: On Jun 9, 2003, Sandeep Takhar [EMAIL PROTECTED] wrote: |can you store in the database

Re: More validation woes... Ack!

2003-06-10 Thread Sandeep Takhar
It is normal to show the path of the submit on the validate since that is the request that it is processing when an error occurs (the roundtrip) sandeep --- Gregory F. March [EMAIL PROTECTED] wrote: Quick version: How does one handle a tile-based form that fails validation? Or, is there

Re: Dynamic DynaActionForms?

2003-06-11 Thread Sandeep Takhar
Why not have the form capture all the info. Have the administrator control a switch to suggest which radio boxes should appear and if they only choose one then don't show any radio boxes. After filling in the address info have a next button and take them to the additional info about credit etc.

RE: What are indexed struts-html tags and how to use them?

2003-06-11 Thread Sandeep Takhar
I personally use nested tags because they have better support for this kinda thing. Here is a good place for a tutorial. http://www.keyboardmonkey.com/pilotlight/index.jsp Go to the bottom and click on the monkey[0] tutorial. Keep in mind the struts-basics for how it sets values on the submit.

RE: Forwarding to a tile definition

2003-06-11 Thread Sandeep Takhar
I don't know if it is the only way, but you can always link to an action and have that forward to a tile. sandeep --- Davidson, Glenn [EMAIL PROTECTED] wrote: I would also like to be able to forward to a tile definition! -Original Message- From: Gregory F. March [mailto:[EMAIL

Re: Using ActionForms and Entity CMP EJB

2003-06-11 Thread Sandeep Takhar
I would give some thought about what to do if you need to internationalize. (This might be different than the other hints given to you). The normal course is the ones suggested already. You can subclass the message resources. I haven't tried any of this however, but it can take care of the

Re: Wizard forms

2003-06-11 Thread Sandeep Takhar
I'm not saying it's better, but this is what I have done (but not with as much tiles integration). This is how I would do it moving forward: Have a different action or two different actions for each unique page. (You may have pages that are not necessarily unique and are generic second pages

Re: Scope related Vector iteration problem

2003-06-11 Thread Sandeep Takhar
It calls the getters too... one.two.three on submit will call getOne().getTwo().setThree() sandeep --- Gemes Tibor [EMAIL PROTECTED] wrote: James Watkins írta: My problem comes when I try to submit the form. I get the following exception when the bean gets populated:

Re: AW: checkboxproblem

2003-06-12 Thread Sandeep Takhar
I am a little rusty with the exact steps, but in my head I know for sure that when you make a request like /something.do Before SomethingAction is called it will call reset on the form defined in SomethingAction in struts-config. populate the form Then go the actions execute method. So the

Re: attribute problem

2003-06-12 Thread Sandeep Takhar
I think you need to have a ObjectB getB(int index) on ObjectA where getA returns ObjectA sandeep --- Peng Zhao [EMAIL PROTECTED] wrote: How can I use bean:write ../ to display an attribute like this? a.getB()[0].getC().getD() I used bean:write name=a.b[0].c property=d, but failed.

Re: Can you send a null value to a form in Struts (1.1)?

2003-06-12 Thread Sandeep Takhar
Other than strings and booleans, you cannot set the type you want. Maybe you can always set an equivalent 'null' string that you can check for in the validator. Unfortunately I haven't used the validator yet. sandeep --- Joe @ Team345 [EMAIL PROTECTED] wrote: Hi, Sorry if this is an oft

RE: what setters do i implement in an indexed tag --NewBiequestion

2003-06-12 Thread Sandeep Takhar
I would have a FormBeanName extend ActionForm have a getPersonList which returns a collection of Person objects which does not extend the ActionForm struts-config has form-bean name=formBean type=org.FormBeanName action path=/SomeAction form=formBean sandeep --- Sashi Ravipati

RE: Nested Tiles Definitions

2003-06-12 Thread Sandeep Takhar
try ignore=true I think this works. sandeep --- Robert Smith [EMAIL PROTECTED] wrote: What Chip suggested I had also tried (and neglected to mention in my first message). I can divine for Shirish's message that it has to do with the attributes not being in scope in the subtile. I tried

RE: what setters do i implement in an indexedtag--NewBiequestion

2003-06-12 Thread Sandeep Takhar
I'm with you on this one. Going back to the server is ok here and it is very clear what is happening. You will want to change validate in order to correctly populate the form. sandeep --- John Greenhill [EMAIL PROTECTED] wrote: Hi, To start with, I'm assuming a flow like this:

RE: Nested Tiles Definitions

2003-06-12 Thread Sandeep Takhar
a bit too contrived logic.If anybody can give a clean solution for this nesting tiles problem,I will be too happy.. Any tiles experts listening? Shirish -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:56 PM To: Struts Users

RE: what setters do i implement in an indexedtag--NewBiequestion

2003-06-12 Thread Sandeep Takhar
Whoa that was confusing. I meant to say to change validate so that it handles the fact that you pressed add and not do the validation. I don't use the validator yet, but there must be a way to handle it with the validator. sandeep --- Sandeep Takhar [EMAIL PROTECTED] wrote: I'm with you

Re: html:error dynamic usage

2003-06-13 Thread Sandeep Takhar
Someone just asked that... I think there is a custom tag..LabelTag? sandeep --- Gregory F. March [EMAIL PROTECTED] wrote: Boy, I'm just full of questions this morning! Musta been something in my oatmeal. :-) I would like to have a page that changes the color of the text associated

Re: lost form data when validate returns errors

2003-06-13 Thread Sandeep Takhar
reset() populate() validate() I believe sandeep --- Sashi Ravipati [EMAIL PROTECTED] wrote: Hi I have the form info in my action and it passes the form's validation, but if I add an error the displayed page doesn't have the form info. The error displays properly, but I lose all the

Re: Generating Java constants class from message resources

2003-06-16 Thread Sandeep Takhar
I haven't done anything like that, but it seems to me that this is XDoclet's arena. sandeep --- Aaron Robinson [EMAIL PROTECTED] wrote: The most common approach I've seen to using error messages in code is set up a bunch of constants somewhere and then use these in the code... public

  1   2   3   >